/* ============================================
   Swiss Donut — Custom Styles
   ============================================ */

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

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

body {
    min-height: 100vh;
}

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

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

.circle-1 {
    width: 420px;
    height: 420px;
    border: 3px solid #FFB052;
    border-radius: 50%;
    top: -80px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

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

.circle-3 {
    width: 120px;
    height: 120px;
    border: 3px solid #B8D4E3;
    border-radius: 50%;
    top: 30%;
    left: 8%;
    animation: float-slow 12s ease-in-out infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #F2C4B0;
    top: 20%;
    right: 10%;
    animation: spin-slow 25s linear infinite;
    opacity: 0.08;
}

.triangle-2 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 87px solid #FFC27A;
    bottom: 25%;
    right: 20%;
    animation: spin-slow 18s linear infinite reverse;
    opacity: 0.08;
}

.square-1 {
    width: 100px;
    height: 100px;
    background: #FFF8F0;
    border-radius: 16px;
    top: 60%;
    left: 15%;
    animation: spin-slow 30s linear infinite;
    opacity: 0.06;
}

.square-2 {
    width: 60px;
    height: 60px;
    border: 3px solid #FFB052;
    border-radius: 12px;
    top: 15%;
    left: 25%;
    animation: spin-slow 22s linear infinite reverse;
    opacity: 0.1;
}

.ring-1 {
    width: 160px;
    height: 160px;
    border: 4px solid #FFD099;
    border-radius: 50%;
    bottom: 10%;
    right: 8%;
    animation: float-slow 16s ease-in-out infinite;
    opacity: 0.1;
}

.dot-cluster {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    top: 45%;
    right: 5%;
    opacity: 0.15;
}

.dot-cluster span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFB052;
}

.dot-cluster span:nth-child(2),
.dot-cluster span:nth-child(5),
.dot-cluster span:nth-child(7) {
    background: #FFF8F0;
}

.dot-cluster span:nth-child(4),
.dot-cluster span:nth-child(8) {
    background: #B8D4E3;
}

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

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

/* ============================================
   Marquee
   ============================================ */
.marquee-track {
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .scroll-reveal-card {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 93, 58, 0.08);
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(26, 93, 58, 0.08);
}

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

/* ============================================
   Focus Styles
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #1A5D3A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Selection
   ============================================ */
::selection {
    background: #1A5D3A;
    color: #FFF8F0;
}

/* ============================================
   Utility: hide scrollbar but keep functionality
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7cb896;
}
