/* ═══════════════════════════════════════════════════════════
   IT'Z A COTTON CANDY THING — Custom Styles
   Palette: Plum + Amber | Vibrant Modern
═══════════════════════════════════════════════════════════ */

/* ── Base & Typography ─────────────────────────────────── */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #ffc000;
    color: #3e0c16;
}

/* ── Hero Geometric Animations ─────────────────────────── */
.hero-geo {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #ffc000;
    top: -100px;
    left: -100px;
    animation: float-slow 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #e04f6e;
    bottom: 10%;
    right: 5%;
    animation: float-slow 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #ffd155;
    top: 40%;
    left: 15%;
    animation: float-slow 10s ease-in-out infinite;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: #ffc000;
    top: 20%;
    right: 15%;
    border-radius: 20px;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #e04f6e;
    bottom: 20%;
    left: 8%;
    animation: float-slow 7s ease-in-out infinite;
    opacity: 0.06;
}

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

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

/* ── Scroll Reveal Animations ──────────────────────────── */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ── Button Hover Glow ─────────────────────────────────── */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #ffc000;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Smooth Scroll Offset for Fixed Nav ────────────────── */
section[id] {
    scroll-margin-top: 80px;
}

/* ── Mobile Menu Transition ────────────────────────────── */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* ── Image Hover Zoom ──────────────────────────────────── */
img {
    max-width: 100%;
    height: auto;
}

/* ── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* ── Responsive Adjustments ────────────────────────────── */
@media (max-width: 640px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
}
