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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #5eead4;
    color: #0a1628;
}

/* ===== Hero Gradient ===== */
.hero-gradient {
    background: linear-gradient(135deg, #0a1628 0%, #132240 40%, #1a3a5c 70%, #0f2940 100%);
}

/* ===== Floating Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

@keyframes pulse-delayed {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-deco-1 { animation: float 8s ease-in-out infinite; }
.hero-deco-2 { animation: float-delayed 6s ease-in-out infinite; }
.hero-deco-3 { animation: pulse 4s ease-in-out infinite; }
.hero-deco-4 { animation: pulse-delayed 5s ease-in-out infinite 1s; }

/* ===== Scroll Line ===== */
.scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ===== Scroll Reveal ===== */
.scroll-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);
}

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

.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== Section Eyebrow ===== */
.section-eyebrow {
    letter-spacing: 0.3em;
}

/* ===== Section Title ===== */
.section-title {
    letter-spacing: -0.02em;
}

/* ===== Hero Animations ===== */
.hero-eyebrow {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-headline {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-subtext {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-ctas {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

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

/* ===== Navigation ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.05);
}

#navbar.scrolled .nav-logo-text {
    color: #0a1628;
}

#navbar.scrolled .hamburger-line {
    background: #0a1628;
}

.nav-logo-text {
    color: #0a1628;
}

.nav-link {
    position: relative;
}

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

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

/* ===== Mobile Menu ===== */
.hamburger-line {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
    top: 6px;
}

#menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
    top: 6px;
    width: 6px;
}

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

.mobile-nav-link {
    font-size: 1.1rem;
}

/* ===== Service Cards ===== */
.service-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    background: #fafafa;
}

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

/* ===== Button Focus ===== */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-headline span {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

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

@media (min-width: 1024px) {
    .hero-headline {
        font-size: 5rem;
    }
}

@media (min-width: 1280px) {
    .hero-headline {
        font-size: 6rem;
    }
}

@media (min-width: 1536px) {
    .hero-headline {
        font-size: 7rem;
    }
}
