/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

#navbar.scrolled {
    background-color: rgba(245, 240, 232, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 92, 58, 0.1);
}

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

#navbar:not(.scrolled) .nav-logo-text {
    color: #1a5c3a;
}

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

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

.mobile-menu-link {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu:not(.open) .mobile-menu-link {
    opacity: 0;
    transform: translateY(10px);
}

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

/* Mobile menu line animation */
#mobileMenuBtn.active .mobile-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobileMenuBtn.active .mobile-menu-line:nth-child(2) {
    opacity: 0;
}

#mobileMenuBtn.active .mobile-menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

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

.geo-triangle-1 {
    top: 12%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #f5a623;
    transform: rotate(-15deg);
    animation: float-shape 8s ease-in-out infinite;
}

.geo-circle-1 {
    top: 20%;
    right: 8%;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: float-shape 6s ease-in-out infinite reverse;
}

.geo-square-1 {
    bottom: 25%;
    left: 8%;
    width: 80px;
    height: 80px;
    background: rgba(245, 166, 35, 0.3);
    transform: rotate(45deg);
    animation: float-shape 7s ease-in-out infinite;
}

.geo-diamond-1 {
    top: 40%;
    right: 15%;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    animation: float-shape 9s ease-in-out infinite reverse;
}

.geo-circle-2 {
    bottom: 15%;
    right: 5%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-shape 10s ease-in-out infinite;
}

.geo-triangle-2 {
    top: 60%;
    left: 15%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(255, 255, 255, 0.15);
    transform: rotate(20deg);
    animation: float-shape 5s ease-in-out infinite reverse;
}

.geo-stripe-1 {
    top: 10%;
    right: 25%;
    width: 120px;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(-30deg);
    border-radius: 4px;
    animation: float-shape 6s ease-in-out infinite;
}

.geo-stripe-2 {
    bottom: 35%;
    left: 20%;
    width: 80px;
    height: 6px;
    background: rgba(245, 166, 35, 0.25);
    transform: rotate(15deg);
    border-radius: 3px;
    animation: float-shape 7s ease-in-out infinite reverse;
}

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

.geo-triangle-1 { --rotate: -15deg; }
.geo-square-1 { --rotate: 45deg; }
.geo-diamond-1 { --rotate: 30deg; }
.geo-triangle-2 { --rotate: 20deg; }
.geo-stripe-1 { --rotate: -30deg; }
.geo-stripe-2 { --rotate: 15deg; }

/* ===== SPARK PARTICLES ===== */
.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #f5a623;
    border-radius: 50%;
    pointer-events: none;
    animation: spark-fall linear forwards;
}

@keyframes spark-fall {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(120px) scale(0);
    }
}

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

h1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero p {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

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

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

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

/* Reduced motion - content is always visible */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ===== SERVICE CARDS ===== */
.service-card {
    perspective: 1000px;
}

.service-card:hover .service-card-inner {
    transform: translateY(-4px);
}

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

/* ===== FORM STYLES ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 92, 58, 0.15);
}

/* ===== BUTTON HOVER EFFECTS ===== */
a, button {
    transition: all 0.2s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 60px;
        height: 60px;
    }

    .geo-square-1 {
        width: 50px;
        height: 50px;
    }

    .geo-circle-2 {
        width: 100px;
        height: 100px;
    }
}

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

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

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

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