/* ============================================
   IP Web Solutions - Web Development & Digital Marketing
   Main Stylesheet
   ============================================ */

/* --------------------------------------------
   1. CSS Variables
   -------------------------------------------- */
:root {
    /* Primary Colors */
    --primary: #066aab;
    --primary-dark: #04507d;
    --primary-light: #0880c4;
    --primary-rgb: 6, 106, 171;

    /* Secondary Colors */
    --secondary: #f97316;
    --secondary-dark: #ea580c;
    --secondary-rgb: 249, 115, 22;

    /* Accent */
    --accent: #fbbf24;
    --accent-dark: #f59e0b;

    /* Dark Shades */
    --dark: #1a202c;
    --dark-light: #2d3748;
    --dark-lighter: #4a5568;

    /* Neutral / Gray */
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;

    /* Cyan / Tech Accent */
    --cyan: #00d4ff;
    --cyan-rgb: 0, 212, 255;
    --cyan-dark: #00b4d8;

    /* Key Background Colors */
    --hero-bg: #080e1a;
    --footer-bg: #0f172a;

    /* Semantic */
    --white: #ffffff;
    --black: #000000;
    --success: #48bb78;
    --danger: #fc8181;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #066aab 0%, #04507d 100%);
    --gradient-secondary: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --section-padding-sm: 60px 0;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 8px 25px rgba(6, 106, 171, 0.3);
    --shadow-secondary: 0 8px 25px rgba(249, 115, 22, 0.3);

    /* Glows */
    --glow-cyan-sm: 0 0 15px rgba(0, 212, 255, 0.08);
    --glow-cyan-md: 0 0 30px rgba(0, 212, 255, 0.12);

    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
}

/* --------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 0.5em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

/* Focus-visible accessibility */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 0;
    border-color: var(--primary);
}

/* Selection */
::selection {
    background-color: var(--primary);
    color: var(--white);
}

/* --------------------------------------------
   3. Container & Layout
   -------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 800px;
}

.container-lg {
    max-width: 1400px;
}

/* Sections */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-gray {
    background-color: var(--gray-100);
}

.section-dark {
    background-color: var(--dark);
    color: var(--white);
}

.section-dark p {
    color: var(--gray-400);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

.section-gradient {
    background: var(--gradient-primary);
    color: var(--white);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 15px;
    position: relative;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
}

.section-dark .section-header p {
    color: var(--gray-400);
}

/* Section Tag / Label */
.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 10px;
}

.section-tag::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-dark .section-tag {
    color: var(--accent);
}

.section-dark .section-tag::after {
    background: var(--accent);
}

/* --------------------------------------------
   4. Buttons
   -------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-secondary);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--dark);
    border-color: var(--gray-300);
}

.btn-outline-dark:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

.btn-full {
    width: 100%;
}

.btn + .btn {
    margin-left: 15px;
}

/* --------------------------------------------
   5. Header & Navigation
   -------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: var(--white);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.header.scrolled .logo {
    color: var(--dark);
}

.logo {
    position: relative;
}

.logo img {
    height: 80px;
    transition: opacity 0.4s ease;
}

.logo .logo-dark {
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.logo .logo-light {
    opacity: 1;
}

.header.scrolled .logo .logo-dark {
    opacity: 1;
}

.header.scrolled .logo .logo-light {
    opacity: 0;
}

.logo span {
    color: var(--accent);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 70%;
    left: 15%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
}

.header.scrolled .nav-menu a {
    color: var(--dark-light);
}

.header.scrolled .nav-menu a:hover,
.header.scrolled .nav-menu a.active {
    color: var(--primary);
}

.header.scrolled .nav-menu a::after {
    background-color: var(--primary);
}

/* Nav CTA */
.nav-cta {
    margin-left: 20px;
}

.nav-cta .btn {
    padding: 8px 24px;
    font-size: 0.85rem;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.header.scrolled .nav-toggle span {
    background: var(--dark);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --------------------------------------------
   6. Hero Section
   -------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #066aab 0%, #033d66 100%);
    background-attachment: fixed;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.92) 0%, rgba(4, 80, 125, 0.95) 100%);
    z-index: 1;
}

/* Dark particle network hero variant */
.hero.hero-dark {
    background: var(--hero-bg);
    background-attachment: scroll;
}

.hero.hero-dark::before {
    background: radial-gradient(ellipse at 30% 50%, rgba(6, 106, 171, 0.18) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(0, 180, 216, 0.10) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(0, 140, 180, 0.08) 0%, transparent 55%);
    z-index: 1;
}

.hero.hero-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.35) 100%);
    z-index: 1;
    pointer-events: none;
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Hero content staggered animations */
.hero-content h1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content p {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-buttons .btn + .btn {
    margin-left: 0;
}

/* Hero Stats Row */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 5px;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
}

.hero-scroll a {
    display: inline-block;
    color: var(--white);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: var(--transition);
}

.hero-scroll a:hover {
    opacity: 1;
    color: var(--white);
}

.hero-scroll i {
    display: block;
    margin-top: 8px;
    font-size: 1.2rem;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* --------------------------------------------
   6b. Unified Card Hover Baseline
   -------------------------------------------- */
.service-card,
.benefit-card,
.value-card,
.testimonial-card,
.mission-card,
.vision-card,
.team-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
}

.service-card:hover,
.benefit-card:hover,
.value-card:hover,
.testimonial-card:hover,
.mission-card:hover,
.vision-card:hover,
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--glow-cyan-sm);
    border-color: rgba(var(--cyan-rgb), 0.18);
}

/* Top accent bar (blue-to-cyan gradient, reveals on hover) */
.service-card::before,
.benefit-card::before,
.value-card::before,
.mission-card::before,
.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--cyan) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before,
.benefit-card:hover::before,
.value-card:hover::before,
.mission-card:hover::before,
.vision-card:hover::before {
    transform: scaleX(1);
}

/* Shared icon container hover — blue-to-cyan gradient */
.service-card:hover .service-icon,
.benefit-card:hover .benefit-icon,
.value-card:hover .value-icon,
.mission-card:hover .card-icon,
.vision-card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan-dark) 100%);
    color: var(--white);
    box-shadow: var(--glow-cyan-sm);
}

/* --------------------------------------------
   7. Services / Features Grid
   -------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

/* service-card ::before and :hover handled by unified card baseline above */

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.1) 0%, rgba(4, 80, 125, 0.1) 100%);
    border-radius: var(--radius-lg);
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.service-card .service-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-card .service-link:hover {
    color: var(--secondary);
    gap: 10px;
}

/* --------------------------------------------
   8. Portfolio Section
   -------------------------------------------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.portfolio-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--glow-cyan-sm);
}

.portfolio-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-card:nth-child(1) .portfolio-card-image {
    background: linear-gradient(135deg, #066aab, #00d4ff);
}

.portfolio-card:nth-child(2) .portfolio-card-image {
    background: linear-gradient(135deg, #1a1a2e, #e94560);
}

.portfolio-card:nth-child(3) .portfolio-card-image {
    background: linear-gradient(135deg, #0f3460, #16c79a);
}

.portfolio-card:nth-child(4) .portfolio-card-image {
    background: linear-gradient(135deg, #2d1b69, #00d4ff);
}

.portfolio-card-initial {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: var(--transition);
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.portfolio-card-overlay i {
    font-size: 1.5rem;
}

.portfolio-card:hover .portfolio-card-overlay {
    opacity: 1;
}

.portfolio-card-info {
    padding: 24px;
}

.portfolio-card-info h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.portfolio-card-info span {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* --------------------------------------------
   9. About Preview Section
   -------------------------------------------- */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-preview-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.about-preview-image:hover img {
    transform: scale(1.03);
}

.about-preview-image::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.3;
}

.about-preview-content {
    padding: 10px 0;
}

.about-preview-content .section-tag {
    text-align: left;
}

.about-preview-content .section-tag::after {
    left: 0;
    transform: none;
}

.about-preview-content h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.about-preview-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.about-features {
    margin: 25px 0 30px;
}

.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.about-feature-item i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    margin-top: 3px;
}

.about-feature-item span {
    font-size: 1rem;
    color: var(--dark-light);
    font-weight: 500;
}

/* --------------------------------------------
   9. Stats Section
   -------------------------------------------- */
.stats-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
}

.stat-item .stat-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.stat-item .stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item .stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* --------------------------------------------
   10. Testimonials
   -------------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

/* testimonial-card :hover handled by unified card baseline */

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: rgba(6, 106, 171, 0.1);
    line-height: 1;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 20px;
}

.testimonial-stars i {
    color: var(--accent);
    font-size: 0.9rem;
}

.testimonial-card .testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 25px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--dark);
}

.testimonial-author-info span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* --------------------------------------------
   11. CTA Section
   -------------------------------------------- */
.cta-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #033d66 0%, #066aab 100%);
    background-attachment: fixed;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.92) 0%, rgba(4, 80, 125, 0.95) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-buttons .btn + .btn {
    margin-left: 0;
}

/* --------------------------------------------
   12. Footer
   -------------------------------------------- */
.footer {
    background: var(--footer-bg);
    color: var(--gray-400);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about {
    padding-right: 30px;
}

.footer-about .logo,
.footer-about .footer-logo {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
}

.footer-about .footer-logo img {
    height: 150px;
}

.footer-about p,
.footer-description {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 25px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links .social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.95rem;
    transition: var(--transition);
}

.social-links .social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col h4,
.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-links li a {
    font-size: 0.95rem;
    color: var(--gray-500);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover,
.footer-links li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Footer Contact Info */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact li i {
    width: 20px;
    color: var(--primary-light);
    font-size: 0.95rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact li span,
.footer-contact li a {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.footer-contact li a:hover {
    color: var(--primary-light);
}

/* Footer Bottom */
.footer-bottom {
    padding: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

.footer-bottom a {
    color: var(--primary-light);
}

.footer-bottom a:hover {
    color: var(--white);
}

.footer-bottom .powered-by {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.footer-bottom-links a:hover {
    color: var(--primary-light);
}

/* --------------------------------------------
   13. Page Header (Internal Pages)
   -------------------------------------------- */
.page-header {
    position: relative;
    padding: 160px 0 80px;
    background: linear-gradient(160deg, var(--hero-bg) 0%, var(--primary-dark) 40%, var(--primary) 100%);
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(var(--cyan-rgb), 0.15);
    box-shadow: 0 1px 30px rgba(var(--cyan-rgb), 0.08);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: patternDrift 25s linear infinite;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 50%, rgba(var(--cyan-rgb), 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 30%, rgba(var(--cyan-rgb), 0.08) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes patternDrift {
    0%   { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.page-header h1 {
    font-size: 2.75rem;
    color: var(--white);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb a,
.breadcrumb-item a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.breadcrumb a:hover,
.breadcrumb-item a:hover {
    color: var(--white);
}

.breadcrumb span,
.breadcrumb-item.active {
    font-size: 0.9rem;
    color: var(--accent);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: rgba(255, 255, 255, 0.4);
    margin-right: 10px;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* --------------------------------------------
   14. About Page Styles
   -------------------------------------------- */

/* About Intro */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-intro-content h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.about-intro-content p {
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.about-intro-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-intro-image img {
    width: 100%;
    object-fit: cover;
}

/* Mission / Vision */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mission-card,
.vision-card {
    background: var(--white);
    padding: 40px 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

/* mission/vision-card :hover handled by unified card baseline */

.mission-card .card-icon,
.vision-card .card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.1) 0%, rgba(4, 80, 125, 0.1) 100%);
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

/* value-card :hover handled by unified card baseline */

.value-card .value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.1) 0%, rgba(4, 80, 125, 0.1) 100%);
    border-radius: var(--radius-lg);
    font-size: 1.75rem;
    color: var(--primary);
    transition: var(--transition);
}

/* value-card icon hover handled by unified card baseline */

.value-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

/* team-card :hover handled by unified card baseline */

.team-card-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card-image .team-avatar {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.team-card-info {
    padding: 20px;
}

.team-card-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.team-card-info span {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--gray-300);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding: 0 0 40px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    padding-right: 50px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: var(--radius-full);
    border: 3px solid var(--white);
    box-shadow: var(--shadow);
    z-index: 1;
}

.timeline-item:nth-child(odd)::before {
    right: -8px;
}

.timeline-item:nth-child(even)::before {
    left: -8px;
}

.timeline-item .timeline-year {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.timeline-item h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.timeline-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --------------------------------------------
   15. Service Detail Sections (Alternating)
   -------------------------------------------- */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
}

.service-detail:nth-child(even) .service-detail-image {
    order: -1;
}

.service-detail-content .section-tag {
    text-align: left;
}

.service-detail-content .section-tag::after {
    left: 0;
    transform: none;
}

.service-detail-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-detail-content p {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.service-detail-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.08), rgba(249, 115, 22, 0.08));
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-image .service-detail-icon {
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.3;
}

.service-detail-image img {
    width: 100%;
    object-fit: cover;
}

.service-detail-list {
    margin: 20px 0 30px;
}

.service-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--gray-700);
}

.service-detail-list li i {
    color: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
}

/* Why Us / Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    padding: 35px 30px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

/* benefit-card :hover handled by unified card baseline */

.benefit-card .benefit-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.1) 0%, rgba(4, 80, 125, 0.1) 100%);
    border-radius: var(--radius);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

/* benefit-card icon hover handled by unified card baseline */

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

/* --------------------------------------------
   16. Process Steps Grid
   -------------------------------------------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 12.5%;
    width: 75%;
    height: 3px;
    background: var(--gray-300);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-primary);
    position: relative;
}

.process-step-number::after {
    content: '';
    position: absolute;
    width: 76px;
    height: 76px;
    border: 2px dashed var(--primary-light);
    border-radius: var(--radius-full);
    opacity: 0.4;
}

.process-step h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

/* --------------------------------------------
   17. Contact Page
   -------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-info .section-tag {
    text-align: left;
}

.contact-info .section-tag::after {
    left: 0;
    transform: none;
}

.contact-info-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info-description {
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-detail-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.1) 0%, rgba(4, 80, 125, 0.1) 100%);
    border-radius: var(--radius);
    font-size: 1.1rem;
    color: var(--primary);
}

.contact-detail-content h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.contact-detail-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-detail-content a {
    color: var(--gray-600);
}

.contact-detail-content a:hover {
    color: var(--primary);
}

.contact-social h4 {
    margin-bottom: 12px;
}

.contact-social .social-links {
    display: flex;
    gap: 10px;
}

.contact-social .social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: var(--transition);
}

.contact-social .social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-group label .required {
    color: var(--danger);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--dark);
    background: var(--gray-100);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(6, 106, 171, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Form validation */
.input-error {
    border-color: var(--danger) !important;
}

.field-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-message {
    margin-top: 15px;
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.form-message--success {
    background: rgba(72, 187, 120, 0.1);
    color: #276749;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.form-message--error {
    background: rgba(252, 129, 129, 0.1);
    color: #c53030;
    border: 1px solid rgba(252, 129, 129, 0.3);
}

/* Map */
.contact-map {
    margin-top: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    display: block;
    border: none;
}

/* --------------------------------------------
   18. FAQ Section
   -------------------------------------------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: var(--white);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
    transition: var(--transition);
    border: none;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question .faq-icon {
    font-size: 0.8rem;
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-question {
    color: var(--primary);
    background: rgba(6, 106, 171, 0.03);
}

.faq-item.active .faq-question .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 25px 20px;
    background: var(--white);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0;
}


/* --------------------------------------------
   19. Pricing Section
   -------------------------------------------- */

/* Monthly / Annual Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.pricing-toggle span {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: var(--transition);
}

.pricing-toggle span.active {
    color: var(--dark);
}

.pricing-toggle .toggle-switch {
    position: relative;
    width: 56px;
    height: 30px;
    background: var(--gray-300);
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.pricing-toggle .toggle-switch.active {
    background: var(--gradient-primary);
}

.pricing-toggle .toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.pricing-toggle .toggle-switch.active::after {
    left: 29px;
}

.pricing-save-badge {
    background: var(--accent);
    color: var(--dark);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.savings-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    text-transform: uppercase;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

/* Pricing Card */
.pricing-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 2px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Featured Card */
.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 25px 60px rgba(6, 106, 171, 0.25);
}

.pricing-card-badge {
    display: none;
    text-align: center;
    background: var(--gradient-primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 0;
}

.pricing-card.featured .pricing-card-badge {
    display: block;
}

/* Pricing Card Header */
.pricing-card-header {
    text-align: center;
    padding: 35px 30px 25px;
    border-bottom: 1px solid var(--gray-200);
}

.pricing-card-header h3,
.pricing-plan-name {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.pricing-card-header p,
.pricing-description {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

/* Price Display */
.pricing-price {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    margin: 25px 0 5px;
}

.pricing-price .currency {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 8px;
}

.pricing-price .amount,
.pricing-amount {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.pricing-period {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.pricing-label {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.pricing-card.featured .pricing-price .currency,
.pricing-card.featured .pricing-price .amount,
.pricing-card.featured .pricing-amount {
    color: var(--primary);
}

/* Startup fee */
.pricing-startup {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 8px;
}

/* Pricing Features List */
.pricing-features,
.pricing-card-body .pricing-features {
    padding: 25px 30px;
}

.pricing-features ul,
.pricing-card-body .pricing-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pricing-features li,
.pricing-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.pricing-features li i,
.pricing-feature i {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(72, 187, 120, 0.12);
    color: var(--success);
    border-radius: var(--radius-full);
    font-size: 0.65rem;
}

.pricing-features li.disabled {
    color: var(--gray-400);
}

.pricing-features li.disabled i {
    background: rgba(160, 174, 192, 0.12);
    color: var(--gray-400);
}

/* Pricing Card Footer */
.pricing-card-footer {
    padding: 10px 30px 35px;
    text-align: center;
}

.pricing-card-footer .btn {
    width: 100%;
}

.pricing-card.featured .pricing-card-footer .btn {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.pricing-card.featured .pricing-card-footer .btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-primary);
}

/* Feature Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.95rem;
}

.comparison-table th {
    background: var(--dark);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.comparison-table th.highlight {
    background: var(--primary);
}

.comparison-table td.highlight {
    background: rgba(6, 106, 171, 0.04);
}

.comparison-table .text-success {
    color: var(--success);
}

.comparison-table .text-muted {
    color: var(--gray-400);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* --------------------------------------------
   19b. Visual Cohesion — Section Flow, Cyan Thread, Tech Touches
   -------------------------------------------- */

/* --- Section dividers (subtle fading cyan line) --- */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--cyan-rgb), 0.12) 50%, transparent 100%);
    pointer-events: none;
}

/* --- Soften gray sections --- */
.section-gray {
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

/* --- Dot-grid pattern on gray sections --- */
.section-gray::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(var(--cyan-rgb), 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* --- Edge glow on dark sections (stats, CTA) --- */
.stats-section {
    border-top: 1px solid rgba(var(--cyan-rgb), 0.15);
    border-bottom: 1px solid rgba(var(--cyan-rgb), 0.15);
    box-shadow: 0 -1px 20px rgba(var(--cyan-rgb), 0.06), 0 1px 20px rgba(var(--cyan-rgb), 0.06);
}

.cta-section {
    border-top: 1px solid rgba(var(--cyan-rgb), 0.12);
    border-bottom: 1px solid rgba(var(--cyan-rgb), 0.12);
}

/* --- Section tag underlines: primary → cyan gradient --- */
.section-tag::after {
    background: linear-gradient(90deg, var(--primary) 0%, var(--cyan) 100%);
}

/* --- Footer heading underlines: primary → cyan gradient --- */
.footer-col h4::after {
    background: linear-gradient(90deg, var(--primary) 0%, var(--cyan) 100%);
}

/* --- Timeline dots: cyan instead of primary --- */
.timeline-item::before {
    background: var(--cyan);
    box-shadow: 0 0 0 3px var(--white), 0 0 10px rgba(var(--cyan-rgb), 0.25);
}

/* --- Process step rings: cyan border --- */
.process-step-number::after {
    border-color: var(--cyan);
    opacity: 0.35;
}

/* --- Footer social hover: cyan glow --- */
.social-links .social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(var(--cyan-rgb), 0.25);
}

/* --- Breadcrumb active: cyan instead of gold --- */
.breadcrumb span,
.breadcrumb-item.active {
    color: var(--cyan);
}

/* --- Focus rings: cyan --- */
:focus-visible {
    outline-color: var(--cyan);
}

button:focus-visible,
a:focus-visible {
    outline-color: var(--cyan);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline-color: var(--cyan);
    border-color: var(--cyan);
}

/* --- Form input focus: cyan glow --- */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(var(--cyan-rgb), 0.1);
}

/* --- Testimonial quote marks: cyan tint --- */
.testimonial-card::before {
    color: rgba(var(--cyan-rgb), 0.1);
}

/* --- Comparison table headers: dark tech gradient --- */
.comparison-table th {
    background: linear-gradient(135deg, var(--hero-bg) 0%, var(--primary-dark) 100%);
}

.comparison-table th.highlight {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* --- FAQ active indicator: cyan left-border glow --- */
.faq-item.active {
    border-color: rgba(var(--cyan-rgb), 0.3);
    border-left: 3px solid var(--cyan);
    box-shadow: inset 3px 0 10px rgba(var(--cyan-rgb), 0.06);
}

/* --- Contact form top bar: gradient accent --- */
.contact-form-wrapper {
    border-top: 3px solid transparent;
    background-image: linear-gradient(var(--white), var(--white)), linear-gradient(90deg, var(--primary) 0%, var(--cyan) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* --- Service detail images: cyan-tinted border and bg --- */
.service-detail-image {
    background: linear-gradient(135deg, rgba(var(--cyan-rgb), 0.06), rgba(6, 106, 171, 0.08));
    border: 1px solid rgba(var(--cyan-rgb), 0.1);
}

/* --------------------------------------------
   20. Back to Top Button
   -------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    box-shadow: var(--shadow-primary);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* --------------------------------------------
   20b. Client Trust Bar (Homepage)
   -------------------------------------------- */
.trust-bar {
    background: var(--gray-100);
    padding: 25px 0;
    border-bottom: 1px solid var(--gray-200);
}

.trust-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.trust-bar-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.trust-bar-logos {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-lighter);
    opacity: 0.6;
    transition: var(--transition);
}

.trust-logo:hover {
    opacity: 1;
}

.trust-logo i {
    font-size: 1.2rem;
    color: var(--primary);
}

/* --------------------------------------------
   20c. Capabilities Section (Homepage)
   -------------------------------------------- */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.capability-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: var(--transition);
}

.capability-item:hover {
    background: var(--white);
    border-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.capability-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.1) 0%, rgba(4, 80, 125, 0.1) 100%);
    border-radius: var(--radius);
    font-size: 1.2rem;
    color: var(--primary);
    transition: var(--transition);
}

.capability-item:hover .capability-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan-dark) 100%);
    color: var(--white);
    box-shadow: var(--glow-cyan-sm);
}

.capability-item span {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}

/* --------------------------------------------
   20d. Testimonial Carousel Navigation
   -------------------------------------------- */
.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.testimonial-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.testimonial-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.testimonial-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.testimonial-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
}

/* --------------------------------------------
   20e. Portfolio Detail Page
   -------------------------------------------- */
.portfolio-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.portfolio-detail-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--glow-cyan-sm);
}

.portfolio-detail-card .portfolio-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-detail-card:nth-child(1) .portfolio-card-image {
    background: linear-gradient(135deg, #066aab, #00d4ff);
}

.portfolio-detail-card:nth-child(2) .portfolio-card-image {
    background: linear-gradient(135deg, #1a1a2e, #e94560);
}

.portfolio-detail-card:nth-child(3) .portfolio-card-image {
    background: linear-gradient(135deg, #0f3460, #16c79a);
}

.portfolio-detail-card:nth-child(4) .portfolio-card-image {
    background: linear-gradient(135deg, #2d1b69, #00d4ff);
}

.portfolio-detail-info {
    padding: 30px;
}

.portfolio-detail-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.portfolio-category {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.portfolio-detail-info p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-badge {
    display: inline-block;
    padding: 4px 12px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(6, 106, 171, 0.08);
    border: 1px solid rgba(6, 106, 171, 0.15);
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --------------------------------------------
   20f. FAQ Categories (FAQ Page)
   -------------------------------------------- */
.faq-category {
    margin-bottom: 50px;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
}

.faq-category-title i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.1) 0%, rgba(4, 80, 125, 0.1) 100%);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--primary);
}

.faq-category .faq-list {
    max-width: 100%;
}

/* --------------------------------------------
   20g. Blog Page Styles
   -------------------------------------------- */
.blog-coming-soon {
    text-align: center;
    padding: 60px 0 40px;
}

.coming-soon-icon {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 25px;
}

.blog-coming-soon h2 {
    font-size: 2.25rem;
    margin-bottom: 15px;
}

.blog-coming-soon p {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-card:nth-child(1) .blog-card-image {
    background: linear-gradient(135deg, #066aab, #00d4ff);
}

.blog-card:nth-child(2) .blog-card-image {
    background: linear-gradient(135deg, #0f3460, #16c79a);
}

.blog-card:nth-child(3) .blog-card-image {
    background: linear-gradient(135deg, #1a1a2e, #e94560);
}

.blog-card:nth-child(4) .blog-card-image {
    background: linear-gradient(135deg, #2d1b69, #00d4ff);
}

.blog-card-image .blog-card-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.blog-category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 12px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--white);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.blog-card-content {
    padding: 25px;
}

.blog-card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-content p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 15px;
}

.blog-card-date {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --------------------------------------------
   20h. Chat Widget
   -------------------------------------------- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 90px;
    z-index: 98;
}

.chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--secondary);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-secondary);
}

.chat-toggle:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
}

.chat-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: var(--transition);
}

.chat-widget.active .chat-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-panel-header {
    background: var(--gradient-primary);
    padding: 20px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-panel-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-panel-header-info i {
    font-size: 1.5rem;
}

.chat-panel-header-info span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
}

.chat-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
}

.chat-close:hover {
    color: var(--white);
}

.chat-panel-body {
    padding: 25px 20px;
    text-align: center;
}

.chat-panel-body p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.chat-panel-body .btn {
    margin-bottom: 10px;
}

.chat-panel-body .btn + .btn {
    margin-left: 0;
}

/* --------------------------------------------
   21. Animations
   -------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Scroll-triggered animation classes */
.animate-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items */
.animate-ready:nth-child(1) { transition-delay: 0s; }
.animate-ready:nth-child(2) { transition-delay: 0.1s; }
.animate-ready:nth-child(3) { transition-delay: 0.2s; }
.animate-ready:nth-child(4) { transition-delay: 0.3s; }
.animate-ready:nth-child(5) { transition-delay: 0.4s; }
.animate-ready:nth-child(6) { transition-delay: 0.5s; }

/* Section header animation */
.section-header {
    animation: none;
}

.section-header.animate-ready {
    transform: translateY(20px);
}

/* Animate-ready for left/right sliding elements */
.animate-ready-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-ready-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-ready-left.animate-in,
.animate-ready-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* --------------------------------------------
   22. Reduced Motion Support
   -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-ready,
    .animate-ready-left,
    .animate-ready-right {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-content h1,
    .hero-content p,
    .hero-buttons,
    .hero-stats {
        animation: none;
    }

    .hero-scroll i {
        animation: none;
    }

    .hero,
    .cta-section {
        background-attachment: scroll;
    }

    .service-card:hover,
    .benefit-card:hover,
    .testimonial-card:hover,
    .pricing-card:hover,
    .team-card:hover,
    .value-card:hover,
    .contact-info-card:hover,
    .mission-card:hover,
    .vision-card:hover {
        transform: none;
    }

    .pricing-card.featured {
        transform: scale(1.05);
    }

    .pricing-card.featured:hover {
        transform: scale(1.05);
    }
}

/* --------------------------------------------
   23. Responsive Breakpoints
   -------------------------------------------- */

/* Large Desktop: max-width 1200px */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero-content h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1.3fr 1fr 1fr 1fr;
        gap: 30px;
    }

    .pricing-card.featured {
        transform: scale(1.03);
    }

    .pricing-card.featured:hover {
        transform: scale(1.03) translateY(-5px);
    }
}

/* Desktop to Tablet: max-width 992px */
@media (max-width: 992px) {
    :root {
        --section-padding: 80px 0;
    }

    .container {
        max-width: 720px;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }

    /* Navigation - Mobile */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 0;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        color: var(--dark);
        padding: 12px 0;
        width: 100%;
        font-size: 1rem;
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        color: var(--primary);
        background: none;
    }

    .logo img {
        height: 60px;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }

    .nav-cta .btn {
        width: 100%;
        text-align: center;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .hero-stat .stat-number {
        font-size: 2rem;
    }

    /* Grids */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-preview {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .testimonial-nav {
        display: none;
    }

    .portfolio-detail-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-detail:nth-child(even) .service-detail-image {
        order: 0;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .process-grid::before {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

}

/* Tablet: max-width 768px */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    body {
        font-size: 15px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.65rem; }
    h3 { font-size: 1.3rem; }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 140px 0 80px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-stat {
        flex: 0 0 calc(50% - 10px);
    }

    .hero-stat .stat-number {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Buttons */
    .btn + .btn {
        margin-left: 0;
    }

    .btn-lg {
        padding: 14px 32px;
        font-size: 0.95rem;
    }

    /* Stats */
    .stat-item .stat-number {
        font-size: 2.25rem;
    }

    /* Page Header */
    .page-header {
        padding: 130px 0 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* CTA */
    .cta-section {
        padding: 70px 0;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Timeline */
    .timeline::before {
        left: 15px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item::before,
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: 7px;
        right: auto;
    }

    /* Contact Form */
    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-about {
        padding-right: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    /* Pricing */
    .pricing-price .amount,
    .pricing-amount {
        font-size: 3rem;
    }

    /* Cookie Consent */
    .cookie-consent .container {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }

    /* 404 */
    .error-404-code {
        font-size: 6rem;
    }
}

/* Mobile: max-width 576px */
@media (max-width: 576px) {
    :root {
        --section-padding: 50px 0;
    }

    .container {
        padding: 0 15px;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.15rem; }

    .section-header h2 {
        font-size: 1.5rem;
    }

    /* Hero */
    .hero {
        padding: 120px 0 60px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 15px;
        margin-top: 40px;
        padding-top: 25px;
    }

    .hero-stat .stat-number {
        font-size: 1.5rem;
    }

    .hero-stat .stat-label {
        font-size: 0.8rem;
    }

    /* Grids to single columns */
    .services-grid,
    .benefits-grid,
    .stats-grid,
    .values-grid,
    .team-grid,
    .process-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .process-grid::before {
        display: none;
    }

    /* Cards */
    .service-card {
        padding: 30px 20px;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    /* Stats */
    .stats-section {
        padding: 60px 0;
    }

    .stat-item .stat-number {
        font-size: 2rem;
    }

    /* Page Header */
    .page-header {
        padding: 110px 0 50px;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    /* CTA */
    .cta-section {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }

    /* Footer */
    .footer {
        padding-top: 50px;
    }

    .footer-col h4 {
        margin-bottom: 18px;
    }

    /* Pricing */
    .pricing-card-header {
        padding: 25px 20px 20px;
    }

    .pricing-features {
        padding: 20px;
    }

    .pricing-card-footer {
        padding: 10px 20px 30px;
    }

    .pricing-price .amount,
    .pricing-amount {
        font-size: 2.75rem;
    }

    .pricing-toggle {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Nav menu full width on small screens */
    .nav-menu {
        width: 100%;
        right: -100%;
    }

    /* Cookie Consent */
    .cookie-consent p {
        font-size: 0.85rem;
    }

    /* 404 */
    .error-404-code {
        font-size: 5rem;
    }

    .error-404 h2 {
        font-size: 1.5rem;
    }

    .error-404-links {
        flex-direction: column;
    }

    .error-404-links .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Trust Bar */
    .trust-bar .container {
        flex-direction: column;
        gap: 12px;
    }

    .trust-bar-logos {
        gap: 20px;
    }

    /* Capabilities */
    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    /* Portfolio Detail */
    .portfolio-detail-grid {
        grid-template-columns: 1fr;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-coming-soon h2 {
        font-size: 1.5rem;
    }

    /* Chat Widget */
    .chat-widget {
        right: 75px;
    }

    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .chat-panel {
        width: 280px;
        right: -20px;
    }
}

/* --------------------------------------------
   24. Skip Link (Accessibility)
   -------------------------------------------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 10000;
    transition: top 0.2s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    color: var(--white);
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
}

/* --------------------------------------------
   24b. Honeypot Field (Anti-Spam)
   -------------------------------------------- */
.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* --------------------------------------------
   24c. Cookie Consent Banner
   -------------------------------------------- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--footer-bg);
    color: var(--gray-400);
    padding: 20px 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 1px solid rgba(var(--cyan-rgb), 0.15);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-consent.visible {
    transform: translateY(0);
}

.cookie-consent .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-400);
    flex: 1;
    min-width: 200px;
}

.cookie-consent p a {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent p a:hover {
    color: var(--white);
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-consent .btn {
    padding: 10px 24px;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* --------------------------------------------
   24d. Legal Content Pages (Privacy / Terms)
   -------------------------------------------- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-content h2 {
    font-size: 1.65rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--dark);
}

.legal-content h3 {
    font-size: 1.25rem;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--dark);
}

.legal-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-content ul,
.legal-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-content ul {
    list-style: disc;
}

.legal-content ol {
    list-style: decimal;
}

.legal-content li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: var(--primary-dark);
}

.legal-content .last-updated {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-style: italic;
    margin-bottom: 30px;
}

/* --------------------------------------------
   24e. 404 Error Page
   -------------------------------------------- */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404-code {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.error-404 h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.error-404 p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 30px;
}

.error-404-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.error-404-links .btn + .btn {
    margin-left: 0;
}

/* --------------------------------------------
   25. Utility Classes
   -------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-white { color: var(--white); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-dark { color: var(--dark); }
.text-muted { color: var(--gray-600); }
.text-success { color: var(--success); }

.bg-white { background-color: var(--white); }
.bg-gray { background-color: var(--gray-100); }
.bg-dark { background-color: var(--dark); }
.bg-primary { background-color: var(--primary); }
.bg-gradient { background: var(--gradient-primary); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 60px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 60px; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-none { display: none; }

.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }

.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }

.w-100 { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
