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

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #1a1a1a;
    overflow-x: hidden;
}

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

/* ===== Custom Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    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; }

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

.nav.scrolled {
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #34d4a0;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #34d4a0;
}

/* ===== Mobile Menu ===== */
.mobile-menu-link {
    position: relative;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

.hero-shape {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content {
    opacity: 0;
    transform: translateX(-30px);
    animation: heroSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-images {
    opacity: 0;
    transform: translateX(30px);
    animation: heroSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

@keyframes heroSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #34d4a0, #5eead4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

/* ===== Gallery ===== */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 27, 42, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* ===== Form ===== */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(52, 212, 160, 0.15);
}

/* ===== Selection ===== */
::selection {
    background: rgba(52, 212, 160, 0.3);
    color: #0d1b2a;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f0eb;
}

::-webkit-scrollbar-thumb {
    background: #0d1b2a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1b2d45;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-images {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 32px;
    }
    
    .hero-images > div {
        display: contents;
    }
    
    .hero-images > div > div {
        border-radius: 12px;
    }
    
    .hero-images > div > div:first-child {
        grid-column: span 2;
        aspect-ratio: 16/9 !important;
    }
    
    .floating-badge {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 16px;
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .font-serif.text-5xl {
        font-size: 2.5rem;
    }
}
