@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&display=swap');

/* ===========================
   DESIGN TOKENS
   =========================== */
:root {
    --bg-main: #f8f9fc;
    --bg-alt: #ffffff;
    --bg-card: rgba(255,255,255,0.75);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --primary: #c9a84c;
    --primary-hover: #b8932e;
    --primary-light: rgba(201,168,76,0.1);
    --secondary: #1e3a5f;
    --accent: #d4af37;
    --border: rgba(0,0,0,0.06);
    --card-shadow: 0 4px 24px rgba(0,0,0,0.06);
    --card-hover: 0 20px 50px rgba(0,0,0,0.12);
    --glow-gold: 0 0 60px rgba(201,168,76,0.25);
    --gradient-gold: linear-gradient(135deg, #c9a84c 0%, #e8d48b 50%, #c9a84c 100%);
    --gradient-dark: linear-gradient(180deg, #060a14 0%, #0f172a 100%);
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
    --bg-main: #080c16;
    --bg-alt: #111827;
    --bg-card: rgba(17,24,39,0.8);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --primary: #e8c252;
    --primary-hover: #f5d76e;
    --primary-light: rgba(232,194,82,0.08);
    --border: rgba(255,255,255,0.06);
    --card-shadow: 0 4px 24px rgba(0,0,0,0.3);
    --card-hover: 0 20px 50px rgba(0,0,0,0.5);
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    transition: background 0.6s, color 0.6s;
    overflow-x: hidden;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.9rem 6%;
    background: transparent;
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: all 0.5s var(--ease);
}
.navbar.scrolled {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0,0,0,0.08);
    border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .navbar.scrolled { background: rgba(8,12,22,0.85); }

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 900; font-size: 1.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    transition: transform 0.3s var(--ease);
    text-decoration: none;
}
.logo:hover { transform: scale(1.03); }

/* Hamburger Button */
.nav-hamburger {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; background: none; border: none; cursor: pointer;
    padding: 8px; z-index: 110;
}
.nav-hamburger span {
    display: block; width: 24px; height: 2px;
    background: #fff; border-radius: 2px;
    transition: all 0.3s var(--ease);
}
.navbar.scrolled .nav-hamburger span { background: var(--text-main); }
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-tools { display: flex; align-items: center; gap: 6px; }

.nav-links a {
    text-decoration: none; color: rgba(255,255,255,0.7);
    font-weight: 500; font-size: 0.88rem; padding: 8px 16px;
    border-radius: 8px; transition: all 0.3s var(--ease);
    position: relative;
}
.navbar.scrolled .nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }

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

.nav-links button, .nav-tools button {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 12px; border-radius: 8px; color: #fff;
    cursor: pointer; font-weight: 600; font-size: 0.82rem;
    transition: all 0.3s var(--ease); backdrop-filter: blur(10px);
}
.navbar.scrolled .nav-links button,
.navbar.scrolled .nav-tools button {
    background: var(--bg-alt); border-color: var(--border); color: var(--text-main);
}
.nav-links button:hover, .nav-tools button:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.05); }

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

.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background-image: url('../img/hero-bg.png');
    background-size: cover; background-position: center;
    background-attachment: fixed; /* parallax */
    transform: scale(1.05); /* eliminates edge gaps */
    transition: transform 8s ease;
    will-change: transform;
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6,10,20,0.75) 0%,
        rgba(6,10,20,0.6) 40%,
        rgba(6,10,20,0.85) 100%
    );
}

/* Animated gold shimmer line */
.hero-shimmer {
    position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    z-index: 3;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Floating particles */
.hero-particles {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1;
}
.hero-particles span {
    position: absolute; width: 3px; height: 3px;
    background: var(--accent); border-radius: 50%;
    opacity: 0; animation: floatUp 7s infinite;
    box-shadow: 0 0 6px rgba(212,175,55,0.6);
}
.hero-particles span:nth-child(1) { left: 8%; animation-delay: 0s; animation-duration: 9s; }
.hero-particles span:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 7s; }
.hero-particles span:nth-child(3) { left: 35%; animation-delay: 4s; animation-duration: 10s; }
.hero-particles span:nth-child(4) { left: 50%; animation-delay: 1s; animation-duration: 8s; }
.hero-particles span:nth-child(5) { left: 65%; animation-delay: 3s; animation-duration: 9s; }
.hero-particles span:nth-child(6) { left: 78%; animation-delay: 5s; animation-duration: 7s; }
.hero-particles span:nth-child(7) { left: 90%; animation-delay: 0.5s; animation-duration: 11s; }
.hero-particles span:nth-child(8) { left: 45%; animation-delay: 6s; animation-duration: 8s; }

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-100px) scale(1.8); opacity: 0; }
}

.hero-inner {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 70px;
    max-width: 1200px; width: 100%; padding: 140px 6% 100px;
}

/* Hero Text */
.hero-text { flex: 1; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.3);
    padding: 8px 20px; border-radius: 30px;
    font-size: 0.78rem; font-weight: 700; color: var(--accent);
    margin-bottom: 28px; backdrop-filter: blur(10px);
    text-transform: uppercase; letter-spacing: 2px;
    animation: heroFadeIn 1s var(--ease) 0.2s both;
}
.hero-badge .dot {
    width: 8px; height: 8px; background: #22c55e; border-radius: 50%;
    animation: pulse 2s infinite; box-shadow: 0 0 8px rgba(34,197,94,0.6);
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 900; line-height: 1.08;
    color: #fff; margin-bottom: 24px;
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
    animation: heroFadeIn 1s var(--ease) 0.4s both;
}
.hero-text h1 .gold {
    display: block;
    background: var(--gradient-gold);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(201,168,76,0.3));
}

.hero-text .hero-desc {
    font-size: 1.15rem; color: rgba(203,213,225,0.9);
    max-width: 520px; margin-bottom: 36px; line-height: 1.85;
    animation: heroFadeIn 1s var(--ease) 0.6s both;
}

.hero-actions {
    display: flex; gap: 16px; flex-wrap: wrap;
    animation: heroFadeIn 1s var(--ease) 0.8s both;
}

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

/* Hero Image */
.hero-image {
    flex: 0 0 auto; position: relative;
    animation: heroImageIn 1.2s var(--ease) 0.6s both;
}
@keyframes heroImageIn {
    from { opacity: 0; transform: translateX(60px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.hero-image-wrapper {
    width: 320px; height: 400px; border-radius: 20px;
    overflow: hidden; position: relative;
    border: 2px solid rgba(201,168,76,0.35);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), var(--glow-gold);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.hero-image-wrapper:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 35px 70px rgba(0,0,0,0.6), 0 0 80px rgba(201,168,76,0.2);
}
.hero-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.hero-image-wrapper:hover img { transform: scale(1.05); }
.hero-image-wrapper::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(6,10,20,0.8));
    pointer-events: none;
}

.hero-image-badge {
    position: absolute; bottom: 20px; left: 16px; right: 16px;
    display: flex; align-items: center; gap: 12px; z-index: 2;
    background: rgba(6,10,20,0.7); backdrop-filter: blur(14px);
    padding: 14px 18px; border-radius: 14px;
    border: 1px solid rgba(201,168,76,0.2);
    animation: heroFadeIn 1s var(--ease) 1s both;
}
.hero-image-badge img { width: 38px; height: auto; opacity: 0.9; }
.hero-image-badge .info { font-size: 0.73rem; color: #cbd5e1; line-height: 1.4; }
.hero-image-badge .info strong { color: #fff; font-size: 0.88rem; display: block; }

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 15px 30px; border-radius: 12px;
    text-decoration: none; font-weight: 600; cursor: pointer;
    border: none; transition: all 0.4s var(--ease); font-size: 0.95rem;
    font-family: 'Inter', sans-serif; position: relative; overflow: hidden;
}
.btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
    background: var(--gradient-gold); color: #0a0e1a;
    box-shadow: 0 4px 25px rgba(201,168,76,0.35);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 40px rgba(201,168,76,0.5);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-outline {
    background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.full-width { width: 100%; justify-content: center; margin-top: 16px; }

/* ===========================
   SECTIONS
   =========================== */
.container { padding: 100px 8%; max-width: 1300px; margin: 0 auto; }
.bg-alt { background: var(--bg-alt); }

.section-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 4px; color: var(--primary); margin-bottom: 16px;
}
.section-label::before {
    content: ''; width: 35px; height: 2px;
    background: var(--gradient-gold);
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 700;
    margin-bottom: 20px; line-height: 1.15;
}
h2.text-center { text-align: center; }

.section-desc {
    color: var(--text-muted); font-size: 1.05rem;
    max-width: 600px; margin-bottom: 40px; line-height: 1.8;
}
.section-desc.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ===========================
   ABOUT
   =========================== */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 70px; align-items: center;
}
.about-image-wrapper {
    position: relative; border-radius: 20px; overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.about-image-wrapper:hover { transform: scale(1.02) rotate(-0.5deg); box-shadow: var(--card-hover); }
.about-image-wrapper img { width: 100%; height: 420px; object-fit: cover; transition: transform 4s ease; }
.about-image-wrapper:hover img { transform: scale(1.08); }
.about-image-wrapper::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    border: 1px solid rgba(201,168,76,0.15); border-radius: 20px;
    pointer-events: none;
}

.about-stats { display: flex; gap: 30px; margin-top: 36px; }
.stat-item { text-align: center; transition: transform 0.4s var(--ease-bounce); }
.stat-item:hover { transform: translateY(-5px); }
.stat-item .num {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem; font-weight: 900; color: var(--primary);
    line-height: 1;
}
.stat-item .label { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; font-weight: 500; }

.peradi-badge {
    display: inline-flex; align-items: center; gap: 14px;
    background: var(--primary-light); border: 1px solid rgba(201,168,76,0.15);
    padding: 14px 22px; border-radius: 14px; margin-top: 28px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.peradi-badge:hover { transform: translateY(-3px); box-shadow: var(--card-shadow); }
.peradi-badge img { height: 38px; width: auto; }
.peradi-badge span { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }

/* ===========================
   SERVICES
   =========================== */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 44px 34px; border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: all 0.5s var(--ease);
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--gradient-gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.6s var(--ease);
    pointer-events: none;
}
.card::after {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(201,168,76,0.04), transparent 60%);
    opacity: 0; transition: opacity 0.5s;
    pointer-events: none; z-index: 0;
}
.card:hover { transform: translateY(-10px); box-shadow: var(--card-hover); }
.card:hover::before { transform: scaleX(1); }
.card:hover::after { opacity: 1; }

.card-icon {
    width: 60px; height: 60px; border-radius: 16px;
    background: var(--primary-light); display: flex;
    align-items: center; justify-content: center;
    font-size: 1.7rem; margin-bottom: 22px;
    transition: transform 0.4s var(--ease-bounce), background 0.4s;
}
.card:hover .card-icon { transform: scale(1.1) rotate(-5deg); background: rgba(201,168,76,0.2); }

.card h3 {
    font-size: 1.3rem; font-weight: 700; margin-bottom: 12px;
    transition: color 0.3s;
}
.card:hover h3 { color: var(--primary); }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.75; }

/* ===========================
   CONSULTATION
   =========================== */
.consultation-wrapper {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 70px; align-items: start;
}
.consultation-info { padding-top: 20px; }
.consultation-info h2 { text-align: left; }

.consultation-features { list-style: none; margin-top: 28px; }
.consultation-features li {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 0; color: var(--text-muted); font-size: 0.95rem;
    transition: transform 0.3s var(--ease), color 0.3s;
}
.consultation-features li:hover { transform: translateX(6px); color: var(--text-main); }

.consultation-features li .icon {
    width: 28px; height: 28px; border-radius: 8px;
    background: var(--primary-light); display: flex;
    align-items: center; justify-content: center;
    font-size: 0.8rem; flex-shrink: 0; margin-top: 1px;
    color: var(--primary); font-weight: 700;
    transition: background 0.3s, transform 0.3s;
}
.consultation-features li:hover .icon { background: rgba(201,168,76,0.2); transform: scale(1.1); }

.consultation-form-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    padding: 44px; border-radius: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: box-shadow 0.5s var(--ease);
}
.consultation-form-card:hover { box-shadow: var(--card-hover); }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 7px;
    font-size: 0.82rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.8px;
    transition: color 0.3s;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 15px 18px; border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-main); color: var(--text-main);
    font-family: 'Inter', sans-serif; font-size: 0.95rem;
    transition: all 0.3s var(--ease);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    transform: translateY(-1px);
}
.form-group label:has(+ input:focus),
.form-group label:has(+ select:focus),
.form-group label:has(+ textarea:focus) { color: var(--primary); }

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; font-size: 0.9rem; animation: shakeIn 0.4s ease; }
.alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
[data-theme="dark"] .alert.error { background: rgba(153,27,27,0.15); border-color: rgba(239,68,68,0.2); color: #fca5a5; }
@keyframes shakeIn { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-8px)} 40%{transform:translateX(8px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }

/* ===========================
   CONTACT
   =========================== */
.contact-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.contact-buttons .btn { transition: all 0.4s var(--ease); }
.contact-buttons .btn:hover { transform: translateY(-4px) scale(1.03); }
.btn-section { color: var(--text-main); border-color: var(--border); background: var(--bg-main); }

/* ===========================
   FOOTER
   =========================== */
footer {
    text-align: center; padding: 60px 6% 40px;
    background: var(--bg-alt); border-top: 1px solid var(--border);
}
footer p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; }

/* ===========================
   REVEAL ANIMATIONS
   =========================== */
.reveal {
    opacity: 0; transform: translateY(60px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.active { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0; transform: translateX(-70px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0; transform: translateX(70px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal-right.active { opacity: 1; transform: translateX(0); }

.reveal-scale {
    opacity: 0; transform: scale(0.85);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease-bounce);
}
.reveal-scale.active { opacity: 1; transform: scale(1); }

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.2s; }
.stagger > *:nth-child(3) { transition-delay: 0.4s; }

/* ===========================
   NAV OVERLAY ALWAYS HIDDEN
   =========================== */
.nav-overlay {
    display: none; position: fixed; inset: 0;
    pointer-events: none; z-index: -1;
}

/* ===========================
   RESPONSIVE — TABLET
   =========================== */
@media (max-width: 900px) {
    /* Hamburger visible */
    .nav-hamburger { display: flex; }

    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: 75%; max-width: 320px; height: 100vh;
        flex-direction: column; align-items: stretch;
        background: var(--bg-alt); padding: 80px 30px 40px;
        box-shadow: -8px 0 30px rgba(0,0,0,0.2);
        transition: right 0.4s var(--ease);
        z-index: 105; gap: 4px;
        border-left: 1px solid var(--border);
    }
    .nav-links.open { right: 0; }

    .nav-links a {
        color: var(--text-main); font-size: 1rem;
        padding: 14px 18px; border-radius: 12px;
    }
    .nav-links a::after { display: none; }
    .nav-links a:hover { background: var(--primary-light); }

    .nav-tools { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); justify-content: center; }
    .nav-tools button { background: var(--bg-main); border-color: var(--border); color: var(--text-main); }

    .nav-overlay {
        display: none; position: fixed; inset: 0;
        background: rgba(0,0,0,0.5); z-index: 104;
        backdrop-filter: blur(4px); pointer-events: auto;
    }
    .nav-overlay.show { display: block; }


    /* Hero */
    .hero-inner { flex-direction: column-reverse; text-align: center; gap: 60px; padding: 130px 5% 80px; }
    .hero-text .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-image-wrapper { width: 240px; height: 300px; }

    /* About */
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-stats { justify-content: center; }
    .about-image-wrapper img { height: 300px; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; }

    /* Consultation */
    .consultation-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .consultation-info { text-align: center; }
    .consultation-info h2 { text-align: center; }
    .consultation-features { text-align: left; }

    /* Contact */
    .contact-buttons { flex-direction: column; align-items: center; }

    /* Chat */
    .chat-container { margin: 70px 10px 20px; height: 85vh; border-radius: 14px; }
    .chat-message { max-width: 90%; }
}

/* ===========================
   RESPONSIVE — MOBILE
   =========================== */
@media (max-width: 600px) {
    .navbar { padding: 0.7rem 4%; }
    .logo { font-size: 1.2rem; }

    .nav-links { width: 85%; }

    .container { padding: 60px 5%; }

    /* Hero */
    .hero-inner { padding: 110px 5% 60px; gap: 50px; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-text .hero-desc { font-size: 1rem; }
    .hero-badge { font-size: 0.65rem; padding: 6px 14px; letter-spacing: 1px; }
    .hero-image-wrapper { width: 200px; height: 260px; }
    .hero-image-badge { padding: 10px 12px; }
    .hero-image-badge .info { font-size: 0.65rem; }
    .hero-image-badge .info strong { font-size: 0.78rem; }
    .hero-actions .btn { width: 100%; justify-content: center; font-size: 0.9rem; padding: 14px 20px; }

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

    /* About */
    .about-image-wrapper img { height: 250px; }
    .stat-item .num { font-size: 2rem; }
    .about-stats { gap: 20px; }

    /* Cards */
    .card { padding: 28px 22px; }

    /* Consultation */
    .consultation-form-card { padding: 24px 20px; }

    /* Chat */
    .chat-container { margin: 60px 0 0; border-radius: 0; height: 90vh; }
    .chat-header { padding: 14px 16px; }
    .chat-header h2 { font-size: 1rem; }
    .chat-input-area { padding: 12px; gap: 8px; }
    .chat-input-area textarea { padding: 12px; font-size: 0.9rem; }
    .message-bubble { padding: 12px 16px; font-size: 0.9rem; }

    /* Admin */
    .admin-container { padding: 70px 10px 20px; }

    /* Footer */
    footer { padding: 40px 5% 30px; }
    footer p { font-size: 0.78rem; }
}

/* ===========================
   RESPONSIVE — SMALL
   =========================== */
@media (max-width: 400px) {
    .hero-text h1 { font-size: 1.9rem; }
    .hero-image-wrapper { width: 180px; height: 230px; }
    .stat-item .num { font-size: 1.7rem; }
    h2 { font-size: 1.5rem; }
    .section-label { font-size: 0.65rem; letter-spacing: 2px; }

    .btn { padding: 12px 18px; font-size: 0.85rem; }
}

/* ===========================
   CHAT (keep existing)
   =========================== */
.chat-container { max-width: 800px; margin: 100px auto 40px; background: var(--bg-alt); border-radius: 20px; box-shadow: var(--card-shadow); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; height: 80vh; }
.chat-header { padding: 20px 24px; background: var(--bg-main); border-bottom: 1px solid var(--border); }
.chat-header h2 { margin: 0 0 5px; font-size: 1.15rem; text-align: left; font-family: 'Inter', sans-serif; }
.chat-header p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }

.chat-box { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.chat-message { display: flex; max-width: 80%; animation: msgIn 0.4s var(--ease); }
.chat-message.user { align-self: flex-end; }
.chat-message.ai, .chat-message.system { align-self: flex-start; }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.message-bubble { padding: 14px 20px; border-radius: 20px; font-size: 0.95rem; line-height: 1.6; }
.chat-message.user .message-bubble { background: var(--primary); color: #0a0e1a; border-bottom-right-radius: 4px; font-weight: 500; }
.chat-message.ai .message-bubble { background: var(--bg-main); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-message.system .message-bubble { background: rgba(201,168,76,0.08); color: var(--primary); border: 1px solid rgba(201,168,76,0.15); border-bottom-left-radius: 4px; font-style: italic; font-size: 0.85rem; }

.chat-input-area { padding: 20px; background: var(--bg-main); border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-end; }
.chat-input-area textarea { flex: 1; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-alt); color: var(--text-main); font-family: inherit; resize: none; min-height: 50px; max-height: 150px; font-size: 0.95rem; transition: border-color 0.3s; }
.chat-input-area textarea:focus { outline: none; border-color: var(--primary); }

.typing-indicator { display: flex; gap: 5px; padding: 15px; align-items: center; }
.typing-indicator span { width: 8px; height: 8px; background: var(--text-muted); border-radius: 50%; animation: typing 1.4s infinite ease-in-out both; }
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
