*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

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

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

.nav-link {
    position: relative;
}

/* Hero blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: rgba(126, 252, 240, 0.15);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(153, 246, 219, 0.12);
    bottom: 5%;
    left: -5%;
    animation-delay: -3s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: rgba(20, 184, 166, 0.1);
    top: 40%;
    left: 40%;
    animation-delay: -5s;
}

/* Visit section blobs */
.visit-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: blobFloat 10s ease-in-out infinite;
}

.visit-blob.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(126, 252, 240, 0.08);
    top: 10%;
    left: 10%;
    animation-delay: -2s;
}

.visit-blob.blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(20, 184, 166, 0.06);
    bottom: 10%;
    right: 10%;
    animation-delay: -6s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Scroll reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-link {
    display: block;
}

/* Smooth focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image aspect ratio helpers */
img {
    max-width: 100%;
    height: auto;
}

/* Selection color */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #0f2b4c;
}
