/* ============================================================
   MELYN — Component Styles
   ============================================================ */
@import './animations.css';

/* ===== HEADER ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    z-index: 200;
    width: 0;
    background: var(--gradient-brand);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
    transition: width 0.1s linear;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 100;
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    background: rgba(5, 10, 24, 0.7);
    border-bottom: 1px solid rgba(6, 182, 212, 0.08);
    overflow: visible;
    transition: height var(--duration-normal) var(--ease-out-expo),
        background var(--duration-normal) ease,
        box-shadow var(--duration-normal) ease,
        border-color var(--duration-normal) ease;
}

.header.scrolled {
    height: 3.5rem;
    background: rgba(5, 10, 24, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 60px rgba(6, 182, 212, 0.05);
    border-color: rgba(6, 182, 212, 0.2);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 var(--space-lg);
    gap: var(--space-lg);
}

/* --- Logo --- */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    text-decoration: none;
    position: relative;
}

.logo-mark {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.3));
    transition: filter var(--duration-normal) ease, transform var(--duration-normal) ease;
}

.header-logo:hover .logo-mark {
    filter: drop-shadow(0 0 16px rgba(6, 182, 212, 0.5));
    transform: scale(1.05);
}

.header.scrolled .logo-mark {
    width: 2rem;
    height: 2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, #ffffff 0%, #06B6D4 50%, #1E66F5 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

.header.scrolled .logo-name {
    font-size: 1.1rem;
}

.logo-tagline {
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(6, 182, 212, 0.5);
    margin-top: 2px;
    transition: opacity var(--duration-normal) ease;
}

.header.scrolled .logo-tagline {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

/* --- Nav Links --- */
.header-nav {
    margin-left: auto;
    display: none;
}

@media (min-width: 768px) {
    .header-nav {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all var(--duration-normal) var(--ease-out-expo);
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(6, 182, 212, 0.06);
    opacity: 0;
    transition: opacity var(--duration-fast) ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-cyan);
    transform: translateX(-50%) scale(0);
    transition: transform var(--duration-normal) var(--ease-out-expo);
    box-shadow: 0 0 8px var(--color-cyan);
}

.nav-link:hover {
    color: var(--color-text-primary);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    color: var(--color-text-primary);
}

.nav-link.active::before {
    opacity: 1;
    background: rgba(6, 182, 212, 0.1);
}

.nav-link.active::after {
    transform: translateX(-50%) scale(1);
}

.nav-link-text {
    position: relative;
    z-index: 1;
}

/* --- Header CTA --- */
.header-cta {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(30, 102, 245, 0.2));
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out-expo);
    flex-shrink: 0;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .header-cta {
        display: inline-flex;
    }
}

.header-cta::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
    z-index: 0;
}

.header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25);
    border-color: transparent;
}

.header-cta:hover::before {
    opacity: 1;
}

.header-cta span,
.header-cta-dot {
    position: relative;
    z-index: 1;
}

.header-cta-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Language switcher */
.lang-switch {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1;
}

.lang-switch:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    transform: translateY(-1px);
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.flag-img {
    width: 1.4rem;
    height: auto;
    border-radius: 2px;
}

.lang-label {
    text-transform: uppercase;
}

.mobile-lang-switch {
    display: flex;
    justify-content: center;
    margin: var(--space-sm) auto;
    width: fit-content;
}

/* --- Mobile Menu Button --- */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.12);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all var(--duration-fast) ease;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle:hover {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.1);
}

.menu-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* --- Mobile Menu --- */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 98;
}

.mobile-menu-overlay.open {
    display: block;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    z-index: 99;
    background: rgba(8, 15, 30, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(6, 182, 212, 0.1);
    padding: var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-out-expo);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.mobile-menu.open {
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    animation: slide-in-right 0.4s var(--ease-out-expo);
}

@keyframes slide-in-right {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-sm);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) ease;
}

.mobile-nav-link:hover {
    color: var(--color-cyan);
    background: rgba(6, 182, 212, 0.06);
    padding-left: var(--space-md);
}

.mobile-nav-icon {
    width: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-cyan);
    opacity: 0.6;
}

.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0.875rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: #fff;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
    transition: all var(--duration-normal) ease;
}

.mobile-menu-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.4);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-bg-deep);
}

/* --- Hero Slideshow --- */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide--active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
            rgba(5, 10, 24, 0.7) 0%,
            rgba(5, 10, 24, 0.6) 50%,
            rgba(5, 10, 24, 0.85) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float-slow 20s ease-in-out infinite;
    opacity: 0.5;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 102, 245, 0.2), transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -7s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 900px;
    padding: var(--space-4xl) var(--space-lg);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-lg);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-full);
    background: rgba(6, 182, 212, 0.08);
    margin-bottom: var(--space-xl);
    animation: fade-in-up 0.8s var(--ease-out-expo);
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-cyan);
    animation: glow-pulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, #fff 0%, var(--color-cyan) 40%, var(--color-blue) 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s ease-in-out infinite, fade-in-up 1s var(--ease-out-expo);
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
    animation: fade-in-up 1s 0.2s var(--ease-out-expo) backwards;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    animation: fade-in-up 1s 0.4s var(--ease-out-expo) backwards;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-glass-border-hover);
}

.btn-outline:hover {
    background: rgba(6, 182, 212, 0.08);
    border-color: var(--color-cyan);
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--color-blue);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.btn-white:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent, transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    transition: background var(--duration-normal) ease;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    background: var(--color-bg-card-hover);
}

.glass-card:hover::before {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(30, 102, 245, 0.4));
}

/* ===== SERVICE CARD ===== */
.service-card {
    display: flex;
    flex-direction: column;
}

.service-card-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    margin-bottom: var(--space-lg);
    transition: all var(--duration-normal) ease;
}

.glass-card:hover .service-card-icon {
    background: rgba(6, 182, 212, 0.15);
    box-shadow: var(--shadow-glow-cyan);
}

.service-card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.service-card-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.service-card-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.service-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.service-tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    background: rgba(6, 182, 212, 0.08);
    color: var(--color-cyan);
    border: 1px solid rgba(6, 182, 212, 0.12);
}

.service-card-arrow {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-cyan);
    transition: gap var(--duration-normal) ease;
}

.glass-card:hover .service-card-arrow {
    gap: var(--space-md);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-cyan);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

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

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

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.about-feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-brand);
    margin-top: 8px;
    flex-shrink: 0;
}

.about-feature-text {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.about-logo-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: var(--space-md);
}

.about-logo-wrap img {
    max-width: 260px;
    width: 100%;
    filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.15));
    animation: float 6s ease-in-out infinite;
}

/* --- Separated Team Section --- */
.about-team-section {
    margin-top: var(--space-3xl);
}

.about-team-divider {
    height: 1px;
    background: linear-gradient(to right, rgba(6, 182, 212, 0.2), rgba(255, 255, 255, 0.06), transparent);
    margin-bottom: var(--space-2xl);
}

.about-team-heading {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--color-text-primary);
}

/* ===== TEAM ===== */
.team-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.team-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 2px solid var(--color-glass-border);
    transition: transform var(--duration-normal) ease;
}

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

.team-name {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
}

.team-role {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

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

.stat-item {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.stat-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

/* ===== DIVIDER ===== */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(6, 182, 212, 0.4), transparent);
    margin: var(--space-xl) 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    position: relative;
    border-radius: var(--radius-xl);
    padding: var(--space-4xl) var(--space-xl);
    text-align: center;
    overflow: hidden;
    background: linear-gradient(-45deg, rgba(30, 102, 245, 0.12), rgba(6, 182, 212, 0.12), rgba(124, 58, 237, 0.08), rgba(30, 102, 245, 0.12));
    background-size: 400% 400%;
    animation: gradient-shift 16s ease infinite;
    border: 1px solid var(--color-glass-border);
}

.cta-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.cta-desc {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .cta-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    padding: 0 0 var(--space-xl);
    background: linear-gradient(180deg, var(--color-bg-deep) 0%, rgba(3, 7, 18, 1) 100%);
    overflow: hidden;
}

.footer-glow-border {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(6, 182, 212, 0.6) 25%, rgba(30, 102, 245, 0.6) 50%, rgba(124, 58, 237, 0.5) 75%, transparent 100%);
    margin-bottom: var(--space-4xl);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2), 0 0 60px rgba(30, 102, 245, 0.1);
}

/* --- Upper: Brand + Newsletter --- */
.footer-upper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
    .footer-upper {
        grid-template-columns: 1.5fr 1fr;
        align-items: start;
    }
}

.footer-brand-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand-separator {
    color: rgba(255, 255, 255, 0.15);
    font-size: 1.25rem;
    font-weight: 300;
}

.footer-brand-sub {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
}

.footer-brand-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 420px;
}

.footer-socials {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--color-text-muted);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.social-link svg {
    width: 1.1rem;
    height: 1.1rem;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link--linkedin:hover {
    color: #0A66C2;
    background: rgba(10, 102, 194, 0.1);
    border-color: rgba(10, 102, 194, 0.25);
    box-shadow: 0 4px 16px rgba(10, 102, 194, 0.2);
}

.social-link--x:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

.social-link--github:hover {
    color: #C9D1D9;
    background: rgba(201, 209, 217, 0.08);
    border-color: rgba(201, 209, 217, 0.2);
    box-shadow: 0 4px 16px rgba(201, 209, 217, 0.1);
}

/* --- Newsletter --- */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-newsletter-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
}

.footer-newsletter-form {
    display: flex;
    gap: 0;
    border-radius: var(--radius-full);
    border: 1px solid rgba(6, 182, 212, 0.15);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.footer-newsletter-form:focus-within {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.08);
}

.footer-newsletter-input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    font-family: var(--font-body);
    outline: none;
    min-width: 0;
}

.footer-newsletter-input::placeholder {
    color: var(--color-text-muted);
}

.footer-newsletter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    flex-shrink: 0;
    background: var(--gradient-brand);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all var(--duration-fast) ease;
}

.footer-newsletter-btn:hover {
    filter: brightness(1.15);
}

.footer-newsletter-btn svg {
    width: 1.1rem;
    height: 1.1rem;
}

/* --- Divider --- */
.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.06), transparent);
    margin-bottom: var(--space-3xl);
}

/* --- Columns --- */
.footer-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-3xl);
}

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

.footer-heading {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding: 0.3rem 0;
    transition: all var(--duration-fast) ease;
    cursor: pointer;
}

.footer-link-arrow {
    font-size: 0.7rem;
    color: var(--color-cyan);
    opacity: 0;
    transform: translateX(-4px);
    transition: all var(--duration-fast) ease;
}

.footer-link:hover {
    color: var(--color-text-primary);
    padding-left: 0.25rem;
}

.footer-link:hover .footer-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* --- Contact Cards --- */
.footer-contact-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all var(--duration-fast) ease;
}

.footer-contact-item:hover {
    background: rgba(6, 182, 212, 0.04);
    border-color: rgba(6, 182, 212, 0.1);
}

.footer-contact-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(6, 182, 212, 0.08);
    color: var(--color-cyan);
}

.footer-contact-icon svg {
    width: 1rem;
    height: 1rem;
}

.footer-contact-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.footer-contact-value {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.footer-contact-link {
    text-decoration: none;
    display: block;
    transition: color var(--duration-fast) ease;
}

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

/* --- Bottom Bar --- */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--space-xl);
    text-align: center;
}

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

.footer-bottom p {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-bottom-link {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--duration-fast) ease;
}

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

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    z-index: 90;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-normal) ease, transform var(--duration-normal) ease;
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.3);
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(6, 182, 212, 0.4);
}

.back-to-top svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    z-index: 200;
    background: var(--gradient-brand);
    width: 0;
    transition: width 100ms linear;
    pointer-events: none;
    animation: progress-glow 2s ease-in-out infinite;
}

/* ===== SERVICE DETAIL PAGE ===== */
.service-hero {
    position: relative;
    min-height: 24rem;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: var(--header-height);
}

@media (min-width: 768px) {
    .service-hero {
        min-height: 30rem;
    }
}

.service-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1) brightness(0.7);
}

.service-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 10, 24, 0.3) 0%, rgba(5, 10, 24, 0.9) 70%, var(--color-bg-deep) 100%);
}

.service-hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg) var(--space-2xl);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.breadcrumb a {
    color: var(--color-text-secondary);
    transition: color var(--duration-fast) ease;
}

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

.breadcrumb .sep {
    color: var(--color-text-muted);
}

.breadcrumb .current {
    color: var(--color-cyan);
    font-weight: 600;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

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

.detail-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.detail-list-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.detail-list-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.dot-cyan {
    background: var(--color-cyan);
}

.dot-blue {
    background: var(--color-blue);
}

/* ===== PAGE TRANSITION ===== */
.page-transition-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-transition-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
        transform var(--duration-slow) var(--ease-out-expo);
}

/* ===== CHATBOT ===== */

/* --- Bubble Button --- */
.chatbot-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(30, 102, 245, 0.35);
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.chatbot-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 32px rgba(30, 102, 245, 0.5);
}

.chatbot-bubble--active {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.chatbot-bubble-icon {
    width: 24px;
    height: 24px;
}

.chatbot-bubble-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-brand);
    opacity: 0;
    animation: chatbotPulse 3s ease-in-out infinite;
    pointer-events: none;
}

.chatbot-bubble--active .chatbot-bubble-pulse {
    animation: none;
    opacity: 0;
}

@keyframes chatbotPulse {

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

    50% {
        opacity: 0.25;
        transform: scale(1.4);
    }
}

/* --- Chat Window --- */
.chatbot-window {
    position: fixed;
    bottom: 92px;
    right: 24px;
    z-index: 10001;
    width: 400px;
    max-width: calc(100vw - 48px);
    height: 560px;
    max-height: calc(100vh - 140px);
    border-radius: var(--radius-xl);
    background: rgba(10, 15, 30, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(30, 102, 245, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.35s var(--ease-out-expo),
        transform 0.35s var(--ease-out-expo);
}

.chatbot-window--open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* --- Header --- */
.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.chatbot-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.chatbot-avatar svg {
    width: 100%;
    height: 100%;
}

.chatbot-header-name {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: 0.03em;
}

.chatbot-header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.chatbot-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.chatbot-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
}

.chatbot-close svg {
    width: 16px;
    height: 16px;
}

/* --- Messages Area --- */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* --- Chat Messages --- */
.chat-message {
    display: flex;
    gap: var(--space-sm);
    max-width: 90%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-message--enter {
    opacity: 0;
    transform: translateY(12px);
}

.chat-message--bot {
    align-self: flex-start;
}

.chat-message--user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message-avatar {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.chat-message-avatar svg {
    width: 100%;
    height: 100%;
}

.chat-message-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.chat-message-bubble {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: 0.835rem;
    line-height: 1.65;
    word-wrap: break-word;
}

.chat-message--bot .chat-message-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--color-text-secondary);
    border-bottom-left-radius: 4px;
}

.chat-message--bot .chat-message-bubble strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.chat-message--bot .chat-message-bubble a {
    color: var(--color-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.chat-message--bot .chat-message-bubble a:hover {
    color: var(--color-blue);
    text-decoration: underline;
}

.chat-message--user .chat-message-bubble {
    background: var(--gradient-brand);
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* --- Message Timestamps --- */
.chat-message-time {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    opacity: 0.6;
    padding: 0 4px;
}

.chat-message--user .chat-message-time {
    text-align: right;
}

.chat-bullet {
    color: var(--color-cyan);
    margin-right: 2px;
}

/* --- Typing Indicator --- */
.chat-typing {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    align-self: flex-start;
}

.chat-typing-bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    border-bottom-left-radius: 4px;
}

.chat-typing-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-style: italic;
    animation: typingTextPulse 1.5s ease-in-out infinite;
}

@keyframes typingTextPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.chat-typing-dots {
    display: flex;
    gap: 3px;
}

.chat-typing-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-text-muted);
    animation: chatTypingBounce 1.2s ease-in-out infinite;
}

.chat-typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes chatTypingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* --- Quick Replies --- */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 36px;
    margin-top: 4px;
}

.quick-reply {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.25);
    background: rgba(6, 182, 212, 0.06);
    color: var(--color-cyan);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(8px);
    animation: quickReplyEnter 0.35s var(--ease-out-expo) forwards;
    position: relative;
    overflow: hidden;
}

.quick-reply::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.08), transparent);
    transition: left 0.5s ease;
}

.quick-reply:hover::before {
    left: 100%;
}

.quick-reply:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 12px rgba(6, 182, 212, 0.15);
}

@keyframes quickReplyEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Input Area --- */
.chatbot-input-area {
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.chatbot-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chatbot-input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-primary);
    font-size: 0.85rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.25s, background 0.25s;
}

.chatbot-input::placeholder {
    color: var(--color-text-muted);
}

.chatbot-input:focus {
    border-color: rgba(6, 182, 212, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.chatbot-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.chatbot-send:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 16px rgba(30, 102, 245, 0.4);
}

.chatbot-send svg {
    width: 16px;
    height: 16px;
}

/* --- Watermark --- */
.chatbot-watermark {
    text-align: center;
    font-size: 0.6rem;
    color: var(--color-text-muted);
    opacity: 0.45;
    padding: 4px 0 2px;
    letter-spacing: 0.03em;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--gradient-brand);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5);
}

.back-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 3rem;
        height: 3rem;
    }
}

.chatbot-watermark strong {
    color: var(--color-cyan);
    font-weight: 600;
    opacity: 0.7;
}

/* --- Mobile --- */
@media (max-width: 480px) {
    .chatbot-window {
        bottom: 0;
        max-width: 100vw;
        height: calc(100vh - 60px);
        max-height: calc(100vh - 60px);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .chatbot-bubble {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
}

/* --- Enhanced Team Cards --- */
.team-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.team-card-enhanced {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.team-card-enhanced:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.team-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-lg);
}

.team-avatar-enhanced {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 5%;
    /* Slightly more headroom than pure top */
    transform: scale(1.05);
    /* Slight zoom out effect */
    border: 3px solid transparent;
    background: linear-gradient(var(--color-bg-dark), var(--color-bg-dark)) padding-box,
        var(--gradient-brand) border-box;
}

.team-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.team-badge svg {
    width: 16px;
    height: 16px;
    color: white;
}

.team-name-enhanced {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.team-role-enhanced {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.team-location-enhanced {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: var(--space-md);
}

.team-bio-enhanced {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.team-socials-enhanced {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.team-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-social-btn:hover {
    background: var(--gradient-brand);
    color: white;
    transform: scale(1.1);
    border-color: transparent;
}

.team-social-btn svg {
    width: 18px;
    height: 18px;
}

/* --- About Section Slideshow --- */
.about-slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1.3;
    /* Taller to fit vertical portraits and heads */
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--color-bg-card);
}

.about-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 8s linear;
    transform: scale(1.02);
}

.about-slide.active {
    opacity: 1;
    transform: scale(1);
}

.about-slideshow-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 10, 24, 0.4), transparent);
    pointer-events: none;
}

/* --- CEO Page Styles --- */
.ceo-page {
    padding-top: var(--header-height);
    background: var(--color-bg-deep);
}

.ceo-hero {
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.ceo-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.ceo-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (min-width: 992px) {
    .ceo-hero-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.ceo-image-wrap {
    position: relative;
}

.ceo-portrait-container {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.ceo-portrait {
    width: 100%;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center top;
    /* Ensure head is at the very top */
    transform: scale(1.02);
    /* Slight zoom out */
}

.ceo-image-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 10, 24, 0.4), transparent);
    pointer-events: none;
}

.ceo-intro-wrap .section-label {
    margin-bottom: var(--space-md);
}

.ceo-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--space-xl);
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ceo-lead {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.ceo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.ceo-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .ceo-details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.detail-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--color-cyan);
}

.detail-text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.location-tag {
    padding: 0.4rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-cyan);
    transition: all 0.3s ease;
}

.location-tag:hover {
    background: rgba(6, 182, 212, 0.2);
    transform: translateY(-2px);
}