/* ============================================
   Heavenly Donuts — Custom Styles
   ============================================ */

/* 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: 'Inter', sans-serif;
    background-color: #1e1e25;
    color: #e3e3e8;
    overflow-x: hidden;
}

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

.circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #ff5a3d;
    top: -200px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #ff8f77;
    bottom: 10%;
    left: -80px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #ff5a3d;
    top: 40%;
    right: 10%;
    animation: float-medium 12s ease-in-out infinite;
}

.square-1 {
    width: 120px;
    height: 120px;
    background: #ff5a3d;
    top: 25%;
    left: 8%;
    transform: rotate(45deg);
    animation: float-medium 18s ease-in-out infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 120px solid #ff8f77;
    top: 60%;
    right: 5%;
    animation: float-slow 22s ease-in-out infinite reverse;
}

.dot-grid {
    width: 200px;
    height: 200px;
    top: 15%;
    left: 15%;
    background-image: radial-gradient(circle, #ff5a3d 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    opacity: 0.15;
    animation: float-medium 25s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(5deg); }
    50% { transform: translate(-10px, 20px) rotate(-3deg); }
    75% { transform: translate(15px, 10px) rotate(2deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-25px, 20px) rotate(8deg); }
    66% { transform: translate(15px, -15px) rotate(-5deg); }
}

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

#navbar.scrolled {
    background: rgba(18, 18, 24, 0.95);
    backdrop-blur-xl;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:last-of-type {
    border-bottom: none;
}

/* ============================================
   Scroll Reveal Animations
   (progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: #ff5a3d;
    color: #ffffff;
}

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

::-webkit-scrollbar-track {
    background: #1e1e25;
}

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

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

/* ============================================
   Image aspect ratio fallbacks
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Focus styles for accessibility
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #ff5a3d;
    outline-offset: 2px;
    border-radius: 4px;
}
