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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #fbbf24;
    color: #500724;
}

/* ===== Custom Properties ===== */
:root {
    --plum-800: #831443;
    --plum-700: #9d174d;
    --plum-600: #be185d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
}

/* ===== Decorative Background Shapes ===== */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.deco-1 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    top: 15%;
    left: 5%;
    animation: float 8s ease-in-out infinite;
}

.deco-2 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(190, 24, 93, 0.12) 0%, transparent 70%);
    top: 30%;
    right: 8%;
    animation: float 6s ease-in-out infinite reverse;
}

.deco-3 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
    bottom: 20%;
    left: 15%;
    animation: float 7s ease-in-out infinite;
}

.deco-square {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(190, 24, 93, 0.08) 0%, transparent 70%);
    border-radius: 20px;
    top: 60%;
    right: 5%;
    transform: rotate(15deg);
    animation: float 9s ease-in-out infinite reverse;
}

.deco-donut {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 20px solid rgba(251, 191, 36, 0.06);
    top: 45%;
    left: 3%;
    animation: spin 20s linear infinite;
}

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

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Animation Classes ===== */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-up-delay {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-up-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 5s ease-in-out infinite;
}

/* ===== Button Styles ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #be185d 0%, #9d174d 100%);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(190, 24, 93, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #ffffff;
    color: #9d174d;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #fbcfe8;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #fce7f3;
    border-color: #be185d;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(190, 24, 93, 0.15);
}

/* ===== Navigation ===== */
.nav-link {
    position: relative;
}

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

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

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background: #fce7f3;
    color: #be185d;
}

/* Mobile menu open state */
#mobileMenu.open {
    display: block;
    animation: slideInRight 0.3s ease-out;
}

#mobileMenu {
    display: none;
}

/* Hamburger 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.25rem;
}

/* ===== Navbar Scroll State ===== */
#navbar.scrolled {
    background: rgba(253, 244, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(190, 24, 93, 0.1);
}

/* ===== Menu Cards ===== */
.menu-card {
    background: #ffffff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(190, 24, 93, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(190, 24, 93, 0.06);
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(190, 24, 93, 0.15);
}

/* ===== Gallery Items ===== */
.gallery-item {
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(190, 24, 93, 0.1);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(190, 24, 93, 0.2);
}

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

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .deco-circle,
    .deco-square,
    .deco-donut {
        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;
    }
    
    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}
