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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
}

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

/* ===== NAVBAR ===== */
#navbar {
    background: rgba(253, 246, 240, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
}

#navbar.scrolled {
    background: rgba(253, 246, 240, 0.97);
    box-shadow: 0 4px 20px rgba(123, 45, 59, 0.1);
}

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

#mobileMenu:not(.open) {
    transform: translateX(100%);
}

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

.mobile-link:hover {
    color: #c2204a;
}

/* Menu button animation */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ===== HERO GEOMETRIC SHAPES ===== */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 192, 176, 0.3) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(123, 45, 59, 0.08) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    border-radius: 50%;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    background: rgba(245, 192, 176, 0.4);
    top: 30%;
    left: 45%;
    border-radius: 50%;
    animation: float-medium 6s ease-in-out infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(240, 205, 181, 0.3);
    top: 25%;
    right: 5%;
    transform: rotate(15deg);
    animation: float-medium 7s ease-in-out infinite;
}

.shape-dots {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 8%;
    background-image: radial-gradient(circle, rgba(123, 45, 59, 0.15) 2px, transparent 2px);
    background-size: 16px 16px;
    animation: float-slow 9s ease-in-out infinite reverse;
}

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

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

/* ===== CARD GRADIENTS ===== */
.card-gradient {
    background: white;
    box-shadow: 0 4px 20px rgba(123, 45, 59, 0.06);
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.card-gradient:hover {
    box-shadow: 0 20px 60px rgba(123, 45, 59, 0.15);
}

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

.shape-geo-1 {
    width: 200px;
    height: 200px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: -50px;
    left: 10%;
    animation: spin-slow 20s linear infinite;
}

.shape-geo-2 {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    top: 20px;
    right: 20%;
    transform: rotate(45deg);
    animation: spin-slow 15s linear infinite reverse;
}

.shape-geo-3 {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    bottom: -20px;
    right: 40%;
    animation: spin-slow 12s linear infinite;
}

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

/* ===== CONTACT SECTION SHAPES ===== */
.contact-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-a {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float-slow 12s ease-in-out infinite;
}

.shape-circle-b {
    width: 250px;
    height: 250px;
    border: 2px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
    animation: float-slow 8s ease-in-out infinite reverse;
}

.shape-square {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    top: 40%;
    left: 5%;
    transform: rotate(30deg);
    animation: spin-slow 25s linear infinite;
}

/* ===== FOOTER SHAPES ===== */
.footer-shape {
    position: absolute;
    pointer-events: none;
}

.shape-footer-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 192, 176, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.shape-footer-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(240, 205, 181, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -50px;
    right: 10%;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* When JS is disabled, all content is visible by default (progressive enhancement) */
/* JS adds .revealed class on scroll for below-fold animations */

/* ===== BACK TO TOP ===== */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
}

#backToTop:not(.visible) {
    opacity: 0;
    pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .shape-triangle {
        display: none;
    }
    
    .shape-dots {
        display: none;
    }
}

/* ===== 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;
    }
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(123, 45, 59, 0.15);
    color: #3d0f17;
}
