/* ========================================
   QUEENS BEST ICE CREAM AND MIX
   Custom Styles
======================================== */

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

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

body {
    font-family: 'Nunito', sans-serif;
    background: #1a010a;
    color: #fff;
    overflow-x: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a010a;
}
::-webkit-scrollbar-thumb {
    background: #be185d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9d174d;
}

/* ---- Navigation ---- */
.nav-fixed {
    background: rgba(26, 1, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
    background: rgba(26, 1, 10, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #ffd32a;
}

/* Mobile menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link:hover {
    color: #ffd32a !important;
}

/* ---- Hero Section ---- */
.hero {
    background: linear-gradient(135deg, #1a010a 0%, #2e0314 40%, #500724 100%);
    position: relative;
    min-height: 100vh;
}

/* Geometric shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
}

.geo-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 211, 42, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(190, 24, 93, 0.15) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    background: rgba(255, 211, 42, 0.06);
    border: 2px solid rgba(255, 211, 42, 0.1);
    top: 30%;
    right: 5%;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 60px 100px 60px;
    border-color: transparent transparent rgba(190, 24, 93, 0.12) transparent;
    top: 15%;
    left: 5%;
    transform: rotate(-15deg);
}

.geo-square {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 211, 42, 0.05);
    border: 2px solid rgba(255, 211, 42, 0.1);
    border-radius: 12px;
    bottom: 20%;
    right: 10%;
    transform: rotate(30deg);
}

.geo-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(255, 211, 42, 0.2) 1px, transparent 1px);
    background-size: 15px 15px;
    top: 20%;
    right: 3%;
    opacity: 0.6;
}

/* Hero image */
.hero-image-container {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 1, 10, 0.3) 0%, transparent 40%);
    z-index: 1;
    border-radius: 24px;
}

.hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 6/7;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.hero-image-container:hover .hero-image {
    transform: scale(1.02);
}

/* Floating cards */
.floating-card {
    position: absolute;
    background: rgba(26, 1, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 16px;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.floating-card-1 {
    bottom: 15%;
    left: -30px;
    animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
    top: 10%;
    right: -20px;
    animation: float 4s ease-in-out infinite 1s;
}

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

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 13px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #ffd32a;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 22px; }
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ffd32a 0%, #ffb020 100%);
    color: #1a010a;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 211, 42, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 211, 42, 0.4);
    background: linear-gradient(135deg, #ffe88a 0%, #ffd32a 100%);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #fff;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: #ffd32a;
    color: #ffd32a;
    transform: translateY(-2px);
}

/* ---- Sections ---- */
.section-flavors {
    background: linear-gradient(180deg, #1a010a 0%, #2e0314 50%, #1a010a 100%);
}

.section-about {
    background: linear-gradient(180deg, #1a010a 0%, #2e0314 100%);
}

.section-drinks {
    background: linear-gradient(180deg, #1a010a 0%, #2e0314 50%, #1a010a 100%);
}

.section-visit {
    background: linear-gradient(180deg, #1a010a 0%, #2e0314 100%);
}

/* ---- Flavor Cards ---- */
.flavor-card {
    perspective: 1000px;
}

.flavor-card-inner {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.flavor-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd32a, #be185d);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flavor-card:hover .flavor-card-inner {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 211, 42, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 211, 42, 0.1);
}

.flavor-card:hover .flavor-card-inner::before {
    opacity: 1;
}

.flavor-card-emoji {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
    transition: transform 0.3s ease;
}

.flavor-card:hover .flavor-card-emoji {
    transform: scale(1.15) rotate(-5deg);
}

.flavor-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    background: rgba(255, 211, 42, 0.15);
    border: 1px solid rgba(255, 211, 42, 0.3);
    border-radius: 20px;
    color: #ffd32a;
    font-size: 0.75rem;
    font-weight: 700;
}

.flavor-tag-new {
    background: rgba(190, 24, 93, 0.2);
    border-color: rgba(190, 24, 93, 0.4);
    color: #f9a8d4;
}

.flavor-tag-spicy {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* ---- About Section ---- */
.about-image-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.about-img-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.about-img-main img {
    width: 100%;
    height: auto;
    aspect-ratio: 5/6;
    object-fit: cover;
    display: block;
}

.about-img-accent {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 55%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border: 4px solid #1a010a;
}

.about-img-accent img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.about-deco-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 211, 42, 0.15);
    border-radius: 50%;
    top: -40px;
    left: -40px;
    z-index: -1;
}

/* ---- Drink Cards ---- */
.drink-card {
    perspective: 1000px;
}

.drink-card-inner {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.drink-card:hover .drink-card-inner {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 211, 42, 0.15);
    background: rgba(255, 255, 255, 0.07);
}

.drink-visual {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.drink-image {
    width: 100%;
    height: auto;
    aspect-ratio: 300/350;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.drink-card:hover .drink-image {
    transform: scale(1.05);
}

.drink-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 1, 10, 0.5) 0%, transparent 50%);
    border-radius: 20px 20px 0 0;
}

.drink-emoji {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 2rem;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.drink-card:hover .drink-emoji {
    transform: scale(1.2) rotate(10deg);
}

/* ---- Contact Card ---- */
.contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd32a, #be185d, #ffd32a);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---- Form ---- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 700;
}

.form-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
    border-color: #ffd32a;
    background: rgba(255, 211, 42, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 211, 42, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-select option {
    background: #2e0314;
    color: #fff;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Success message */
.success-message {
    text-align: center;
    padding: 32px;
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}

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

/* ---- Footer ---- */
.footer {
    background: #0d0005;
}

/* ---- Scroll Reveal ---- */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 80px 0 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-image-container {
        margin-top: 40px;
    }

    .floating-card-1 {
        left: 10px;
        bottom: 10%;
    }

    .floating-card-2 {
        right: 10px;
        top: 5%;
    }

    .scroll-indicator {
        display: none;
    }

    .about-img-accent {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: 16px;
        border-width: 0;
    }

    .about-deco-circle {
        display: none;
    }

    .contact-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero h1 span.text-amber-400 {
        font-size: 1.6rem;
    }

    .flavor-card-inner {
        padding: 20px;
    }

    .grid-cols-2 .form-group {
        grid-column: span 1;
    }
}

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

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
