/* ===== Custom Properties ===== */
:root {
    --bg-primary: #0a0f0d;
    --bg-secondary: #111a15;
    --bg-tertiary: #0d1510;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --gold-400: #d4a853;
    --gold-500: #c49a38;
    --gold-600: #b8862e;
    --gold-700: #a07020;
    --cream: #f5f0e8;
    --cream-light: #faf7f2;
    --cream-dark: #e8e0d0;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: rgba(16, 185, 129, 0.3);
    color: var(--cream);
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ===== Typography ===== */
.font-['Playfair_Display'] {
    font-family: 'Playfair Display', serif;
}

.font-['Inter'] {
    font-family: 'Inter', sans-serif;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--emerald-800);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-700);
}

/* ===== Navbar ===== */
.nav-fixed {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav-fixed.scrolled {
    background: rgba(10, 15, 13, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(52, 211, 153, 0.06), 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--emerald-400), var(--gold-400));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--cream) !important;
}

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

/* ===== Gold Button ===== */
.gold-btn {
    background: linear-gradient(135deg, #d4a853 0%, #b8862e 50%, #d4a853 100%);
    background-size: 200% 200%;
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gold-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gold-btn:hover {
    background-position: 100% 100%;
    box-shadow: 0 6px 30px rgba(212, 168, 83, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.gold-btn:hover::before {
    opacity: 1;
}

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

/* ===== Hero Section ===== */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(10, 15, 13, 0.88) 0%,
        rgba(10, 15, 13, 0.75) 40%,
        rgba(10, 15, 13, 0.65) 70%,
        rgba(10, 15, 13, 0.85) 100%
    );
}

.hero-btn-secondary {
    transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
    border-color: rgba(212, 168, 83, 0.4);
    color: var(--gold-400);
}

/* Scroll line animation */
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

.animate-scroll-line {
    animation: scrollLine 1.8s ease-in-out infinite;
}

/* ===== Stat Cards (Hero Floating Cards) ===== */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-0.5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.3deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(-0.3deg); }
}

.stat-card {
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.stat-card:nth-child(1) { animation-name: float1; animation-duration: 5s; }
.stat-card:nth-child(2) { animation-name: float2; animation-duration: 6s; }
.stat-card:nth-child(3) { animation-name: float3; animation-duration: 5.5s; }
.stat-card:nth-child(4) { animation-name: float4; animation-duration: 4.5s; }

/* ===== Section Labels ===== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-400);
}

.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1.5px;
    background: linear-gradient(90deg, var(--emerald-400), transparent);
}

/* ===== Service Cards ===== */
.service-card {
    perspective: 1000px;
}

.service-card .group:hover {
    transform: translateY(-4px);
}

.service-card .group {
    transition: transform 0.4s ease;
}

/* ===== Why Cards ===== */
.why-card {
    transition: all 0.4s ease;
}

.why-card:hover {
    transform: translateY(-6px);
}

.why-card:hover .w-16 {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
}

/* ===== Contact Info Items ===== */
.contact-info-item {
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(4px);
}

/* ===== Form Styles ===== */
.form-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.form-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(52, 211, 153, 0.15);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--cream);
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.form-input::placeholder {
    color: rgba(245, 240, 232, 0.25);
}

.form-input:hover {
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.form-input:focus {
    border-color: var(--emerald-500);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input option {
    background: var(--bg-secondary);
    color: var(--cream);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.active {
    max-height: 400px;
}

.mobile-menu-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(52, 211, 153, 0.08);
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

/* ===== Scroll Reveal (Progressive Enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Reduced motion: ensure everything is visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .stat-card {
        animation: none;
    }
    
    .animate-scroll-line {
        animation: none;
        opacity: 0.5;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .font-['Playfair_Display'] {
        font-size: 1.75rem;
    }
    
    .section-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 640px) {
    .gold-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Utility ===== */
.text-cream { color: var(--cream); }
