/* Fonts loaded via HTML <link> tags for better performance */

:root {
    --bg-white: #FFFFFF;
    --bg-cream: #FFFDF5;
    --brand-black: #1A1A1A;
    --brand-yellow: #FFC72C;
    --brand-purple: #CBB1E6;
    --brand-purple-light: #F3E8FF;
    --brand-orange: #FF851B;

    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-white);

    color: var(--text-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    line-height: 1.6;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 6rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    /* Matches screenshot roundedness */
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    font-size: 0.95rem;
    border: none;
}

.btn-primary {
    background-color: var(--brand-black);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-black);
    border: 2px solid var(--brand-black);
}

.btn-outline:hover {
    background-color: var(--brand-black);
    color: var(--text-light);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--brand-black);
    border: 2px solid var(--brand-black);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background-color: #f8f8f8;
}


/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    z-index: 1000;
    padding: 0.8rem 3rem;
    background: var(--brand-black);
    border-radius: 20px;

    transition: all 0.3s ease;
}

.navbar.scrolled {
    top: 10px;
    padding: 0.8rem 3rem;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    font-family: 'Permanent Marker', cursive;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 2px;
    display: inline-block;
    z-index: 2;
}

.logo span {
    color: var(--brand-yellow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex: 1;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.nav-links li a:hover {
    color: var(--brand-yellow);
}

.nav-actions {
    display: flex;
    gap: 0.8rem;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
}

/* Nav Specific Buttons */
.btn-nav-light {
    background: white;
    color: var(--brand-black);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-nav-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-nav-light:hover,
.btn-nav-outline:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-nav-light ion-icon,
.btn-nav-outline ion-icon {
    font-size: 1.1rem;
}

.mobile-toggle {
    display: none;
    font-size: 2.2rem;
    cursor: pointer;
    color: var(--text-light);
}

.mobile-menu {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Fallback */
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    width: 100%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.hero-chip {
    display: inline-block;
    background: var(--brand-yellow);
    color: var(--brand-black);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: var(--brand-black);
}

.text-highlight {
    color: var(--brand-orange);
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background: rgba(255, 199, 44, 0.3);
    z-index: -1;
    transform: skewX(-15deg);
}

.hero-text {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* Hero Image & 3D Elements */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    /* Above navbar */
}

.hero-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.floating-coffee {
    width: 110%;
    /* Reduced from 120% */
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.3));
    /* Entrance Animation: Springy Pop */
    animation: cupEntrance 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: center bottom;
    opacity: 0;
    /* Start invisible */
    transform: translateX(-10%);
    /* Center visually */
    mix-blend-mode: multiply;
    /* Simulates background removal */
}

@keyframes cupEntrance {
    0% {
        opacity: 0;
        transform: translateX(-10%) scale(0.5) translateY(100px) rotate(-10deg);
        filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
    }

    60% {
        transform: translateX(-10%) scale(1.05) translateY(-20px) rotate(3deg);
    }

    100% {
        opacity: 1;
        transform: translateX(-10%) scale(1) translateY(0) rotate(0deg);
        filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.3));
    }
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: white;
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-strong);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--brand-black);
    z-index: 2;
    animation: floatBadge 5s ease-in-out infinite alternate;
}

.floating-badge ion-icon {
    font-size: 1.5rem;
    color: var(--brand-orange);
}

.badge-1 {
    top: 20%;
    right: 0;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 20%;
    left: 0;
    animation-delay: 2s;
}

/* Background Shapes */
.bg-shape {
    display: none;
    /* Removing as per request */
    position: fixed;
    z-index: -1;
    opacity: 0.15;
    filter: blur(120px);
}

.shape-1 {
    width: 1600px;
    height: 1600px;
    background: var(--accent-gold);
    top: -50%;
    right: -40%;
    border-radius: 50%;
    animation: pulse 10s infinite;
}

.shape-2 {
    width: 1400px;
    height: 1400px;
    background: var(--accent-orange);
    bottom: -40%;
    left: -30%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: rotate 20s infinite linear;
}

/* Keyframes */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes floatBadge {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Scroll Indicator */
/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 5vh;
    /* Relative to viewport height */
    left: 0;
    right: 0;
    margin: 0 auto;
    /* Safe centering without transform */
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 100;
}

.scroll-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--brand-black);
    opacity: 0.6;
}

.mouse {
    width: 20px;
    height: 32px;
    border: 1.5px solid var(--brand-black);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    opacity: 0.6;
}

.wheel {
    width: 2px;
    height: 6px;
    background: var(--brand-black);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .scroll-indicator {
        bottom: 4vh;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 120px;
        /* Force it higher up on mobile to clear URL bars/bottom UI */
    }

    .scroll-text {
        font-size: 0.6rem;
    }

    .mouse {
        width: 18px;
        height: 28px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .scroll-indicator {
        bottom: 110px;
    }

    .scroll-text {
        font-size: 0.55rem;
        letter-spacing: 1.5px;
    }
}

/* Values Section */
.values {
    background-color: var(--brand-yellow);
    padding: 6rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.value-card {
    background: transparent;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    border: none;
    position: relative;
    box-shadow: none;
}

.value-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--brand-black);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s;
}

.value-card:hover .icon-box {
    background: white;
    color: var(--brand-black);
}

.value-card h3 {
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

/* Signature Menu - Horizontal Scroll Style */
.menu {
    padding: 6rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--brand-black);
    margin-bottom: 2rem;
}

.sub-title {
    color: var(--brand-orange);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.menu-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 3rem 50%;
    /* Large padding centers the first/last items */
    width: 100%;
    scroll-snap-type: x mandatory;
    /* Force strict snapping */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar but keep functionality */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.menu-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Bold Colorful Menu Cards */
.menu-card {
    min-width: 300px;
    max-width: 300px;
    scroll-snap-align: center;
    /* Snap center of card to center of container */
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    padding-bottom: 2rem;
}

.menu-card:hover {
    transform: translateY(-10px);
}

/* Color Variants */
.card-blue {
    background-color: #2D9CDB;
}

.card-maroon {
    background-color: #8E2344;
}

/* Reference Maroon */
.card-yellow {
    background-color: #F2C94C;
}

.card-purple {
    background-color: #BB6BD9;
}

.card-teal {
    background-color: #208796;
}

.card-img-box {
    position: relative;
    width: 100%;
    height: 240px;
    /* Balanced image area */
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.time-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    color: black;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 1.5rem;
    color: white;
    /* Default text color for dark cards */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-yellow .card-content {
    color: black;
}

/* Yellow card needs dark text */

.tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    /* Using simple bold sans-serif like reference */
    font-weight: 800;
    font-size: 1.8rem;
    /* Bold titles */
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: white;
    color: black;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.view-btn:hover {
    transform: scale(1.05);
}

.view-btn ion-icon {
    font-size: 1.4rem;
}

/* Adjustments for non-image assets */
.card-img-box img[src*="assets/"] {
    object-fit: contain;
    /* For blobs/pngs */
    transform: scale(1.2);
}

/* Story Section */
/* Story Section */
.story {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.story-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-left: 0;
}

.story-main-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.img-frame {
    position: relative;
    padding: 0;
}

@keyframes rotateCentered {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.story-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    /* Proportional to frame */
    height: auto;
    aspect-ratio: 1/1;
    z-index: 1;
    opacity: 0.4;
    transform: translate(-50%, -50%);
    animation: rotateCentered 60s infinite linear;
    pointer-events: none;
}

/* Menu Controls */
.menu-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.nav-btn {
    width: 60px;
    height: 60px;
    background: var(--brand-black);
    color: white;
    border: none;
    border-radius: 15px;
    /* Matches screenshot squared circles */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    transform: scale(1.1);
    background: #333;
}

.pagination-dots {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: #E0E0E0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot.active {
    width: 35px;
    background: #2C241E;
    border-radius: 20px;
}

/* Active Center Card Scaling */
.menu-card.active-center {
    transform: scale(1.1) !important;
    /* Force scale up */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.story-content {
    padding-right: 0;
    /* Remove padding to maximize heading space */
}

.story-points {
    list-style: none;
    margin: 2rem 0;
}

.story-points li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.story-points li ion-icon {
    color: var(--accent-orange);
    font-size: 1.2rem;
}

.btn-secondary {
    display: inline-block;
    color: var(--primary-coffee);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent-orange);
    text-decoration: none;
    padding-bottom: 5px;
}

/* Insta Grid */
.insta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 180px 180px;
    gap: 1rem;
    margin-top: 2rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dynamic Grid Expansion Logic - Desktop Only */
@media (min-width: 1025px) {

    /* Hover Item 1 (Big) */
    .insta-grid:has(.item-1:hover) {
        grid-template-columns: 1.4fr 1.4fr 0.6fr 0.6fr;
    }

    /* Hover Item 2 (Top Small Right 1) */
    .insta-grid:has(.item-2:hover) {
        grid-template-columns: 0.8fr 0.8fr 1.6fr 0.8fr;
        grid-template-rows: 240px 120px;
    }

    /* Hover Item 3 (Top Small Right 2) */
    .insta-grid:has(.item-3:hover) {
        grid-template-columns: 0.8fr 0.8fr 0.8fr 1.6fr;
        grid-template-rows: 240px 120px;
    }

    /* Hover Item 4 (Bottom Small Right 1) */
    .insta-grid:has(.item-4:hover) {
        grid-template-columns: 0.8fr 0.8fr 1.6fr 0.8fr;
        grid-template-rows: 120px 240px;
    }

    /* Hover Item 5 (Bottom Small Right 2) */
    .insta-grid:has(.item-5:hover) {
        grid-template-columns: 0.8fr 0.8fr 0.8fr 1.6fr;
        grid-template-rows: 120px 240px;
    }
}

.insta-item {
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.insta-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.insta-item:hover {
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.insta-item:hover::after {
    opacity: 1;
}

.insta-item:hover::before {
    content: '';
    /* Instagram icon from Ionicons if needed, or just a flair */
    font-family: 'Ionicons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    z-index: 11;
    opacity: 0.8;
}

/* Using Placeholders/Colors for now if no images, but using URLs for better effect */
.item-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    background-image: url(assets/ig1.png);
}

.item-2 {
    background-image: url(assets/ig2.png);
}

.item-3 {
    background-image: url(assets/ig3.png);
}

.item-4 {
    background-image: url(assets/ig5.png);
}

.item-5 {
    background-image: url(assets/ig4.png);
}

.insta-icon {
    font-size: 3rem;
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* Moving Stripe */
.moving-stripe {
    background: var(--brand-purple-light);
    padding: 1.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stripe-content {
    display: inline-block;
    animation: scrollStripe 30s linear infinite;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--brand-black);
    letter-spacing: 1px;
}

.stripe-content span {
    margin: 0 2rem;
}

@keyframes scrollStripe {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* CTA Section */
.cta-section {
    background: var(--brand-purple);
    color: var(--brand-black);
    padding: 6rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/blob-1.png') no-repeat center;
    opacity: 0.1;
    transform: scale(3);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.cta-buttons .btn {
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.cta-buttons .btn ion-icon {
    pointer-events: none;
}

.btn-light {
    background: var(--brand-black);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    border: 2px solid var(--brand-black);
    color: var(--brand-black);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-outline-light:hover {
    background: var(--brand-black);
    color: white;
}

/* Footer - Chatpata Redesign */
.footer {
    background: var(--brand-black);
    color: #fff;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.footer::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--brand-purple) 0%, transparent 70%);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.footer::before {
    content: 'HEART COFFEE';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 15vw;
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.04);
    /* Slightly visible watermark */
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    font-weight: 900;
}

/* Extra Chatpata Blobs */
.footer-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
}

.blob-f-1 {
    background: var(--brand-yellow);
    bottom: -100px;
    left: -50px;
}

.blob-f-2 {
    background: var(--brand-orange);
    top: 20%;
    right: 10%;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-family: 'Permanent Marker', cursive;
    font-size: 2.2rem;
    color: white;
    text-decoration: none;
    display: inline-block;
    transform: rotate(-2deg);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-logo span {
    color: var(--brand-yellow);
}

.footer-brand p {
    color: #888;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--brand-yellow);
    padding-left: 5px;
}

.footer-contact h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.contact-info {
    color: #888;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--brand-yellow);
    color: var(--brand-black);
    transform: translateY(-8px) rotate(10deg);
    box-shadow: 0 0 20px var(--brand-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: #444;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* Animations Classes for JS interaction */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
    .navbar {
        padding: 0.8rem 1.5rem;
        width: 92%;
    }

    .hero {
        padding-top: 170px;
        /* Balanced space to stay below tablet navbar */
        height: auto;
        min-height: 100vh;
        display: flex;
        align-items: flex-start;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links li a {
        font-size: 0.7rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Centered for Tablet */
        text-align: center;
        /* Center text content */
        padding-top: 0;
        /* Removed padding completely to push chip up */
        gap: 1.2rem;
    }

    .hero-content {
        display: contents;
    }

    .hero-chip {
        order: 1;
        align-self: center;
        /* Center the chip */
    }

    .hero-image {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: -30px;
        /* Pull image much higher */
        z-index: 50;
    }

    .hero-title {
        order: 3;
        font-size: 5rem;
        /* Much bigger title for Tab */
        margin-top: -40px;
        text-align: center;
        width: 100%;
    }

    .hero-text {
        order: 4;
        max-width: 600px;
        /* Maintain readability while centered */
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        order: 5;
        width: 100%;
        justify-content: center;
        /* Center buttons */
    }

    .floating-coffee {
        width: 90%;
        /* Significantly larger image */
        max-width: 600px;
        transform: translateX(3.5%) !important;
        /* Balanced shift for better visual centering */
    }

    .story-container {
        grid-template-columns: 1fr;
        /* Stack earlier for tablet */
        text-align: center;
        gap: 3rem;
    }

    .story-image {
        justify-content: center;
    }

    .story-content {
        padding: 0 2rem;
    }

    .story-points {
        display: inline-block;
        text-align: left;
    }

    .story-main-img {
        max-width: 100%;
    }

    .insta-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 200px);
        gap: 0.8rem;
    }

    .insta-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 220px);
        gap: 0.8rem;
    }

    .insta-item:hover {
        transform: scale(1.05) !important;
        z-index: 10;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4) !important;
    }

    .insta-grid:has(.insta-item:hover) .insta-item:not(:hover) {
        opacity: 0.7;
        filter: blur(1px);
    }

    .insta-item:hover {
        transform: scale(1.05);
        /* Simpler hover for mobile/tab */
    }

    .item-1 {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    /* Footer Mobile Redesign */
    .footer {
        padding: 4rem 2rem 2rem;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .footer-brand p {
        margin: 0 auto;
        /* Center paragraph */
        font-size: 0.95rem;
    }

    .footer-links h4,
    .footer-contact h4 {
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-info p {
        justify-content: center;
        font-size: 0.95rem;
    }

    .footer-social {
        justify-content: center;
        margin-top: 1.5rem;
        gap: 1.5rem;
    }

    .footer-social a {
        background: rgba(255, 255, 255, 0.1) !important;
        width: 50px;
        height: 50px;
    }

    .footer::before {
        font-size: 18vw;
        bottom: -10px;
    }

    .footer-blob {
        opacity: 0.08;
        /* Reduce distraction on small screens */
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        padding-top: 2rem;
    }
}

@media (max-width: 850px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .floating-coffee {
        width: 80%;
        transform: translateX(5%) !important;
        /* Subtle shift for smaller tablet screens */
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 100%;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        padding: 0.8rem 1.2rem;
        background: var(--brand-black);
        border: none;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .logo {
        position: relative;
        left: auto;
        transform: rotate(-2deg);
        font-size: 1.3rem;
        margin: 0;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.22rem;
        color: white;
    }

    /* Mobile Menu Overlay Styles */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        /* Increased opacity for better look */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 2000;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.5s;
        overflow-y: auto;
        visibility: hidden;
        /* Critical fix for black line overflow */
    }

    .mobile-menu.active {
        right: 0;
        visibility: visible;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 4rem;
    }

    .close-menu {
        font-size: 2.5rem;
        color: white;
        cursor: pointer;
    }

    .mobile-links {
        list-style: none;
        margin-bottom: 3rem;
    }

    .mobile-links li {
        margin-bottom: 2rem;
    }

    .mobile-links li a {
        font-size: 2rem;
        font-weight: 800;
        color: white;
        text-decoration: none;
        text-transform: uppercase;
    }

    .mobile-actions {
        margin-top: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-actions .btn {
        width: 100%;
        text-align: center;
        padding: 1.2rem;
        font-size: 1rem;
    }

    .cta-title {
        font-size: 2.2rem;
    }

    .section-padding {
        padding: 4rem 0;
    }
}

@media (max-width: 680px) {
    .navbar {
        width: 94%;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 16px;
        padding: 0.8rem 1.2rem;
        background: var(--brand-black);
    }

    .logo {
        left: auto;
        transform: rotate(-2deg);
    }

    .hero {
        padding-top: 120px;
        /* Reduced top padding */
        display: flex;
        align-items: flex-start;
        /* Remove vertical centering to fix top gap */
        height: auto;
        min-height: 110vh;
        /* Keep height for stripe placement */
        overflow: hidden;
        padding-bottom: 2rem;
    }

    .hero-container {
        padding-top: 10px;
        display: flex;
        flex-direction: column;
        /* Normal column, ordering handled by 'order' */
        align-items: flex-start;
        /* Align content to the left */
        padding-left: 1.5rem;
        /* Match horizontal padding in screenshot */
        padding-right: 1.5rem;
        gap: 2rem;
        /* Tight gap between elements */
    }

    .hero-content {
        display: contents;
        /* Allows children to be ordered with hero-image */
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .hero-chip {
        order: 1;
        /* Chip at the very top */
        margin-bottom: 0.5rem;
        align-self: flex-start;
        /* Ensure chip is on the left */
        background: var(--brand-yellow);
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        border-radius: 8px;
        /* Slightly more square like in screenshot */
        font-weight: 700;
        text-transform: uppercase;
    }

    .hero-title {
        order: 3;
        /* Title below image */
        font-size: 3.2rem;
        letter-spacing: -1px;
        line-height: 0.95;
        margin-bottom: 0.2rem;
        margin-top: -60px;
        /* Pull up much higher to overlap cup base naturally */
        text-align: left;
    }

    .hero-text {
        order: 4;
        /* Text below title */
        font-size: 0.85rem;
        /* Slightly smaller text */
        margin-bottom: 0.3rem;
        /* Tighter margin */
        padding: 0;
        max-width: 100%;
        opacity: 0.8;
        text-align: left;
        line-height: 1.4;
    }

    .hero-btns {
        order: 5;
        /* Buttons at the bottom */
        width: 100%;
        display: flex;
        gap: 0.8rem;
        justify-content: flex-start;
    }

    .hero-btns .btn {
        flex: 0 1 auto;
        /* Don't grow fully, maintain natural width */
        padding: 0.8rem 1.8rem;
        font-size: 0.85rem;
        border-radius: 12px;
        /* Fixed roundness */
        min-width: 120px;
        text-align: center;
    }

    .hero-image {
        order: 2;
        /* Image below chip */
        margin-top: -50px;
        /* Pull cup higher */
        margin-bottom: 0;
        /* Removed margin - pushes text/buttons up */
        width: 100%;
        z-index: 50;
        /* Higher z-index for cup */
        display: flex;
        justify-content: center;
        position: relative;
    }

    .hero-img-wrapper {
        width: 100%;
        /* Adjusted width for better centering */
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    .floating-coffee {
        width: 100%;
        filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
        transform: translateX(0) !important;
        /* Force reset of entrance translateX */
    }

    .moving-stripe {
        padding: 1.8rem 0;
        margin-top: -30px;
        /* Overlap for 3D effect */
        position: relative;
        z-index: 10;
        background: var(--brand-purple-light);
    }

    .stripe-content {
        font-size: 1rem;
        font-weight: 900;
        letter-spacing: 1px;
    }

    .values {
        padding: 3rem 0;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .value-card {
        padding: 0.5rem;
    }

    .icon-box {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .value-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .value-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .menu-card {
        padding-bottom: 1.2rem;
        /* Reduced length for mobile */
    }

    .section-title {
        font-size: 2.8rem;
        line-height: 1.1;
        letter-spacing: -1px;
    }

    .menu-scroll-container {
        padding: 3rem 1.5rem;
        gap: 1.5rem;
    }

    .menu-card {
        min-width: 280px;
        max-width: 280px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .story {
        padding: 4rem 0;
        overflow: hidden;
    }

    .story-container {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
    }

    .story-image {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 0;
        /* Removed bottom margin */
    }

    .img-frame {
        width: 100%;
        max-width: 450px;
        /* Constrain width */
        position: relative;
        display: flex;
        justify-content: center;
    }

    .story-main-img {
        width: 90%;
        /* Slightly smaller than frame */
        height: auto;
        z-index: 2;
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    }

    .story-blob {
        width: 140%;
        opacity: 0.3;
    }

    .story-content {
        text-align: center;
        padding: 0 1rem;
    }

    .story .section-title {
        font-size: 2.4rem;
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .story-content p {
        font-size: 1rem;
        opacity: 0.85;
        margin-bottom: 1.5rem;
    }

    .story-points {
        display: inline-block;
        text-align: left;
        margin: 0 auto 2rem;
        background: rgba(255, 199, 44, 0.1);
        padding: 1.5rem 2rem;
        border-radius: 20px;
    }

    .story-points li {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    .story-points li:last-child {
        margin-bottom: 0;
    }

    /* Instagram Section - Premium Mobile Layout */
    .insta {
        padding: 3rem 0;
    }

    .insta .section-header {
        margin-bottom: 1.5rem;
    }

    .insta-icon {
        font-size: 2.2rem;
        margin-bottom: 0.3rem;
    }

    .insta .section-title {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }

    .insta .section-header p {
        font-size: 0.9rem;
        opacity: 0.7;
    }

    .insta-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 200px 160px 160px;
        gap: 0.6rem;
        margin-top: 1.5rem;
    }

    /* First image - spans full width like featured */
    .item-1 {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        border-radius: 18px;
    }

    .item-2,
    .item-3,
    .item-4,
    .item-5 {
        border-radius: 14px;
    }

    .insta-item {
        border-radius: 14px;
        position: relative;
        overflow: hidden;
    }

    /* Gradient overlay on hover */
    .insta-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom,
                transparent 40%,
                rgba(0, 0, 0, 0.5) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    /* Instagram icon indicator */
    .insta-item::after {
        content: '';
        position: absolute;
        bottom: 12px;
        right: 12px;
        width: 24px;
        height: 24px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 6px;
        z-index: 2;
        opacity: 0;
        transition: opacity 0.3s ease;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E1306C'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z'/%3E%3C/svg%3E");
        background-size: 16px;
        background-repeat: no-repeat;
        background-position: center;
    }

    .insta-item:active::before,
    .insta-item:active::after {
        opacity: 1;
    }
}

/* ===========================================
   SCROLL REVEAL ANIMATIONS
   =========================================== */

/* Base hidden state for all animated elements */
.fade-in-up,
.fade-in-left,
.fade-in-right,
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.fade-in {
    transform: translateY(0);
}

/* Visible state - triggered by JavaScript IntersectionObserver */
.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.fade-in.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Animation delays for staggered effects */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Scroll Progress Bar at top of page */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-yellow), var(--brand-orange));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
}