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

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #020617;
    color: #e2e8f0;
}

.font-cormorant {
    font-family: 'Cormorant Garamond', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

::selection {
    background-color: rgba(13, 148, 136, 0.3);
    color: #f1f5f9;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    .scroll-reveal:nth-child(2) { transition-delay: 0.05s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.15s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.25s; }
}

#navbar.scrolled {
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.gallery-grid {
    position: relative;
}

.gallery-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, #020617);
    pointer-events: none;
    z-index: 1;
}

input:focus, select:focus, textarea:focus {
    outline: none;
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(13, 148, 136, 0.2); }
    50% { box-shadow: 0 0 40px rgba(13, 148, 136, 0.4); }
}

@media (max-width: 767px) {
    .font-cormorant {
        line-height: 1.15;
    }
}
