/* RESET & BASE STYLES */
:root {
    /* Dark theme color palette */
    --primary-bg: #121212;
    --secondary-bg: #1e1e1e;
    --card-bg: #252525;
    --primary-text: #ffffff;
    --secondary-text: #b3b3b3;
    --accent: #8c52ff;
    --accent-hover: #9d6aff;
    --btn-primary: #8c52ff;
    --btn-primary-hover: #9d6aff;
    --btn-secondary: #2d2d2d;
    --btn-secondary-hover: #3d3d3d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

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

a {
    text-decoration: none;
    color: var(--accent);
    transition: color 0.3s ease;
}

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

section {
    padding: clamp(4rem, 10vh, 8rem) clamp(1rem, 5vw, 2rem);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* BUTTON STYLES */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 0.3rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

/* Unified focus states for better accessibility */
.btn:focus-visible,
.role-tag:focus-visible,
.submit-btn:focus-visible,
.select-roles-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--btn-primary);
    color: white;
    box-shadow: 0 4px 6px rgba(140, 82, 255, 0.2);
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(140, 82, 255, 0.3);
}

.btn-secondary {
    background-color: var(--btn-secondary);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: var(--btn-secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* HEADER STYLES */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
    background: rgba(18, 18, 18, 0.2);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Glass morphism effect when scrolled */
#header.scrolled {
    background: rgba(18, 18, 18, 0.5);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 0.8rem 0;
}

/* Navigation container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Ensure nav links are visible on desktop */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0.75rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 70%;
}

.nav-links a.active {
    color: var(--accent);
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
    background: var(--accent);
}

.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(140, 82, 255, 0.3);
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-text);
    text-decoration: none;
    z-index: 1001;
}

.logo svg {
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: rotate(10deg);
}

/* Mobile menu styles with glass effect */
.nav-links {
    background: rgba(18, 18, 18, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    padding: 0.5rem 0;
    margin: 0.5rem 0;
}

/* Navigation links */
.nav-links a {
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    display: block;
    color: var(--primary-text);
    text-decoration: none;
    position: relative;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

/* Desktop navigation */
@media (min-width: 992px) {
    .nav-links {
        display: flex;
        align-items: center;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    .nav-links li {
        margin-left: 2rem;
    }

    .nav-links a {
        padding: 0.5rem 0;
        font-weight: 500;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent);
        transition: width 0.3s ease;
    }

    .nav-links a:hover {
        background: transparent;
    }

    .nav-links a:hover::after,
    .nav-links a:focus::after {
        width: 100%;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-text);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.logo-svg {
    margin-right: 4px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    background-color: var(--accent);
    color: white !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 0.3rem;
    box-shadow: 0 4px 6px rgba(140, 82, 255, 0.2);
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(140, 82, 255, 0.3);
}

.nav-cta::after {
    display: none;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none; /* Hidden by default */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.75rem;
    z-index: 1001;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    width: 44px;
    height: 44px;
    justify-content: center;
}

/* Show mobile menu button only on mobile */
@media (max-width: 991px) {
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /* Hide desktop nav items on mobile */
    .nav-links {
        display: none;
    }
    
    /* Show mobile menu when active */
    .nav-links.active {
        display: block;
    }
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.mobile-menu-btn:active {
    transform: translateY(0);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-text);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Active state for mobile menu button */
.mobile-menu-btn.active {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive navigation */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--secondary-bg);
        flex-direction: column;
        padding: 100px 40px 40px;
        z-index: 90;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

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

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    header::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 80;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    header.menu-open::after {
        opacity: 1;
        visibility: visible;
    }
}

/* SECTION SPECIFIC STYLES */
/* ===== ENHANCED HERO SECTION ===== */
#hero {
    background-color: var(--primary-bg);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #151525 0%, #0a0a14 100%);
    overflow: hidden;
    z-index: 0;
}

/* Interactive hero animation styles */
.abstract-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.8s, transform 0.8s;
}

.floating-text {
    position: absolute;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    pointer-events: none;
    opacity: 0;
    animation: fadeInOut 10s infinite;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 0.4;
    }

    15% {
        opacity: 0.4;
    }

    20% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.magnifier {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 0 25px rgba(200, 200, 255, 0.7),
        inset 0 0 30px rgba(255, 255, 255, 0.15),
        0 0 10px rgba(255, 255, 255, 0.2);
    z-index: 5;
}

.magnifier-content {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: opacity 0.4s ease;
}

.magnifier-content svg {
    width: 80%;
    height: 80%;
    opacity: 0.9;
}

.kan-search-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 900;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.kan-search-text .kan {
    font-size: 50px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #44C8F5, #ED0977);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: -10px;
}

.kan-search-text .search {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.8);
}

.whirlwind {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.whirl-particle {
    position: absolute;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border-radius: 50%;
    opacity: 0.8;
    animation: whirl 2s infinite linear;
}

.w1 { width: 10px; height: 10px; top: 0%; left: 50%; animation-delay: 0s; }
.w2 { width: 15px; height: 15px; top: 14%; left: 85%; animation-delay: 0.2s; }
.w3 { width: 12px; height: 12px; top: 50%; left: 100%; animation-delay: 0.4s; }
.w4 { width: 8px; height: 8px; top: 85%; left: 85%; animation-delay: 0.6s; }
.w5 { width: 15px; height: 15px; top: 100%; left: 50%; animation-delay: 0.8s; }
.w6 { width: 10px; height: 10px; top: 85%; left: 15%; animation-delay: 1.0s; }
.w7 { width: 12px; height: 12px; top: 50%; left: 0%; animation-delay: 1.2s; }
.w8 { width: 8px; height: 8px; top: 15%; left: 15%; animation-delay: 1.4s; }

@keyframes whirl {
    0% { transform: translateX(0) translateY(0) scale(1); }
    50% { transform: translateX(60px) translateY(60px) scale(2); }
    100% { transform: translateX(0) translateY(0) scale(1); }
}

.magnifier-handle {
    position: absolute;
    width: 25px;
    height: 100px;
    background: linear-gradient(to bottom, rgba(180, 180, 180, 0.7), rgba(80, 80, 80, 0.9));
    border-radius: 0 0 10px 10px;
    transform: rotate(45deg);
    bottom: -45px;
    right: -5px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.magnifier-glass-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0.2) 10%,
            rgba(255, 255, 255, 0) 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.trail {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
}

.talent-words {
    position: absolute;
    font-weight: 700;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0.4;
    text-transform: uppercase;
    transform: scale(0.5);
    transition: all 0.8s ease;
    z-index: 4;
    pointer-events: auto;
}

.connect-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.triangle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.triangle {
    position: absolute;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    border-radius: 4px;
    transition: transform 0.1s ease-out;
    opacity: 0.8;
    will-change: transform;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(circle at 25% 25%, var(--accent) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--accent) 1px, transparent 1px);
    background-size: 25px 25px;
    background-position: 0 0, 0 0;
    animation: particleAnimation 100s linear infinite;
    opacity: 0.2;
}

.hero-particles::after {
    background-size: 40px 40px;
    animation-duration: 130s;
    opacity: 0.1;
}

@keyframes particleAnimation {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 1000px 1000px, -1000px -1000px;
    }
}

/* Hero content styles */
.glass-card {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 2.5rem;
    border-radius: 20px;
    background: rgba(21, 21, 37, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    transform-style: preserve-3d;
    overflow: hidden;
}

.glass-card:focus-within {
    box-shadow: 0 8px 32px rgba(140, 82, 255, 0.3);
    outline: none;
}

.talent-keywords-summary {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.7), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 8s infinite linear;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes shimmer {
    0% { background-position: -500px 0; }
    100% { background-position: 500px 0; }
}

@keyframes shine {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
}

.hero-content {
    max-width: 800px;
    position: relative;
}

.hero-tagline {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.hero-tagline::before {
    content: '';
    position: absolute;
    height: 1px;
    width: 60px;
    background-color: var(--accent);
    top: 50%;
    right: -80px;
}

/* Text highlights and emphasis styles */
.highlight,
.highlight-text {
    color: var(--accent);
    position: relative;
}

.emphasis {
    font-weight: 600;
    color: var(--primary-text);
    border-bottom: 2px dashed var(--accent);
}

.hero-buttons {
    margin-top: 2.5rem;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute; /* Changed from fixed to absolute so it stays in hero */
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10; /* Lower z-index as it's only in hero section */
    pointer-events: auto; /* Ensure clickable */
}

.hero-scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Visible class explicitly defined */
.hero-scroll-indicator.visible {
    opacity: 0.7;
    visibility: visible;
    pointer-events: auto;
}

/* Hidden class for scroll indicator */
.hero-scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(10px);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--accent);
    border-radius: 13px;
    margin-bottom: 8px;
    position: relative;
}

.wheel {
    position: absolute;
    height: 6px;
    width: 2px;
    background-color: var(--accent);
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    animation: mouseWheel 1.5s infinite;
    opacity: 0.75;
}

@keyframes mouseWheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 0.75;
    }

    20% {
        transform: translate(-50%, 6px);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, 12px);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, 0);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    #hero {
        padding-top: 100px;
        padding-bottom: 80px;
    }

    .hero-tagline::before {
        width: 30px;
        right: -40px;
    }

    .hero-scroll-indicator {
        bottom: 20px;
    }
}

/* ===== ENHANCED PROBLEM SECTION ===== */
#problem {
    background-color: var(--secondary-bg);
    position: relative;
    overflow: hidden;
}

/* General section styling elements */
.section-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
}

/* Problem container layout */
.problem-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

@media (min-width: 992px) {
    .problem-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* Statistics cards */
.problem-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .problem-stats {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

.stat-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.7s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-card:hover::before {
    left: 100%;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--secondary-text);
    line-height: 1.4;
}

.stat-source {
    font-size: 0.8rem;
    color: var(--secondary-text);
    opacity: 0.7;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Improved problem list */
.problem-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.problem-list h3 {
    margin-bottom: 1.5rem;
}

.problem-list li {
    display: flex;
    margin-bottom: 1.5rem;
    background-color: rgba(37, 37, 37, 0.5);
    padding: 1.25rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.problem-list li:hover {
    background-color: var(--card-bg);
    transform: translateX(5px);
}

.bullet-icon {
    margin-right: 1rem;
    font-size: 1.3rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.problem-list li strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-text);
    font-size: 1.05rem;
}

.problem-list li p {
    margin: 0;
    font-size: 0.95rem;
}

/* Promise block styling */
.promise-block {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    border-left: 4px solid var(--accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promise-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.promise-block p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 1.2rem 0;
    color: var(--primary-text);
}

.promise-block h3 {
    font-size: 1.7rem;
}

.promise-icon {
    background-color: var(--accent);
    color: white;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1rem;
}

.text-button {
    display: inline-flex;
    align-items: center;
    margin-top: 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.text-button .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {
    .problem-container {
        gap: 2rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

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

    .problem-list li {
        padding: 1rem;
    }
}

/* Solution Section */
#solution {
    background-color: var(--primary-bg);
}

.solution-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.solution-step {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-right: 2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 8px rgba(140, 82, 255, 0.1);
    transition: all 0.3s ease;
}

.solution-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 0 0 12px rgba(140, 82, 255, 0.15);
}

.solution-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 0.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.solution-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--accent);
    opacity: 0.7;
}

.solution-step:hover .solution-card {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.solution-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.solution-step:hover .solution-card .icon {
    transform: scale(1.2);
}

.card-content {
    margin-top: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--secondary-text);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.centered-link-container {
    text-align: center;
    margin-top: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-line {
        left: 25px;
    }

    .solution-step {
        margin-bottom: 2.5rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 1.5rem;
    }

    .solution-card {
        padding: 1.5rem;
    }

    .solution-step:hover .solution-card {
        transform: translateX(5px);
    }
}

/* Services Section */
#services {
    background-color: var(--primary-bg);
    position: relative;
    padding-top: 6rem;
    overflow: hidden;
}

.services-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.services-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

/* Services Tabs */
.services-tabs {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0 3rem;
    position: relative;
    z-index: 2;
}

.service-tab {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-text);
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.service-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: background-color 0.3s ease;
    border-radius: 3px;
}

.service-tab:hover {
    color: var(--primary-text);
}

.service-tab.active {
    color: var(--accent);
}

.service-tab.active::after {
    background-color: var(--accent);
}

.service-tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Service Panels */
.services-container {
    position: relative;
}

.service-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-panel.active {
    display: block;
    opacity: 1;
}

/* Service Header */
.service-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 1.5rem;
}

.service-icon-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(140, 82, 255, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: white;
}

.service-intro {
    flex: 1;
}

.service-intro h3 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--primary-text);
}

.service-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secondary-text);
}

/* Service Features */
.service-features {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .service-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
    display: inline-block;
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-text);
}

.feature-card p {
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

/* Service CTA */
.service-cta {
    text-align: center;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    #services {
        padding-top: 4rem;
    }

    .services-divider svg {
        height: 70px;
    }

    .service-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-intro {
        text-align: center;
    }
}

/* Why Us Section */
/* ===== WHY US SECTION ===== */
#why-us {
    background-color: var(--primary-bg);
    position: relative;
    padding-top: 6rem;
    overflow: hidden;
}

.why-us-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.why-us-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.why-us-intro {
    max-width: 800px;
    margin: 2rem auto 3rem;
    text-align: center;
}

.why-us-intro p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--secondary-text);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.why-us-card {
    background-color: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.why-us-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.why-us-icon-container {
    margin-bottom: 1.5rem;
    display: inline-block;
}

.why-us-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.why-us-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-text);
}

.why-us-card .why-us-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    margin: 0.5rem 0 1.25rem;
    border-radius: 2px;
    position: static;
    transform: none;
}

.why-us-card p {
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.why-us-points {
    padding: 0;
    list-style-type: none;
    margin-top: auto;
}

.why-us-points li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.check-icon {
    color: var(--accent);
    margin-right: 0.5rem;
    font-weight: bold;
}

.why-us-cta {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    #why-us {
        padding-top: 4rem;
    }

    .why-us-divider svg {
        height: 70px;
    }
}

/* Expertise Section */
#expertise {
    background-color: var(--secondary-bg);
    position: relative;
    padding-top: 6rem;
    overflow: hidden;
}

.expertise-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.expertise-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.expertise-intro {
    max-width: 800px;
    margin: 2rem auto 3rem;
    text-align: center;
}

.expertise-intro p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--secondary-text);
}

.expertise-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 3rem;
}

.expertise-panel {
    margin-bottom: 3rem;
}

.expertise-panel-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.expertise-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.expertise-panel-header h3 {
    font-size: 1.8rem;
    color: var(--primary-text);
    position: relative;
}

.expertise-panel-header h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .expertise-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.expertise-card {
    background-color: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.expertise-card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.expertise-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-text);
}

.expertise-card p {
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: auto;
}

.expertise-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.expertise-category {
    background-color: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-title {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.category-icon {
    font-size: 1.8rem;
    margin-right: 1rem;
    color: var(--accent);
}

.category-title h4 {
    font-size: 1.3rem;
    color: var(--primary-text);
    margin: 0;
}

.role-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.role-checkbox {
    display: inline-block;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
}

.role-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.role-label {
    display: inline-block;
    background-color: rgba(140, 82, 255, 0.1);
    color: var(--primary-text);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.role-input:checked+.role-label {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 3px 10px rgba(140, 82, 255, 0.3);
    transform: translateY(-2px);
}

.role-checkbox:hover .role-label {
    background-color: rgba(140, 82, 255, 0.2);
    transform: translateY(-2px);
}

.role-input:focus-visible+.role-label {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.expertise-chip {
    background-color: rgba(140, 82, 255, 0.1);
    color: var(--primary-text);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.expertise-chip:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.expertise-cta {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hidden {
    display: none !important;
}

.roles-cta .selected-count {
    display: inline-block;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    #expertise {
        padding-top: 4rem;
    }

    .expertise-divider svg {
        height: 70px;
    }

    .expertise-panel-header {
        flex-direction: column;
        text-align: center;
    }

    .expertise-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .expertise-panel-header h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Clients Section */
#clients {
    background-color: var(--primary-bg);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 576px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

.client-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(1.5);
    height: 100px;
}

.client-logo:hover {
    filter: grayscale(0%);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-color: white;
}

.client-logo img {
    max-width: 85%;
    max-height: 50px;
    object-fit: contain;
}

/* Ensure proper contrast for dark-colored logos when in grayscale */
.client-logo:nth-child(2) img,
/* PwC */
.client-logo:nth-child(9) img {
    /* Deloitte */
    filter: brightness(0.95) contrast(1.1);
}

/* Responsive adjustments for client logos */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-logo {
        height: 80px;
        padding: 1rem;
    }

    .client-logo img {
        max-height: 40px;
    }
}

/* Contact Section */
#contact {
    background-color: var(--secondary-bg);
    position: relative;
    padding-top: 6rem;
    overflow: hidden;
}

/* Section divider styling */
.section-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.divider-fill {
    fill: var(--primary-bg);
}

/* Contact layout */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (min-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* Contact info side */
.contact-intro {
    margin-bottom: 2rem;
}

.contact-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secondary-text);
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    background-color: var(--card-bg);
    padding: 1.25rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--accent);
}

.contact-detail h4 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--primary-text);
}

.contact-link {
    color: var(--secondary-text);
    transition: color 0.3s ease;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.contact-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

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

.contact-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.location-tags span {
    background-color: rgba(140, 82, 255, 0.1);
    color: var(--primary-text);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.location-tags span:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.contact-cta {
    margin-top: 2rem;
}

/* Contact form side */
.contact-form-wrapper {
    background-color: var(--card-bg);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

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

.contact-form h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

/* Selected Roles Styling */
.selected-roles-wrapper {
    background-color: rgba(140, 82, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.selected-roles-wrapper.has-selections {
    border-left: 3px solid var(--accent);
}

.roles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.selected-roles-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0;
    display: inline-block;
}

.select-roles-btn {
    font-size: 0.85rem;
    color: var(--accent);
    background-color: rgba(140, 82, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.select-roles-btn:hover,
.select-roles-btn:focus {
    background-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.select-roles-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.selected-roles {
    min-height: 1.5rem;
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.4;
}

.role-tag {
    display: inline-flex;
    align-items: center;
    background-color: rgba(140, 82, 255, 0.1);
    color: var(--primary-text);
    padding: 0.25rem 0.6rem 0.25rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    margin: 0.25rem 0.3rem 0.25rem 0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.role-tag:hover {
    background-color: rgba(140, 82, 255, 0.2);
}

.role-tag .remove-tag {
    margin-left: 0.4rem;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--secondary-text);
    transition: all 0.2s ease;
}

.role-tag:hover .remove-tag {
    background-color: rgba(0, 0, 0, 0.15);
    color: var(--primary-text);
}

.role-tag .remove-tag:hover {
    background-color: var(--accent);
    color: white;
}

/* Floating label effect */
.floating-label-group {
    position: relative;
}

.floating-input {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #3a3a3a;
    padding: 1.5rem 0 0.7rem; /* Increased padding top and bottom */
    font-size: 1rem;
    color: var(--primary-text);
    border-radius: 0;
    /* Removed outline for cleaner look */
    box-shadow: none;
    transition: border-color 0.3s ease;
    margin-bottom: 1.5rem; /* Add more space between form fields */
}

.floating-input:focus,
.floating-input:focus-visible,
.floating-input:not(:placeholder-shown) {
    border-color: var(--accent);
    outline: none;
}

/* Ensure keyboard users get a visual indication of focus */
.floating-input:focus-visible {
    box-shadow: 0 2px 0 0 var(--accent);
}

/* Ensure role tag has proper focus states for keyboard navigation */
/* Submit button specific focus enhancement with shadow (other focus styles unified above) */
.submit-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(140, 82, 255, 0.3);
}

.floating-label {
    position: absolute;
    top: 0.5rem;    
    left: 0;
    pointer-events: none;
    color: var(--secondary-text);
    font-size: 0.9rem; /* Slightly smaller font */
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.floating-input:focus~.floating-label,
.floating-input:not(:placeholder-shown)~.floating-label {
    top: 0;
    font-size: 0.85rem;
    color: var(--accent);
}

/* To support the floating-label with the :not(:placeholder-shown) selector */
.floating-input::placeholder {
    opacity: 0;
    visibility: hidden;
}

.floating-input:focus::placeholder {
    opacity: 0.5;
    visibility: visible;
}

textarea.floating-input {
    min-height: 120px;
    resize: vertical;
}

.form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

.submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-text);
    opacity: 0.7;
}

@media (max-width: 768px) {
    #contact {
        padding-top: 4rem;
    }

    .section-divider svg {
        height: 70px;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--card-bg);
    color: var(--secondary-text);
    position: relative;
    margin-top: 3rem;
}

/* Footer Divider */
.footer-divider {
    position: absolute;
    top: -120px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.footer-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

/* Footer Content */
.footer-content {
    padding: 4rem 0 3rem;
    background-color: var(--card-bg);
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 2fr;
        gap: 2rem;
    }
}

/* Footer Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.footer-logo span {
    font-weight: 400;
    opacity: 0.8;
    font-size: 1.5rem;
    margin-left: 0.25rem;
}

.footer-tagline {
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: var(--secondary-text);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(140, 82, 255, 0.1);
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.social-icon {
    font-size: 1.1rem;
    font-style: normal;
}

/* Footer Navigation */
.footer-nav h4,
.footer-contact h4,
.footer-subscribe h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--primary-text);
    position: relative;
    display: inline-block;
}

.footer-nav h4::after,
.footer-contact h4::after,
.footer-subscribe h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-nav ul,
.footer-contact ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.8rem;
}

.footer-nav a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-nav a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* Footer Contact */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-icon {
    margin-right: 0.75rem;
    color: var(--accent);
    font-style: normal;
    display: inline-block;
    width: 1.2rem;
}

.contact-link {
    color: var(--accent);
    font-weight: 500;
    display: inline-block;
    margin-top: 0.3rem;
}

.contact-form label {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    font-size: 0.95rem;
}

.mother-site-card {
    background-image: linear-gradient(to right bottom, rgba(140, 82, 255, 0.1), rgba(140, 82, 255, 0.05));
    border-left: 3px solid var(--accent);
}

.mother-site {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-top: 0.4rem;
    margin-bottom: 0.3rem;
}

.card-logo-svg {
    flex-shrink: 0;
}

.visit-site {
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 0.3rem;
    transition: transform 0.3s ease;
}

.mother-site-card:hover .visit-site {
    transform: translateX(5px);
}

/* Footer Subscribe */
.footer-subscribe p {
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .subscribe-form {
        flex-direction: row;
    }
}

.subscribe-input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 0.3rem;
    color: var(--primary-text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-input:focus,
.subscribe-input:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(140, 82, 255, 0.2);
}

.subscribe-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0.3rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.schedule-call-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0.3rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
    position: relative;
}

/* Active state for schedule call button (toggled on) */
.schedule-call-btn.active {
    background-color: var(--btn-secondary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.schedule-call-btn.active::before {
    content: '✓'; /* Checkmark to indicate active state */
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}

.subscribe-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.subscribe-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Footer Bottom */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-divider {
        top: -70px;
    }

    .footer-divider svg {
        height: 70px;
    }

    .footer-content {
        padding: 3rem 0 2rem;
    }

    .footer-logo {
        font-size: 1.5rem;
    }

    .footer-logo span {
        font-size: 1.3rem;
    }

    .subscribe-form {
        width: 100%;
    }
}

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

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

/* Desktop Navigation */
.nav-links {
    display: flex;
    align-items: center;
}

/* Mobile menu styles */
@media (max-width: 991px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 1rem;
        right: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        opacity: 0;
        background: rgba(18, 18, 18, 0.95);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .nav-links.active {
        max-height: calc(100vh - 100px);
        opacity: 1;
        padding: 1rem 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        margin: 0.5rem 1rem;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: calc(0.1s * var(--i));
    }
}

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

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

/* Subtle animation variant for staggered effects */
.fade-in-1 {
    transition-delay: 0.1s;
}

.fade-in-2 {
    transition-delay: 0.2s;
}

/* Combined fade-in staggered transitions for performance */
.fade-in-1 { transition-delay: 0.1s; }
.fade-in-2 { transition-delay: 0.2s; }
.fade-in-3 { transition-delay: 0.3s; }
.fade-in-4 { transition-delay: 0.4s; }
/* All fade-in elements use transform/opacity for GPU acceleration */

/* ===== ENHANCED VISUAL EFFECTS ===== */

/* Back to top button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: none;
}

.back-to-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-5px);
}

.back-to-top-btn:focus-visible {
    outline: 2px solid var(--accent-hover);
    outline-offset: 2px;
}

/* Card and hover effects */
.solution-card,
.service-card {
    position: relative;
    overflow: hidden;
}

.solution-card::before,
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.solution-card:hover::before,
.service-card:hover::before {
    transform: scaleX(1);
}

.solution-card:hover,
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.solution-card .icon,
.service-card .icon {
    transition: transform 0.3s ease;
}

.solution-card:hover .icon,
.service-card:hover .icon {
    transform: scale(1.2);
}

/* Logo hover effect */
.logo span {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.logo:hover span {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(140, 82, 255, 0.5);
}

/* Pulse animation for logo */
.pulse {
    animation: pulse 0.8s ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Form success message */
.form-success-message {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 5px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.form-success-message p {
    color: #2ecc71;
    font-weight: 500;
}

/* Header hidden class for scroll effects */
.header-hidden {
    transform: translateY(-100%);
}

/* Enhanced hero background with subtle gradient */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(140, 82, 255, 0.1) 0%, rgba(18, 18, 18, 0) 70%);
}

/* Expertise chip hover effect */
.expertise-chip {
    transition: all 0.3s ease;
}

.expertise-chip-hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: var(--accent);
    color: white;
}

/* Media queries for responsive animations */
@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    /* Reduce animation intensities on mobile for better performance */
    .solution-card:hover,
    .service-card:hover {
        transform: translateY(-5px);
    }
    /* Fade-in classes: ensure transitions use GPU-accelerated properties */
    
}


/* Combined fade-in staggered transitions for performance */
.fade-in-1 { transition-delay: 0.1s; }
.fade-in-2 { transition-delay: 0.2s; }
.fade-in-3 { transition-delay: 0.3s; }
.fade-in-4 { transition-delay: 0.4s; }
/* All fade-in elements use transform/opacity for GPU acceleration */