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

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

body {
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background-color: rgba(168, 220, 202, 0.3);
    color: #E8EDF5;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1D3A;
}
::-webkit-scrollbar-thumb {
    background: #2A5A8F;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #359480;
}

/* ========== ANIMATIONS ========== */
@keyframes scroll-line {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

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

/* ========== HEADER SCROLL STATE ========== */
#site-header.scrolled {
    background: rgba(3, 9, 17, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(168, 220, 202, 0.08);
}

#site-header.scrolled .nav-link {
    color: #C5D0E8;
}

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

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

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

/* ========== MOBILE MENU ========== */
.mobile-nav-link {
    position: relative;
}

/* ========== SERVICE CARDS ========== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, #7BC8B2, #359480);
    transition: height 0.5s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* ========== GALLERY ========== */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 17, 34, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(168, 220, 202, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ========== FORM STYLES ========== */
input:focus,
textarea:focus,
select:focus {
    border-color: rgba(123, 200, 178, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(123, 200, 178, 0.1);
}

select option {
    background: #0A1D3A;
    color: #C5D0E8;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    #hero h1 br {
        display: none;
    }

    .service-card {
        padding: 1.5rem !important;
    }

    #about .relative {
        margin-bottom: 2rem;
    }

    .floating-card {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin-top: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

/* ========== FOCUS VISIBLE ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #7BC8B2;
    outline-offset: 2px;
}
