/* ===== 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 {
    font-family: 'Open Sans', sans-serif;
    color: #1a365d;
    background-color: #f0f4f8;
    overflow-x: hidden;
}

/* ===== Geometric Background Decorations ===== */
.geometric-decor {
    z-index: 0;
}

.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(214, 158, 46, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    left: -100px;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(26, 54, 93, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    right: -50px;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(214, 158, 46, 0.06);
    top: 40%;
    right: 5%;
    transform: rotate(15deg);
}

.geo-square {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(26, 54, 93, 0.08);
    top: 60%;
    left: 3%;
    transform: rotate(45deg);
    border-radius: 8px;
}

/* ===== Navbar ===== */
.nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 54, 93, 0.08);
    box-shadow: 0 1px 0 rgba(26, 54, 93, 0.05);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(26, 54, 93, 0.1);
}

.menu-line {
    display: block;
}

.menu-line:nth-child(3) {
    transition-delay: 0s;
}

#menuBtn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
    margin-right: 0;
}

.nav-mobile {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    display: block;
    text-decoration: none;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 50%, #f5f0e8 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.03) 0%, rgba(214, 158, 46, 0.05) 100%);
    transform: skewX(-12deg);
    pointer-events: none;
}

.hero-title {
    letter-spacing: -0.02em;
}

.hero-badge {
    animation: fadeInUp 0.6s ease-out both;
}

.hero-title {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-subtitle {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stats {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

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

.cta-primary {
    box-shadow: 0 4px 14px rgba(214, 158, 46, 0.4);
    transition: all 0.3s ease;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 158, 46, 0.5);
}

.cta-secondary {
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.15);
}

.hero-float-card {
    animation: float 4s ease-in-out infinite;
}

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

.scroll-indicator {
    animation: fadeIn 1s ease-out 1s both;
}

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

/* ===== Section Styles ===== */
.section {
    position: relative;
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    gap: 8px;
}

@media (min-width: 640px) {
    .services-grid {
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        gap: 24px;
    }
}

.service-card {
    will-change: transform;
}

.service-card-inner {
    border: 1px solid rgba(26, 54, 93, 0.06);
}

.service-card-inner:hover {
    border-color: rgba(214, 158, 46, 0.2);
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    gap: 48px;
}

@media (min-width: 1024px) {
    .about-grid {
        gap: 64px;
    }
}

/* ===== Gallery Section ===== */
.gallery-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
    .gallery-grid {
        gap: 16px;
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    overflow: hidden;
}

.gallery-img {
    aspect-ratio: 1;
}

.gallery-item:first-child .gallery-img {
    aspect-ratio: auto;
}

@media (min-width: 1024px) {
    .gallery-item:first-child .gallery-img {
        aspect-ratio: 1;
    }
}

/* ===== CTA Section ===== */
.cta-shapes {
    pointer-events: none;
}

.cta-btn-primary {
    box-shadow: 0 4px 14px rgba(214, 158, 46, 0.4);
    transition: all 0.3s ease;
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 158, 46, 0.5);
}

.cta-btn-secondary {
    transition: all 0.3s ease;
}

.cta-btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

/* ===== Contact Section ===== */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.08);
}

/* ===== Footer ===== */
.footer {
    background: #0a1929;
}

/* ===== Scroll Reveal (Progressive Enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
}

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

::-webkit-scrollbar-track {
    background: #f0f4f8;
}

::-webkit-scrollbar-thumb {
    background: #9fb3c8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}

/* ===== Selection ===== */
::selection {
    background: rgba(214, 158, 46, 0.3);
    color: #1a365d;
}
