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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #0f766e;
}

/* ===== HERO DECORATIONS ===== */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.c1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #5eead4, transparent 70%);
    top: -200px;
    right: -150px;
    animation: float 20s ease-in-out infinite;
}

.c2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #99f6e4, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.c3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #2dd4bf, transparent 70%);
    top: 40%;
    left: 10%;
    animation: float 12s ease-in-out infinite;
}

.decoration-honeycomb {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px, 100px 100px;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

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

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

/* ===== NAVBAR ===== */
.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #fff;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

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

/* ===== MOBILE MENU ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Menu button animation */
.menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-btn.active .menu-line:nth-child(3) {
    width: 1.25rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero-badge {
    animation: fadeInDown 1s ease forwards;
}

.hero-badge,
.hero h1,
.hero p,
.hero .flex {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero h1 { animation-delay: 0.2s; }
.hero p { animation-delay: 0.4s; }
.hero .flex { animation-delay: 0.6s; }

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== VALUE CARDS ===== */
.value-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.value-card:nth-child(1) { transition-delay: 0.1s; }
.value-card:nth-child(2) { transition-delay: 0.2s; }
.value-card:nth-child(3) { transition-delay: 0.3s; }

/* ===== SERVICE CARDS ===== */
.service-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }

/* ===== FACILITY CARDS ===== */
.facility-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.facility-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.facility-card:nth-child(1) { transition-delay: 0.05s; }
.facility-card:nth-child(2) { transition-delay: 0.1s; }
.facility-card:nth-child(3) { transition-delay: 0.15s; }
.facility-card:nth-child(4) { transition-delay: 0.2s; }
.facility-card:nth-child(5) { transition-delay: 0.25s; }
.facility-card:nth-child(6) { transition-delay: 0.3s; }

/* ===== FORM INPUTS ===== */
input:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.15) !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    .font-serif.text-5xl.md\:text-6xl.lg\:text-7xl {
        font-size: 2.75rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    html {
        scroll-padding-top: 80px;
    }
}
