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

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

body {
    overflow-x: hidden;
}

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

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

.shape-circle-1 {
    top: 10%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 92, 40, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

.shape-triangle {
    top: 20%;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(232, 92, 40, 0.08);
    animation: float-medium 6s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 15%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(237, 201, 106, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.shape-rect {
    bottom: 25%;
    right: 15%;
    width: 120px;
    height: 120px;
    background: rgba(232, 92, 40, 0.06);
    border-radius: 20px;
    transform: rotate(45deg);
    animation: float-medium 7s ease-in-out infinite;
}

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

@keyframes float-medium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* ─── Floating Card ─── */
.floating-card {
    animation: float-card 4s ease-in-out infinite;
}

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

/* ─── Navbar ─── */
#navbar {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ─── Mobile Menu ─── */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

#menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Scroll Reveal (Progressive Enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .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; }
}

/* Fallback: ensure content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ─── Button Hover Effects ─── */
a, button {
    -webkit-tap-highlight-color: transparent;
}

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

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

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

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

/* ─── Selection ─── */
::selection {
    background: rgba(232, 92, 40, 0.2);
    color: #782411;
}

/* ─── Form Focus States ─── */
input:focus, textarea:focus {
    outline: none;
}

/* ─── Responsive Tweaks ─── */
@media (max-width: 640px) {
    .shape-circle-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-triangle {
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        border-bottom: 70px solid rgba(232, 92, 40, 0.08);
    }
    
    .shape-circle-2 {
        width: 100px;
        height: 100px;
    }
    
    .shape-rect {
        width: 60px;
        height: 60px;
    }
    
    .floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        animation: none;
    }
}
