/* ============================================
   September Rose — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
    min-height: 100vh;
}

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

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(249, 168, 212, 0.15);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(251, 207, 232, 0.2);
    border-radius: 50%;
    top: 40%;
    right: 10%;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(245, 158, 11, 0.08);
    top: 15%;
    left: 8%;
    transform: rotate(15deg);
    animation: float-slow 18s ease-in-out infinite;
}

.geo-square-1 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(249, 168, 212, 0.2);
    top: 60%;
    right: 5%;
    transform: rotate(45deg);
    animation: float-slow 14s ease-in-out infinite reverse;
}

.geo-ring-1 {
    width: 160px;
    height: 160px;
    border: 3px solid rgba(251, 207, 232, 0.12);
    border-radius: 50%;
    bottom: 10%;
    right: 20%;
    animation: float-slow 16s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
    75% { transform: translateY(-20px) rotate(1deg); }
}

/* --- Floating Cards --- */
.floating-card {
    animation: float-card 6s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: 2s;
}

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

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion: content always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .geo-shape {
        animation: none;
    }
    .floating-card {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* --- Navbar --- */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(157, 23, 77, 0.08);
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(157, 23, 77, 0.1);
}

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

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

/* --- Button Focus States --- */
a:focus-visible, button:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Selection --- */
::selection {
    background: #f9a8d4;
    color: #500724;
}

/* --- Smooth image rendering --- */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* --- Tablet --- */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .geo-circle-2 {
        width: 140px;
        height: 140px;
    }
    
    .geo-triangle-1 {
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        border-bottom: 69px solid rgba(245, 158, 11, 0.08);
    }
    
    .geo-square-1 {
        width: 50px;
        height: 50px;
    }
}

/* --- Small phones --- */
@media (max-width: 360px) {
    .font-display {
        font-size: 1.5rem;
    }
}
