/* Base Styles & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7EDDD0;
}

/* Selection */
::selection {
    background: #98FFEA;
    color: #0A192F;
}

/* Hero Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-desc {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.hero-image-wrapper {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-image-wrapper {
    animation: fadeIn 1.2s ease-out 0.3s forwards;
}

/* Service Card Hover */
.service-card {
    transition: background-color 0.5s ease;
}

.service-card:hover {
    background-color: #0A192F;
}

/* Gallery Hover */
.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Form Styles */
.form-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(152, 255, 234, 0.2);
    padding: 12px 0;
    color: #98FFEA;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(152, 255, 234, 0.3);
}

.form-input:focus {
    border-bottom-color: #98FFEA;
}

.form-input option {
    background: #0A192F;
    color: #98FFEA;
}

/* Navbar Scroll State */
.nav-scrolled {
    background: rgba(247, 249, 252, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(10, 25, 47, 0.1);
}

.nav-scrolled .nav-link {
    color: rgba(10, 25, 47, 0.7);
}

.nav-scrolled .mobile-link {
    color: #0A192F;
}

.nav-scrolled #line1,
.nav-scrolled #line2,
.nav-scrolled #line3 {
    background: #0A192F;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-open #mobile-menu {
    transform: translateX(0);
}

/* Mobile Menu Link Animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

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

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

/* Hamburger Animation */
.menu-active #line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-active #line2 {
    opacity: 0;
}

.menu-active #line3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Image Wrapper Transitions */
.about-image-wrapper {
    overflow: hidden;
}

.about-image-wrapper img {
    transition: transform 0.7s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.03);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-title br {
        display: none;
    }

    .service-card {
        padding: 2rem;
    }

    .gallery-item {
        height: 200px;
    }

    .gallery-item:first-child {
        height: 300px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .font-serif.text-4xl {
        font-size: 2.25rem;
    }
}

/* Print Styles */
@media print {
    nav, #contact-form, .gallery-item {
        display: none;
    }
}
