/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FF8F84;
    color: #7B2D3B;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: #ffaa9e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 143, 132, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #FFD9CF;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 1rem;
    text-decoration: none;
    border: 2px solid rgba(255, 217, 207, 0.4);
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: rgba(255, 217, 207, 0.1);
    border-color: rgba(255, 217, 207, 0.7);
    transform: translateY(-2px);
}

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

#navbar.scrolled {
    background: rgba(255, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF8F84;
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

.menu-line:last-child {
    width: 1.5rem;
}

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

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

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

.mobile-link {
    transition: all 0.2s ease;
}

/* ===== GEOMETRIC SHAPES ===== */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.geo-circle-1 {
    width: 320px;
    height: 320px;
    border: 3px solid #FFD9CF;
    border-radius: 50%;
    top: 10%;
    left: -5%;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 180px;
    height: 180px;
    background: #FFD9CF;
    border-radius: 50%;
    top: 20%;
    right: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 100px;
    height: 100px;
    border: 3px solid #FFD9CF;
    border-radius: 50%;
    bottom: 15%;
    left: 15%;
    animation: float 7s ease-in-out infinite;
}

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

.geo-rect-2 {
    width: 80px;
    height: 80px;
    border: 3px solid #FFD9CF;
    border-radius: 14px;
    top: 40%;
    left: 8%;
    transform: rotate(20deg);
    animation: float 9s ease-in-out infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #FFD9CF;
    bottom: 25%;
    right: 20%;
    opacity: 0.08;
    animation: spin-slow 25s linear infinite;
}

.geo-dots {
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, #FFD9CF 2px, transparent 2px);
    background-size: 12px 12px;
    top: 70%;
    left: 40%;
    opacity: 0.3;
}

/* Community section shapes */
.geo-diamond-1 {
    width: 100px;
    height: 100px;
    background: #FFD9CF;
    border-radius: 16px;
    top: 10%;
    right: 5%;
    transform: rotate(45deg);
    opacity: 0.15;
    animation: float 7s ease-in-out infinite;
}

.geo-diamond-2 {
    width: 60px;
    height: 60px;
    background: #7B2D3B;
    border-radius: 10px;
    bottom: 15%;
    left: 8%;
    transform: rotate(30deg);
    opacity: 0.08;
    animation: float 5s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 140px;
    height: 140px;
    border: 3px solid #FFD9CF;
    border-radius: 24px;
    top: 50%;
    left: -3%;
    transform: rotate(15deg);
    opacity: 0.12;
    animation: spin-slow 30s linear infinite;
}

.geo-circle-4 {
    width: 200px;
    height: 200px;
    background: #FFD9CF;
    border-radius: 50%;
    bottom: -5%;
    right: 10%;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

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

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

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal[data-reveal="left"] {
    transform: translateX(-30px);
}

.reveal[data-reveal="left"].revealed {
    transform: translateX(0);
}

.reveal[data-reveal="right"] {
    transform: translateX(30px);
}

.reveal[data-reveal="right"].revealed {
    transform: translateX(0);
}

.reveal[data-reveal="scale"] {
    transform: scale(0.95);
}

.reveal[data-reveal="scale"].revealed {
    transform: scale(1);
}

/* Staggered delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
    .geo-shape {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}
