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

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

body {
    margin: 0;
    background-color: #0A1628;
    color: #ffffff;
}

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

/* ─── Geometric Background Shapes ─── */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.5;
}

.shape-circle-1 {
    top: 15%;
    right: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(72, 187, 120, 0.06) 0%, transparent 70%);
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 20%;
    left: -8%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(72, 187, 120, 0.04) 0%, transparent 70%);
    animation: float-slow 25s ease-in-out infinite reverse;
}

.shape-circle-3 {
    top: 50%;
    left: 30%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(72, 187, 120, 0.05) 0%, transparent 70%);
    animation: float-slow 15s ease-in-out infinite;
}

.shape-triangle {
    top: 30%;
    right: 15%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(72, 187, 120, 0.04);
    animation: spin-slow 30s linear infinite;
}

.shape-diamond {
    bottom: 30%;
    right: 25%;
    width: 40px;
    height: 40px;
    background: rgba(72, 187, 120, 0.06);
    transform: rotate(45deg);
    animation: float-slow 18s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ─── Navbar ─── */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

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

/* ─── Mobile Menu ─── */
#mobile-menu {
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

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

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

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

/* ─── Service Cards ─── */
.service-card {
    background: rgba(15, 31, 58, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s ease;
}

.service-card:hover {
    border-color: rgba(72, 187, 120, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(72, 187, 120, 0.05);
}

/* ─── Gallery ─── */
.gallery-item {
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 0.75rem;
}

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

/* ─── Testimonial Cards ─── */
.testimonial-card {
    background: rgba(21, 42, 77, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    border-color: rgba(72, 187, 120, 0.2);
    transform: translateY(-2px);
}

/* ─── Scroll Reveal Animations ─── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Prefers reduced motion */
@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; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: rgba(72, 187, 120, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(72, 187, 120, 0.5);
}

/* ─── Mobile Menu Button ─── */
.menu-line {
    display: block;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* ─── Form Select Styling ─── */
select option {
    background: #0F1F3A;
    color: #ffffff;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}
