/* ======= VARIABLES & ROOT ======= */
:root {
    /* Colors */
    --color-primary: #1F3A93;
    --color-secondary: #17A398;
    --color-bg-light: #F8F9FA;
    --color-bg-gray: #E9ECEF;
    --color-text-dark: #495057;
    --color-text-light: #ffffff;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --gradient-button: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(31, 58, 147, 0.1);
    --shadow-md: 0 4px 16px rgba(31, 58, 147, 0.15);
    --shadow-lg: 0 8px 32px rgba(31, 58, 147, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

/* ======= RESET & BASE STYLES ======= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-text-dark);
    background: var(--color-bg-light);
    overflow-x: hidden;
}

/* ======= TYPOGRAPHY ======= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

h1 {
    font-size: 4.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 3.2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 2rem;
    max-width: 65ch;
}

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

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

ul {
    list-style: none;
}

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

/* ======= BUTTONS ======= */
button, .button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: var(--transition-medium);
}

.primary-button, .cta-button, .submit-button {
    padding: 1.5rem 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: var(--gradient-button);
    color: var(--color-text-light);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
}

.primary-button::before, .cta-button::before, .submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
}

.primary-button:hover::before, .cta-button:hover::before, .submit-button:hover::before {
    transform: translateX(0);
}

.primary-button:hover, .cta-button:hover, .submit-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ======= ANIMATIONS ======= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ======= HOVER EFFECTS ======= */
.hover-lift {
    transition: transform 0.3s ease-out;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform 0.3s ease-out;
}

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

/* ======= RESPONSIVE STYLES ======= */
@media screen and (max-width: 1024px) {
    html {
        font-size: 57.5%;
    }
    
    section {
        padding: 8rem 2rem;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    h1 {
        font-size: 4.6rem;
    }
    
    h2 {
        font-size: 3.8rem;
    }
    
    .menu-toggle {
        display: flex;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 52.5%;
    }
    
    section {
        padding: 6rem 2rem;
    }
    
    .primary-button, .cta-button, .submit-button {
        padding: 1.3rem 2.5rem;
    }
}

/* ======= CUSTOM CURSOR ======= */
@media (max-width: 768px) {
    .cursor-outer,
    .cursor-inner {
        display: none;
    }
    
    body, a, button, input, textarea, select, .portfolio-card, .team-member, .testimonial-card {
        cursor: auto;
    }
}

/* ======= HEADER & NAVIGATION ======= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    z-index: 100;
    background: var(--gradient-hero);
    backdrop-filter: blur(10px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

header.scrolled {
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.95);
}

/* Update nav links to be white when header has gradient */
header:not(.scrolled) nav ul li a:not(.rainbow-nav-btn) {
    color: var(--color-text-light);
}

header:not(.scrolled) nav ul li a:not(.rainbow-nav-btn)::after {
    background: var(--color-text-light);
}

header:not(.scrolled) nav ul li a.rainbow-nav-btn::after {
    display: none; /* Hide the underline for rainbow nav button */
}

header:not(.scrolled) nav ul li a.active:not(.rainbow-nav-btn) {
    color: var(--color-text-light);
}

header:not(.scrolled) nav ul li a.active:not(.rainbow-nav-btn)::after {
    background: var(--color-text-light);
}

/* Update menu toggle to be white when header has gradient */
header:not(.scrolled) .menu-toggle span {
    background: var(--color-text-light);
}

/* Ensure menu toggle is visible against any background */
.menu-toggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 50%;
    padding: 0.8rem;
    transition: background 0.3s, box-shadow 0.3s, border 0.3s;
}

header.scrolled .menu-toggle {
    background: rgba(31, 58, 147, 0.05);
}

/* Update CTA button to be transparent when header has gradient */
header:not(.scrolled) .cta-button {
    background: transparent;
    border: 2px solid var(--color-text-light);
    color: var(--color-text-light);
}

header:not(.scrolled) .cta-button:hover {
    background: var(--color-text-light);
    color: var(--color-primary);
}

.logo-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    max-width: 150px;
}

.logo-container img {
    height: 5.5rem;
    width: auto;
    object-fit: contain;
    transition: var(--transition-medium);
    max-width: 100%;
}

header.scrolled .logo-container img {
    height: 4.5rem;
    width: auto;
}

/* Mobile logo sizing */
@media screen and (max-width: 768px) {
    .logo-container img {
        height: 4rem;
        width: auto;
    }
    
    header.scrolled .logo-container img {
        height: 3.5rem;
        width: auto;
    }
}

@media screen and (max-width: 576px) {
    .logo-container img {
        height: 3.5rem;
        width: auto;
    }
    
    header.scrolled .logo-container img {
        height: 3rem;
        width: auto;
    }
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 0 auto;
}

/* Add separator between Contact and Careers */
nav ul li:nth-last-child(2)::after {
    content: '|';
    display: inline-block;
    margin-left: 3rem;
    color: var(--color-text-dark);
    opacity: 0.7;
}

/* Dark theme support for the separator */
body.dark-theme nav ul li:nth-last-child(2)::after {
    color: var(--color-text-light);
    opacity: 0.7;
}

/* Adjust mobile styles to hide the separator */
@media screen and (max-width: 768px) {
    nav ul li:nth-last-child(2)::after {
        display: none !important;
        content: none;
        margin: 0;
    }
}

nav ul li a {
    font-weight: 500;
    color: var(--color-text-dark);
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: var(--transition-medium);
}

nav ul li a.rainbow-nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: var(--transition-medium);
}

nav ul li a:hover::after,
nav ul li a.rainbow-nav-btn:hover::after {
    width: 100%;
}

nav ul li a.active:not(.rainbow-nav-btn) {
    color: var(--color-primary);
}

nav ul li a.active:not(.rainbow-nav-btn)::after,
nav ul li a.rainbow-nav-btn.active::after {
    width: 100%;
    background: var(--color-primary);
}

nav ul li a.rainbow-nav-btn.active::after {
    background: #fff;
}

.cta-button {
    padding: 1rem 2rem;
    background: var(--color-secondary);
    color: var(--color-text-light);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-sm);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--color-primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 0 6px 1px rgba(31,58,147,0.18);
    border-radius: 2px;
    height: 3px;
    width: 28px;
    margin: 0.2rem 0;
    transition: background 0.3s, box-shadow 0.3s;
}

.menu-toggle.active span {
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    box-shadow: 0 0 10px 2px rgba(23,163,152,0.18);
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 50%;
        max-width: 300px;
        height: 100vh;
        background: rgba(31,58,147,0.18) !important;
        backdrop-filter: blur(18px) !important;
        -webkit-backdrop-filter: blur(18px) !important;
        box-shadow: 0 8px 32px rgba(31,58,147,0.12);
        border-left: 1.5px solid rgba(255,255,255,0.10);
        transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
        z-index: 100;
        padding: 8rem 2rem 2rem;
    }

    nav.active {
        right: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem;
        font-size: 1.8rem;
        color: var(--color-text-light);
        background: transparent !important;
        border-radius: var(--border-radius-md);
        margin-bottom: 0.5rem;
        text-align: center;
        box-shadow: none;
        border: none;
        transition: color 0.3s, background 0.3s, box-shadow 0.3s;
    }

    nav ul li a:hover {
        background: transparent !important;
        color: var(--color-secondary);
        box-shadow: 0 2px 12px 0 rgba(31,58,147,0.13);
    }

    nav ul li a.active {
        background: transparent !important;
        color: var(--color-secondary);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .cta-button {
        display: none;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* === CONTINUED: HAMBURGER MENU & MOBILE NAV MODERNIZATION === */

.menu-toggle span {
  background: var(--color-text-light) !important;
  box-shadow: none !important;
  border-radius: 2px;
  height: 3px;
  width: 28px;
  margin: 0.2rem 0;
  transition: background 0.3s;
}
.menu-toggle.active span {
  background: var(--color-secondary) !important;
}

/* Blur main content when menu is open */
body.menu-open #main-content, body.menu-open main, body.menu-open .hero-section, body.menu-open section {
  filter: blur(5px) brightness(0.96);
  transition: filter 0.4s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  user-select: none;
}

/* Smooth transitions for nav and menu */
nav, .menu-toggle, .menu-toggle span {
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ======= HERO SECTION ======= */
.hero-section {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 10rem 2rem 2rem;
    background: var(--gradient-hero);
    overflow: hidden;
    box-sizing: border-box;
}

.hero-content {
    max-width: 90rem;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    padding-top: 0;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.hero-content h1 {
    font-size: min(5.8rem, 8vw);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content h1 br {
    display: block;
    content: "";
    margin-top: 0.5rem;
}

.dynamic-word {
    color: #FF6B6B;
    position: relative;
    display: inline-block;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    text-align: left;
    transition: color 0.3s ease, min-width 0.3s ease;
}

.line-two {
    color: var(--color-text-light);
    opacity: 1;
    display: inline-block;
    font-size: min(5.8rem, 8vw);
    transition: font-size 0.3s ease;
}

.static-word {
    color: var(--color-text-light);
    font-weight: 400;
}

.dynamic-part {
    color: #4ECDC4;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dynamic-word::after {
    display: none;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes deleting {
    from { width: 100% }
    to { width: 0 }
}

.hero-content p {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    max-width: min(80rem, 90%);
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.primary-button {
    display: inline-block;
    padding: 1.8rem 4rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    background: var(--color-primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--color-primary-dark);
}

.primary-button:hover::before {
    transform: translateX(100%);
}

.primary-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.secondary-link {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.secondary-link:hover {
    transform: translateX(5px);
}

.trusted-by {
    margin-top: auto;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: clamp(1rem, 2vw, 2rem);
}

.trusted-by p {
    font-size: 1.6rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    width: 100%;
}

.logo-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin: 0 auto;
    max-width: 400px;
    width: 100%;
}

.logo-bar img {
    height: 3.2rem;
    width: auto;
    max-width: 100px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.logo-bar img:hover {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .hero-section {
        padding: 8rem 1.5rem 2rem;
        height: 100vh;
        min-height: 100vh;
    }
    
    .trusted-by {
        padding-bottom: 1.5rem;
    }
    
    .trusted-by p {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .logo-bar {
        gap: 3rem;
    }
    
    .hero-content h1 {
        display: block;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .hero-content h1 .line-one,
    .hero-content h1 .line-two {
        display: inline-block;
        width: auto;
        white-space: nowrap;
        text-overflow: initial;
        overflow: visible;
    }
    
    .dynamic-word {
        min-width: 120px;
    }
    
    .hero-buttons {
        margin-bottom: 1.5rem;
    }
}

@media screen and (max-width: 576px) {
    .hero-section {
        padding: 6rem 1rem 1.5rem;
    }
    
    .hero-content h1 {
        white-space: normal;
        font-size: min(3.2rem, 8vw);
        line-height: 1.1;
        width: 100%;
        max-width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
        overflow: visible;
    }
    
    .hero-content h1 .line-one,
    .hero-content h1 .line-two {
        font-size: min(3.2rem, 8vw);
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .hero-content h1 br {
        margin: 0;
        padding: 0;
        line-height: 0.8;
    }
    
    .dynamic-word {
        min-width: 100px;
        font-size: inherit;
        overflow: visible;
        text-overflow: clip;
    }
    
    .static-word,
    .dynamic-part {
        font-size: inherit;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .trusted-by p {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .logo-bar {
        gap: 1.5rem;
    }
    
    .logo-bar img {
        height: 2rem;
    }
}

/* ======= SERVICES SECTION ======= */
.services-section {
    background: var(--color-bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 80rem;
    margin: 0 auto 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header h2 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 3.6rem;
    text-align: center;
}

.section-header p {
    color: var(--color-text-dark);
    font-size: 1.8rem;
    opacity: 0.8;
    text-align: center;
    max-width: 60rem;
    margin: 0 auto;
}

.services-container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    min-height: 420px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-category {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    width: calc(25% - 1.5rem); /* 4 columns */
    height: calc(50% - 1rem);  /* 2 rows */
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
    box-shadow: var(--shadow-md);
    background: var(--color-bg-light);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Place each card in its grid cell */
.service-category:nth-child(1) { top: 0; left: 0; }
.service-category:nth-child(2) { top: 0; left: 25%; }
.service-category:nth-child(3) { top: 0; left: 50%; }
.service-category:nth-child(4) { top: 0; left: 75%; }
.service-category:nth-child(5) { top: 50%; left: 0; }
.service-category:nth-child(6) { top: 50%; left: 25%; }
.service-category:nth-child(7) { top: 50%; left: 50%; }
.service-category:nth-child(8) { top: 50%; left: 75%; }

/* On expanding: hovered card fills container, others vanish */
.services-container.expanding .service-category {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.services-container.expanding .service-category.expanded {
    background: var(--color-bg-light) !important;
    background-image: none !important;
    filter: none !important;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* Sub-services only visible in expanded card */
.services-grid { 
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-out;
} 

body .service-category.expanded .services-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    width: 100% !important;
    margin-top: 2rem !important;
    align-items: stretch !important;
    opacity: 1;
}

/* Responsive: fallback to normal grid on mobile */
@media screen and (max-width: 992px) {
    .services-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        min-height: auto;
        position: relative;
    }
    
    .service-category {
        position: static;
        width: 100%;
        height: auto;
        min-height: 160px;
        margin-bottom: 1.5rem;
        padding: 2rem;
        transition: all 0.3s ease;
    }
    
    .service-category .category-header {
        text-align: center;
        width: 100%;
    }
    
    .service-category .category-header i {
        font-size: 3.2rem;
        margin-bottom: 1.2rem;
    }
    
    .service-category .category-header h3 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .service-category .category-header p {
        font-size: 1.4rem;
        -webkit-line-clamp: 2;
    }
    
    /* Hide services grid by default on tablet */
    .services-grid {
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    /* Show services grid only when expanded */
    .service-category.mobile-expanded .services-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
        opacity: 1;
    }
    
    .service-card {
        padding: 1.5rem;
        min-height: auto;
        margin-bottom: 0;
    }
    
    /* Mobile expansion styles for tablet */
    .service-category.mobile-expanded {
        position: relative;
        z-index: 10;
        box-shadow: var(--shadow-lg);
        transform: translateY(-5px);
    }
}

@media screen and (max-width: 768px) {
    .section-header {
        margin-bottom: 4rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .section-header p {
        font-size: 1.6rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .portfolio-item {
        height: 30rem;
    }
    
    .portfolio-card-back {
        padding: 2rem;
    }
    
    .portfolio-card-back h3 {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }
    
    .portfolio-card-back p {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-container {
        padding: 2.5rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1.5rem 1.8rem;
        font-size: 1.5rem;
    }
    
    .form-group label {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 576px) {
    .services-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 1rem;
        min-height: unset;
        max-width: 100%;
        padding: 0 0.5rem;
        position: relative;
    }
    
    .service-category {
        min-height: 120px;
        padding: 1rem;
        margin-bottom: 0.5rem;
        border-radius: var(--border-radius-md);
        transition: all 0.3s ease;
    }
    
    .service-category .category-header {
        text-align: center;
    }
    
    .service-category .category-header i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .service-category .category-header h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .service-category .category-header p {
        font-size: 0.95rem;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .services-grid {
        display: none;
        opacity: 0;
    }
    
    /* Mobile Modal Styles */
    /* Body fixed when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    /* Service Modal Styles for Touch Devices */
    .service-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    pointer-events: auto; /* Ensure overlay catches clicks */
    cursor: pointer; /* Show pointer cursor to indicate it's clickable */
}
    
    .service-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .service-modal-container {
        background-color: var(--color-bg-light);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-lg);
        width: 92%;
        max-width: 800px;
        position: relative;
        transform: translateY(30px) scale(0.95);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        overflow: hidden;
    }
    
    .service-modal-overlay.active .service-modal-container {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    
    .service-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--color-primary);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20; /* Increased z-index to ensure it's above all content */
    transition: all 0.2s ease;
    pointer-events: auto; /* Ensure button remains clickable */
}
    
    .service-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }
    
    .service-modal-content {
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-modal-container {
    cursor: default; /* Show regular cursor on the modal container */
    pointer-events: auto; /* Ensure container catches events properly */
}
    
    /* Service category styling when in modal */
.service-category.in-modal {
    box-shadow: none;
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: var(--border-radius-md);
    transform: none !important;
    padding: 2.5rem 3rem;
    background: var(--color-bg-light);
    cursor: default; /* Show default cursor to indicate non-interactive */
    pointer-events: none; /* Disable pointer events on the card itself */
}

.service-category.in-modal .category-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.service-category.in-modal .category-header h3 {
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-category.in-modal .category-header i {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
}

.service-category.in-modal .category-header p {
    font-size: 1.6rem;
    max-width: 80%;
    margin: 0 auto;
    -webkit-line-clamp: none;
    overflow: visible;
}

.service-category.in-modal .services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    opacity: 1;
}

.service-category.in-modal .service-card {
    min-height: auto;
    padding: 1.5rem;
    max-height: none;
    box-shadow: none !important;
    transform: none !important;
    cursor: default;
    transition: none;
}

.service-category.in-modal .service-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.service-category.in-modal .service-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.service-category.in-modal .service-card p {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.service-category.in-modal .service-card i {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}
    
    /* Dark theme support for modal */
    body.dark-theme .service-modal-container {
        background-color: var(--color-bg-gray);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    body.dark-theme .service-modal-close {
        background: rgba(0, 0, 0, 0.3);
        color: var(--color-secondary);
    }
    
    body.dark-theme .service-modal-close:hover {
        background: rgba(0, 0, 0, 0.5);
    }
    
    /* Adjust modal content for different screen sizes */
    @media (max-width: 992px) {
        .service-modal-container {
            width: 95%;
            max-width: 750px;
        }
    }
    
    @media (max-width: 768px) {
        .service-category.in-modal {
            padding: 2rem;
        }
        
        .service-category.in-modal .services-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
        }
        
        .service-category.in-modal .category-header h3 {
            font-size: 2.4rem;
        }
    }
    
    @media (max-width: 576px) {
        .service-category.in-modal .services-grid {
            grid-template-columns: 1fr;
        }
        
        .service-category.in-modal .service-card {
            padding: 1.2rem;
        }
        
        .service-category.in-modal .category-header p {
            max-width: 100%;
        }
    }
    
    /* PORTFOLIO SECTION: 2 per row */

    /* PORTFOLIO SECTION: 2 per row */
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    .portfolio-item {
        height: 16rem;
    }
    .portfolio-card-back {
        padding: 1rem;
    }
    .portfolio-card-back h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    .portfolio-card-back p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
}

.service-card {
    min-height: 80px;
    max-height: 140px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 238, 255, 0.1), rgba(0, 136, 255, 0.05));
    z-index: -1;
    opacity: 0;
    transition: var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3.6rem;
    width: 8rem;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    border-radius: 50%;
    background: rgba(0, 238, 255, 0.1);
    color: var(--color-accent-primary);
}

.service-card h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.service-card p {
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
}

.category-header {
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-header i {
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-header h3 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-header p {
    color: var(--color-text-dark);
    font-size: 1.4rem;
    opacity: 0.8;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-card h4 {
    color: var(--color-primary);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.service-card p {
    color: var(--color-text-dark);
    font-size: 1.3rem;
    line-height: 1.4;
    opacity: 0.8;
}

@media screen and (max-width: 1200px) {
    .service-category.expanded {
        width: calc(200% + 1 * 2rem);
        height: calc(200% + 2rem);
    }
}
@media screen and (max-width: 992px) {
    .service-category.expanded {
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
    }
}
@media screen and (max-width: 768px) {
    .service-category.expanded {
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
    }
    .services-container.expanding .service-category:not(.expanded) {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

/* ======= PORTFOLIO SECTION ======= */
.portfolio-section {
    background: var(--color-bg-secondary);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 1rem 2.5rem;
    background: var(--color-bg-light);
    border-radius: var(--border-radius-md);
    color: var(--color-text-dark);
    font-weight: 500;
    border: 1px solid var(--color-bg-gray);
    transition: var(--transition-medium);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 3rem;
    max-width: 120rem;
    margin: 0 auto;
}

/* ======= CONTACT SECTION ======= */
.contact-section {
    background: var(--color-bg-light);
    padding: 8rem 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 5rem;
    max-width: 120rem;
    margin: 0 auto;
}

.contact-form-container {
    background: var(--color-bg-light);
    padding: 4rem;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-bg-gray);
    transition: var(--transition-medium);
}

.contact-form-container:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.5rem;
    background: var(--gradient-button);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-toggle-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: -0.5rem;
    padding-left: 0.5rem;
}

.contact-toggle {
    display: flex;
    background: var(--color-bg-gray);
    border-radius: 100px;
    padding: 0.2rem;
    width: auto;
    position: relative;
    cursor: pointer;
    user-select: none;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-toggle-option {
    padding: 0.3rem 1rem;
    font-size: 1.3rem;
    color: var(--color-text-dark);
    border-radius: 100px;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-toggle-option.active {
    color: var(--color-text-light);
}

.contact-toggle-slider {
    position: absolute;
    top: 0.2rem;
    left: 0.2rem;
    height: calc(100% - 0.4rem);
    background: var(--color-primary);
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

body.dark-theme .contact-toggle {
    background: var(--color-bg-gray);
}

body.dark-theme .contact-toggle-option {
    color: var(--color-text-secondary);
}

body.dark-theme .contact-toggle-slider {
    background: var(--color-primary);
}

body.dark-theme .validation-message {
    background-color: var(--color-bg-light);
}

body.dark-theme .form-success-message {
    background-color: #1e4d2b;
    color: #d4edda;
    border-color: #2d5a3d;
}

body.dark-theme .form-error-message {
    background-color: #4d1e1e;
    color: #f8d7da;
    border-color: #5a2d2d;
}

.form-group {
    position: relative;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    background: var(--color-bg-light);
    border: 1px solid var(--color-bg-gray);
    color: var(--color-text-dark);
    padding: 1.8rem 2rem;
    border-radius: var(--border-radius-md);
    font-size: 1.6rem;
    transition: var(--transition-medium);
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(31, 58, 147, 0.1);
    outline: none;
}

.form-group input:hover, 
.form-group textarea:hover, 
.form-group select:hover {
    border-color: var(--color-primary);
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    font-size: 1.6rem;
    color: var(--color-text-dark);
    opacity: 0.7;
    pointer-events: none;
    transition: var(--transition-medium);
    background: var(--color-bg-light);
    padding: 0 0.5rem;
}

.form-group textarea ~ label {
    top: 2rem;
    transform: none;
}

.form-group input:focus ~ label, 
.form-group textarea:focus ~ label, 
.form-group select:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -1.2rem;
    left: 1rem;
    font-size: 1.4rem;
    color: var(--color-primary);
    opacity: 1;
}

.form-group textarea {
    min-height: 15rem;
    resize: vertical;
}

.validation-message {
    position: absolute;
    bottom: -2.5rem;
    left: 0;
    font-size: 1.2rem;
    color: #ff4d6d;
    z-index: 5;
    background-color: var(--color-bg-light);
    padding: 0.2rem 0;
}

/* Form success and error messages */
.form-success-message,
.form-error-message {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius-md);
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
    animation: slideInUp 0.3s ease-out;
}

.form-success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Submit button loading state */
.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.submit-button {
    width: 100%;
    margin-top: 1rem;
    padding: 1.5rem 3rem;
    background: var(--gradient-button);
    color: var(--color-text-light);
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: var(--transition-medium);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--color-text-light) !important;
}

.submit-button:hover::before {
    opacity: 0.12;
}

.submit-button span {
    position: relative;
    z-index: 1;
}

.contact-map {
    height: 100%;
    min-height: 45rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.office-location {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 45rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.office-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    filter: blur(2px);
    transition: filter 0.3s ease;
}

.office-location:hover .office-image {
    filter: blur(1px);
}

.location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    text-align: center;
    color: var(--color-text-light);
    z-index: 1;
    background: rgba(31, 58, 147, 0.1);
    backdrop-filter: blur(4px);
}

.location-overlay i {
    font-size: 5rem;
    color: var(--color-primary);
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.location-overlay h3 {
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-size: 3.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.location-overlay p {
    color: var(--color-primary);
    opacity: 0.95;
    margin-bottom: 1.2rem;
    font-size: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.location-overlay .contact-info {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.2rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    display: inline-block;
}

.location-overlay .contact-info p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    white-space: nowrap;
    color: var(--color-primary);
    font-size: 1.8rem;
    line-height: 1;
    height: 2.4rem;
}

.location-overlay .contact-info i {
    font-size: 2rem;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.4rem;
    width: 2.4rem;
    margin: 0;
    padding: 0;
}

.location-overlay .contact-info .email-link,
.location-overlay .contact-info .phone-link {
    color: var(--color-primary);
    transition: var(--transition-medium);
    text-decoration: none;
    text-shadow: none;
    font-weight: 600;
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    height: 2.4rem;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.location-overlay .email-link:hover,
.location-overlay .phone-link:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* === DARK THEME: LOCATION OVERLAY FIXES ===
   - Make text visible in dark mode
   - Adjust colors and backgrounds for better contrast
*/
body.dark-theme .location-overlay {
    background: rgba(88, 166, 255, 0.15);
    backdrop-filter: blur(8px);
}

body.dark-theme .location-overlay i {
    color: #58a6ff;
    text-shadow: 0 2px 8px rgba(88, 166, 255, 0.3);
}

body.dark-theme .location-overlay h3 {
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

body.dark-theme .location-overlay p {
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

body.dark-theme .location-overlay .contact-info {
    background: rgba(22, 27, 34, 0.95);
    border: 1px solid rgba(88, 166, 255, 0.2);
    box-shadow: 0 4px 20px rgba(88, 166, 255, 0.15);
}

body.dark-theme .location-overlay .contact-info p {
    color: #ffffff;
}

body.dark-theme .location-overlay .contact-info i {
    color: #58a6ff;
}

body.dark-theme .location-overlay .contact-info .email-link,
body.dark-theme .location-overlay .contact-info .phone-link {
    color: #58a6ff;
}

body.dark-theme .location-overlay .email-link:hover,
body.dark-theme .location-overlay .phone-link:hover {
    color: #7caeff;
    opacity: 0.9;
}

@media screen and (max-width: 768px) {
    .location-overlay {
        padding: 2rem;
    }
    
    .location-overlay h3 {
        font-size: 2.8rem;
    }
    
    .location-overlay p {
        font-size: 1.8rem;
    }

    .location-overlay .contact-info {
        padding: 1.5rem 2rem;
    }

    .location-overlay .contact-info p {
        font-size: 1.6rem;
    }

    .location-overlay .email-link {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 576px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 2.5rem 2rem;
    }
}

/* ======= FOOTER ======= */
footer {
    background: var(--color-primary);
    color: var(--color-text-light);
    padding: 2.5rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    max-width: 120rem;
    margin: 0 auto;
    padding: 1rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    margin-bottom: 0.8rem;
}

.footer-logo img {
    height: 4rem;
}

.footer-description {
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--color-text-light);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.footer-contact {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    color: var(--color-text-light);
    margin: 0;
}

.footer-contact i {
    color: #1f3a93; /* Darker blue for better visibility in light mode */
    font-size: 1.6rem;
    opacity: 0.9;
}

.footer-contact-link {
    color: var(--color-text-light);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.footer-contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}

.footer-contact-link:hover {
    color: var(--color-secondary);
}

.footer-contact-link:hover::after {
    width: 100%;
}

/* Glowing Work at TrinitX Button */
.work-button {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    border-radius: var(--border-radius-md);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(23, 163, 152, 0.5);
    text-decoration: none;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.work-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.work-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 65%);
    opacity: 0;
    transform: scale(0.5);
    animation: pulse 2s infinite;
    z-index: -2;
}

.work-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(23, 163, 152, 0.8);
    color: #ffffff;
}

.work-button:hover::before {
    opacity: 1;
}

@keyframes pulse {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

.footer-links-wrapper {
    display: flex;
    justify-content: space-between;
}

.footer-links {
    width: 48%;
}

.footer-links h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    position: relative;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-text-light);
    opacity: 0.8;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.2rem 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #ffffff;
    transform: translateX(5px);
    background: transparent;
}

.footer-bottom {
    text-align: center;
    padding: 0.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    opacity: 0.7;
}

@media screen and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .footer-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .footer-brand {
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-links {
        width: 45%;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .footer-links h4::after {
        left: 0;
        transform: none;
    }
}

@media screen and (max-width: 480px) {
    .footer-content {
        display: flex;
        flex-direction: column;
    }
    
    .footer-brand {
        width: 100%;
        order: 1;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-links-wrapper {
        width: 100%;
        order: 2;
        display: flex;
        justify-content: space-between;
    }
    
    .footer-links {
        width: 48%;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .footer-links h4 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-links ul li {
        margin-bottom: 0.6rem;
    }
    
    .footer-links a {
        font-size: 1.1rem;
    }
}

/* ======= SOLUTIONS SECTION ======= */
.solutions-section {
    background: var(--color-bg-light);
    padding: 8rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 6rem;
}

.section-header h2 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 3.6rem;
}

.section-header p {
    color: var(--color-text-dark);
    font-size: 1.8rem;
    opacity: 0.8;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.service-category {
    background: var(--color-bg-light);
    border-radius: var(--border-radius-lg);
    padding: 1rem 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-bg-gray);
    cursor: pointer;
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    max-height: 180px;
    height: auto;
    flex: none;
}

.service-category:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px) scale(1.03);
    z-index: 2;
}

/* Expansion logic for desktop */
.services-container.expanding .service-category {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s, box-shadow 0.5s, transform 0.5s;
}
.services-container.expanding .service-category.expanded {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
    background: var(--color-bg-light) !important;
    margin: 0;
    max-height: none;
    min-height: 0;
}

.services-grid { display: none; }
body .service-category.expanded .services-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    width: 100% !important;
    margin-top: 2rem !important;
    align-items: stretch !important;
    opacity: 1;
}
body .service-category.expanded .service-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

@media screen and (max-width: 992px) {
    .services-container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
        min-height: auto;
    }
    
    .service-category {
        position: static;
        width: 100%;
        height: auto;
        opacity: 1;
        pointer-events: auto;
        box-shadow: var(--shadow-md);
        margin-bottom: 1.5rem;
        cursor: pointer;
    }
    
    /* Prevent default expansion behavior on tablet/mobile */
    .services-container.expanding .service-category:not(.mobile-expanded) {
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Use mobile expansion instead of desktop expansion */
    .services-container.expanding .service-category.expanded:not(.mobile-expanded) {
        position: static;
        width: 100%;
        height: auto;
        opacity: 1;
        z-index: 1;
    }
    
    /* Only show services grid for mobile-expanded cards */
    .services-grid {
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .service-category.mobile-expanded .services-grid {
        display: grid;
        opacity: 1;
    }
}

@media screen and (max-width: 576px) {
    .services-container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
    }
    
    /* Ensure mobile cards are touchable */
    .service-category {
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .service-category:active {
        transform: scale(0.98);
    }
    
    /* Prevent scrolling of background when a card is expanded */
    body.modal-open {
        overflow: hidden;
    }
}

/* ======= TESTIMONIALS SECTION ======= */
.testimonials-section {
    background: var(--color-bg-light);
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(31, 58, 147, 0.05), transparent 60%);
    z-index: 0;
}

.testimonials-container {
    max-width: 120rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonial-cards-wrapper {
    position: relative;
    width: 100%;
    height: 40rem;
    perspective: 2000px;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    max-width: 80rem;
    height: 100%;
    top: 0;
    left: 50%;
    transform-origin: center;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.2, 1);
    opacity: 0;
    z-index: 0;
    visibility: hidden;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--color-bg-light);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-bg-gray);
    backdrop-filter: blur(10px);
}

.testimonial-card.active {
    opacity: 1;
    z-index: 5;
    transform: translateX(-50%) scale(1);
    visibility: visible;
}

.testimonial-card.prev, .testimonial-card.next {
    opacity: 0.7;
    z-index: 1;
    visibility: visible;
}

.testimonial-card.prev {
    transform: translateX(-85%) scale(0.9) rotateY(10deg);
}

.testimonial-card.next {
    transform: translateX(-15%) scale(0.9) rotateY(-10deg);
}

.testimonial-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 4rem;
    position: relative;
}

.testimonial-quote {
    position: relative;
    font-size: 2rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: var(--color-text-dark);
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.testimonial-quote::before {
    content: '"';
    font-size: 8rem;
    position: absolute;
    top: -3rem;
    left: -1rem;
    color: var(--color-primary);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--color-bg-gray);
    padding-top: 2rem;
}

.testimonial-avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 2rem;
    border: 2px solid transparent;
    background-origin: border-box;
    background-clip: content-box, border-box;
    background-image: linear-gradient(var(--color-bg-light), var(--color-bg-light)), 
                      var(--gradient-button);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info {
    flex-grow: 1;
}

.testimonial-name {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.testimonial-role {
    color: var(--color-secondary);
    font-size: 1.4rem;
}

.testimonial-company {
    font-size: 1.4rem;
    color: var(--color-text-dark);
    opacity: 0.8;
}

.testimonial-rating {
    margin-left: auto;
    color: var(--color-secondary);
    font-size: 1.6rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
    gap: 2rem;
}

.testimonial-control {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--color-bg-light);
    color: var(--color-primary);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-medium);
    border: 1px solid var(--color-bg-gray);
    box-shadow: var(--shadow-sm);
}

.testimonial-control:hover {
    background: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.testimonial-indicators {
    display: flex;
    gap: 1rem;
}

.testimonial-indicator {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: var(--color-bg-gray);
    cursor: pointer;
    transition: all var(--transition-medium);
}

.testimonial-indicator.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

@media screen and (max-width: 768px) {
    .testimonial-content {
        padding: 3rem 2rem;
    }
    
    .testimonial-quote {
        font-size: 1.8rem;
    }
    
    .testimonial-card.prev {
        transform: translateX(-80%) scale(0.8);
        opacity: 0.5;
    }
    
    .testimonial-card.next {
        transform: translateX(-20%) scale(0.8);
        opacity: 0.5;
    }
}

@media screen and (max-width: 576px) {
    .testimonial-cards-wrapper {
        height: 45rem;
    }
    
    .testimonial-card.prev,
    .testimonial-card.next {
        display: none;
    }
}

/* ======= CUSTOM CURSOR ======= */
.cursor-outer,
.cursor-inner {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 9999;
    will-change: transform;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    transition: opacity 0.3s ease-in-out, width 0.3s ease-out, height 0.3s ease-out;
}

.cursor-outer {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 238, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.3);
    margin: -20px 0 0 -20px;
    transition: width 0.3s ease-out, 
                height 0.3s ease-out, 
                border 0.3s ease-out,
                background-color 0.3s ease-out;
}

.cursor-inner {
    width: 8px;
    height: 8px;
    background: var(--color-accent-primary);
    margin: -4px 0 0 -4px;
    box-shadow: 0 0 10px var(--color-accent-primary);
    transition: width 0.3s ease-out, 
                height 0.3s ease-out, 
                background-color 0.3s ease-out;
}

.cursor-outer.cursor-hover {
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border-color: var(--color-accent-secondary);
    background-color: rgba(24, 219, 176, 0.1);
}

.cursor-inner.cursor-hover {
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    background-color: var(--color-accent-secondary);
}

/* Show default cursor on mobile devices */
@media (max-width: 768px) {
    .cursor-outer,
    .cursor-inner {
        display: none;
    }
    
    body, a, button, input, textarea, select, .portfolio-card, .team-member, .testimonial-card {
        cursor: auto;
    }
}

.map-placeholder .contact-info {
    margin-top: 1.5rem;
}

.map-placeholder .contact-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.map-placeholder .contact-info i {
    font-size: 1.6rem;
    color: var(--color-accent-primary);
}

.email-link {
    color: var(--color-accent-primary);
    transition: var(--transition-fast);
    text-decoration: none;
    position: relative;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-accent);
    transition: var(--transition-medium);
}

.email-link:hover {
    color: var(--color-accent-secondary);
}

.email-link:hover::after {
    width: 100%;
}

/* ======= ANIMATIONS ======= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Intersection Observer animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Hover animations */
.hover-lift {
    transition: transform 0.3s ease-out;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform 0.3s ease-out;
}

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

/* Button hover effects */
.primary-button {
    position: relative;
    overflow: hidden;
}

.primary-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
}

.primary-button:hover::after {
    transform: translateX(0);
}

/* Logo bar hover effects */
.logo-bar img {
    transition: all 0.3s ease-out;
}

.logo-bar img:hover {
    transform: translateY(-3px);
}

/* Social links hover effects */
.social-link {
    position: relative;
    overflow: hidden;
}

.social-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    transform: scale(0);
    transition: transform 0.3s ease-out;
    z-index: -1;
}

.social-link:hover::after {
    transform: scale(1);
}

@media screen and (min-width: 993px) {
    .services-container {
        position: relative;
    }
    .services-container.expanding .service-category {
        opacity: 0;
        pointer-events: none;
        z-index: 1;
        transition: opacity 0.5s, box-shadow 0.5s, transform 0.5s;
    }
    .services-container.expanding .service-category.expanded {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        opacity: 1;
        pointer-events: auto;
        z-index: 10;
        box-shadow: var(--shadow-lg);
        transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
        background: var(--color-bg-light) !important;
        margin: 0;
        max-height: none;
        min-height: 0;
    }
    .service-category.expanded .services-grid {
        display: grid;
        margin-top: 2rem;
    }
    .service-category {
        position: absolute;
        width: calc(25% - 1.5rem);
        height: calc(50% - 1rem);
        margin: 0;
        max-height: none;
        min-height: 0;
        transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Shared styles for both desktop expanded and mobile expanded */
.service-category.expanded .service-card::before,
.service-category.expanded .service-card:hover::before,
.service-category.mobile-expanded .service-card::before,
.service-category.mobile-expanded .service-card:hover::before {
    opacity: 0 !important;
    background: none !important;
}

.service-category.expanded .service-card,
.service-category.mobile-expanded .service-card {
    box-shadow: none !important;
    background: var(--color-bg-light) !important;
    transform: none !important;
    cursor: default !important;
}

.service-category.expanded .service-card:hover,
.service-category.expanded .service-card:active,
.service-category.expanded .service-card:focus,
.service-category.mobile-expanded .service-card:hover,
.service-category.mobile-expanded .service-card:active,
.service-category.mobile-expanded .service-card:focus {
    box-shadow: none !important;
    background: var(--color-bg-light) !important;
    transform: none !important;
}

/* Mobile-specific card styles */
.service-category.mobile-expanded .category-header {
    margin-bottom: 1.5rem;
}

.service-category.mobile-expanded .category-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-category.mobile-expanded .category-header h3 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.service-category.mobile-expanded .category-header p {
    font-size: 1.4rem;
    -webkit-line-clamp: none;
    overflow: visible;
    margin-bottom: 1rem;
}

/* Increase sizes when expanded */
.service-category.expanded .category-header i {
    font-size: 4.2rem;
    margin-bottom: 1.5rem;
}

.service-category.expanded .category-header h3 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
}

.service-category.expanded .category-header p {
    font-size: 1.8rem;
    -webkit-line-clamp: 3;
    margin-bottom: 1rem;
}

.form-group select {
    width: 100%;
    background: var(--color-bg-light);
    border: 1px solid var(--color-bg-gray);
    color: var(--color-text-dark);
    padding: 1.8rem 2rem;
    border-radius: var(--border-radius-md);
    font-size: 1.6rem;
    transition: var(--transition-medium);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    padding-right: 4rem;
}

.form-group select:focus ~ label,
.form-group select:not([value=""]) ~ label,
.form-group select.has-value ~ label {
    top: -1.2rem;
    left: 1rem;
    font-size: 1.4rem;
    color: var(--color-primary);
    opacity: 1;
}

.form-group select option {
    padding: 1rem;
    font-size: 1.6rem;
} 

/* === MOBILE NAV: NO RECTANGLE, ONLY SHADOW ON BUTTONS ===
   - Removes all borders, outlines, and rectangles from nav menu buttons on mobile.
   - Adds only a minimal drop shadow behind the text on hover/active.
   - No background, border, or outline remains.
*/

@media screen and (max-width: 768px) {
  nav ul li a {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    color: var(--color-text-light);
    border-radius: 0;
    transition: color 0.3s, text-shadow 0.3s;
    text-shadow: none;
  }
  nav ul li a:hover, nav ul li a.active {
    background: none !important;
    border: none !important;
    outline: none !important;
    color: var(--color-secondary);
    text-shadow: 0 2px 12px rgba(31,58,147,0.18), 0 1px 2px rgba(0,0,0,0.10);
    box-shadow: none !important;
  }
}

/* === HAMBURGER MENU LINES: COLOR CHANGE ON SCROLL ===
   - Hamburger menu lines (.menu-toggle span) are white by default.
   - When header.scrolled is present (scrolled past hero), lines become var(--color-primary) for visibility.
   - Applies to both normal and active states.
*/

.menu-toggle span {
  background: var(--color-text-light) !important;
}
header.scrolled .menu-toggle span {
  background: var(--color-primary) !important;
}
header.scrolled .menu-toggle.active span {
  background: var(--color-secondary) !important;
}

/* === THEME SWITCHER BUTTON & DARK THEME SUPPORT ===
   - Adds a theme switcher button styled to match the site, positioned right of the CTA button.
   - Adds .dark-theme class support: backgrounds black, navy blue preserved, font colors adjusted for visibility.
   - All transitions are smooth.
*/

.theme-switcher {
  margin-left: 1.2rem;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: var(--color-text-light) !important;
  font-size: 2.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.theme-switcher i {
  color: inherit !important;
  text-shadow: 0 2px 8px rgba(31,58,147,0.18), 0 1px 2px rgba(0,0,0,0.10);
  transition: color 0.2s, text-shadow 0.2s;
}
header.scrolled .theme-switcher i,
body.dark-theme .theme-switcher i {
  color: var(--color-secondary) !important;
  text-shadow: 0 2px 8px rgba(23,163,152,0.18), 0 1px 2px rgba(0,0,0,0.10);
}
.theme-switcher:focus {
  outline: none;
}

/* Dark theme variables */
body.dark-theme {
  --color-bg-light: #101014;
  --color-bg-gray: #181a20;
  --color-text-dark: #f3f3f3;
  --color-text-light: #ffffff;
  --color-primary: #1F3A93; /* navy blue preserved */
  --color-secondary: #17A398;
  --gradient-hero: linear-gradient(135deg, #1F3A93, #17A398);
}
body.dark-theme {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}
body.dark-theme header {
  background: var(--gradient-hero);
  box-shadow: var(--shadow-sm);
}
body.dark-theme .cta-button {
  background: var(--color-secondary);
  color: var(--color-text-light);
  border: none;
}
body.dark-theme .cta-button:hover {
  background: var(--color-primary);
  color: var(--color-text-light);
}
body.dark-theme nav ul li a {
    color: var(--color-text-light);
}

body.dark-theme nav ul li a.rainbow-nav-btn.active::after {
    background: var(--color-text-light);
}
body.dark-theme nav ul li a.active:not(.rainbow-nav-btn),
body.dark-theme nav ul li a:hover:not(.rainbow-nav-btn) {
    color: var(--color-secondary);
}
body.dark-theme .theme-switcher {
  color: var(--color-secondary);
}
body.dark-theme .theme-switcher:hover, body.dark-theme .theme-switcher:focus {
  background: rgba(23,163,152,0.10);
  color: var(--color-primary);
}
body.dark-theme section,
body.dark-theme .hero-section,
body.dark-theme .services-section,
body.dark-theme .testimonials-section,
body.dark-theme .portfolio-section,
body.dark-theme .contact-section,
body.dark-theme footer {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
  transition: background 0.3s, color 0.3s;
}
body.dark-theme .portfolio-card-back,
body.dark-theme .testimonial-card,
body.dark-theme .service-category {
  background: var(--color-bg-gray);
  color: var(--color-text-dark);
}
body.dark-theme .form-group input,
body.dark-theme .form-group textarea,
body.dark-theme .form-group select {
  background: var(--color-bg-gray);
  color: var(--color-text-light);
  border: 1px solid #222;
}
body.dark-theme .form-group label {
  color: var(--color-text-light);
}
body.dark-theme .footer-content,
body.dark-theme .footer-links a {
    color: var(--color-text-light);
}

body.dark-theme .footer-contact p {
    color: var(--color-text-light);
}

body.dark-theme .footer-contact i {
    color: #58a6ff; /* Brighter blue for better visibility in dark mode */
    opacity: 0.9;
}

body.dark-theme .footer-contact-link {
    color: var(--color-primary-dark);
}

body.dark-theme .footer-contact-link:hover {
    color: var(--color-secondary-dark);
}
body.dark-theme .footer-links a:hover {
  color: var(--color-secondary);
}
body.dark-theme .logo-bar img {
  filter: brightness(0.8) invert(0.8);
}
body.dark-theme .menu-toggle span {
  background: var(--color-text-light) !important;
}
body.dark-theme header.scrolled .menu-toggle span {
  background: var(--color-primary) !important;
}

/* === HERO SECTION: PRESERVE LIGHT THEME IN DARK MODE ===
   - The hero section's background and color do not change in dark mode.
*/
body.dark-theme .hero-section {
  background: var(--color-bg-light) !important;
  color: var(--color-text-dark) !important;
}

/* === HEADER BUTTONS: KEEP DEMO BUTTON AND THEME SWITCHER SIDE BY SIDE ===
   - Use a flex container for .cta-button and .theme-switcher to keep them aligned right.
*/
header .header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-button {
  margin-left: 0;
  margin-right: 0;
}
.theme-switcher {
  margin-left: 1.2rem;
}

@media screen and (max-width: 768px) {
  header .header-actions {
    gap: 0.2rem;
  }
  .theme-switcher {
    margin-left: 0.7rem;
  }
}

/* === ENSURE HERO SECTION BACKGROUND IS ALWAYS LIGHT, EVEN IN DARK MODE === */
body.dark-theme .hero-section {
  background: var(--color-bg-light) !important;
  color: var(--color-text-dark) !important;
}

/* === FINAL OVERRIDE: HERO SECTION ALWAYS ORIGINAL GRADIENT, EVEN IN DARK MODE === */
body.dark-theme .hero-section {
  background: linear-gradient(135deg, #1F3A93, #17A398) !important;
  color: var(--color-text-light) !important;
}

/* === GITHUB-STYLE DARK THEME ===
   - Matches GitHub's dark theme colors and effects.
*/
body.dark-theme {
  --color-bg-light: #0d1117;
  --color-bg-gray: #161b22;
  --color-primary: #2f81f7;
  --color-secondary: #3fb950;
  --color-text-dark: #c9d1d9;
  --color-text-light: #ffffff;
  --color-text-secondary: #8b949e;
  --color-border: rgba(110,118,129,0.4);
  --gradient-hero: linear-gradient(135deg, #2383e2, #2f81f7);
}
body.dark-theme section,
body.dark-theme .services-section,
body.dark-theme .testimonials-section,
body.dark-theme .portfolio-section,
body.dark-theme .contact-section,
body.dark-theme footer {
  background: var(--color-bg-light) !important;
  color: var(--color-text-dark) !important;
}
body.dark-theme .portfolio-card-back,
body.dark-theme .testimonial-card,
body.dark-theme .service-category {
  background: var(--color-bg-gray) !important;
  color: var(--color-text-dark) !important;
  border: 1px solid var(--color-border) !important;
}
body.dark-theme .cta-button,
body.dark-theme .primary-button {
  background: var(--color-primary) !important;
  color: var(--color-text-light) !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(31,58,147,0.10) !important;
}
body.dark-theme .cta-button:hover,
body.dark-theme .primary-button:hover {
  background: #2383e2 !important;
}
body.dark-theme a {
  color: var(--color-primary) !important;
}
body.dark-theme a:hover {
  color: var(--color-secondary) !important;
}
body.dark-theme .form-group input,
body.dark-theme .form-group textarea,
body.dark-theme .form-group select {
  background: var(--color-bg-gray) !important;
  color: var(--color-text-light) !important;
  border: 1px solid var(--color-border) !important;
}
body.dark-theme .form-group label {
  color: var(--color-text-secondary) !important;
}
body.dark-theme hr,
body.dark-theme .divider {
  border-color: var(--color-border) !important;
}
body.dark-theme header {
  background: var(--color-bg-gray) !important;
  border-bottom: 1px solid var(--color-border) !important;
}
body.dark-theme nav ul li a {
  color: var(--color-text-dark) !important;
}
body.dark-theme nav ul li a.active,
body.dark-theme nav ul li a:hover {
  color: var(--color-primary) !important;
}
body.dark-theme .footer-content,
body.dark-theme .footer-links a {
  color: var(--color-text-dark) !important;
}
body.dark-theme .footer-links a:hover {
  color: var(--color-secondary) !important;
}
body.dark-theme .logo-bar img {
  filter: brightness(0.8) invert(0.8) !important;
}
body.dark-theme .menu-toggle span {
  background: var(--color-text-light) !important;
}
body.dark-theme header.scrolled .menu-toggle span {
  background: var(--color-primary) !important;
}
/* End GitHub-style dark theme */

/* === DARK THEME: SOFTER LINK AND ACCENT COLORS FOR BETTER READABILITY ===
   - Links and accent text use a softer blue (#58a6ff) instead of bright #2f81f7.
   - Secondary accent is a muted green (#56d364).
   - Main text: #c9d1d9, secondary text: #8b949e.
   - Hover states are visible but not harsh.
*/
body.dark-theme {
  --color-primary: #58a6ff; /* Softer blue for links and accents */
  --color-secondary: #56d364; /* Muted green for secondary */
  --color-text-dark: #c9d1d9;
  --color-text-light: #ffffff;
  --color-text-secondary: #8b949e;
}
body.dark-theme a,
body.dark-theme nav ul li a {
  color: var(--color-primary) !important;
  text-decoration: none;
  transition: color 0.2s;
}
body.dark-theme a:hover,
body.dark-theme nav ul li a:hover:not(.rainbow-nav-btn),
body.dark-theme nav ul li a.active:not(.rainbow-nav-btn) {
  color: var(--color-secondary) !important;
}
body.dark-theme .cta-button,
body.dark-theme .primary-button {
  background: var(--color-primary) !important;
  color: var(--color-text-light) !important;
}
body.dark-theme .cta-button:hover,
body.dark-theme .primary-button:hover {
  background: var(--color-secondary) !important;
  color: var(--color-text-light) !important;
}
body.dark-theme .form-group label,
body.dark-theme .footer-links a {
  color: var(--color-text-secondary) !important;
}
body.dark-theme .footer-links a:hover {
  color: var(--color-primary) !important;
}

/* === DARK THEME: MIXED WHITE AND LIGHT GRAY FOR TEXT ===
   - Headings (h1, h2, h3), links, and nav links: pure white (#fff)
   - Main body text: very light gray (#e6edf3)
   - Secondary text: #8b949e
   - Link hover: soft blue (#58a6ff)
*/
body.dark-theme {
  --color-text-main: #e6edf3;
  --color-text-heading: #fff;
  --color-link: #fff;
  --color-link-hover: #58a6ff;
  --color-text-secondary: #8b949e;
}
body.dark-theme,
body.dark-theme section {
  color: var(--color-text-main) !important;
}
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3 {
  color: var(--color-text-heading) !important;
}
body.dark-theme a,
body.dark-theme nav ul li a {
  color: var(--color-link) !important;
  text-decoration: none;
  transition: color 0.2s;
}
body.dark-theme a:hover,
body.dark-theme nav ul li a:hover:not(.rainbow-nav-btn),
body.dark-theme nav ul li a.active:not(.rainbow-nav-btn) {
  color: var(--color-link-hover) !important;
}
body.dark-theme .form-group label,
body.dark-theme .footer-links a {
  color: var(--color-text-secondary) !important;
}

/* === DARK THEME: IMMERSIVE GRADIENT FOR HERO SECTION (GITHUB STYLE) ===
   - In dark mode, hero section uses a deep blue-to-purple gradient for a stylish, immersive look.
*/
body.dark-theme .hero-section {
  background: linear-gradient(120deg, #0d1117 0%, #161b22 50%, #1b1f23 100%) !important;
  color: #fff !important;
}

/* === DARK THEME: ANIMATED GRADIENT FOR HERO SECTION ===
   - In dark mode, hero section uses a constantly animated, immersive gradient background.
*/
@keyframes heroGradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
body.dark-theme .hero-section {
  background: linear-gradient(120deg, #0d1117, #161b22, #1b1f23, #223a5f, #2b3467, #1b1f23, #161b22, #0d1117);
  background-size: 300% 300%;
  animation: heroGradientMove 16s ease-in-out infinite;
  color: #fff !important;
}

/* === DARK THEME: ALTERNATING SECTION BACKGROUNDS ===
   - Create visual rhythm with alternating dark/light sections
   - Dark sections: Hero, Solutions, Client Feedback, Contact
   - Light sections: Approach, Portfolio, Footer
   - Uniform spacing and borders for clean transitions
*/

/* Dark sections - Hero, Solutions, Client Feedback, Contact */
body.dark-theme .solutions-section {
  background: #0d1117 !important;
  color: #c9d1d9 !important;
  margin: 0 !important;
  padding: 8rem 2rem !important;
}

body.dark-theme .testimonials-section {
  background: #0d1117 !important;
  color: #c9d1d9 !important;
  margin: 0 !important;
  padding: 8rem 2rem !important;
}

body.dark-theme .contact-section {
  background: #0d1117 !important;
  color: #c9d1d9 !important;
  margin: 0 !important;
  padding: 8rem 2rem !important;
}

/* Light sections - Approach, Portfolio, Footer */
body.dark-theme .approach-section {
  background: #161b22 !important;
  color: #ffffff !important;
  position: relative;
  margin: 0 !important;
  padding: 12rem 2rem !important;
}

body.dark-theme .approach-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.5), transparent);
}

body.dark-theme .approach-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.5), transparent);
}

body.dark-theme .portfolio-section {
  background: #161b22 !important;
  color: #ffffff !important;
  position: relative;
  margin: 0 !important;
  padding: 8rem 2rem !important;
}

body.dark-theme .portfolio-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.5), transparent);
}

body.dark-theme .portfolio-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.5), transparent);
}

body.dark-theme footer {
  background: #161b22 !important;
  color: #ffffff !important;
  position: relative;
  margin: 0 !important;
  padding: 6rem 2rem 2rem !important;
}

body.dark-theme footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.5), transparent);
}

/* === DARK THEME: CREATIVE ANIMATED GRADIENT + RADIAL HIGHLIGHT FOR HERO SECTION ===
   - Animated linear gradient background with deep blue, purple, teal, and magenta.
   - Animated radial highlight overlay using a pseudo-element.
   - Smooth, immersive, and modern effect.
*/
@keyframes heroGradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes heroRadialPulse {
  0%, 100% { opacity: 0.22; transform: scale(1) translate(-50%, -50%); }
  50% { opacity: 0.38; transform: scale(1.15) translate(-50%, -50%); }
}
body.dark-theme .hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0d1117, #161b22, #1b1f23, #223a5f, #2b3467, #6c3483, #1b1f23, #161b22, #0d1117);
  background-size: 300% 300%;
  animation: heroGradientMove 18s ease-in-out infinite;
  color: #fff !important;
}
body.dark-theme .hero-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 120vw; height: 120vw;
  max-width: 1200px; max-height: 1200px;
  background: radial-gradient(circle at 50% 50%, rgba(88,166,255,0.18) 0%, rgba(108,52,131,0.13) 40%, rgba(34,58,95,0.10) 70%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.22;
  transform: scale(1) translate(-50%, -50%);
  animation: heroRadialPulse 8s ease-in-out infinite;
  transition: opacity 0.4s;
}
body.dark-theme .hero-content, body.dark-theme .trusted-by {
  position: relative;
  z-index: 2;
}

/* === DARK THEME: ADVANCED ANIMATED EFFECTS FOR HERO SECTION ===
   - Adds a second, slower radial highlight for extra depth.
   - Overlays animated, softly blurred orb shapes for a futuristic, immersive look.
   - All effects are subtle and smooth.
*/
@keyframes heroGradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes heroRadialPulse {
  0%, 100% { opacity: 0.22; transform: scale(1) translate(-50%, -50%); }
  50% { opacity: 0.38; transform: scale(1.15) translate(-50%, -50%); }
}
@keyframes heroRadialPulse2 {
  0%, 100% { opacity: 0.13; transform: scale(1.1) translate(-50%, -50%); }
  50% { opacity: 0.22; transform: scale(1.25) translate(-50%, -50%); }
}
body.dark-theme .hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0d1117, #161b22, #1b1f23, #223a5f, #2b3467, #6c3483, #1b1f23, #161b22, #0d1117);
  background-size: 300% 300%;
  animation: heroGradientMove 18s ease-in-out infinite;
  color: #fff !important;
}
body.dark-theme .hero-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 120vw; height: 120vw;
  max-width: 1200px; max-height: 1200px;
  background: radial-gradient(circle at 50% 50%, rgba(88,166,255,0.18) 0%, rgba(108,52,131,0.13) 40%, rgba(34,58,95,0.10) 70%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.22;
  transform: scale(1) translate(-50%, -50%);
  animation: heroRadialPulse 8s ease-in-out infinite;
  transition: opacity 0.4s;
}
body.dark-theme .hero-section::after {
  content: '';
  position: absolute;
  top: 55%; left: 60%;
  width: 90vw; height: 90vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at 50% 50%, rgba(86,211,100,0.10) 0%, rgba(88,166,255,0.10) 60%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.13;
  transform: scale(1.1) translate(-50%, -50%);
  animation: heroRadialPulse2 14s ease-in-out infinite;
  transition: opacity 0.4s;
}
body.dark-theme .hero-section .hero-orb1,
body.dark-theme .hero-section .hero-orb2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
  z-index: 2;
  opacity: 0.18;
  mix-blend-mode: lighten;
}
body.dark-theme .hero-section .hero-orb1 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(88,166,255,0.22) 0%, rgba(34,58,95,0.10) 80%, transparent 100%);
  left: 10%; top: 60%;
  animation: heroOrb1 16s ease-in-out infinite;
}
body.dark-theme .hero-section .hero-orb2 {
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(108,52,131,0.18) 0%, rgba(43,52,103,0.10) 80%, transparent 100%);
  left: 80%; top: 30%;
  animation: heroOrb2 22s ease-in-out infinite;
}
body.dark-theme .hero-content, body.dark-theme .trusted-by {
  position: relative;
  z-index: 3;
}

/* === DARK THEME: PARALLAX ORBS, ALWAYS CIRCULAR ===
   - Orbs are always perfectly circular (aspect-ratio: 1/1, border-radius: 50%).
   - Parallax effect enabled via CSS variables for left/top, to be set by JS.
*/
body.dark-theme .hero-section .hero-orb1,
body.dark-theme .hero-section .hero-orb2 {
  aspect-ratio: 1/1;
  border-radius: 50%;
  width: 220px; height: 220px;
  position: absolute;
  filter: blur(32px);
  pointer-events: none;
  z-index: 2;
  opacity: 0.18;
  mix-blend-mode: lighten;
  transition: left 0.7s cubic-bezier(0.4,0,0.2,1), top 0.7s cubic-bezier(0.4,0,0.2,1);
}
body.dark-theme .hero-section .hero-orb1 {
  background: radial-gradient(circle, rgba(88,166,255,0.22) 0%, rgba(34,58,95,0.10) 80%, transparent 100%);
  left: var(--orb1-x, 10%); top: var(--orb1-y, 60%);
}
body.dark-theme .hero-section .hero-orb2 {
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(108,52,131,0.18) 0%, rgba(43,52,103,0.10) 80%, transparent 100%);
  left: var(--orb2-x, 80%); top: var(--orb2-y, 30%);
}

/* === HERO SECTION VIDEO BACKGROUND & ORB SPOTLIGHT ===
   - .hero-bg-video covers the hero section, always fits (object-fit: cover), and is behind all content.
   - In dark mode, a dark overlay covers the video, except for a large, soft orb at the cursor (CSS mask).
*/
.hero-section {
  position: relative;
  overflow: hidden;
}
.hero-bg-video {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  background: #0d1117;
}
body.dark-theme .hero-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  background: rgba(10,12,20,0.88); /* dark overlay */
  pointer-events: none;
  /* Orb spotlight mask */
  --orb-x: 50%;
  --orb-y: 50%;
  --orb-size: 420px;
  mask-image: radial-gradient(circle var(--orb-size) at var(--orb-x) var(--orb-y), transparent 0%, rgba(0,0,0,0.01) 60%, rgba(0,0,0,0.98) 100%);
  -webkit-mask-image: radial-gradient(circle var(--orb-size) at var(--orb-x) var(--orb-y), transparent 0%, rgba(0,0,0,0.01) 60%, rgba(0,0,0,0.98) 100%);
  transition: mask-image 0.2s, -webkit-mask-image 0.2s;
}
body.dark-theme .hero-content, body.dark-theme .trusted-by, body.dark-theme .hero-orb1, body.dark-theme .hero-orb2 {
  position: relative;
  z-index: 2;
}

/* === DARK THEME: TRANSPARENT HEADER ===
   - In dark mode, header background is fully transparent, no border or shadow.
*/
body.dark-theme header {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* === DARK THEME: INSTANT ORB SPOTLIGHT, FULL OVERLAY COVERAGE ===
   - Overlay fully hides the video except for the orb area.
   - Orb instantly follows the cursor (no transition delay on mask position).
*/
body.dark-theme .hero-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  background: rgba(10,12,20,0.92); /* slightly darker overlay for more contrast */
  pointer-events: none;
  --orb-x: 50%;
  --orb-y: 50%;
  --orb-size: 420px;
  mask-image: radial-gradient(circle var(--orb-size) at var(--orb-x) var(--orb-y), transparent 0%, rgba(0,0,0,0.01) 60%, rgba(0,0,0,0.98) 100%);
  -webkit-mask-image: radial-gradient(circle var(--orb-size) at var(--orb-x) var(--orb-y), transparent 0%, rgba(0,0,0,0.01) 60%, rgba(0,0,0,0.98) 100%);
  /* Remove transition on mask position for instant response */
  transition: none;
}

/* === CLEANUP: ONLY ONE DARK OVERLAY FOR HERO SECTION ORB SPOTLIGHT ===
   - Remove all duplicate/conflicting .hero-section::after rules.
   - Keep only this one, with a strong dark overlay and orb mask.
*/
body.dark-theme .hero-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  background: rgba(10,12,20,0.92);
  pointer-events: none;
  --orb-x: 50%;
  --orb-y: 50%;
  --orb-size: 420px;
  mask-image: radial-gradient(circle var(--orb-size) at var(--orb-x) var(--orb-y), transparent 0%, rgba(0,0,0,0.01) 60%, rgba(0,0,0,0.98) 100%);
  -webkit-mask-image: radial-gradient(circle var(--orb-size) at var(--orb-x) var(--orb-y), transparent 0%, rgba(0,0,0,0.01) 60%, rgba(0,0,0,0.98) 100%);
  transition: none;
}

/* === FORCE HERO OVERLAY: DEBUG/FINAL ===
   - Ensures only one overlay, always on top, with orb mask.
   - Use background: rgba(10,12,20,0.92) for production, or red for debugging.
*/
body.dark-theme .hero-section::after {
  content: '';
  position: absolute !important;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 10000 !important;
  background: rgba(10,12,20,0.92) !important;
  pointer-events: none !important;
  --orb-x: 50%;
  --orb-y: 50%;
  --orb-size: 420px;
  mask-image: radial-gradient(circle var(--orb-size) at var(--orb-x) var(--orb-y), transparent 0%, rgba(0,0,0,0.01) 60%, rgba(0,0,0,0.98) 100%) !important;
  -webkit-mask-image: radial-gradient(circle var(--orb-size) at var(--orb-x) var(--orb-y), transparent 0%, rgba(0,0,0,0.01) 60%, rgba(0,0,0,0.98) 100%) !important;
  transition: none !important;
  display: block !important;
}

/* === LIGHT THEME: TRANSPARENT HEADER ===
   - In light theme, header background is fully transparent, no border or shadow.
*/
header {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* === SOLUTIONS CARDS: SLIGHT GLOW IN BOTH THEMES ===
   - .service-category cards have a soft glow in both light and dark themes.
   - Glow intensifies on hover.
*/
.service-category {
  box-shadow: 0 2px 16px 0 rgba(31,58,147,0.10), 0 0 0 0 rgba(0,0,0,0);
  transition: box-shadow 0.3s, filter 0.3s;
  filter: drop-shadow(0 0 8px rgba(31,58,147,0.08));
}
.service-category:hover {
  box-shadow: 0 4px 32px 0 rgba(31,58,147,0.18), 0 0 16px 2px rgba(23,163,152,0.12);
  filter: drop-shadow(0 0 18px rgba(31,58,147,0.16));
}
body.dark-theme .service-category {
  box-shadow: 0 2px 24px 0 rgba(88,166,255,0.13), 0 0 0 0 rgba(0,0,0,0);
  filter: drop-shadow(0 0 12px rgba(88,166,255,0.10));
}
body.dark-theme .service-category:hover {
  box-shadow: 0 6px 40px 0 rgba(88,166,255,0.22), 0 0 24px 4px rgba(86,211,100,0.10);
  filter: drop-shadow(0 0 28px rgba(88,166,255,0.18));
}

/* === SOLUTIONS CARDS: INTENSE BORDER GLOW WHEN EXPANDED ===
   - When .service-category is .expanded or .mobile-expanded, the glow is more intense and focused on the borders.
*/
.service-category.expanded, .service-category.mobile-expanded {
  box-shadow: 0 0 0 4px rgba(31,58,147,0.18), 0 8px 40px 0 rgba(31,58,147,0.22), 0 0 32px 8px rgba(23,163,152,0.14);
  outline: 2px solid rgba(31,58,147,0.22);
  filter: drop-shadow(0 0 32px rgba(31,58,147,0.18));
  transition: box-shadow 0.3s, outline 0.3s, filter 0.3s;
}
body.dark-theme .service-category.expanded, body.dark-theme .service-category.mobile-expanded {
  box-shadow: 0 0 0 5px rgba(88,166,255,0.28), 0 12px 60px 0 rgba(88,166,255,0.32), 0 0 48px 12px rgba(86,211,100,0.18);
  outline: 2px solid rgba(88,166,255,0.32);
  filter: drop-shadow(0 0 48px rgba(88,166,255,0.22));
}

/* === OUR APPROACH SECTION STYLES ===
   - Modern, on-brand, and matches solutions cards.
   - Active step glows and scales up.
   - Loader bar animates smoothly.
*/
.approach-section {
  padding: 12rem 0 12rem 0;
  background: transparent;
  text-align: center;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
.section-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 3.5rem;
  color: var(--color-primary);
}
.approach-steps {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.approach-step {
  background: var(--color-bg-light);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 2px 16px 0 rgba(31,58,147,0.10);
  padding: 2.5rem 2rem 2.5rem 2rem;
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transition: box-shadow 0.3s, transform 0.3s, filter 0.3s;
  filter: drop-shadow(0 0 8px rgba(31,58,147,0.08));
  position: relative;
  z-index: 1;
}
.approach-step-number {
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  padding: 0.2em 0.7em;
  margin-bottom: 1.2rem;
  display: inline-block;
}
.approach-step-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--color-text-dark);
  text-align: left;
}
.approach-step-list {
  color: var(--color-secondary);
  font-size: 1.1rem;
  text-align: left;
  padding-left: 1.2rem;
  margin: 0;
}
.approach-step-list li {
  margin-bottom: 0.7rem;
  line-height: 1.6;
}
.approach-step.active {
  box-shadow: 0 0 0 4px rgba(31,58,147,0.18), 0 8px 40px 0 rgba(31,58,147,0.22), 0 0 32px 8px rgba(23,163,152,0.14);
  outline: 2px solid rgba(31,58,147,0.22);
  filter: drop-shadow(0 0 32px rgba(31,58,147,0.18));
  transform: scale(1.06);
  z-index: 2;
}
body.dark-theme .approach-step {
  background: var(--color-bg-gray);
  color: var(--color-text-dark);
  box-shadow: 0 2px 24px 0 rgba(88,166,255,0.13);
  filter: drop-shadow(0 0 12px rgba(88,166,255,0.10));
}
body.dark-theme .approach-step-title {
  color: #fff;
}
body.dark-theme .approach-step-list {
  color: var(--color-secondary);
}
body.dark-theme .approach-step.active {
  box-shadow: 0 0 0 5px rgba(88,166,255,0.28), 0 12px 60px 0 rgba(88,166,255,0.32), 0 0 48px 12px rgba(86,211,100,0.18);
  outline: 2px solid rgba(88,166,255,0.32);
  filter: drop-shadow(0 0 48px rgba(88,166,255,0.22));
  transform: scale(1.07);
}
.approach-loader {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  height: 6px;
  background: rgba(31,58,147,0.10);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.approach-loader-bar {
  height: 100%;
  width: 33.33%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 4px;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  transform: translateX(0%);
}
body.dark-theme .approach-loader {
  background: rgba(88,166,255,0.10);
}
body.dark-theme .approach-loader-bar {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}
@media (max-width: 900px) {
  .approach-steps {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .approach-step {
    max-width: 420px;
    width: 100%;
  }
}

/* === OUR APPROACH SECTION: TWO-COLUMN BIG WORD LAYOUT ===
   - Left: very large, bold word for the current step.
   - Right: step details styled as a card.
   - Responsive and modern.
*/
.approach-columns {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 4rem auto;
  width: 100%;
  padding: 0 2rem;
  box-sizing: border-box;
  overflow: hidden;
}
.approach-bigword {
  flex: 0 0 auto;
  font-size: 8rem;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -0.04em;
  line-height: 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-shadow: 0 4px 32px rgba(31,58,147,0.10), 0 2px 8px rgba(23,163,152,0.08);
  user-select: none;
  min-height: 200px;
  height: 200px;
  padding: 0;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  word-wrap: break-word;
}
.approach-bigword::after {
  content: '|';
  color: var(--color-secondary);
  font-weight: 900;
  animation: blink 1s infinite;
  margin-left: 0.2rem;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
body.dark-theme .approach-bigword {
  color: #58a6ff;
  text-shadow: 0 4px 32px rgba(88,166,255,0.18), 0 2px 8px rgba(86,211,100,0.10);
}
.approach-step-details {
  flex: 0 0 auto;
  background: var(--color-bg-light);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 24px 0 rgba(31,58,147,0.15), 0 2px 8px 0 rgba(0,0,0,0.08);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 280px;
  max-width: 600px;
  margin: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 12px rgba(31,58,147,0.12));
  position: relative;
  z-index: 1;
  border: 1px solid rgba(31,58,147,0.08);
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
body.dark-theme .approach-step-details {
  background: var(--color-bg-gray);
  color: var(--color-text-dark);
  box-shadow: 0 2px 24px 0 rgba(88,166,255,0.13);
  filter: drop-shadow(0 0 12px rgba(88,166,255,0.10));
}
.approach-step-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--color-text-dark);
  text-align: left;
}
body.dark-theme .approach-step-title {
  color: #fff;
}
.approach-step-list {
  color: var(--color-secondary);
  font-size: 1.1rem;
  text-align: left;
  padding-left: 1.2rem;
  margin: 0;
}
.approach-step-list li {
  margin-bottom: 0.7rem;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .approach-columns {
    gap: 2.5rem;
    padding: 0 1rem;
  }
  .approach-bigword {
    font-size: 6rem;
    min-height: 100px;
  }
  .approach-step-details {
    max-width: 100%;
    width: 100%;
    padding: 2.5rem 2rem;
  }
}

/* === APPROACH SECTION: STEP NUMBER CIRCLE, MODERN LOADER, BETTER CONTENT ===
   - Step number in a rounded, prominent circle before the big word.
   - Loader is a modern segmented dot style.
   - Content uses a more elegant, readable color and improved typography.
*/
.approach-bigword-wrap {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  justify-content: flex-end;
  padding-left: 20px; /* Add left padding to prevent cropping */
  position: relative; /* Add positioning context */
  overflow: visible; /* Ensure content doesn't get cropped */
}

.approach-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 20px 0 rgba(31,58,147,0.18), 0 2px 8px 0 rgba(0,0,0,0.1);
  margin-right: 0.2em;
  letter-spacing: -0.03em;
  user-select: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 10; /* Ensure it's above other elements */
}

.approach-step-num::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.approach-step-num:hover::before {
  transform: translateX(100%);
}

body.dark-theme .approach-step-num {
  background: linear-gradient(135deg, #58a6ff, #56d364);
  color: #fff;
  box-shadow: 0 2px 18px 0 rgba(88,166,255,0.18);
}

.approach-step-details {
  /* ...existing styles... */
}

.approach-step-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--color-primary);
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.3;
  position: relative;
  padding-bottom: 1rem;
}

.approach-step-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
}

body.dark-theme .approach-step-title {
  color: #58a6ff;
}

.approach-step-list {
  color: #3a4a5d;
  font-size: 1.2rem;
  text-align: center;
  padding-left: 0;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.6;
  max-width: 500px;
}

.approach-step-list li {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  padding-left: 0;
  position: relative;
  text-align: center;
}

.approach-step-list li::before {
  content: '•';
  color: var(--color-secondary);
  font-weight: bold;
  position: relative;
  margin-right: 0.5rem;
  font-size: 1.4rem;
  display: inline;
}

body.dark-theme .approach-step-list {
  color: #b6c6d9;
}

.approach-step-list li {
  margin-bottom: 0.7rem;
  line-height: 1.7;
  padding-left: 0.1em;
}

/* Modern segmented loader */
.approach-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin: 1.5rem auto 0 auto;
  background: none;
  height: auto;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

.approach-loader-bar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e0e6f0;
  opacity: 0.5;
  transition: background 0.3s, opacity 0.3s, transform 0.3s;
}

.approach-loader-bar.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  opacity: 1;
  transform: scale(1.18);
  box-shadow: 0 2px 12px 0 rgba(31,58,147,0.13);
}

body.dark-theme .approach-loader-bar {
  background: #223a5f;
}

body.dark-theme .approach-loader-bar.active {
  background: linear-gradient(135deg, #58a6ff, #56d364);
  box-shadow: 0 2px 18px 0 rgba(88,166,255,0.18);
}

/* === APPROACH SECTION: MATCHED HEADING, SUBTITLE, SMOOTH PROGRESS BAR ===
   - Heading font size matches other sections.
   - Subtitle is modern and subtle.
   - Progress bar is smooth and fills from 0 to 100% over the cycle.
*/
.approach-section .section-title {
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.section-subtitle {
  font-size: 1.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 4rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.approach-progress-loader {
  width: 100%;
  max-width: 420px;
  margin: 2.2rem auto 3rem auto;
  height: 8px;
  background: rgba(31,58,147,0.10);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px 0 rgba(31,58,147,0.06);
}

.approach-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 4px;
  transition: width 0.2s linear;
}

body.dark-theme .approach-progress-loader {
  background: rgba(88,166,255,0.10);
}

body.dark-theme .approach-progress-bar {
  background: linear-gradient(90deg, #58a6ff, #56d364);
}

/* === APPROACH SECTION: NO GAP, LEFT-ALIGNED BIG WORD ===
   - Remove gap between step number and big word.
   - Big word is left-aligned.
*/
.approach-bigword-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

.approach-bigword {
  text-align: left;
  justify-content: flex-start;
  padding-right: 0;
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.1;
}

@media (max-width: 900px) {
  .approach-bigword-wrap {
    justify-content: center;
    max-width: 100%;
    gap: 1rem;
  }
  .approach-bigword {
    text-align: center;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .approach-columns {
    padding: 0 1rem;
    max-width: 100%;
    gap: 2rem;
  }
  .approach-bigword {
    font-size: 5rem;
    min-height: 80px;
  }
  .approach-step-details {
    padding: 2rem 1.5rem;
  }
  .approach-step-title {
    font-size: 1.8rem;
  }
  .approach-step-list {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .approach-columns {
    padding: 0 0.5rem;
    gap: 1.5rem;
  }
  .approach-bigword {
    font-size: 4rem;
    min-height: 70px;
  }
  .approach-step-details {
    padding: 1.5rem 1rem;
  }
  .approach-step-title {
    font-size: 1.6rem;
  }
  .approach-step-list {
    font-size: 1rem;
  }
  .approach-step-num {
    width: 56px;
    height: 56px;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .approach-columns {
    padding: 0 0.25rem;
    gap: 1rem;
  }
  .approach-bigword {
    font-size: 3.5rem;
    min-height: 60px;
  }
  .approach-step-details {
    padding: 1.25rem 0.75rem;
  }
  .approach-step-title {
    font-size: 1.4rem;
  }
  .approach-step-list {
    font-size: 0.95rem;
  }
  .approach-step-num {
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
  }
}

.theme-switcher i.fa-sun {
  color: #FFA500 !important;
}
body.dark-theme .theme-switcher i.fa-sun {
  color: #FFA500 !important;
}

/* === LIGHT THEME: ALTERNATING SECTION BACKGROUNDS & SEPARATORS === */
.solutions-section {
  background: var(--color-bg-light) !important;
  color: var(--color-text-dark) !important;
  margin: 0 !important;
  padding: 8rem 2rem !important;
}

.testimonials-section {
  background: var(--color-bg-light) !important;
  color: var(--color-text-dark) !important;
  margin: 0 !important;
  padding: 8rem 2rem !important;
}

.contact-section {
  background: var(--color-bg-light) !important;
  color: var(--color-text-dark) !important;
  margin: 0 !important;
  padding: 8rem 2rem !important;
}

.approach-section {
  background: var(--color-bg-gray) !important;
  color: var(--color-text-dark) !important;
  position: relative;
  margin: 0 !important;
  padding: 12rem 2rem !important;
}

.approach-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(31, 58, 147, 0.18), transparent);
}

.approach-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(31, 58, 147, 0.18), transparent);
}

.portfolio-section {
  background: var(--color-bg-gray) !important;
  color: var(--color-text-dark) !important;
  position: relative;
  margin: 0 !important;
  padding: 8rem 2rem !important;
}

.portfolio-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(31, 58, 147, 0.18), transparent);
}

.portfolio-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(31, 58, 147, 0.18), transparent);
}

/* Rainbow Gradient Effect */
.rainbow-gradient {
    background: linear-gradient(90deg, 
        #ff5e62, 
        #ff9966, 
        #ffcc33, 
        #33cc66, 
        #0099cc, 
        #9966ff);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    
    /* Hardware acceleration */
    transform: translateZ(0);
    will-change: background-position;
    backface-visibility: hidden;
}

.rainbow-btn {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.rainbow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        #ff5e62, 
        #ff9966, 
        #ffcc33, 
        #33cc66, 
        #0099cc, 
        #9966ff);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    z-index: -1;
    transition: all 0.3s ease;
    border-radius: inherit;
    
    /* Hardware acceleration */
    transform: translateZ(0);
    will-change: background-position;
    backface-visibility: hidden;
}

.rainbow-btn:hover::before {
    filter: brightness(1.1);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Rainbow button in navbar */
nav ul li a.rainbow-nav-btn {
    background: linear-gradient(90deg, 
        #ff5e62, 
        #ff9966, 
        #ffcc33, 
        #33cc66, 
        #0099cc, 
        #9966ff);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important; /* Force transparent color for text to show gradient */
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    
    /* Hardware acceleration */
    transform: translateZ(0);
    will-change: background-position;
    backface-visibility: hidden;
}

/* Active state for rainbow nav buttons */
nav ul li a.rainbow-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        #ff5e62, 
        #ff9966, 
        #ffcc33, 
        #33cc66, 
        #0099cc, 
        #9966ff);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    border-radius: 2px;
}

/* Ensure rainbow button is visible in dark theme */
body.dark-theme nav ul li a.rainbow-nav-btn {
    background: linear-gradient(90deg, 
        #ff5e62, 
        #ff9966, 
        #ffcc33, 
        #33cc66, 
        #0099cc, 
        #9966ff);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    opacity: 1;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Rainbow work button in footer */
.rainbow-work-btn {
    color: white;
    font-weight: 600;
    padding: 1.2rem 2.4rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 94, 98, 0.5);
    text-decoration: none;
    margin-top: 1rem;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rainbow-work-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 94, 98, 0.8);
    color: #fff !important;
    border-radius: 20px;
}

body.dark-theme .rainbow-work-btn:hover {
    color: #fff !important;
}

@media screen and (max-width: 768px) {
    nav ul li a.rainbow-nav-btn {
        background: linear-gradient(90deg, 
            #ff5e62, 
            #ff9966, 
            #ffcc33, 
            #33cc66, 
            #0099cc, 
            #9966ff) !important;
        background-size: 400% 400% !important;
        animation: gradientShift 8s ease infinite !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        color: transparent !important;
        font-weight: 600;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: var(--border-radius-md) !important;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
        margin-top: 1rem;
    }
    
    body.dark-theme nav ul li a.rainbow-nav-btn {
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    
    nav ul li a.rainbow-nav-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(23, 163, 152, 0.2) !important;
    }
}

@media screen and (max-width: 768px) {
    header {
        justify-content: space-between;
        padding: 1.5rem 2rem;
    }
    
    header .header-actions {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .theme-switcher {
        margin: 0;
        font-size: 2rem;
        line-height: 1;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .theme-switcher i {
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        vertical-align: middle;
    }
    
    /* Hide CTA button on mobile as it's already hidden in the CSS */
    .cta-button {
        display: none;
    }
    
    /* Ensure menu toggle is properly positioned */
    .menu-toggle {
        position: relative;
        z-index: 110;
    }
}

/* Desktop-only enhancements for approach section */
@media screen and (min-width: 1025px) {
    .approach-section {
        padding: 15rem 0 15rem 0;
    }
    
    .approach-columns {
        max-width: 1400px;
        flex-direction: row;
        align-items: center;
        gap: 5rem;
        padding: 0 3rem;
    }
    
    .approach-bigword-wrap {
        flex: 0 0 40%;
        text-align: right;
        padding-right: 2rem;
        padding-left: 20px; /* Add left padding to prevent cropping */
        overflow: visible; /* Ensure content doesn't get cropped */
    }
    
    .approach-bigword {
        font-size: 10rem;
        text-align: right;
        min-height: 160px;
    }
    
    .approach-step-num {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }
    
    .approach-step-details {
        flex: 0 0 60%;
        padding: 4rem 3.5rem;
        text-align: left;
        align-items: flex-start;
        box-shadow: 0 6px 32px 0 rgba(31,58,147,0.18), 0 4px 12px 0 rgba(0,0,0,0.12);
    }
    
    .approach-step-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .approach-step-list {
        font-size: 1.3rem;
        padding-left: 2rem;
    }
    
    .approach-step-list li {
        margin-bottom: 1.2rem;
        line-height: 1.8;
    }
    
    .section-title {
        font-size: 4rem;
        margin-bottom: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.8rem;
        margin-bottom: 4rem;
    }
    
    .approach-progress-loader {
        max-width: 500px;
        height: 8px;
        margin-bottom: 5rem;
    }
    
    body.dark-theme .approach-step-details {
        box-shadow: 0 6px 32px 0 rgba(88,166,255,0.18), 0 4px 12px 0 rgba(86,211,100,0.12);
    }
}

/* ======= AI-DRIVEN GROWTH SECTION ======= */
.ai-growth-section {
    background: #161b22;
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.ai-growth-section .section-header {
    text-align: center;
    max-width: 90rem;
    margin: 0 auto 6rem;
}

.ai-growth-section .section-header h2 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 3.6rem;
    line-height: 1.2;
}

.ai-growth-section .section-header .highlight {
    background: linear-gradient(135deg, #58a6ff, #56d364);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 700;
}

.ai-growth-section .section-header p {
    color: #c9d1d9;
    font-size: 1.8rem;
    opacity: 0.9;
    text-align: center;
    max-width: 70rem;
    margin: 0 auto;
}

/* AI Cards Container */
.ai-cards-container {
    max-width: 130rem;
    margin: 0 auto 6rem;
    position: relative;
}

.ai-cards-wrapper {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0 2rem 0;
    
    /* Hide scrollbar but keep functionality */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ai-cards-wrapper::-webkit-scrollbar {
    display: none;
}

/* AI Card Styles */
.ai-card {
    background: var(--color-bg-light);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-bg-gray);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    min-width: 300px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 58, 147, 0.05), rgba(23, 163, 152, 0.03));
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: 1;
}

.ai-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    background: linear-gradient(var(--color-bg-light), var(--color-bg-light)) padding-box,
                linear-gradient(90deg, #ff5e62, #ff9966, #ffcc33, #33cc66, #0099cc, #9966ff) border-box;
    background-size: 100% 100%, 400% 400%;
    animation: gradientShift 3s ease infinite;
}

.ai-card:hover::before {
    opacity: 1;
}

/* AI Card Icon */
.ai-card-icon {
    width: 6rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-text-light);
    position: relative;
    z-index: 2;
    transition: transform var(--transition-medium);
}

.ai-card:hover .ai-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.ai-card-icon svg {
    width: 3rem;
    height: 3rem;
}

/* AI Card Content */
.ai-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.ai-card p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    opacity: 0.85;
}

.ai-card-highlight {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: var(--color-text-light);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

/* CTA Section */
.ai-cta-container {
    text-align: center;
    max-width: 60rem;
    margin: 0 auto;
}

.ai-cta-text {
    font-size: 2rem;
    color: #c9d1d9;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.ai-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.8rem 3.5rem;
    background: var(--gradient-button);
    color: var(--color-text-light);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.ai-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: -1;
}

.ai-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text-light);
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary)) padding-box,
                linear-gradient(90deg, #ff5e62, #ff9966, #ffcc33, #33cc66, #0099cc, #9966ff) border-box;
    background-size: 100% 100%, 400% 400%;
    animation: gradientShift 3s ease infinite;
}

.ai-cta-button:hover::before {
    opacity: 1;
}

.ai-cta-arrow {
    width: 2rem;
    height: 2rem;
    transition: transform var(--transition-medium);
}

.ai-cta-button:hover .ai-cta-arrow {
    transform: translateX(5px);
}

/* Light Theme Support (since section is now dark by default) */
body:not(.dark-theme) .ai-growth-section {
    background: var(--color-bg-light);
    color: var(--color-text-dark);
}

body:not(.dark-theme) .ai-growth-section .section-header h2 {
    color: var(--color-primary);
}

body:not(.dark-theme) .ai-growth-section .section-header .highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

body:not(.dark-theme) .ai-growth-section .section-header p {
    color: var(--color-text-dark);
}

body:not(.dark-theme) .ai-cta-text {
    color: var(--color-text-dark);
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .ai-cards-wrapper {
        gap: 2rem;
    }
    
    .ai-card {
        min-width: 280px;
    }
}

@media screen and (max-width: 768px) {
    .ai-growth-section {
        padding: 6rem 2rem;
    }
    
    .ai-growth-section .section-header {
        margin-bottom: 4rem;
    }
    
    .ai-growth-section .section-header h2 {
        font-size: 3rem;
    }
    
    .ai-growth-section .section-header p {
        font-size: 1.6rem;
    }
    
    .ai-cards-wrapper {
        gap: 1.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .ai-card {
        min-width: 260px;
        padding: 2.5rem 2rem;
    }
    
    .ai-card h3 {
        font-size: 2rem;
    }
    
    .ai-card p {
        font-size: 1.4rem;
    }
    
    .ai-cta-text {
        font-size: 1.8rem;
    }
    
    .ai-cta-button {
        padding: 1.5rem 3rem;
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 576px) {
    .ai-cards-wrapper {
        gap: 1rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .ai-card {
        min-width: 240px;
        padding: 2rem 1.5rem;
    }
    
    .ai-card-icon {
        width: 5rem;
        height: 5rem;
        margin-bottom: 1.5rem;
    }
    
    .ai-card-icon svg {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .ai-card h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .ai-card p {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .ai-card-highlight {
        padding: 0.6rem 1rem;
        font-size: 1.1rem;
    }
    
    .ai-cta-container {
        margin-top: 4rem;
    }
    
    .ai-cta-button {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.5rem 2.5rem;
    }
    
    .ai-cta-arrow {
        transform: rotate(90deg);
    }
    
    .ai-cta-button:hover .ai-cta-arrow {
        transform: rotate(90deg) translateX(5px);
    }
}

/* Scroll Hint for Mobile */
@media screen and (max-width: 768px) {
    .ai-cards-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3rem;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(31, 58, 147, 0.1));
        pointer-events: none;
        z-index: 2;
    }
    
    body.dark-theme .ai-cards-container::after {
        background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.1));
    }
}

/* Desktop - Show all 4 cards */
@media screen and (min-width: 1201px) {
    .ai-cards-wrapper {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
        overflow-x: visible;
    }
    
    .ai-card {
        min-width: auto;
        flex: 1;
    }
}

/* Tablet - Show 2 cards with scroll */
@media screen and (min-width: 769px) and (max-width: 1200px) {
    .ai-card {
        min-width: calc(50% - 1.25rem);
        max-width: calc(50% - 1.25rem);
    }
}

/* Mobile - Show 1 card with partial next */
@media screen and (max-width: 768px) {
    .ai-card {
        min-width: calc(85% - 1rem);
        max-width: calc(85% - 1rem);
    }
}

/* ======= AI-SOLUTIONS TRANSITION ======= */
.ai-solutions-transition {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(31, 58, 147, 0.2), transparent);
    margin: 0;
    position: relative;
}

body.dark-theme .ai-solutions-transition {
    background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.3), transparent);
}