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

:root {
    --color-midnight-900: #102a43;
    --color-midnight-800: #243b53;
    --color-midnight-700: #334e68;
    --color-midnight-500: #627d98;
    --color-midnight-300: #9fb3c8;
    --color-midnight-200: #bcccdc;
    --color-midnight-100: #d9e2ec;
    --color-midnight-50: #f0f4f8;
    --color-mint-500: #41b373;
    --color-mint-400: #6ec894;
    --color-mint-300: #a5e0b9;
    --color-mint-200: #ceefd7;
    --color-mint-100: #e6f9ed;
}

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

body {
    overflow-x: hidden;
}

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

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

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(16, 42, 67, 0.06);
}

.nav-text {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text {
    color: var(--color-midnight-900);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-mint-500);
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
#mobileMenu {
    display: none;
}

@media (max-width: 767px) {
    #mobileMenu {
        display: block;
    }
    
    #mobileMenu.open {
        translate: 0;
    }
    
    #mobileMenu.closed {
        translate: 100% 0;
    }
    
    .menu-line {
        transition: all 0.3s ease;
    }
    
    .menu-btn.active .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
    }
    
    .menu-btn.active .menu-line:nth-child(2) {
        opacity: 0;
    }
    
    .menu-btn.active .menu-line:nth-child(3) {
        width: 24px;
        transform: rotate(-45deg) translate(3px, -3px);
    }
}

.mobile-link {
    opacity: 1;
}

/* ========== HERO ========== */
.hero-badge {
    opacity: 1;
    transform: translateY(0);
}

.hero-headline {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtext {
    opacity: 1;
    transform: translateY(0);
}

.hero-cta {
    opacity: 1;
    transform: translateY(0);
}

.hero-deco {
    animation: float 8s ease-in-out infinite;
}

.hero-deco:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 10s;
}

.hero-deco:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 12s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.02); }
    66% { transform: translate(-10px, 15px) scale(0.98); }
}

/* Scroll Indicator */
.scroll-line-inner {
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ========== SECTION LABELS ========== */
.section-label {
    letter-spacing: 0.2em;
}

.section-title {
    letter-spacing: -0.02em;
}

.section-desc {
    letter-spacing: 0.01em;
}

/* ========== CTA BUTTONS ========== */
.cta-primary {
    box-shadow: 0 20px 60px rgba(16, 42, 67, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 70px rgba(65, 179, 115, 0.3);
}

.cta-secondary {
    transition: transform 0.3s ease, background 0.3s ease;
}

.cta-secondary:hover {
    transform: translateY(-2px);
    background: white;
}

.cta-primary-light {
    box-shadow: 0 20px 60px rgba(65, 179, 115, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-primary-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 70px rgba(110, 200, 148, 0.4);
}

/* ========== SERVICE CARDS ========== */
.service-card {
    opacity: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
}

.service-icon {
    transition: transform 0.3s ease;
}

/* ========== ABOUT ========== */
.about-floating-card {
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========== GALLERY ========== */
.gallery-item {
    overflow: hidden;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 42, 67, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ========== FORM ========== */
.form-input {
    font-size: 0.9375rem;
}

.form-input:focus {
    border-color: var(--color-mint-400);
    box-shadow: 0 0 0 3px rgba(110, 200, 148, 0.15);
}

.form-input::placeholder {
    color: var(--color-midnight-200);
}

.form-submit {
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, transform 0.2s ease;
}

.form-submit:hover {
    background: var(--color-mint-500);
    transform: translateY(-1px);
}

.form-submit:active {
    transform: translateY(0);
}

.form-submit .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.form-submit.loading .spinner {
    display: block;
}

.form-submit.loading .btn-text {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .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; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtext {
        font-size: 1.0625rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .about-floating-card {
        display: none;
    }
    
    .cta-primary, .cta-secondary, .cta-primary-light {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 3.5rem;
    }
}
