/* ===== Base & Reset ===== */
*, *::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;
    overflow-x: hidden;
}

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

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

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 122, 143, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 173, 184, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(224, 122, 95, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    top: 40%;
    right: 30%;
    animation: float 6s ease-in-out infinite;
}

.geo-rect-1 {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    top: 15%;
    left: -50px;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.geo-rect-2 {
    width: 120px;
    height: 120px;
    background: rgba(255, 122, 143, 0.1);
    border: 2px solid rgba(255, 122, 143, 0.2);
    border-radius: 20px;
    bottom: 10%;
    right: 15%;
    transform: rotate(30deg);
    animation: spin 15s linear infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(255, 173, 184, 0.1);
    top: 60%;
    left: 10%;
    animation: float 12s ease-in-out infinite;
}

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

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

/* ===== Navbar ===== */
#navbar {
    backdrop-filter: blur(0px);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(149, 36, 58, 0.08);
}

/* Mobile menu button animations */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#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) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile links */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== Menu Cards ===== */
.menu-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
}

/* ===== Gallery Items ===== */
.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* ===== Scroll Animations ===== */
/* Default state: always visible for accessibility */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal.revealed {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #93243b;
}

/* ===== Selection ===== */
::selection {
    background: rgba(181, 45, 74, 0.2);
    color: #420c17;
}

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

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-rect-1 {
        width: 120px;
        height: 120px;
    }
    
    .geo-triangle-1 {
        border-left: 50px solid transparent;
        border-right: 50px solid transparent;
        border-bottom: 87px solid rgba(255, 173, 184, 0.1);
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.75rem !important;
    }
    
    h1 span {
        font-size: 2rem !important;
    }
}
