/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(13, 148, 136, 0.15);
    color: #134e4a;
}

/* Hero Animations */
.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-desc {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.9s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.service-reveal,
.gallery-reveal,
.cta-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Service Cards */
.service-card {
    transition: background-color 0.4s ease;
}

/* Gallery */
.gallery-img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-img img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.navbar-scrolled .nav-logo-text {
    color: #ffffff !important;
}

.navbar-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
}

.navbar-scrolled .nav-link:hover {
    color: #ffffff !important;
}

/* Mobile Menu */
.mobile-menu-open #menuIcon span:nth-child(1) {
    transform: translateY(4.5px) rotate(45deg);
}

.mobile-menu-open #menuIcon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open #menuIcon span:nth-child(3) {
    transform: translateY(-4.5px) rotate(-45deg);
    width: 1.5rem;
}

.mobile-menu-visible {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

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

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

/* Form */
input:focus,
textarea:focus {
    outline: none;
    border-color: #0d9488 !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .gallery-img img {
        transition: none;
    }
    
    .gallery-img:hover img {
        transform: none;
    }
}

/* Custom Cursor for Links */
a, button {
    cursor: pointer;
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}
