/* Base & Typography */
html {
    scroll-behavior: smooth;
}

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

/* Navbar transition */
.nav-logo-color {
    color: rgba(255, 255, 255, 0.95);
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
}

/* Scrolled navbar state */
nav.scrolled {
    background: rgba(4, 47, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

nav.scrolled .nav-logo-color {
    color: rgba(255, 255, 255, 0.95);
}

nav.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

/* Mobile nav links */
.mobile-nav-link {
    color: rgba(255, 255, 255, 0.9);
}

/* Hero animated circles */
.hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: white;
}

.circle-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-circle {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
    img {
        transition: none;
    }
}

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

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

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Gallery image hover */
.aspect-\[3\/4\] {
    position: relative;
}

.aspect-\[3\/4\]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 47, 46, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

.aspect-\[3\/4\]:hover::after {
    opacity: 1;
}

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

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

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #042f2e;
}
