/* ==============================================================
   CSS CUSTOM PROPERTIES
   ============================================================== */
:root {
    --bg-deep: #0D1B2A;
    --bg-slate: #1B263B;
    --bg-steel: #2c3a52;
    --cyan: #4ECDC4;
    --gold: #C9A84C;
    --gold-light: #e8c85a;
    --white: #F0F4F8;
    --muted: #A9B8C6;
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: auto; /* We handle smooth scroll in JS */
    font-size: 16px;
}

body {
    background: var(--bg-deep);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.1;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

::selection {
    background: var(--gold);
    color: var(--bg-deep);
}

/* ==============================================================
   NOISE OVERLAY
   ============================================================== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px;
}

/* ==============================================================
   LOADER
   ============================================================== */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-deep);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: clip-path 1.2s var(--ease-out-expo);
    clip-path: inset(0 0 0 0);
}

#loader.done {
    clip-path: inset(0 0 100% 0);
}

.loader-counter {
    font-family: var(--font-title);
    font-size: 8rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -4px;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin-top: 2rem;
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--gold);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.loader-label {
    margin-top: 1rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--muted);
}

/* ==============================================================
   HEADER
   ============================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.5s var(--ease);
}

header.scrolled {
    background: rgba(13,27,42,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(201,168,76,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo svg {
    width: 28px;
    height: 20px;
    stroke: var(--gold);
    stroke-width: 2.5;
    fill: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    transition: color 0.3s;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.5s var(--ease);
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 26px;
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease);
    z-index: -1;
    border-radius: 50px;
}

.nav-cta:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta:hover {
    color: var(--bg-deep);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    z-index: 1001;
}

/* ==============================================================
   HERO / SHARED
   ============================================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.4;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4;
    filter: grayscale(20%) contrast(105%);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-deep) 95%),
                radial-gradient(ellipse at 50% 50%, transparent 0%, var(--bg-deep) 90%);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 2rem;
    max-width: 1100px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2.5rem;
}

.hero-eyebrow-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-eyebrow-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 2rem;
}

.hero-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.15em;
}

.hero-title .line-inner {
    display: block;
    transform: translateY(110%);
    animation: revealLine 1.2s var(--ease-out-expo) forwards;
}

.hero-title .gold {
    color: var(--gold);
    position: relative;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 550px;
    margin: 0 auto 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 60px;
    border: 2px solid transparent;
    transition: all 0.5s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold);
    color: var(--bg-deep);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(201,168,76,0.4);
}

.btn-secondary {
    background: transparent;
    border-color: rgba(255,255,255,0.15);
    color: var(--white);
}

.btn-secondary:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-3px);
}

/* ==============================================================
   ANIMATIONS KEYFRAMES
   ============================================================== */
@keyframes revealLine {
    to { transform: translateY(0); }
}

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

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

/* ==============================================================
   SECTIONS - SHARED
   ============================================================== */
.section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

#step-4 {
    padding-top: 20px;
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 2;
}

/* expertise grid */
.expertise-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.5rem; 
    margin-top: 4rem;
}

.expertise-card {
    background: linear-gradient(160deg, rgba(27,38,59,0.8), rgba(13,27,42,0.6));
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 20px;
    padding: 2.8rem 2.2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s;
    transform-style: preserve-3d;
    will-change: transform;
}

.expertise-card:hover { 
    border-color: rgba(201,168,76,0.15); 
    box-shadow: 0 25px 60px rgba(0,0,0,0.4), 0 0 40px rgba(201,168,76,0.05); 
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(201,168,76,0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--gold);
    transition: all 0.4s var(--ease);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    transition: transform 0.4s var(--ease);
}

.expertise-card:hover .card-icon {
    background: var(--gold);
    color: var(--bg-deep);
    transform: scale(1.1) rotate(5deg);
}

.expertise-card:hover .card-icon svg {
    transform: scale(1.1);
}

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

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

/* form and step 2 specifics */
.form-card {
    background: var(--bg-deep);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 10px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.form-visual {
    position: relative;
}

.form-visual::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(201,168,76,0.1) 0%, transparent 70%);
    z-index: -1;
}

.step-row {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 5rem;
}

.step-num {
    font-family: var(--font-title);
    font-size: clamp(5rem, 10vw, 8rem); /* Slightly reduced */
    font-weight: 900;
    color: var(--gold);
    line-height: 0.9; /* Improved from 0.8 */
    opacity: 0.85;
    flex-shrink: 0;
    position: relative;
    text-shadow: 0 0 60px rgba(201,168,76,0.25);
}

.step-info {
    padding-top: 1rem;
}

.step-row-mini {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.step-num {
    font-family: var(--font-title);
    font-size: clamp(4rem, 8vw, 6rem); /* Reduced for mini view */
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    opacity: 0.85;
    flex-shrink: 0;
}

.step-heading-mini {
    font-size: clamp(1.5rem, 3vw, 2.2rem); /* More compact */
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.quest-text-block {
    margin-bottom: 2rem;
}

.quest-sub {
    font-size: 1.15rem; /* Increased from 1rem */
    color: var(--white);
    margin-bottom: 0.6rem;
}

.quest-p {
    font-size: 0.95rem; /* Increased from 0.85rem */
    color: var(--muted);
    max-width: 450px;
    line-height: 1.6;
}

.quest-security {
    font-size: 0.8rem; /* Slightly larger */
    color: var(--gold);
    margin-top: 1.5rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }
.reveal-d6 { transition-delay: 0.6s; }

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.2), transparent);
    opacity: 0.6;
}

/* ==============================================================
   MODAL QUESTIONNAIRE
   ============================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 90%;
    max-width: 850px;
    height: 65vh;
    background: var(--bg-steel);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    position: relative;
    transform: scale(0.85);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.6);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--gold);
    color: var(--bg-deep);
    transform: rotate(90deg);
}

.modal-iframe-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0D1B2A;
}

/* ==============================================================
   FOOTER
   ============================================================== */
footer {
    background: #060d17;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    font-size: 0.8rem;
    color: var(--muted);
}

.footer-left strong { color: var(--gold); }

/* footer links */
.footer-links {
    display: flex;
    gap: 2rem;
}

/* Tags */
.step-tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--cyan);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-tag::before {
    content: '';
    width: 25px;
    height: 1px;
    background: var(--cyan);
}

/* Timeline compact */
.timeline {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 6px; /* Adjusted for smaller text */
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold);
}

.timeline-item h4 {
    font-size: 1.05rem; /* Increased from 0.9rem */
    margin-bottom: 0.3rem;
}

.timeline-item p {
    font-size: 0.85rem; /* Increased from 0.75rem */
    color: var(--muted);
    line-height: 1.5;
}

/* Step 2 specific layout */
.quest-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr; /* Form slightly larger */
    gap: 3rem; /* Tighter gap */
    align-items: flex-start; /* Align to top to show title/form together */
    margin-top: 1rem;
}

/* Step 3 - Portfolio & Browser Frame */
.browser-frame {
    background: #101926;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    transition: transform 0.8s var(--ease);
    margin-bottom: 2rem;
}

.project-item:hover .browser-frame {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(201,168,76,0.2);
}

.browser-top {
    background: #1a2433;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.b-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

.b-url {
    flex-grow: 1;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    padding: 4px 15px;
    font-size: 0.7rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* Dashboard & Stats */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.dash-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease);
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.badge {
    padding: 4px 12px;
    background: rgba(255,255,255,0.05);
    color: var(--muted);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
}

.badge-gold {
    background: rgba(201,168,76,0.1);
    color: var(--gold);
}

.dash-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(201,168,76,0.2);
    transform: translateY(-5px);
}

.dash-card-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    opacity: 0.9;
}

/* Animations des graphiques */
.chart-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: dash 3s ease-in-out forwards;
}

@keyframes dash {
    to { stroke-dashoffset: 0; }
}

/* Ring Chart */
.ring-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.ring-progress {
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    animation: ringDash 2s ease-out forwards;
}

@keyframes ringDash {
    to { stroke-dashoffset: calc(251.2 * (1 - 0.99)); }
}

.ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
}

/* Bar Chart */
.bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    gap: 8px;
    margin-top: 1rem;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, rgba(255,255,255,0.05), var(--cyan));
    border-radius: 4px;
    height: var(--h); /* Height is now permanent */
    opacity: 0.6;
    transition: all 0.4s var(--ease);
    transform-origin: bottom;
    animation: barGrow 2s var(--ease-out-expo) forwards;
}

@keyframes barGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.dash-card:hover .bar {
    opacity: 1;
    filter: brightness(1.2);
}

/* Maintenance Info */
.dash-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.info-row span { color: var(--muted); }
.info-row strong { color: var(--white); font-weight: 600; }

.status-indicator {
    padding: 4px 12px;
    background: rgba(78,205,196,0.1);
    color: var(--cyan);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyan);
}

.btn-glass {
    padding: 12px 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-glass:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--gold);
    color: var(--gold);
}

/* ==============================================================
   SECTION 04 - IMMERSIVE CTA
   ============================================================== */
.cta-box {
    margin-top: 1rem; /* Reduced from 4rem */
    background: linear-gradient(135deg, rgba(27,38,59,0.8) 0%, rgba(13,27,42,0.95) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 40px;
    padding: 5rem 6rem; /* Slightly more horizontal padding */
    text-align: left; /* Changed from center */
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.4);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-box .cta-content {
    position: relative;
    z-index: 1;
}

.cta-box .cta-action {
    position: relative;
    z-index: 1;
    text-align: right;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
    filter: blur(50px);
    z-index: 0;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(78,205,196,0.1) 0%, transparent 70%);
    filter: blur(50px);
    z-index: 0;
}

.cta-box .step-row {
    justify-content: flex-start; /* Changed from center */
    margin-bottom: 2rem;
    gap: 2rem;
}

.contact-text {
    font-size: 1.1rem; /* Slightly smaller for better fit */
    color: var(--muted);
    max-width: 550px;
    margin: 0; /* Removed auto margin */
    line-height: 1.7;
}

.contact-text strong {
    color: var(--white);
    font-weight: 700;
}

.mega-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 22px 50px; /* Slightly tighter */
    background: var(--gold);
    color: var(--bg-deep);
    font-family: var(--font-title);
    font-size: 1rem; /* Slightly smaller */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 80px;
    transition: all 0.6s var(--ease);
    box-shadow: 0 20px 50px rgba(201,168,76,0.3), 0 0 0 0 rgba(201,168,76,0);
    position: relative;
    z-index: 1;
}

.mega-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 30px 60px rgba(201,168,76,0.5), 0 0 40px rgba(201,168,76,0.2);
    letter-spacing: 3px;
    background: var(--white);
}

.mega-btn svg {
    transition: transform 0.5s var(--ease);
}

.mega-btn:hover svg {
    transform: translateX(8px);
}

.contact-note {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 1px;
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .cta-box { 
        grid-template-columns: 1fr; 
        padding: 4rem 3rem; 
        text-align: center;
        gap: 2rem;
    }
    .cta-box .cta-action { text-align: center; }
    .cta-box .step-row { justify-content: center; }
    .contact-text { margin: 0 auto; }
}

@media (max-width: 768px) {
    .cta-box { padding: 4rem 2rem; border-radius: 30px; }
    .contact-text { font-size: 1rem; }
    .mega-btn { padding: 18px 36px; font-size: 0.9rem; }
    .cta-box .step-row { flex-direction: column; align-items: center; gap: 1rem; }
}

@media (max-width: 1024px) { 
    .quest-layout { grid-template-columns: 1fr; gap: 3rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; } 
    .stats-row { grid-template-columns: 1fr; }
}
/* Stats section */
.stats-row { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.5rem; 
    margin-top: 3.5rem; 
    max-width: 900px; /* Reduced from 1050px */
    margin-left: auto; 
    margin-right: auto; 
}

.stat-box { 
    text-align: center; 
    padding: 1.8rem 1rem; /* Reduced padding */
    background: rgba(27,38,59,0.5); 
    border: 1px solid rgba(255,255,255,0.04); 
    border-radius: 16px; 
    transition: all 0.5s var(--ease); 
}

.stat-val { 
    font-family: var(--font-title); 
    font-size: 2.8rem; /* Reduced from 3.5rem */
    font-weight: 900; 
    color: var(--gold); 
    line-height: 1; 
    margin-bottom: 0.5rem; 
}

/* Projects grid */
.projects-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 3rem; 
    margin-bottom: 4rem; 
    max-width: 1100px; /* Centered and slightly narrower */
    margin-left: auto;
    margin-right: auto;
}

.project-item { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
}

.project-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
}

.project-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
}

.project-type {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
    transition: color 0.3s;
}

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

/* ==============================================================
   RESPONSIVE
   ============================================================== */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .menu-btn { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: rgba(13,27,42,0.98);
        backdrop-filter: blur(20px);
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
    }
    .nav-links.open .nav-link { font-size: 1.2rem; }
    .side-nav { display: none; }
}

@media (max-width: 600px) {
    .section { padding: 100px 0; }
    .section-inner { padding: 0 1.5rem; }
    .nav-container { padding: 0 1.5rem; }
    .step-row { flex-direction: column; gap: 1.5rem; }
    .step-num { font-size: 4rem; }
    .hero-title { letter-spacing: -1px; }
}
