/* ===================================
   LUXURY ENHANCEMENT LAYER
   Inspired by Dior, Chanel, Hermès
   Subtle, Sophisticated, World-Class
   =================================== */

/* ===================================
   PRELOADER - ELEGANT REVEAL
   =================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
    color: var(--color-cream);
}

.preloader-logo {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: preloaderFadeIn 1s ease 0.2s forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.4;
}

.preloader-line {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    margin: 0 auto 20px;
    animation: preloaderLine 1.5s ease 0.5s forwards;
}

.preloader-text {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    opacity: 0;
    animation: preloaderFadeIn 1s ease 0.8s forwards;
}

@keyframes preloaderFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes preloaderLine {
    to {
        width: 200px;
    }
}

/* ===================================
   CUSTOM CURSOR - LUXURY FEEL
   =================================== */

.cursor {
    display: none;
    pointer-events: none;
    z-index: 9999;
}

/* Only show on desktop with fine pointer */
@media (hover: hover) and (pointer: fine) {
    .cursor {
        display: block;
    }

    /* Hide default cursor on interactive elements */
    body:not(.touch-device) {
        cursor: none;
    }

    body:not(.touch-device) a,
    body:not(.touch-device) button,
    body:not(.touch-device) .entry-card,
    body:not(.touch-device) .project-item,
    body:not(.touch-device) .collection-card,
    body:not(.touch-device) .filter-btn,
    body:not(.touch-device) .btn-primary,
    body:not(.touch-device) .btn-secondary,
    body:not(.touch-device) input,
    body:not(.touch-device) textarea,
    body:not(.touch-device) select {
        cursor: none;
    }
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, background 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, border-color 0.3s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

/* Cursor hover states */
.cursor.hover .cursor-dot {
    transform: translate(-50%, -50%) scale(0);
}

.cursor.hover .cursor-circle {
    width: 80px;
    height: 80px;
    background: rgba(74, 44, 42, 0.1);
    border-color: var(--color-secondary);
}

/* Cursor on links/buttons */
.cursor.link .cursor-dot {
    width: 12px;
    height: 12px;
    background: var(--color-secondary);
}

.cursor.link .cursor-circle {
    width: 50px;
    height: 50px;
    border-color: var(--color-secondary);
}

/* Cursor on text inputs */
.cursor.text .cursor-dot {
    width: 2px;
    height: 20px;
    border-radius: 1px;
    background: var(--color-dark);
}

.cursor.text .cursor-circle {
    opacity: 0;
}

/* Cursor hidden state */
.cursor.hidden .cursor-dot,
.cursor.hidden .cursor-circle {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

/* View project cursor */
.cursor.view .cursor-circle {
    width: 100px;
    height: 100px;
    background: rgba(28, 23, 20, 0.9);
    border: none;
}

.cursor.view .cursor-circle::after {
    content: 'VIEW';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-cream);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.cursor.view .cursor-dot {
    opacity: 0;
}

/* ===================================
   REFINED BASE & SMOOTHNESS
   =================================== */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background: #FAFAF8;
}

/* Brand Colour Palette - Black, Eggplant, Forest Green, Warm Grey, Warm White */
:root {
    --color-primary: #4A2C2A;        /* Deep Rich Brown / Eggplant */
    --color-secondary: #2D3A2D;      /* Forest Green */
    --color-accent: #2D3A2D;         /* Forest Green */
    --color-dark: #1C1A17;           /* Black (warm) */
    --color-light: #FAF8F5;          /* Warm White */
    --color-cream: #F5F2ED;          /* Soft ivory */
    --color-terracotta: #4A2C2A;     /* Mapped to eggplant */
    --color-orange-dark: #3A1F1D;    /* Deep eggplant shadow */
    --color-gray: #5C534A;           /* Warm gray */
    --color-gray-light: #E8E3DC;

    /* Luxury timing functions */
    --ease-luxury: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);

    /* Refined transitions */
    --transition-luxury: all 0.8s var(--ease-out-expo);
    --transition-smooth: all 0.6s var(--ease-luxury);
    --transition-fast: all 0.4s var(--ease-luxury);
}

/* ===================================
   ELEGANT TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: 0.03em;
}

h1 {
    letter-spacing: 0.15em;
    font-weight: 200;
}

h2 {
    letter-spacing: 0.08em;
}

/* Refined paragraph styling */
p {
    letter-spacing: 0.01em;
    line-height: 1.85;
}

/* Elegant small text */
.meta-label,
.clients-tagline,
.filter-btn,
.award-text {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 400;
}

/* ===================================
   NAVIGATION - REFINED
   =================================== */

.main-nav {
    transition: all 1s var(--ease-out-expo);
}

.logo {
    font-family: var(--font-sans);
    font-weight: 300;
    letter-spacing: 0.15em;
    font-size: 1.2rem;
    transition: all 0.6s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.4;
    text-align: center;
}

.logo-line2 {
    font-size: 0.7em;
    letter-spacing: 0.25em;
}

.logo:hover {
    letter-spacing: 0.18em;
}

.nav-links a {
    position: relative;
    font-weight: 400;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    padding: 10px 0;
}

/* Elegant underline animation */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: all 0.6s var(--ease-out-expo);
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===================================
   HERO - CINEMATIC
   =================================== */

.hero-section {
    position: relative;
}

/* Smoother slide transitions */
.hero-slide {
    transition: opacity 2.5s var(--ease-luxury), transform 8s linear;
}

.hero-slide.active {
    animation: slowZoom 12s var(--ease-luxury) forwards;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* Refined overlay gradient */
.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.25) 40%,
        rgba(0,0,0,0.55) 100%
    );
}

/* Hero content animations */
.hero-content {
    opacity: 0;
    animation: heroFadeIn 2s var(--ease-out-expo) 0.5s forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-weight: 200;
    letter-spacing: 0.25em;
    text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.hero-quote {
    font-weight: 300;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 20px rgba(0,0,0,0.3);
}

.hero-tagline {
    font-weight: 300;
    letter-spacing: 0.2em;
    opacity: 0.7;
}

/* ===================================
   AWARD BADGES - WARM AFRICAN GOLD
   =================================== */

.award-badges {
    margin-bottom: 40px;
}

.award-badge {
    background: rgba(28, 23, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(74, 44, 42, 0.3);
    padding: 14px 24px;
    transition: all 0.6s var(--ease-out-expo);
}

.award-badge:hover {
    background: rgba(74, 44, 42, 0.3);
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.award-icon {
    color: var(--color-accent);
    text-shadow: 0 0 20px rgba(74, 44, 42, 0.5);
}

/* ===================================
   SCROLL INDICATOR - REFINED
   =================================== */

.hero-scroll {
    font-weight: 300;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    opacity: 0.8;
    animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-scroll svg {
    animation: gentleBounce 2.5s ease-in-out infinite;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

/* ===================================
   CLIENT LOGOS - SOPHISTICATED
   =================================== */

.clients-section {
    background: var(--color-cream);
    padding: 50px 0;
    border-top: 1px solid rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.clients-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--color-gray);
    margin-bottom: 35px;
}

.client-logo {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    font-weight: 400;
    opacity: 0.5;
    transition: all 0.6s var(--ease-out-expo);
}

.client-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* ===================================
   ENTRY POINTS - WITH WATERCOLOR WASH
   =================================== */

.entry-points-section {
    padding: 120px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

/* Subtle watercolor wash */
.entry-points-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(74,44,42,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.entry-points-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(45,58,45,0.04) 0%, transparent 55%);
    pointer-events: none;
}

.entry-grid {
    gap: 40px;
}

.entry-card {
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border: 1px solid #C0C0C0;
    position: relative;
    transition: all 0.6s var(--ease-out-expo);
}

/* Silver shimmer border effect */
.entry-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        90deg,
        #D8D8D8 0%,
        #F8F8F8 20%,
        #E0E0E0 40%,
        #FFFFFF 50%,
        #E0E0E0 60%,
        #F8F8F8 80%,
        #D8D8D8 100%
    );
    background-size: 400% 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
}

.entry-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.12),
        0 0 20px rgba(192,192,192,0.3);
    border-color: transparent;
}

.entry-card:hover::before {
    opacity: 1;
    animation: waterRipple 1.5s ease-out forwards;
}

@keyframes waterRipple {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }
    30% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: scale(1.01);
    }
}

.entry-image {
    height: 450px;
    transition: transform 1.2s var(--ease-out-expo);
    border: 2px solid #C0C0C0;
    position: relative;
}

/* Subtle blur on image hover */
.entry-image .entry-image-bg {
    transition: transform 1s var(--ease-out-expo), filter 0.4s ease;
}

.entry-card:hover .entry-image .entry-image-bg {
    filter: blur(2px);
}

.entry-card:hover .entry-image {
    transform: scale(1.02);
}

.entry-content {
    padding: 35px 40px 40px;
    background: #fff;
}

.entry-content h3 {
    font-weight: 400;
    letter-spacing: 0.04em;
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--color-dark);
}

.entry-content p {
    font-size: 0.95rem;
    color: #666;
    letter-spacing: 0.01em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.entry-link {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-secondary);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.4s var(--ease-out-expo);
}

.entry-link::after {
    content: '\2192';
    transition: transform 0.4s var(--ease-out-expo);
}

.entry-card:hover .entry-link {
    color: var(--color-secondary);
}

.entry-card:hover .entry-link::after {
    transform: translateX(5px);
}

/* ===================================
   PROJECTS SECTION - COMPACT & DISTINCT
   =================================== */

.projects-section {
    padding: 100px 0;
    background: #fff;
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-weight: 400;
    letter-spacing: 0.06em;
    margin-bottom: 25px;
    font-size: 2.2rem;
}

.project-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    border-radius: 0;
    padding: 10px 22px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    border: 1px solid #ddd;
    background: #fff;
    transition: all 0.4s var(--ease-out-expo);
}

.filter-btn:hover {
    background: var(--color-light);
    border-color: var(--color-primary);
    color: var(--color-dark);
}

.filter-btn.active {
    background: linear-gradient(135deg, #4A2C2A 0%, #3A1F1D 100%);
    color: #fff;
    border-color: #4A2C2A;
    box-shadow: 0 4px 15px rgba(74,44,42,0.3);
}

/* Projects Grid - Simpler 3-column layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

/* Project items - uniform cards with silver border */
.project-item {
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    border: 1px solid #C0C0C0;
    transition: all 0.5s var(--ease-out-expo);
    grid-column: span 1;
    height: auto;
    position: relative;
}

/* Silver shimmer border */
.project-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        90deg,
        #D8D8D8 0%,
        #F8F8F8 20%,
        #E0E0E0 40%,
        #FFFFFF 50%,
        #E0E0E0 60%,
        #F8F8F8 80%,
        #D8D8D8 100%
    );
    background-size: 400% 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
    pointer-events: none;
}

.project-item.large {
    grid-column: span 2;
    height: auto;
}

.project-item.medium {
    grid-column: span 1;
    height: auto;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow:
        0 15px 40px rgba(0,0,0,0.12),
        0 0 15px rgba(192,192,192,0.25);
    border-color: transparent;
}

.project-item:hover::after {
    animation: waterRipple 1.5s ease-out forwards;
}

/* Fixed heights for images */
.project-image {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    height: 280px;
    border: 2px solid #C0C0C0;
}

/* Subtle blur on project image hover */
.project-image {
    transition: filter 0.4s ease;
}

.project-item:hover .project-image {
    filter: blur(2px);
}

.project-item.large .project-image {
    height: 340px;
}

.project-overlay {
    padding: 25px 30px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.5) 50%,
        transparent 100%
    );
    transform: translateY(50%);
    transition: transform 0.5s var(--ease-out-expo);
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    font-weight: 400;
    letter-spacing: 0.03em;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.project-meta {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

.project-desc {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 8px;
    line-height: 1.5;
}

@media (max-width: 968px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-item.large {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-item.large {
        grid-column: span 1;
    }
}

/* ===================================
   COLLECTIONS - CLEAN & DISTINCT
   =================================== */

.collections-section {
    padding: 120px 0;
    background: var(--color-light);
}

.section-subtitle {
    font-weight: 400;
    letter-spacing: 0.03em;
    color: #666;
}

.collections-grid {
    gap: 40px;
}

.collection-card {
    position: relative;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border: 1px solid #C0C0C0;
    transition: all 0.6s var(--ease-out-expo);
}

/* Silver shimmer border effect */
.collection-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        90deg,
        #D8D8D8 0%,
        #F8F8F8 20%,
        #E0E0E0 40%,
        #FFFFFF 50%,
        #E0E0E0 60%,
        #F8F8F8 80%,
        #D8D8D8 100%
    );
    background-size: 400% 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
    pointer-events: none;
}

.collection-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.1),
        0 0 20px rgba(192,192,192,0.3);
    border-color: transparent;
}

.collection-card:hover::after {
    opacity: 1;
    animation: silverShimmer 3s linear infinite;
}

/* Image container */
.collection-image {
    position: relative;
    height: 360px;
    overflow: hidden;
    border: 2px solid #C0C0C0;
}

/* Collection Slider */
.collection-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.collection-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.collection-slide.active {
    opacity: 1;
}

/* Navigation arrows */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    color: var(--color-dark);
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.slide-prev {
    left: 12px;
}

.slide-next {
    right: 12px;
}

.collection-card:hover .slide-nav {
    opacity: 1;
}

.slide-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Dots indicator */
.slide-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.slide-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.slide-dot:hover {
    background: rgba(255,255,255,0.8);
}

/* Subtle blur on collection image hover */
.collection-slide {
    transition: opacity 0.6s ease, filter 0.4s ease;
}

.collection-card:hover .collection-slide {
    filter: blur(2px);
}

/* Background image zoom */
.collection-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1s var(--ease-out-expo), filter 0.4s ease;
}

.collection-card:hover .collection-image-bg {
    transform: scale(1.03);
    filter: blur(2px);
}

/* View label that appears */
.collection-image .view-label {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    opacity: 0;
    transition: all 0.5s var(--ease-out-expo);
    z-index: 3;
}

.collection-card:hover .view-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Hide shimmer for cleaner look */
.collection-image .shimmer {
    display: none;
}

.collection-content {
    padding: 35px 40px 40px;
    background: #fff;
}

.collection-content h3 {
    font-weight: 400;
    letter-spacing: 0.04em;
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--color-dark);
    transition: color 0.4s var(--ease-out-expo);
}

.collection-card:hover .collection-content h3 {
    color: var(--color-secondary);
}

.collection-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* ===================================
   ENTRY CARDS - CLEAN & DISTINCT
   =================================== */

.entry-card {
    position: relative;
}

.entry-image {
    position: relative;
    overflow: hidden;
}

/* Background wrapper for zoom effect */
.entry-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1s var(--ease-out-expo);
}

.entry-card:hover .entry-image-bg {
    transform: scale(1.04);
}

/* ===================================
   PROJECT ITEMS - SUBTLE FRAME
   =================================== */

.project-item .project-image::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
    border: 1px solid rgba(255,255,255,0.08);
    z-index: 2;
    transition: all 0.8s var(--ease-out-expo);
    pointer-events: none;
    opacity: 0;
}

.project-item:hover .project-image::before {
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border-color: rgba(74,44,42,0.3);
    opacity: 1;
}

/* ===================================
   BUTTONS - DISTINCT & SOPHISTICATED
   =================================== */

.btn-primary,
.btn-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: all 0.5s var(--ease-out-expo);
}

/* ===================================
   PRIMARY BUTTON - Smooth Color Shift
   =================================== */

.btn-primary {
    background: linear-gradient(135deg, #4A2C2A 0%, #3A1F1D 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(74,44,42,0.25);
    position: relative;
    transition: all 0.4s ease;
}

/* Subtle watercolor texture */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(45,58,45,0.1) 0%, transparent 45%);
    z-index: 1;
    pointer-events: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5C3A37 0%, #4A2C2A 100%);
    box-shadow: 0 6px 25px rgba(74,44,42,0.35);
    transform: translateY(-2px);
}

/* Active/Click state */
.btn-primary:active {
    background: linear-gradient(135deg, #3A1F1D 0%, #2A1412 100%);
    transform: translateY(0);
    box-shadow: 0 3px 15px rgba(74,44,42,0.3);
}

/* ===================================
   SECONDARY BUTTON - Smooth Color Shift
   =================================== */

.btn-secondary {
    background: transparent;
    color: var(--color-dark);
    border: 2px solid var(--color-primary);
    transition: all 0.4s ease;
}

.btn-secondary:hover {
    background: rgba(74,44,42,0.1);
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-secondary:active {
    background: rgba(74,44,42,0.2);
    transform: translateY(0);
}

/* On dark backgrounds */
.footer .btn-secondary,
.process-cta .btn-secondary,
.project-cta .btn-secondary,
.hero-content .btn-secondary {
    color: var(--color-cream);
    border-color: var(--color-primary);
}

.footer .btn-secondary:hover,
.process-cta .btn-secondary:hover,
.project-cta .btn-secondary:hover,
.hero-content .btn-secondary:hover {
    background: rgba(74,44,42,0.15);
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* ===================================
   BUTTON MAGNETIC EFFECT (Desktop)
   =================================== */

@media (min-width: 769px) {
    .btn-magnetic {
        transition: transform 0.3s var(--ease-out-expo);
    }
}

/* ===================================
   TEXT LINK BUTTONS
   =================================== */

.btn-text {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-dark);
    background: none;
    border: none;
    cursor: pointer;
    overflow: hidden;
}

.btn-text::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s var(--ease-out-expo);
}

.btn-text:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-text svg,
.btn-text .arrow {
    transition: transform 0.4s var(--ease-out-expo);
}

.btn-text:hover svg,
.btn-text:hover .arrow {
    transform: translateX(6px);
}

/* ===================================
   ICON BUTTONS
   =================================== */

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--color-light);
    border: 1px solid var(--color-gray-light);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.5s var(--ease-out-expo);
}

.btn-icon svg {
    transition: all 0.4s var(--ease-out-expo);
    color: var(--color-dark);
}

.btn-icon:hover {
    background: var(--color-dark);
    border-color: var(--color-dark);
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.btn-icon:hover svg {
    color: #fff;
    transform: scale(1.1);
}

/* ===================================
   FLOATING ACTION BUTTON
   =================================== */

.btn-floating {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--color-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow:
        0 8px 30px rgba(0,0,0,0.25),
        0 0 0 0 rgba(74,44,42,0);
    transition: all 0.5s var(--ease-out-expo);
    z-index: 100;
}

.btn-floating svg {
    color: #fff;
    transition: transform 0.4s var(--ease-out-expo);
}

.btn-floating:hover {
    background: var(--color-primary);
    transform: scale(1.1) translateY(-5px);
    box-shadow:
        0 15px 40px rgba(0,0,0,0.3),
        0 0 0 8px rgba(74,44,42,0.15);
}

.btn-floating:hover svg {
    transform: rotate(45deg);
}

/* ===================================
   CTA LINKS (Arrow style)
   =================================== */

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-dark);
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
}

.cta-link .arrow-line {
    position: relative;
    width: 60px;
    height: 1px;
    background: var(--color-dark);
    transition: all 0.5s var(--ease-out-expo);
}

.cta-link .arrow-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--color-dark);
    border-right: 1px solid var(--color-dark);
    transform: rotate(45deg);
    transition: all 0.4s var(--ease-out-expo);
}

.cta-link:hover {
    color: var(--color-primary);
    gap: 25px;
}

.cta-link:hover .arrow-line {
    width: 80px;
    background: var(--color-primary);
}

.cta-link:hover .arrow-line::after {
    border-color: var(--color-primary);
}

/* ===================================
   PILL BUTTONS (Tags/Filters)
   =================================== */

.btn-pill {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gray);
    background: transparent;
    border: 1px solid var(--color-gray-light);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
}

.btn-pill:hover,
.btn-pill.active {
    color: #fff;
    background: var(--color-dark);
    border-color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ===================================
   SPLIT BUTTON (Text + Icon)
   =================================== */

.btn-split {
    display: inline-flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--color-dark);
}

.btn-split-text {
    padding: 18px 35px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-dark);
    background: transparent;
    transition: all 0.4s var(--ease-out-expo);
}

.btn-split-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    background: var(--color-dark);
    color: #fff;
    transition: all 0.4s var(--ease-out-expo);
}

.btn-split-icon svg {
    transition: transform 0.4s var(--ease-out-expo);
}

.btn-split:hover .btn-split-text {
    background: var(--color-dark);
    color: #fff;
}

.btn-split:hover .btn-split-icon {
    background: var(--color-primary);
}

.btn-split:hover .btn-split-icon svg {
    transform: translateX(4px);
}

/* ===================================
   LOADING STATE
   =================================== */

.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* ===================================
   RIPPLE EFFECT
   =================================== */

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===================================
   STUDIO SECTION - INTIMATE
   =================================== */

.studio-section {
    padding: 120px 0;
    background: var(--color-light);
}

.studio-image {
    position: relative;
    overflow: visible;
}

/* Decorative background frame */
.studio-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(
        135deg,
        rgba(74, 44, 42, 0.3) 0%,
        rgba(45, 58, 45, 0.2) 50%,
        rgba(74, 44, 42, 0.25) 100%
    );
    z-index: -1;
    transition: all 0.6s var(--ease-out-expo);
}

/* Zebra accent pattern */
.studio-image::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: repeating-linear-gradient(
        45deg,
        rgba(28, 23, 20, 0.08) 0px,
        rgba(28, 23, 20, 0.08) 3px,
        transparent 3px,
        transparent 8px
    );
    z-index: -1;
}

.studio-image:hover::before {
    top: -25px;
    left: -25px;
    background: linear-gradient(
        135deg,
        rgba(74, 44, 42, 0.4) 0%,
        rgba(45, 58, 45, 0.3) 50%,
        rgba(74, 44, 42, 0.35) 100%
    );
}

.studio-image img {
    border-radius: 0;
    transition: transform 0.8s var(--ease-out-expo);
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.studio-image:hover img {
    animation: subtleWiggle 0.6s var(--ease-out-expo);
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

@keyframes subtleWiggle {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.01) rotate(0.5deg); }
    50% { transform: scale(1.02) rotate(-0.5deg); }
    75% { transform: scale(1.02) rotate(0.3deg); }
    100% { transform: scale(1.02) rotate(0deg); }
}

.studio-content h2 {
    font-weight: 200;
    letter-spacing: 0.06em;
}

.large-text {
    font-weight: 300;
    font-size: 1.4rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* ===================================
   STUDIO WORK SHOWCASE
   Feeling of abundance and space
   =================================== */

.studio-work-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.studio-work-section .centered-title {
    margin-bottom: 50px;
}

.studio-work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work-item {
    position: relative;
    background: #fff;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 2;
}

.work-item:hover::before {
    transform: scaleX(1);
}

.work-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.work-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-item:hover .work-image img {
    transform: scale(1.1);
}

.work-info {
    padding: 25px;
    background: #fff;
}

.work-info h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.work-info p {
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 1.6;
    margin: 0;
}

/* Staggered animation on scroll */
.work-item:nth-child(1) { transition-delay: 0s; }
.work-item:nth-child(2) { transition-delay: 0.1s; }
.work-item:nth-child(3) { transition-delay: 0.2s; }
.work-item:nth-child(4) { transition-delay: 0.3s; }
.work-item:nth-child(5) { transition-delay: 0.4s; }
.work-item:nth-child(6) { transition-delay: 0.5s; }

/* Masonry-like varied heights for visual interest */
.work-item:nth-child(2) .work-image,
.work-item:nth-child(5) .work-image {
    height: 320px;
}

.work-item:nth-child(3) .work-image {
    height: 240px;
}

/* Responsive */
@media (max-width: 968px) {
    .studio-work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .work-image,
    .work-item:nth-child(2) .work-image,
    .work-item:nth-child(3) .work-image,
    .work-item:nth-child(5) .work-image {
        height: 220px;
    }
}

@media (max-width: 600px) {
    .studio-work-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .work-image,
    .work-item:nth-child(2) .work-image,
    .work-item:nth-child(3) .work-image,
    .work-item:nth-child(5) .work-image {
        height: 250px;
    }

    .work-info {
        padding: 20px;
    }
}

/* ===================================
   PROCESS SECTION - ZEBRA SKIN THEME
   =================================== */

.process-section {
    position: relative;
    padding: 80px 0;
    margin-top: 60px;
    overflow: hidden;
}

/* Subtle zebra stripe background */
.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        /* Diagonal zebra stripes */
        repeating-linear-gradient(
            135deg,
            transparent 0px,
            transparent 40px,
            rgba(28, 23, 20, 0.03) 40px,
            rgba(28, 23, 20, 0.03) 80px
        ),
        /* Softer overlay stripes */
        repeating-linear-gradient(
            135deg,
            transparent 0px,
            transparent 100px,
            rgba(74, 44, 42, 0.02) 100px,
            rgba(74, 44, 42, 0.02) 200px
        );
    pointer-events: none;
    z-index: 0;
}

/* Warm watercolor wash over zebra */
.process-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 0% 50%, rgba(74, 44, 42, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 50%, rgba(45, 58, 45, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.process-section > * {
    position: relative;
    z-index: 1;
}

.centered-title {
    position: relative;
    z-index: 1;
}

/* Process grid enhanced */
.process-grid {
    position: relative;
    z-index: 1;
}

/* Process steps - card style */
.process-step {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 0;
    border: 1px solid rgba(192, 192, 192, 0.3);
    transition: all 0.6s var(--ease-out-expo);
    position: relative;
}

/* Decorative accent line */
.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: all 0.4s ease;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--color-primary);
}

.process-step:hover::before {
    opacity: 1;
}

.step-number {
    font-weight: 200;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.4;
    transition: all 0.6s var(--ease-out-expo);
    margin-bottom: 15px;
}

.process-step:hover .step-number {
    opacity: 1;
    transform: scale(1.1);
}

.process-step h4 {
    font-weight: 500;
    letter-spacing: 0.08em;
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.process-step p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-gray);
}

/* Timeline text styling */
.process-timeline {
    position: relative;
    z-index: 1;
    background: rgba(28, 23, 20, 0.05);
    display: inline-block;
    padding: 12px 30px;
    border-radius: 0;
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .process-step {
        padding: 30px 25px;
    }

    .step-number {
        font-size: 3rem;
    }
}

@media (max-width: 479px) {
    .process-section {
        padding: 60px 0;
    }

    .process-step {
        padding: 25px 20px;
    }

    .step-number {
        font-size: 2.5rem;
    }

    .process-step h4 {
        font-size: 1.1rem;
    }
}

/* ===================================
   CONTACT SECTION - WARM WATERCOLOR
   =================================== */

.contact-section {
    padding: 120px 0;
    background: var(--color-light);
    position: relative;
    overflow: hidden;
}

/* Watercolor wash background */
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 10% 90%, rgba(74,44,42,0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 10%, rgba(45,58,45,0.05) 0%, transparent 35%);
    pointer-events: none;
}

.contact-info h2 {
    font-weight: 200;
    letter-spacing: 0.04em;
}

.contact-form-wrapper {
    border-radius: 0;
    padding: 60px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.form-group input,
.form-group select,
.form-group textarea {
    border-radius: 0;
    border: 1px solid var(--color-gray-light);
    padding: 18px;
    font-size: 0.95rem;
    transition: all 0.5s var(--ease-out-expo);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-dark);
    box-shadow: 0 0 0 1px var(--color-dark);
}

.form-group label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ===================================
   FOOTER - AFRICAN WARMTH
   =================================== */

.footer {
    padding: 100px 0 40px;
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
}

/* Watercolor texture overlay */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(74,44,42,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(45,58,45,0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 30%, rgba(45,58,45,0.06) 0%, transparent 35%);
    pointer-events: none;
}

.footer > * {
    position: relative;
    z-index: 1;
}

.footer-brand h3 {
    font-family: var(--font-sans);
    font-weight: 300;
    letter-spacing: 0.15em;
    font-size: 1.3rem;
    color: var(--color-cream);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.4;
}

.footer-brand p {
    font-weight: 300;
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.7);
}

.footer-col h4 {
    font-weight: 500;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.footer-col a {
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.75);
    transition: all 0.4s var(--ease-out-expo);
}

.footer-col a:hover {
    color: var(--color-accent);
    padding-left: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 60px;
    padding-top: 30px;
}

/* ===================================
   SCROLL REVEAL ANIMATIONS
   =================================== */

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.2s var(--ease-out-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveals */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* ===================================
   ENHANCED SCROLL ANIMATIONS
   =================================== */

/* Base scroll animation state */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Different animation types */
.scroll-animate-fade {
    opacity: 0;
    transition: opacity 1s ease;
}

.scroll-animate-fade.scroll-visible {
    opacity: 1;
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-scale.scroll-visible {
    opacity: 1;
    transform: scale(1);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-60px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-left.scroll-visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(60px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate-right.scroll-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays */
.scroll-animate[data-delay="0"] { transition-delay: 0s; }
.scroll-animate[data-delay="1"] { transition-delay: 0.1s; }
.scroll-animate[data-delay="2"] { transition-delay: 0.2s; }
.scroll-animate[data-delay="3"] { transition-delay: 0.3s; }
.scroll-animate[data-delay="4"] { transition-delay: 0.4s; }
.scroll-animate[data-delay="5"] { transition-delay: 0.5s; }

/* Fallback: auto-reveal after 4s if JS observer never fires */
@keyframes scrollAnimateFallback {
    to { opacity: 1; transform: translateY(0); }
}
.scroll-animate:not(.scroll-visible) {
    animation: scrollAnimateFallback 0.8s ease 4s forwards;
}

/* Counter animation */
.counter-animate {
    display: inline-block;
}

/* Line reveal animation */
.line-reveal {
    position: relative;
    overflow: hidden;
}

.line-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-light);
    transform: translateX(0);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.line-reveal.scroll-visible::after {
    transform: translateX(101%);
}

/* Image reveal with mask */
.image-reveal {
    position: relative;
    overflow: hidden;
}

.image-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    z-index: 2;
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-reveal.scroll-visible::before {
    transform: scaleX(0);
}

.image-reveal img,
.image-reveal .entry-image-bg,
.image-reveal .collection-slide {
    transform: scale(1.2);
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.image-reveal.scroll-visible img,
.image-reveal.scroll-visible .entry-image-bg,
.image-reveal.scroll-visible .collection-slide {
    transform: scale(1);
}

/* Page loaded state - enable all animations */
body:not(.page-loaded) .scroll-animate {
    opacity: 0 !important;
    transform: translateY(40px) !important;
}

/* Safety: if page-loaded class never gets added (JS failure), show content after 3s */
@keyframes forceVisible {
    to { opacity: 1 !important; transform: none !important; }
}
body:not(.page-loaded) .scroll-animate {
    animation: forceVisible 0.5s ease 3s forwards;
}

/* Disable animations during preload */
body:not(.page-loaded) * {
    animation-play-state: paused !important;
}

/* ===================================
   CURSOR ENHANCEMENTS (Desktop)
   =================================== */

@media (min-width: 769px) {
    .project-item,
    .entry-card,
    .collection-card,
    .btn-primary,
    .btn-secondary {
        cursor: pointer;
    }
}

/* ===================================
   SMOOTH LOADING STATE
   =================================== */

body {
    opacity: 0;
    animation: pageLoad 1s var(--ease-out-expo) 0.2s forwards;
}

@keyframes pageLoad {
    to { opacity: 1; }
}

/* ===================================
   REFINED MOBILE EXPERIENCE
   =================================== */

@media (max-width: 768px) {
    .entry-points-section,
    .projects-section,
    .collections-section,
    .studio-section,
    .contact-section {
        padding: 80px 0;
    }

    .entry-image {
        height: 300px;
    }

    .collection-image {
        height: 280px;
    }

    .contact-form-wrapper {
        padding: 35px 25px;
    }

    .hero-title {
        letter-spacing: 0.15em;
    }

    /* Improve slider navigation on mobile */
    .slide-nav {
        width: 40px;
        height: 40px;
        opacity: 0.9;
    }

    .slide-prev {
        left: 8px;
    }

    .slide-next {
        right: 8px;
    }

    /* Better project overlay on touch */
    .project-overlay {
        transform: translateY(0);
        background: linear-gradient(
            to top,
            rgba(0,0,0,0.85) 0%,
            rgba(0,0,0,0.4) 70%,
            transparent 100%
        );
    }
}

/* ===================================
   EXTRA SMALL DEVICES LUXURY
   =================================== */

@media (max-width: 479px) {
    .entry-card {
        margin-bottom: 20px;
    }

    .entry-content {
        padding: 25px 20px;
    }

    .entry-link {
        font-size: 0.7rem;
    }

    .collection-content {
        padding: 25px 20px;
    }

    .collection-content h3 {
        font-size: 1.3rem;
    }

    /* Smaller slide navigation */
    .slide-nav {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .slide-dots {
        bottom: 10px;
    }

    .slide-dot {
        width: 5px;
        height: 5px;
    }

    /* Footer refinements */
    .footer {
        padding: 60px 0 30px;
    }

    .footer-brand h3 {
        font-size: 1.1rem;
        letter-spacing: 0.15em;
    }

    .footer-col h4 {
        font-size: 0.7rem;
        margin-bottom: 12px;
    }
}

/* ===================================
   TABLET LUXURY REFINEMENTS
   =================================== */

@media (min-width: 768px) and (max-width: 1024px) {
    .entry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .collection-card:last-child {
        grid-column: span 2;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-item.large {
        grid-column: span 2;
    }
}

/* ===================================
   LARGE SCREEN LUXURY
   =================================== */

@media (min-width: 1400px) {
    .entry-image {
        height: 480px;
    }

    .collection-image {
        height: 420px;
    }

    .entry-content,
    .collection-content {
        padding: 45px 50px;
    }

    .project-image {
        height: 320px;
    }

    .project-item.large .project-image {
        height: 400px;
    }
}

/* ===================================
   ULTRA-WIDE SCREENS
   =================================== */

@media (min-width: 1920px) {
    .hero-title {
        font-size: 7rem;
    }

    .entry-grid {
        gap: 50px;
    }

    .entry-image {
        height: 550px;
    }

    .collections-grid {
        gap: 50px;
    }

    .collection-image {
        height: 480px;
    }
}

/* ===================================
   HOVER-CAPABLE DEVICES ONLY
   =================================== */

@media (hover: hover) and (pointer: fine) {
    /* Apply hover effects only on devices that support them */
    .entry-card:hover {
        transform: translateY(-6px);
    }

    .collection-card:hover {
        transform: translateY(-6px);
    }

    .project-item:hover {
        transform: translateY(-5px);
    }

    .btn-primary:hover {
        transform: translateY(-2px);
    }

    .btn-secondary:hover {
        transform: translateY(-2px);
    }
}

/* Disable hover effects on touch devices */
@media (hover: none) {
    .entry-card:hover,
    .collection-card:hover,
    .project-item:hover {
        transform: none;
    }

    /* Show overlays by default on touch */
    .project-overlay {
        transform: translateY(0);
    }

    .project-desc {
        opacity: 1;
    }

    /* Disable blur effect on touch - show images clearly */
    .entry-card:hover .entry-image .entry-image-bg,
    .collection-card:hover .collection-slide,
    .collection-card:hover .collection-image-bg,
    .project-item:hover .project-image {
        filter: none;
    }
}

/* ===================================
   SELECTION STYLING
   =================================== */

::selection {
    background: var(--color-secondary);
    color: #fff;
}

::-moz-selection {
    background: var(--color-secondary);
    color: #fff;
}

/* ===================================
   SCROLLBAR STYLING (Webkit)
   =================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* ===================================
   IMAGE LOADING EFFECT
   =================================== */

.project-image,
.entry-image,
.collection-image,
.hero-slide {
    background-color: var(--color-light);
}

/* ===================================
   LINK UNDERLINE ANIMATION
   =================================== */

.elegant-link {
    position: relative;
    display: inline-block;
}

.elegant-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out-expo);
}

.elegant-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===================================
   GAP & SPACING FIXES
   Tighter section spacing
   =================================== */

/* Remove default section margins */
section {
    margin: 0;
}

/* Fix hero to next section gap */
.hero-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#home {
    margin-bottom: 0 !important;
}

/* Clients section - no gap from hero */
.clients-section {
    margin-top: 0 !important;
    padding: 40px 0;
}

/* Ensure no body margin */
body {
    margin: 0;
    padding: 0;
}

/* Container fixes */
.container {
    margin-left: auto;
    margin-right: auto;
}

/* Tighter section padding across the site */
.project-overview,
.project-story,
.project-gallery,
.project-process,
.project-results {
    padding: 80px 0;
}

.project-testimonial {
    padding: 100px 0;
}

/* Collections pages tighter spacing */
.products-section {
    padding: 60px 0;
}

.visualizer-cta,
.sample-request,
.trade-program,
.other-collections,
.bespoke-section,
.fabric-types,
.decor-categories {
    padding: 80px 0;
}

/* Process video page tighter */
.main-video-section,
.process-steps-video,
.artisan-profiles,
.process-cta {
    padding: 80px 0;
}

/* Reduce process step margins */
.process-step {
    margin-bottom: 60px;
}

.process-step:last-child {
    margin-bottom: 0;
}

/* Footer tighter */
.footer {
    padding: 60px 0 30px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
}

/* Remove any stray margins on containers */
.container,
.container-fluid {
    margin-top: 0;
    margin-bottom: 0;
}

/* Ensure no whitespace between sections */
section + section {
    margin-top: 0;
}

/* Hero sections don't need margin */
.collection-hero,
.video-hero,
.project-hero {
    margin-bottom: 0;
}

/* Stats section tighter */
.collection-stats {
    padding: 30px 0;
}

/* Filter bar tighter */
.filter-bar {
    padding: 20px 0;
}

/* Gallery items - no extra spacing */
.gallery-grid {
    margin-bottom: 0;
}

/* Mobile - even tighter spacing */
@media (max-width: 768px) {
    .project-overview,
    .project-story,
    .project-gallery,
    .project-process,
    .project-results,
    .visualizer-cta,
    .sample-request,
    .trade-program,
    .other-collections,
    .bespoke-section,
    .main-video-section,
    .process-steps-video,
    .artisan-profiles,
    .process-cta {
        padding: 50px 0;
    }

    .project-testimonial {
        padding: 60px 0;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .process-step {
        margin-bottom: 40px;
    }
}
