/* A1 Donuts Website Styles */
:root {
    /* Primary Color Palette */
    --primary-purple: #e005ff;
    --light-gray: #fafafa;
    --dark-green: #100c08;

    /* Additional complementary colors */
    --accent-pink: #ff6bb3;
    --warm-orange: #ff8c42;

    /* Derived colors */
    --primary-purple-light: rgba(224, 5, 255, 0.1);
    --primary-purple-dark: #b004cc;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.2);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;

    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Account for fixed navbar */
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    text-decoration: none;
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-purple);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-purple);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}


.hero-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 2;
}



.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-title .accent {
    color: var(--primary-purple);
    position: relative;
}


.hero-subtitle-card {
    background: rgba(255,255,255,0.92);
    box-shadow: 0 4px 24px var(--shadow);
    border-radius: 18px;
    padding: 1.2rem 2rem;
    margin-bottom: 2rem;
    display: inline-block;
    max-width: 520px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-purple);
    color: white;
    box-shadow: 0 4px 15px rgba(224, 5, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 5, 255, 0.4);
}

.btn-secondary {
    background: var(--primary-purple-light);
    color: #fff;
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--primary-purple);
    color: #fff;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Image/Animation */
.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    min-height: 1px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature i {
    color: var(--primary-purple);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.feature h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-light);
    margin: 0;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Menu Section */
.menu {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.menu-category {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.menu-category:hover {
    transform: translateY(-5px);
}

.menu-category h3 {
    font-size: 1.5rem;
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-purple-light);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--primary-purple-light);
}

.menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.item-info h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.item-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.price {
    color: var(--primary-purple);
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    margin-left: 1rem;
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.event-types {
    list-style: none;
    margin: 1.5rem 0;
}

.event-types li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.event-types i {
    color: var(--primary-purple);
    margin-right: 0.75rem;
    width: 20px;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-item i {
    color: var(--primary-purple);
    margin-right: 1rem;
    width: 20px;
}

/* Contact Form */
.contact-form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-primary);
    background: #fff;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 2px var(--primary-purple-light);
    outline: none;
}

.contact-form textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-form .btn-full {
    margin-top: 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 1rem 0;
    border-radius: 30px;
    background: var(--primary-purple);
    color: #fff;
    border: none;
    width: 100%;
    box-shadow: 0 4px 15px rgba(224, 5, 255, 0.2);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    display: block;
}

.contact-form .btn-full:hover {
    background: var(--primary-purple-dark);
    box-shadow: 0 6px 24px rgba(224, 5, 255, 0.3);
    transform: translateY(-2px) scale(1.01);
}

.contact-form .form-group {
    margin-bottom: 0.7rem;
}

.contact-form input[type="date"]::-webkit-input-placeholder,
.contact-form input[type="text"]::-webkit-input-placeholder,
.contact-form input[type="email"]::-webkit-input-placeholder,
.contact-form textarea::-webkit-input-placeholder {
    color: #aaa;
    opacity: 1;
}

.contact-form input[type="date"]::-moz-placeholder,
.contact-form input[type="text"]::-moz-placeholder,
.contact-form input[type="email"]::-moz-placeholder,
.contact-form textarea::-moz-placeholder {
    color: #aaa;
    opacity: 1;
}

.contact-form input[type="date"]:-ms-input-placeholder,
.contact-form input[type="text"]:-ms-input-placeholder,
.contact-form input[type="email"]:-ms-input-placeholder,
.contact-form textarea:-ms-input-placeholder {
    color: #aaa;
    opacity: 1;
}

.contact-form input[type="date"]::placeholder,
.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
    opacity: 1;
}

/* Optional: Make sure select looks consistent */
.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8L0.803847 0.5L11.1962 0.5L6 8Z' fill='%23e005ff'/%3E%3C/svg%3E%0A") no-repeat right 1rem center/1rem;
    padding-right: 2.5rem;
}

/* Responsive tweaks for form */
@media (max-width: 600px) {
    .contact-form {
        padding: 1rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 0.98rem;
        padding: 0.65rem 0.8rem;
    }

    .contact-form .btn-full {
        font-size: 1rem;
        padding: 0.85rem 0;
    }
}

/* Footer */
.footer {
    background: var(--dark-green);
    color: var(--light-gray);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.footer-section h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--light-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-purple);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-purple);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-pink);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(250, 250, 250, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: var(--light-gray);
}

.footer-bottom i {
    color: var(--accent-pink);
}

/* ────────────  Gallery  ──────────── */
.gallery {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.gallery-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.gallery-item {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 4px 16px var(--shadow);
    transition: transform .3s cubic-bezier(.25,.8,.25,1),
                box-shadow .3s;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px var(--shadow-strong);
}

/* ─── Thumbnail Wrapper ─── */
.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 260px;
    background: #fff;
    border-radius: 15px 15px 0 0;
    z-index: 1;
    cursor: pointer;
}

.gallery-images img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
}

.gallery-images img.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

/* Add subtle zoom / tilt on hover */
.gallery-item:hover .gallery-image-wrapper img {
    transform: scale(1.1) rotate(-2deg);
}

/* ─── Caption ─── */
.gallery-caption {
    padding: .75rem 1rem;
    text-align: center;
    font-size: 1rem;
    color: #333;
    background: rgba(255,255,255,.85);
    border-radius: 0 0 16px 16px;
    box-sizing: border-box;
}

/* ────────────  Lightbox Modal  ──────────── */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,.85);
    justify-content: center;
    align-items: center;
    transition: opacity .3s;
}

.gallery-modal.active { display: flex; }

.gallery-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    background: transparent;
    border-radius: 12px;
}

.gallery-modal-img {
    max-width: 80vw;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 4px 24px var(--shadow);
}

.gallery-modal-caption {
    margin-top: 1.2rem;
    font-size: 1.2rem;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.gallery-modal-close {
    position: absolute;
    top: 10px;
    right: 18px;
    z-index: 10;
    font-size: 2.2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    transition: color .2s;
}

.gallery-modal-close:hover { color: var(--primary-purple); }

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 180px;
    }

    .gallery-modal-img {
        max-width: 96vw;
        max-height: 60vh;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Animation for form submission feedback */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #c62828;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
    will-change: opacity;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-purple);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}