/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --cream-white: #FFF8F1;
    --pistachio-green: #A3C9A8;
    --blush-rose: #F8D7C4;
    --deep-chocolate: #5B3B2A;
    --soft-gold: #D4AF37;
    --muted-coral: #E8A87C;
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Poppins', sans-serif;
    --font-script: 'Great Vibes', cursive;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--deep-chocolate);
    background-color: var(--cream-white);
    overflow-x: hidden;
}

/* Custom Cursor - Removed */

/* Image Styles */
.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.story-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.flavour-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.gallery-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.shop-image-container {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    line-height: 0;
}

.shop-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition-smooth);
    display: block;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 248, 241, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(163, 201, 168, 0.2);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 248, 241, 0.98);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    transition: var(--transition-smooth);
}

.navbar.scrolled .nav-container {
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--deep-chocolate);
}

.logo-moon {
    font-size: 1.2rem;
    animation: moon-glow 3s ease-in-out infinite;
}

@keyframes moon-glow {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--deep-chocolate);
    font-weight: 500;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pistachio-green);
    transition: var(--transition-smooth);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--deep-chocolate);
    margin: 3px 0;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cream-white) 0%, var(--blush-rose) 100%);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.gelato-animation {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, var(--pistachio-green) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, var(--blush-rose) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, var(--soft-gold) 0%, transparent 30%);
    animation: gelato-swirl 20s ease-in-out infinite;
}

@keyframes gelato-swirl {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(0.9); }
    75% { transform: rotate(270deg) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.floating-scoops {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.scoop {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.scoop-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.scoop-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.scoop-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

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

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.title-line {
    display: block;
}

.highlight {
    color: var(--pistachio-green);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--soft-gold);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--deep-chocolate);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--pistachio-green);
    color: white;
}

.btn-primary:hover {
    background: var(--deep-chocolate);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(163, 201, 168, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--deep-chocolate);
    border: 2px solid var(--deep-chocolate);
}

.btn-secondary:hover {
    background: var(--deep-chocolate);
    color: white;
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--deep-chocolate);
    border-bottom: 2px solid var(--deep-chocolate);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

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

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--deep-chocolate);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--deep-chocolate);
    opacity: 0.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Story Section */
.story-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--cream-white) 0%, rgba(248, 215, 196, 0.3) 100%);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.story-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(30px);
}

.story-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.story-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--deep-chocolate);
    margin-bottom: 15px;
}

.story-images {
    display: flex;
    justify-content: center;
}

.story-main-image {
    width: 100%;
    max-width: 500px;
}

.image-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    line-height: 0;
}

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

.image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--pistachio-green), var(--blush-rose));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.image-placeholder p {
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Flavours Section */
.flavours-section {
    padding: var(--section-padding);
    background: var(--cream-white);
}

.flavour-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--pistachio-green);
    background: transparent;
    color: var(--pistachio-green);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--pistachio-green);
    color: white;
}

.flavours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.flavour-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(30px);
}

.flavour-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.flavour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.flavour-image {
    height: 200px;
    position: relative;
    background: linear-gradient(135deg, var(--pistachio-green), var(--blush-rose));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.flavour-image .image-placeholder {
    font-size: 3rem;
    color: white;
}

.flavour-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.flavour-card:hover .flavour-overlay {
    opacity: 1;
}

.moon-icon {
    font-size: 1.5rem;
    animation: moon-shimmer 2s ease-in-out infinite;
}

@keyframes moon-shimmer {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

.flavour-content {
    padding: 25px;
}

.flavour-content h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--deep-chocolate);
    margin-bottom: 10px;
}

.flavour-content p {
    color: var(--deep-chocolate);
    opacity: 0.8;
    margin-bottom: 15px;
}

.allergen-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    background: var(--blush-rose);
    color: var(--deep-chocolate);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag.vegan {
    background: var(--pistachio-green);
    color: white;
}

/* Visit Section */
.visit-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, rgba(163, 201, 168, 0.1) 0%, var(--cream-white) 100%);
}

.visit-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition-smooth);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--pistachio-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-content h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--deep-chocolate);
    margin-bottom: 10px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(91, 59, 42, 0.1);
}

.hours-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hours-item.closed {
    opacity: 0.6;
    color: #999;
}

.hours-item.closed span:last-child {
    color: #e74c3c;
    font-weight: 600;
}

.map-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.map-placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--pistachio-green), var(--blush-rose));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.map-placeholder p {
    margin-top: 10px;
    font-size: 1rem;
}

/* Gallery Section */
.gallery-section {
    padding: var(--section-padding);
    background: var(--cream-white);
}

.gallery-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.instagram-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.instagram-post {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.instagram-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.post-image {
    height: 150px;
    background: linear-gradient(135deg, var(--pistachio-green), var(--blush-rose));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.post-content {
    padding: 20px;
}

.post-content p {
    color: var(--deep-chocolate);
    font-size: 0.9rem;
}

.newsletter-signup {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.newsletter-signup h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--deep-chocolate);
    margin-bottom: 15px;
}

.newsletter-signup p {
    color: var(--deep-chocolate);
    opacity: 0.8;
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: 2px solid var(--pistachio-green);
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.newsletter-form input:focus {
    border-color: var(--deep-chocolate);
    box-shadow: 0 0 0 3px rgba(163, 201, 168, 0.3);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--deep-chocolate) 0%, #3d2a1e 100%);
    color: var(--cream-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--pistachio-green);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--cream-white);
    text-decoration: none;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--pistachio-green);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(163, 201, 168, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream-white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--pistachio-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(163, 201, 168, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(163, 201, 168, 0.2);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--cream-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .story-images {
        grid-template-columns: 1fr;
    }
    
    .visit-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .gallery-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .story-image {
        height: 300px;
    }
    
    .shop-image {
        height: 400px;
    }
    
    .instagram-feed {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .flavours-grid {
        grid-template-columns: 1fr;
    }
    
    .flavour-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Loading animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Hover effects for interactive elements */
.interactive:hover {
    cursor: pointer;
    transform: scale(1.05);
    transition: var(--transition-smooth);
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
.filter-btn:focus {
    outline: 2px solid var(--pistachio-green);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --cream-white: #FFFFFF;
        --deep-chocolate: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-scoops,
    .gelato-animation,
    .moon-icon {
        animation: none;
    }
}
