/* 
* Experts Academy - Liquid Gold Theme
* Original Colors + Enhanced Animations
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');

:root {
    --bg-body: #02040a;
    --bg-section-alt: #060c18;
    --primary: #d4af37;
    --primary-glow: rgba(212, 175, 55, 0.3);
    --accent: #d4af37;
    --text-main: #ffffff;
    --text-muted: #a0aab9;
    --text-dim: #556677;
    --border-light: rgba(212, 175, 55, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(2, 4, 10, 0.8);
    --font-main: 'Cairo', sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

/* ============== ANIMATIONS ============== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: var(--primary);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
    }

    50% {
        border-color: var(--accent);
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============== BACKGROUND EFFECTS ============== */
.bg-effects {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.bg-orb:nth-child(1) {
    width: 500px;
    height: 500px;
    top: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06), transparent 70%);
    animation-duration: 25s;
}

.bg-orb:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: 20%;
    left: -5%;
    background: radial-gradient(circle, rgba(100, 120, 200, 0.04), transparent 70%);
    animation-duration: 18s;
    animation-delay: -7s;
}

.bg-orb:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.04), transparent 70%);
    animation-duration: 22s;
    animation-delay: -12s;
}

/* Grid pattern overlay */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ============== HEADER ============== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    /* Balanced initial padding */
    transition: all 0.4s var(--ease-smooth);
}

.header.scrolled {
    padding: 8px 0;
    /* Reduced padding slightly */
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(1.5);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}

.header-hidden {
    transform: translateY(-100%);
    box-shadow: none !important;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-container {
    display: flex;
    justify-content: center;
    /* Center links since logo is now absolute */
    align-items: center;
    position: relative;
}

/* Logo Top - Stays at the top of the page, does not follow scroll */
.logo-top {
    position: absolute;
    top: 30px;
    /* Lowered slightly */
    right: 20px;
    /* Pushed further right */
    z-index: 1100;
    transition: all 0.4s var(--ease-smooth);
}

html[dir="ltr"] .logo-top {
    right: auto;
    left: 20px;
    /* Pushed further left for LTR */
}

.logo-top img {
    height: 250px;
    transition: 0.4s var(--ease-smooth);
    filter: brightness(1.15) contrast(1.1) drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

.logo-top:hover img {
    filter: brightness(1.35) contrast(1.15);
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    letter-spacing: 0.3px;
    padding: 9px 22px;
    border-radius: 50px;
    transition: all 0.4s var(--ease);
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
    color: var(--primary);
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.06);
    font-weight: 700;
}

/* ============== HEADER ACTIONS ============== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

html[dir="ltr"] .header-actions {
    left: auto;
    right: 40px;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s var(--ease);
    font-family: inherit;
}

.lang-toggle:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.lang-icon {
    font-size: 1rem;
}

.lang-text {
    letter-spacing: 1px;
}

/* ============== LTR SUPPORT ============== */
html[dir="ltr"] {
    text-align: left;
}

html[dir="ltr"] .hero-content,
html[dir="ltr"] .section-header,
html[dir="ltr"] .footer-bottom {
    text-align: left;
}

html[dir="ltr"] .section-header {
    text-align: center;
}

html[dir="ltr"] .mobile-sidebar {
    right: auto;
    left: 0;
    transform: translateX(-100%);
}

html[dir="ltr"] .mobile-sidebar.open {
    transform: translateX(0);
}

/* ============== BUTTONS ============== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--primary), #d4a825);
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.4s var(--ease);
    box-shadow: 0 4px 25px rgba(212, 175, 55, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: 0.4s var(--ease);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), #d4a825);
    transition: 0.4s var(--ease);
    z-index: -1;
    border-radius: 50px;
}

.btn-outline:hover::before {
    width: 100%;
}

.btn-outline:hover {
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 4px 25px rgba(212, 175, 55, 0.3);
}

.btn-cta {
    padding: 10px 30px;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    display: inline-block;
    z-index: 1;
    transition: 0.4s var(--ease);
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: 0.4s var(--ease);
    z-index: -1;
    border-radius: 50px;
}

.btn-cta:hover::before {
    width: 100%;
}

.btn-cta:hover {
    color: #000;
}

.desktop-only {
    display: inline-flex;
}

/* ============== HERO ============== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: url('hero-bg.jpg?v=2.1') center top/cover no-repeat;
    width: 100%;
}

@media (min-width: 1025px) {
    .hero {
        background-attachment: fixed;
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(2, 4, 10, 0.3) 0%,
            rgba(2, 4, 10, 0.5) 40%,
            rgba(2, 4, 10, 0.8) 75%,
            #02040a 100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, #02040a);
    z-index: 1;
    pointer-events: none;
}

.hero-small {
    min-height: 55vh;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding-top: 140px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    animation: labelGlow 3s ease-in-out infinite;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: 3.2rem;
    /* Reduced from 4.5rem */
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #fff 0%, #ccc 40%, var(--accent) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 45px;
    max-width: 650px;
    line-height: 2;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ============== SECTION SYSTEM ============== */
.section {
    padding: 120px 0;
    position: relative;
}

.section-alt {
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    /* Increased spacing */
    position: relative;
    padding: 8px 25px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 50px;
    animation: labelGlow 3s ease-in-out infinite;
}

@keyframes labelGlow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.1), 0 0 40px rgba(212, 175, 55, 0.05);
    }

    50% {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.2), 0 0 60px rgba(212, 175, 55, 0.1);
    }
}

.section-label::before,
.section-label::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0.6;
}

.section-label::before {
    background: linear-gradient(-90deg, var(--primary), transparent);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 2;
}

/* ============== GRID LAYOUTS ============== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ============== CARDS ============== */
.card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    transition: 0.5s var(--ease);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(212, 175, 55, 0.15), transparent, transparent);
    animation: rotateBorder 6s linear infinite;
    z-index: -1;
}

.card::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(145deg, rgba(8, 12, 24, 0.98), rgba(2, 4, 10, 0.98));
    border-radius: 19px;
    z-index: -1;
}

@keyframes rotateBorder {
    to {
        transform: rotate(360deg);
    }
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 175, 55, 0.05);
}

.card-number {
    display: none;
}

.card-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 25px;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--primary);
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.9;
}

/* ============== CONTENT BLOCKS ============== */
.content-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.content-text p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.content-highlight {
    background: rgba(212, 175, 55, 0.05);
    border-right: 3px solid var(--primary);
    padding: 20px 25px;
    border-radius: 0 12px 12px 0;
    margin: 25px 0;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 2;
    line-height: 1.9;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 50px 40px;
    margin-top: -100px;
    position: relative;
    z-index: 5;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(212, 175, 55, 0.15), transparent, transparent);
    animation: rotateBorder 6s linear infinite;
    z-index: -1;
}

.stats-bar::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(145deg, rgba(8, 12, 24, 0.98), rgba(2, 4, 10, 0.98));
    border-radius: 19px;
    z-index: -1;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border-light), transparent);
}

.stat-item:first-child::after {
    display: none;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============== TESTIMONIALS ============== */
.testimonial-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    padding: 35px 30px;
    position: relative;
    transition: 0.5s var(--ease);
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(212, 175, 55, 0.15), transparent, transparent);
    animation: rotateBorder 6s linear infinite;
    z-index: 0;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(145deg, rgba(8, 12, 24, 0.98), rgba(2, 4, 10, 0.98));
    border-radius: 19px;
    z-index: 0;
}

.testimonial-card>* {
    position: relative;
    z-index: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 175, 55, 0.05);
}

.testimonial-quote {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body) !important;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    flex-shrink: 0;
}

.testimonial-avatar svg {
    fill: var(--primary);
    width: 22px;
    height: 22px;
}

.testimonial-name {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}

.testimonial-role {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============== PROCESS TIMELINE ============== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-light), var(--border-light), transparent);
}

.process-step {
    text-align: center;
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    padding: 40px 25px;
    overflow: hidden;
    transition: 0.5s var(--ease);
}

.process-step::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(212, 175, 55, 0.15), transparent, transparent);
    animation: rotateBorder 6s linear infinite;
    z-index: 0;
}

.process-step::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(145deg, rgba(8, 12, 24, 0.98), rgba(2, 4, 10, 0.98));
    border-radius: 19px;
    z-index: 0;
}

.process-step>* {
    position: relative;
    z-index: 1;
}

.process-step:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 175, 55, 0.05);
}

.process-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.08);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    position: relative;
    z-index: 2;
    transition: 0.4s;
}

.process-step:hover .process-number {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 30px var(--primary-glow);
}

.process-step h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ============== FAQ ============== */
.faq-item {
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: 0.5s var(--ease);
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.faq-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(212, 175, 55, 0.15), transparent, transparent);
    animation: rotateBorder 6s linear infinite;
    z-index: 0;
}

.faq-item::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(145deg, rgba(8, 12, 24, 0.98), rgba(2, 4, 10, 0.98));
    border-radius: 14px;
    z-index: 0;
}

.faq-item>* {
    position: relative;
    z-index: 1;
}

.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.05);
}

.faq-question {
    padding: 20px 25px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    padding: 0 25px 20px;
    color: var(--text-muted);
    line-height: 2;
    font-size: 0.95rem;
}

/* ============== CASE STUDIES ============== */
.case-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 35px 30px;
    border-right: 3px solid var(--primary);
    transition: 0.5s var(--ease);
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-result {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.case-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.case-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ============== CONTACT ============== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    transition: 0.4s var(--ease);
}

.contact-card:hover {
    transform: translateX(-8px);
    border-color: var(--border-light);
    background: rgba(212, 175, 55, 0.03);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--primary);
}

.contact-card h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 3px;
}

.contact-card p,
.contact-card a {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: rgba(212, 175, 55, 0.03);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.4s;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

/* ============== CLIENTS ============== */
.clients-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-subtle);
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.02));
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.client-logo-wrapper {
    position: relative;
    transition: 0.4s var(--ease);
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    padding: 10px;
    border-radius: 15px;
}

.client-logo {
    max-height: 85px;
    max-width: 240px;
    object-fit: contain;
    filter: brightness(1.1);
    opacity: 0.85;
    transition: 0.4s var(--ease);
}

.client-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.4s var(--ease);
    text-align: center;
    margin-top: 5px;
}

.client-logo-wrapper:hover {
    background: rgba(255, 255, 255, 0.03);
}

.client-logo-wrapper:hover .client-logo {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    opacity: 1;
    transform: scale(1.05);
}

.client-logo-wrapper:hover .client-label {
    color: var(--primary);
    transform: translateY(2px);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s var(--ease);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(10, 15, 30, 0.6);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 80px rgba(212, 175, 55, 0.15);
    position: relative;
    transform: scale(0.8);
    transition: 0.5s var(--ease-bounce);
    max-width: 90%;
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-img {
    max-height: 70vh;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg) scale(1.2);
}

/* Shining Excel Button */
.btn-excel {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 50px;
    background: linear-gradient(135deg, #d4af37, #f7d560);
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px -5px rgba(212, 175, 55, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    margin-top: 60px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-excel svg {
    width: 26px;
    height: 26px;
    fill: #000;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
    transition: 0.4s;
}

/* Shine Effect */
.btn-excel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: 0.7s;
    z-index: 1;
}

.btn-excel:hover::before {
    left: 150%;
    transition: 0.7s;
}

.btn-excel:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px -5px rgba(212, 175, 55, 0.6), 0 0 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #f7d560, #d4af37);
    color: #000;
}

.btn-excel:hover svg {
    transform: scale(1.1) rotate(-5deg);
}

.btn-excel:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

/* ============== FOOTER ============== */
.footer {
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============== SCROLL ANIMATIONS ============== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s var(--ease-smooth);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: 1s var(--ease-smooth);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: 1s var(--ease-smooth);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: 1s var(--ease-smooth);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ============== HAMBURGER MENU BUTTON ============== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.4s var(--ease);
    transform-origin: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* ============== MOBILE SIDEBAR ============== */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 1100;
    pointer-events: none;
    transition: 0.5s var(--ease-smooth);
}

.mobile-overlay.open {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    pointer-events: all;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(2, 4, 10, 0.98), rgba(5, 10, 20, 0.99));
    backdrop-filter: blur(40px);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: -20px 0 80px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.mobile-sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
}

.sidebar-link {
    padding: 16px 30px;
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
    position: relative;
    transition: 0.4s var(--ease);
    border-right: 3px solid transparent;
}

@media (hover: hover) {
    .sidebar-link:hover {
        color: var(--primary);
        background: rgba(212, 175, 55, 0.05);
        border-right-color: var(--primary);
    }
}

.sidebar-link.active {
    color: var(--primary) !important;
    background: rgba(212, 175, 55, 0.1) !important;
    border-right: 4px solid var(--primary) !important;
    font-weight: 800 !important;
}

/* Staggered animation for sidebar links */
.mobile-sidebar.open .sidebar-link {
    animation: slideInLink 0.4s var(--ease-smooth) both;
}

.mobile-sidebar.open .sidebar-link:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-sidebar.open .sidebar-link:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-sidebar.open .sidebar-link:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-sidebar.open .sidebar-link:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-sidebar.open .sidebar-link:nth-child(5) {
    animation-delay: 0.3s;
}

@keyframes slideInLink {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1200px) {
    .nav-links {
        gap: 15px;
    }

    .logo img {
        height: 180px;
    }
}

@media (max-width: 1024px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .section {
        padding: 80px 0;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -80px;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .desktop-only {
        display: none;
    }

    .logo-top {
        position: fixed;
        right: 20px;
        left: auto;
        top: 12px;
        transform: none;
        margin-bottom: 0;
        text-align: right;
        display: block;
        z-index: 1100;
    }
    html[dir="ltr"] .logo-top {
        right: auto;
        left: 20px;
    }

    .logo-top img {
        height: 80px !important;
    }

    .header-actions {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        margin: 0;
        gap: 15px;
        z-index: 1002;
    }

    .nav-container {
        padding: 0 20px !important;
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 15px;
        min-height: 40px;
    }

    .menu-toggle {
        display: flex;
        margin: 0;
    }

    .header {
        padding: 10px 0;
        background: rgba(2, 4, 10, 0.9);
        backdrop-filter: blur(20px);
        width: 100%;
        left: 0;
    }

    .header.scrolled {
        padding: 10px 0;
    }

    .hero-title {
        font-size: 1.6rem;
        /* Reduced from 1.8rem */
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .hero-title br {
        display: none;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .hero-content {
        padding-top: 110px;
        /* Reduced from 160px for compactness */
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
        gap: 15px;
        /* Tighter gap */
    }

    .section {
        padding: 50px 0;
        /* Reduced from 60px */
    }

    .section-title {
        font-size: 1.7rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
        padding: 25px 15px;
        /* Tighter padding */
        margin-top: -40px;
        /* Adjusted */
        gap: 20px;
    }

    .stat-number {
        font-size: 1.8rem;
        /* Smaller */
    }

    /* Client Section Mobile Updates */
    .clients-grid {
        flex-direction: column;
        gap: 30px;
        /* Tighter */
    }

    .client-logo-wrapper {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .client-logo-wrapper:last-child {
        border-bottom: none;
    }

    .client-logo {
        max-height: 80px;
        /* Slightly smaller */
        max-width: 80%;
    }

    .client-label {
        font-size: 0.95rem;
        /* Smaller */
        margin-top: 8px;
        opacity: 0.8;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .container {
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .header {
        padding: 10px 0;
        background: rgba(2, 4, 10, 0.9);
        backdrop-filter: blur(20px);
        width: 100% !important;
        left: 0;
        right: 0;
    }

    .section-label::before,
    .section-label::after {
        width: 30px;
    }

    .hero-content {
        padding-top: 110px;
        text-align: center;
        padding-bottom: 40px;
    }

    .hero-small {
        min-height: 90vh !important;
        /* Make it nearly half-screen/full-screen-ish like index */
    }

    .hero-actions {
        justify-content: center;
        width: 100%;
    }

    /* Fix for grids on mobile */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    /* Improve Reveal on Mobile */
    .reveal,
    .reveal-left,
    .reveal-right {
        transform: translateY(20px) !important;
        transition: 0.8s var(--ease-smooth);
    }

    .reveal.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.3rem;
        /* Reduced from 1.5rem */
        line-height: 1.7;
    }

    .stats-bar {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 25px 15px;
    }

    .stat-item {
        padding: 15px 0;
    }

    .stat-item::after {
        display: none;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .section {
        padding: 35px 0;
        /* More compact */
    }

    .card,
    .testimonial-card,
    .process-step,
    .faq-item {
        padding: 25px 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    /* Prevent mobile horizontal scroll/hang */
    .reveal-left,
    .reveal-right {
        transform: translateY(20px) !important;
    }

    .reveal-left.visible,
    .reveal-right.visible {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }

    .client-logo {
        max-height: 90px;
    }
}