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

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

body {
    background-color: #060D1F;
    color: #ffffff;
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #060D1F;
}
::-webkit-scrollbar-thumb {
    background: rgba(72, 187, 120, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(72, 187, 120, 0.5);
}

/* Selection */
::selection {
    background: rgba(72, 187, 120, 0.3);
    color: #ffffff;
}

/* Nav styles */
#navbar {
    background: transparent;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(6, 13, 31, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #9AE6B4 !important;
}

/* Hero animations */
.hero-subtitle {
    animation: heroFadeUp 0.8s ease forwards 0.2s;
}

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

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

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

.hero-image {
    animation: heroImageIn 1s ease forwards 0.5s;
    opacity: 0;
}

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

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

/* Scroll line animation */
@keyframes scrollLine {
    0% {
        top: -16px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 48px;
        opacity: 0;
    }
}

.animate-scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Service cards */
.service-card {
    position: relative;
    transition: background 0.5s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(72, 187, 120, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    position: relative;
}

/* Form styles */
select option {
    background: #0A1628;
    color: #ffffff;
}

/* Divider animation */
h2 .italic {
    position: relative;
}

/* Image hover */
.service-card img,
section img {
    transition: transform 0.6s ease;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Prevent layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.75rem !important;
    }
    
    .hero-image img {
        height: 350px !important;
    }
    
    .reveal {
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 3.5rem !important;
    }
}

/* Print styles */
@media print {
    #navbar,
    .animate-scroll-line,
    .service-card::before {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
