/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

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

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

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

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

.nav-logo {
    position: relative;
    z-index: 51;
}

.nav-menu-btn {
    position: relative;
    z-index: 51;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

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

/* === Mobile Menu === */
.mobile-link {
    position: relative;
}

/* === Hero Animations === */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero-headline {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-desc {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

.hero-cta {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

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

/* === Reveal Animations === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    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);
}

.reveal-gallery {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-gallery.revealed {
    opacity: 1;
    transform: scale(1);
}

/* === Service Card Hover === */
.service-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

/* === Smooth Scroll Offset === */
section[id] {
    scroll-margin-top: 80px;
}

/* === Form Focus Styles === */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* === Responsive Adjustments === */
@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 60px;
    }
}
