/* ==========================================
   CAULIFLOWER FILMS - FIXED & ENHANCED STYLESHEET
   All Bugs Corrected | Optimized Performance
   ========================================== */

/* ==========================================
   COLOR PALETTE
   ========================================== */
:root {
    /* Primary Colors */
    --soft-pearl: #F8F4F0;
    --warm-sand: #D2B48C;
    --crimson-depth: #A91D32;
    --obsidian-black: #0F0F0F;
    
    /* Text Colors */
    --text-primary: #2A3A2E;
    --text-secondary: #4A5A4E;
    --text-light: #6A7A6E;
    --text-bright: #F5EFE0;
    --text-nav-light: #333333;
    --text-nav-dark: #F5F5F5;
    
    /* UI Colors */
    --accent-red: #E31B23;
    --accent-red-dark: #D91E2A;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-xxl: 10rem;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--soft-pearl);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 18px;
    overflow-x: hidden;
}
/* Subtle Animated Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(169, 29, 50, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(210, 180, 140, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(169, 29, 50, 0.05) 0%, transparent 50%);
    background-size: 100% 100%;
    animation: gentleFloat 15s ease-in-out infinite;
    opacity: 1;
}

@keyframes gentleFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
    }
    33% { 
        transform: translate(-5%, 5%) scale(1.05);
    }
    66% { 
        transform: translate(5%, -5%) scale(0.95);
    }
}

/* Disable on mobile for performance */
@media (max-width: 768px) {
    body::before {
        animation: none;
        opacity: 0.4;
    }
}
a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   NAVIGATION - FIXED WITH TEXT COLOR TRANSITION
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(248, 244, 240, 0.95);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(227, 27, 35, 0.2);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(227, 27, 35, 0.1);
}

.nav-scrolled {
    height: 70px;
    box-shadow: 0 12px 40px rgba(227, 27, 35, 0.15);
    border-bottom-width: 2px;
}

.nav-container {
    max-width: 100%;  /* Changed from 1400px */
    margin: 0;        /* Changed from 0 auto */
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    transition: opacity 0.3s ease;
     margin-top: -20px;
}

.logo:hover {
    opacity: 0.9;
}

.logo-img {
    height: 250px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: var(--text-nav-light);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: var(--space-xs) 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-red);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-red-dark));
}

/* Mobile Menu Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: none;
    border: none;
    padding: var(--space-xs);
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background: var(--accent-red);
    transition: all 0.3s ease;
}

/* RESPONSIVE NAVIGATION */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(248, 244, 240, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        padding: var(--space-sm) 0;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        padding: var(--space-sm) 3rem;
        width: 100%;
        border-bottom: 1px solid rgba(227, 27, 35, 0.1);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .logo-img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav {
        height: 70px;
    }
    
    .nav-scrolled {
        height: 65px;
    }
}

/* ==========================================
   CONTAINER UTILITIES
   ========================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 3rem;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
.main-title {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.page-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    line-height: 1.3;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 2;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

.body-text {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 2.2;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

.body-text.emphasis {
    opacity: 1;
    font-style: italic;
}

.body-text-small {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 2;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.brand-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--crimson-depth);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}

.main-index-title {
    font-size: 6rem;
    font-weight: 200;
    line-height: 0.9;
    color: var(--obsidian-black);
    margin-bottom: var(--space-sm);
    letter-spacing: -2px;
}

.main-brand-title {
    font-size: 5rem;
    font-weight: 200;
    line-height: 0.9;
    color: var(--obsidian-black);
    margin-bottom: var(--space-md);
    letter-spacing: -2px;
}

.main-slate-title {
    font-size: 5rem;
    font-weight: 200;
    line-height: 1;
    color: var(--text-bright);
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
}

.subtitle-premium {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #444;
    max-width: 500px;
    opacity: 0.9;
}

.subtitle-luxury {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #555;
    max-width: 500px;
    opacity: 0.9;
}

/* ==========================================
   INDEX PAGE HERO
   ========================================== */
.index-hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 80px;
    overflow: hidden;
    position: relative;
}

.index-hero-left {
    background: linear-gradient(135deg, var(--soft-pearl) 0%, #FCF9F4 100%);
    padding: 8rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.index-hero-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(248,244,240,0.3) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.7; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.4; 
    }
}

.index-hero-right {
    background-size: cover;
    background-position: center;
    background-image: url('../images/hero-home.jpg');
    position: relative;
    display: flex;
    align-items: center;
}

.index-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(169,29,50,0.75) 0%,
        rgba(210,180,140,0.6) 50%,
        rgba(15,15,15,0.4) 100%);
}

/* ==========================================
   ABOUT PAGE HERO
   ========================================== */
.about-hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 80px;
    overflow: hidden;
    position: relative;
}

.about-hero-left {
    background: linear-gradient(135deg, var(--soft-pearl) 0%, #FBF7F2 100%);
    padding: 8rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.about-hero-right {
    background-size: cover;
    background-position: center;
    background-image: url('../images/Storytelling about.jpg');
    position: relative;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(169,29,50,0.7) 0%,
        rgba(210,180,140,0.55) 50%,
        rgba(15,15,15,0.35) 100%);
}

/* ==========================================
   SLATE PAGE HERO
   ========================================== */
.slate-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    position: relative;
    background-image: url('../images/Forest Path.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.slate-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(15,15,15,0.75) 0%,
        rgba(169,29,50,0.65) 50%,
        rgba(15,15,15,0.75) 100%);
}

.slate-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-bright);
    padding: var(--space-lg);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

/* ==========================================
   CONTENT SECTIONS
   ========================================== */
.content-section-luxury {
    padding: var(--space-xxl) 0;
    background: linear-gradient(135deg, var(--soft-pearl) 0%, #FDFAF6 100%);
}

.section-seamless {
    background: var(--soft-pearl);
}

.content-grid-luxury {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--space-lg);
}

.content-card-luxury {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(169,29,50,0.2);
    padding: var(--space-lg) 3rem;
    border-radius: 24px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-card-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--crimson-depth), var(--warm-sand));
    border-radius: 24px 24px 0 0;
}

.content-card-luxury:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(169,29,50,0.15);
    border-color: rgba(169,29,50,0.4);
}

/* ==========================================
   GALLERY SECTIONS
   ========================================== */
.gallery-section-luxury {
    padding: var(--space-xxl) 0;
    background: linear-gradient(180deg, var(--soft-pearl) 0%, var(--warm-sand) 100%);
}

.gallery-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.gallery-item-premium {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 20px;
    border: 3px solid rgba(169,29,50,0.1);
    transition: all 0.6s cubic-bezier(0.4,0,0.2,1);
}

.gallery-item-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-premium:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--crimson-depth);
    box-shadow: 0 30px 60px rgba(169,29,50,0.25);
}

.gallery-overlay-premium {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(169,29,50,0.9), rgba(210,180,140,0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item-premium:hover .gallery-overlay-premium {
    opacity: 1;
}

.gallery-overlay-premium span {
    color: white;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================
   VALUES SECTION
   ========================================== */
.values-section-luxury {
    padding: var(--space-xxl) 0;
    text-align: center;
}

.values-heading {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.values-grid-luxury {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.value-item-luxury {
    padding: 3rem var(--space-md);
    transition: all 0.4s ease;
}

.value-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 600;
    box-shadow: 0 15px 30px rgba(227,27,35,0.4);
}

.value-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

/* ==========================================
   PROJECT CARDS (SLATE PAGE)
   ========================================== */
.slate-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--space-xl);
}

.slate-section-title {
    margin-bottom: var(--space-md);
    color: var(--crimson-depth);
}

.slate-intro-text {
    margin-top: var(--space-md);
}

.projects-section {
    padding: var(--space-xl) 0;
    background: var(--soft-pearl);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(169,29,50,0.2);
}

.project-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.project-details {
    padding: var(--space-md);
}

.project-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.project-type {
    font-size: 0.9rem;
    color: var(--accent-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.project-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.project-status {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* ==========================================
   CONTACT FORM
   ========================================== */
.contact-form-section {
    padding: var(--space-xxl) 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-title {
    color: var(--accent-red);
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form-modern {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(169,29,50,0.2);
    border-radius: 12px;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1rem;
    color: var(--text-primary);
    background: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    background: white;
    box-shadow: 0 0 0 3px rgba(227,27,35,0.1);
}

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

.submit-btn-modern {
    width: 100%;
    margin-top: var(--space-md);
}

/* ==========================================
   CTA SECTIONS
   ========================================== */
.cta-section-premium {
    padding: var(--space-xxl) 0;
    text-align: center;
    background: var(--soft-pearl);
}

.cta-premium {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: linear-gradient(135deg, var(--crimson-depth), #8B1A2A);
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 0 15px 40px rgba(169,29,50,0.3);
    border: none;
    cursor: pointer;
}

.cta-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(169,29,50,0.5);
}

.cta-subtitle {
    margin-top: 1.5rem;
    color: #666;
    font-size: 1rem;
    letter-spacing: 1px;
}

.cta-title {
    color: var(--accent-red);
    margin-bottom: var(--space-md);
}

.cta-description {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.collab-section-title {
    color: var(--accent-red);
    margin-bottom: var(--space-md);
    font-size: 2rem;
}

.direct-contact-title {
    color: var(--accent-red);
    margin-bottom: var(--space-md);
}

.direct-contact-text {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.card-section-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: var(--space-lg) 0;
    background: var(--obsidian-black);
    color: var(--text-bright);
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .index-hero,
    .about-hero {
        grid-template-columns: 1fr;
    }
    
    .index-hero-right,
    .about-hero-right {
        min-height: 50vh;
    }
    
    .main-index-title,
    .main-brand-title {
        font-size: 4rem;
    }
    
    .content-grid-luxury {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .index-hero-left,
    .about-hero-left {
        padding: 4rem var(--space-md);
    }
    
    .main-index-title,
    .main-brand-title,
    .main-slate-title {
        font-size: 3rem;
    }
    
    .content-section-luxury,
    .gallery-section-luxury,
    .values-section-luxury {
        padding: 6rem 0;
    }
    
    .gallery-grid-premium,
    .projects-grid,
    .values-grid-luxury {
        grid-template-columns: 1fr;
        padding: 0 var(--space-md);
    }
    
    .content-grid-luxury {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .body-text {
        font-size: 1.2rem;
    }
    
    .container,
    .content-container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 480px) {
    .main-index-title,
    .main-brand-title,
    .main-slate-title {
        font-size: 2.5rem;
    }
    
    .subtitle-premium,
    .subtitle-luxury {
        font-size: 1.1rem;
    }
    
    .cta-premium {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .content-card-luxury {
        padding: var(--space-md);
    }
    
    .value-circle {
        width: 100px;
        height: 100px;
        font-size: 1.8rem;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
    .nav-link,
    .cta-premium,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}
