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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== GEOMETRIC SHAPES ===== */
.geometric-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.12;
}

.circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFD54F 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, #A5D6A7 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFECB3 0%, transparent 70%);
    top: 40%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(255, 213, 79, 0.3);
    top: 25%;
    left: 5%;
    transform: rotate(15deg);
    animation: spin-slow 20s linear infinite;
}

.square-1 {
    width: 100px;
    height: 100px;
    background: rgba(165, 214, 167, 0.4);
    border-radius: 16px;
    bottom: 20%;
    right: 5%;
    transform: rotate(45deg);
    animation: float 7s ease-in-out infinite reverse;
}

.ring-1 {
    width: 200px;
    height: 200px;
    border: 4px solid rgba(255, 236, 179, 0.4);
    border-radius: 50%;
    top: 15%;
    left: 15%;
    animation: float 9s ease-in-out infinite;
}

.dot-grid {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1px);
    background-size: 16px 16px;
    bottom: 15%;
    left: 10%;
    opacity: 0.6;
}

.about-square {
    width: 180px;
    height: 180px;
    background: rgba(255, 213, 79, 0.08);
    border-radius: 32px;
    top: 10%;
    right: 5%;
    transform: rotate(30deg);
    animation: spin-slow 25s linear infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-3deg); }
}

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

@keyframes scroll-line {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

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

/* ===== HERO BADGE ===== */
.hero-badge {
    animation: fadeInDown 1s ease-out both;
}

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

/* ===== HERO TEXT ===== */
#hero h1 {
    animation: fadeInUp 1s ease-out 0.2s both;
}

#hero p {
    animation: fadeInUp 1s ease-out 0.4s both;
}

#hero a {
    animation: fadeInUp 1s ease-out 0.6s both;
}

#hero a:nth-of-type(2) {
    animation: fadeInUp 1s ease-out 0.7s both;
}

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

/* ===== NAVBAR ===== */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

.nav-logo-text {
    transition: color 0.4s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #1B4332;
}

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

#mobileMenu.open .mobile-link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
#mobileMenu.open .mobile-link:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== GALLERY ===== */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.revealed {
    opacity: 1;
    transform: scale(1);
}

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

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

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

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

::-webkit-scrollbar-thumb {
    background: #1B4332;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #143024;
}

/* ===== SELECTION ===== */
::selection {
    background: #1B4332;
    color: #FDFBF7;
}

/* ===== FOCUS ===== */
:focus-visible {
    outline: 2px solid #1B4332;
    outline-offset: 2px;
}

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

    .circle-1 {
        width: 200px;
        height: 200px;
    }

    .circle-2 {
        width: 120px;
        height: 120px;
    }

    .circle-3 {
        display: none;
    }

    .triangle-1 {
        display: none;
    }

    .square-1 {
        width: 60px;
        height: 60px;
    }

    .ring-1 {
        width: 100px;
        height: 100px;
    }

    .dot-grid {
        display: none;
    }

    .about-square {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2.25rem;
    }

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