/* ========================================
   Premium Yogurt Website - Luxury Styles
   ======================================== */

:root {
    --primary-cream: #FBF7F0;
    --accent-gold: #D4AF37;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --pure-white: #FFFFFF;
    --soft-purple: #E6D5F5;
    --deep-purple: #8B7BA8;
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--primary-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   Navigation
   ======================================== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #000000;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 5%;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

nav.scrolled {
    padding: 0.8rem 5%;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-left {
    height: 50px;
    width: auto;
    transition: var(--transition-smooth);
    filter: brightness(0) invert(1);
}

.logo-left:hover {
    transform: scale(1.2);
}

.logo-center {
    position: absolute;
    left: 52%;
    transform: translateX(-50%) translateY(-20px);
    height: 50px;
    width: auto;
    transition: var(--transition-smooth);
    display: block;
}

.logo-center:hover {
    transform: translateX(-50%) translateY(-20px) scale(1.05);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pure-white);
    text-decoration: none;
    letter-spacing: -1px;
    transition: var(--transition-smooth);
}

.logo:hover {
    color: var(--accent-gold);
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* Hamburger toggle (desktop hidden) */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0.25rem;
    cursor: pointer;
    align-items: center;
    flex-direction: column; /* stack bars vertically */
    gap: 6px;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--pure-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: calc(100vh - 80px);
    padding-top: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: url('../assets/moh-main-constrast.JPG') center 10%/cover no-repeat;
    
    /* background: url('../assets/moh-main.JPG') var(--hero-pos-x,20%) var(--hero-pos-y,10%)/cover no-repeat; */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(230, 213, 245, 0.3) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards 0.3s;
    margin-top: 4rem; /* move downward to taste */
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--pure-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.1rem;
    color: var(--pure-white);
    margin-bottom: 3rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--accent-gold);
    color: var(--pure-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

/* ========================================
   Section Styles
   ======================================== */

.image-bg {
    position: relative;
    overflow: hidden;
}

/* background image layer */
.image-bg .image-background {
    position: absolute;
    inset: 0;
    z-index: 0;

    background: url('../assets/saffron-text-easy.png') center 10% / cover no-repeat;
    background-attachment: fixed;
}

/* content on top */
.image-bg .section-container {
    position: relative;
    z-index: 1;
}

.image-bg .section-title {
    color: #2C2C2C;
}

.image-bg .section-subtitle {
    color: #2C2C2C;
}
   
section {
    padding: 8rem 5%;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    margin-top: 2rem;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 5rem;
    font-weight: 300;
}

/* ========================================
   Products section: left-align headings, justify paragraph text
   Scoped to #products to avoid changing global section styles
   ======================================== */
#products .section-container { text-align: left; }
#products .section-title { text-align: left; }
#products .section-subtitle,
#products .section-container p { text-align: justify; text-justify: inter-word; }

/* ========================================
   Cards & Grid
   ======================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.card {
    background: var(--pure-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--deep-purple));
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--soft-purple), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* ========================================
   Features Section
   ======================================== */

.features {
    background: var(--pure-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.feature-item:hover {
    transform: scale(1.05);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* ========================================
   Locations Specific
   ======================================== */

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

/* ========================================
   Board (Advisors/Team) Grid
   ======================================== */

/* Board (Advisors/Team) Grid — narrower, more vertical cards */
.board-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 900px;    /* smaller container so cards don't stretch too wide */
    margin: 2rem auto 0;
    align-items: start;
}

.board-card {
    background: var(--pure-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.board-image {
    width: 100%;
    height: 450px; /* match .location-image height */
    display: block;
    object-fit: cover;
}

.board-content {
    padding: 2.5rem; /* match .location-info */
    text-align: left;
    flex: 1; /* allow content to fill so cards align vertically */
}

.board-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.board-content p {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.board-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .board-grid {
        grid-template-columns: 1fr 1fr; /* keep two columns but smaller gap */
        gap: 1rem;
        max-width: 700px;
    }
    .board-image { height: 260px; }
    .board-card { max-width: 320px; }
}

@media (max-width: 480px) {
    .board-grid { grid-template-columns: 1fr; max-width: 420px; }
    .board-image { height: 420px; }
    .board-card { max-width: 420px; }
}




.location-card {
    background: var(--pure-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.location-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--soft-purple), var(--accent-gold));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.location-info {
    padding: 2.5rem;
}

.location-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.location-info p {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

/* ========================================
   About Page Specific
   ======================================== */

.story-section {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 6rem;
}

.story-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--soft-purple), var(--accent-gold));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.story-content h2 {
    font-size: 2rem; 
    /* slightly smaller text */
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.story-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.value-item {
    text-align: center;
    padding: 2.5rem;
    background: var(--pure-white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.value-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.value-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* ========================================
   Footer
   ======================================== */

footer {
    background: var(--text-dark);
    color: var(--pure-white);
    padding: 4rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--pure-white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    font-size: 1.8rem;
}

.social-links a {
    color: var(--pure-white);
    transition: var(--transition-smooth);
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent-gold);
    transform: scale(1.2);
}

.social-links img {
    height: 32px;
    width: 32px;
    filter: brightness(0) invert(1);
    transition: var(--transition-smooth);
}

.social-links a:hover img {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(25deg);
    transform: scale(1.1);
}

.team-image, .founder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* ========================================
   Animations
   ======================================== */

.fade-in {
    animation: fadeIn 1s ease forwards;
}

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

.slide-in-left {
    animation: slideInLeft 1s ease forwards;
}

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

.slide-in-right {
    animation: slideInRight 1s ease forwards;
}

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

/* ========================================
   Responsive Design
   ======================================== */

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

    .hero p {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .story-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .story-image {
        height: 350px;
    }
}

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

    .hero p {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    section {
        padding: 4rem 5%;
    }

    .cards-grid,
    .locations-grid {
        grid-template-columns: 1fr;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Hide centered logo on small screens to avoid overlap */
    .logo-center {
        display: none;
    }

    /* Mobile nav: show hamburger and convert nav to dropdown */
    .nav-toggle { display: inline-flex; }
    .nav-container { gap: 0.75rem; }

    /* hide inline nav links by default on mobile (become dropdown) */
    #primary-nav { 
        display: none; 
    }

    /* dropdown when open */
    #primary-nav.open {
        display: flex;
        position: absolute;
        top: 130%;
        left: 0;
        right: 0;
        margin: 0 auto;
        background: var(--pure-white);
        color: var(--text-dark);
        flex-direction: column;
        gap: 0;
        padding: 1rem 5%;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.08);
        z-index: 1200;

    }

    

    #primary-nav li { list-style: none; margin: 0; padding: 0.25rem 0; }
    #primary-nav a { display: block; color: var(--text-dark); text-decoration: none; padding: 0.75rem 0; font-weight: 600; }

    /* hamburger animation */
    .nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
    .nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ========================================
   Scroll Progress Bar
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent-gold);
    z-index: 10000;
    transition: width 0.1s ease;
}

/* ========================================
   Section background video helper (scoped)
   Applied to sections with class `.video-bg` (keeps edits minimal)
   ======================================== */
.video-bg { position: relative; overflow: hidden; }
.video-bg .section-bg-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
.video-bg .video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0); /* adjust for contrast */
    z-index: 1;
    pointer-events: none;
}
.video-bg .section-container { position: relative; z-index: 2; }

/* Hide background video on small screens to save bandwidth */
@media (max-width: 640px) {
    .video-bg .section-bg-video { display: none; }
    .video-bg .video-overlay { background: rgba(0,0,0,0.18); }
}

/* ========================================
   Circle Buttons (used on `ayan.html`)
   Minimal, self-contained styles — keeps existing layout intact.
   ======================================== */
/* Circle icon buttons (horizontal) */
.circle-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.circle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--pure-white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
    overflow: hidden;
    position: relative;
}

.circle-button img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

/* Hover / active feedback */
.circle-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}

.circle-button:active {
    transform: translateY(-1px) scale(0.99);
}

/* Small screen tweak */
@media (max-width: 420px) {
    .circle-button { width: 56px; height: 56px; }
    .circle-button img { width: 36px; height: 36px; }
}

/* Simple screen-reader-only helper (if not present) */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}
