/* ===== Custom Styles for Confetti Sun ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fef9ef;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* ===== Geometric Shapes ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

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

.shape-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 243, 208, 0.2) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 230, 138, 0.2) 0%, transparent 70%);
    bottom: 10%;
    right: 5%;
    animation: float 6s ease-in-out infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(253, 211, 77, 0.12);
    top: 20%;
    left: 5%;
    animation: spin 20s linear infinite;
}

.shape-diamond {
    width: 100px;
    height: 100px;
    background: rgba(253, 211, 77, 0.1);
    top: 40%;
    right: 10%;
    transform: rotate(45deg);
    animation: float 7s ease-in-out infinite;
}

.shape-rect {
    width: 150px;
    height: 60px;
    background: rgba(110, 231, 183, 0.1);
    border-radius: 12px;
    bottom: 20%;
    left: 10%;
    transform: rotate(-15deg);
    animation: float 9s ease-in-out infinite reverse;
}

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

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

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger children */
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.5s; }

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(254, 254, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(6, 95, 70, 0.08);
}

/* ===== Mobile menu ===== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

.mobile-link:hover {
    color: #059669;
}

/* ===== Button hover effects ===== */
a {
    text-decoration: none;
}

/* ===== Focus styles ===== */
:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* ===== Service card icon circle ===== */
.w-14 {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Image aspect ratio fix ===== */
.rounded-2xl.overflow-hidden {
    position: relative;
}

/* ===== Print styles ===== */
@media print {
    .geo-shape, .scroll-reveal { display: none; }
    body { background: white; color: black; }
}
