/* ===================================
   WALDMAN STUDIOS - STYLE SHEET
   Elegant, Sophisticated, Story-Driven
   =================================== */

/* ===================================
   BASE STYLES & RESET
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Eggplant, Maroon, Sophisticated */
    --color-primary: #4A2C2A;        /* Eggplant/maroon */
    --color-secondary: #5C3A37;      /* Deep maroon */
    --color-dark: #2C2C2C;           /* Charcoal */
    --color-light: #E8E3DC;          /* Light warm taupe */
    --color-white: #FFFFFF;
    --color-gray: #6B6B6B;
    --color-gray-light: #E8E4DF;

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1400px;

    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

/* Reset margins */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-dark);
    background: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }

p {
    margin-bottom: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.container-fluid {
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container, .container-fluid {
        padding: 0 20px;
    }
    :root {
        --section-padding: 60px;
    }
}

/* Responsive Utilities */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block;
    }
}

/* ===================================
   NAVIGATION
   =================================== */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition-smooth);
    background: linear-gradient(180deg, rgba(28, 26, 23, 0.85) 0%, rgba(28, 26, 23, 0.5) 70%, transparent 100%);
}

.main-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--color-white);
    transition: var(--transition-fast);
}

.main-nav.scrolled .logo {
    color: var(--color-dark);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-white);
    position: relative;
}

.main-nav.scrolled .nav-links a {
    color: var(--color-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-social svg {
    color: var(--color-white);
    transition: var(--transition-fast);
}

.main-nav.scrolled .nav-social svg {
    color: var(--color-dark);
}

.nav-social a:hover svg {
    transform: scale(1.1);
}

/* Mobile Bottom Navigation */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 20px;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
}

@media (min-width: 769px) {
    .mobile-nav { display: none !important; }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--color-gray);
    transition: var(--transition-fast);
    padding: 0 10px;
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
}

.mobile-nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--color-primary);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--color-white);
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 30px;
}

.hero-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 15px;
    color: #FFFFFF;
    background: rgba(74, 44, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 18px 35px;
    display: inline-block;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 60px;
    color: #FFFFFF;
    background: rgba(74, 44, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 14px 28px;
    display: inline-block;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Award Badges */
.award-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.award-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition-fast);
}

.award-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.award-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.award-text {
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: left;
    letter-spacing: 0.02em;
}

.award-text strong {
    font-size: 0.85rem;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .award-badges {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .award-badge {
        padding: 10px 16px;
    }

    .award-text {
        font-size: 0.7rem;
    }

    .award-text strong {
        font-size: 0.75rem;
    }
}

.hero-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
    color: #FFFFFF;
    background: rgba(74, 44, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.hero-scroll:hover {
    background: rgba(74, 44, 42, 0.95);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
}

.hero-scroll svg {
    animation: bounce 2s ease-in-out infinite;
    stroke: #FFFFFF;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in-up.delay-1 { animation-delay: 0.3s; }
.fade-in-up.delay-2 { animation-delay: 0.6s; }
.fade-in-up.delay-3 { animation-delay: 0.9s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.fade-in.delay-1 { animation-delay: 0.2s; }
.fade-in.delay-2 { animation-delay: 0.4s; }
.fade-in.delay-3 { animation-delay: 0.6s; }
.fade-in.delay-4 { animation-delay: 0.8s; }
.fade-in.delay-5 { animation-delay: 1s; }
.fade-in.delay-6 { animation-delay: 1.2s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ===================================
   CLIENT LOGOS SECTION
   =================================== */

.clients-section {
    background: var(--color-light);
    padding: 40px 0;
    text-align: center;
    margin: 0;
}

.clients-tagline {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-gray);
    margin-bottom: 40px;
}

.clients-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.client-logo {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-gray);
    opacity: 0.7;
    transition: var(--transition-fast);
}

.client-logo:hover {
    opacity: 1;
    color: var(--color-dark);
}

@media (max-width: 768px) {
    .clients-logos {
        gap: 20px;
    }
    .client-logo {
        font-size: 0.9rem;
    }
}

/* ===================================
   ENTRY POINTS SECTION
   =================================== */

.entry-points-section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

/* Breathing Ocean Glass Background */
.entry-points-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(176, 224, 230, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 90% 10%, rgba(173, 216, 230, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 80% 90%, rgba(175, 238, 238, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse 50% 70% at 20% 80%, rgba(230, 230, 250, 0.55) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 50% 50%, rgba(240, 248, 255, 0.35) 0%, transparent 60%);
    animation: oceanBreathing 8s ease-in-out infinite;
    z-index: 0;
    filter: blur(60px);
}

/* Second layer for more depth */
.entry-points-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 50% 50% at 70% 30%, rgba(135, 206, 235, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 20% 50%, rgba(176, 196, 222, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 45% 45% at 50% 80%, rgba(152, 251, 152, 0.2) 0%, transparent 50%);
    animation: oceanBreathing2 12s ease-in-out infinite reverse;
    z-index: 0;
    filter: blur(50px);
}

@keyframes oceanBreathing {
    0%, 100% {
        transform: translate(0%, 0%) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translate(2%, -2%) scale(1.02);
        opacity: 0.85;
    }
    50% {
        transform: translate(-1%, 2%) scale(1.05);
        opacity: 1;
    }
    75% {
        transform: translate(-2%, -1%) scale(1.02);
        opacity: 0.8;
    }
}

@keyframes oceanBreathing2 {
    0%, 100% {
        transform: translate(0%, 0%) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translate(-3%, 2%) scale(1.03);
        opacity: 0.8;
    }
    66% {
        transform: translate(2%, -2%) scale(1.06);
        opacity: 0.9;
    }
}

/* Ensure content stays above background */
.entry-points-section .container {
    position: relative;
    z-index: 1;
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

@media (max-width: 968px) {
    .entry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 600px) {
    .entry-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.entry-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    display: block;
    transition: var(--transition-smooth);
}

.entry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.entry-image {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
}

.entry-card:hover .entry-image {
    transform: scale(1.05);
}

.entry-content {
    padding: 30px;
    background: var(--color-white);
}

.entry-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.entry-content p {
    color: var(--color-gray);
    margin-bottom: 15px;
}

.entry-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-primary);
    transition: var(--transition-fast);
}

.entry-card:hover .entry-link {
    letter-spacing: 0.1em;
}


/* ===================================
   FEATURED PROJECTS SECTION
   =================================== */

.featured-projects-section {
    padding: var(--section-padding) 0;
    background: var(--color-light);
}

.featured-projects-section .section-header.centered {
    text-align: center;
    margin-bottom: 60px;
}

.featured-projects-section .section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.featured-projects-section .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 15px;
}

.featured-projects-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

.featured-projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-projects-grid .featured-project-card.large {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .featured-projects-grid {
        grid-template-columns: 1fr;
    }
}

.featured-project-card {
    position: relative;
    display: block;
    border-radius: 0;
    overflow: hidden;
    background: var(--color-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
}

.featured-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.featured-project-card .project-card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.featured-project-card.large .project-card-image {
    height: 450px;
}

@media (max-width: 768px) {
    .featured-project-card .project-card-image,
    .featured-project-card.large .project-card-image {
        height: 250px;
    }
}

.featured-project-card .project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-project-card:hover .project-card-image img {
    transform: scale(1.08);
}

.featured-project-card .project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}

.featured-project-card .project-card-content {
    padding: 25px 30px;
}

.featured-project-card .project-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.featured-project-card .project-award {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(74, 44, 42, 0.1);
    padding: 5px 12px;
    border-radius: 0;
}

.featured-project-card .project-location {
    font-size: 0.8rem;
    color: var(--color-gray);
    letter-spacing: 0.05em;
}

.featured-project-card .project-card-content h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.featured-project-card .project-card-content p {
    font-size: 0.95rem;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.featured-project-card .project-link {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    transition: letter-spacing 0.3s ease;
}

.featured-project-card:hover .project-link {
    letter-spacing: 0.15em;
}

.projects-cta {
    text-align: center;
    margin-top: 50px;
}

/* ===================================
   PROJECTS SECTION
   =================================== */

.projects-section {
    padding: var(--section-padding) 0;
    background: var(--color-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-gray);
    border: 1px solid var(--color-gray-light);
    border-radius: 0;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Mobile Project Cards */
.projects-mobile {
    margin-top: 40px;
}

.project-cards-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 20px;
}

.project-cards-wrapper::-webkit-scrollbar {
    display: none;
}

.project-card {
    flex: 0 0 90%;
    scroll-snap-align: center;
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.project-card-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.project-card-content {
    padding: 25px;
}

.project-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.project-location {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-bottom: 12px;
}

.project-description {
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.project-view-btn {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.project-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-gray-light);
    transition: var(--transition-fast);
}

.dot.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 0;
}

/* Desktop Project Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.project-item.large {
    grid-column: span 8;
    height: 500px;
}

.project-item.medium {
    grid-column: span 4;
    height: 400px;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
}

.project-item:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--color-white);
    transform: translateY(60%);
    transition: var(--transition-smooth);
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.project-meta {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.project-desc {
    opacity: 0;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.project-item:hover .project-desc {
    opacity: 1;
}

@media (max-width: 968px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-item.large,
    .project-item.medium {
        grid-column: span 1;
        height: 300px;
    }
}

/* ===================================
   COLLECTIONS SECTION
   =================================== */

.collections-section {
    padding: var(--section-padding) 0;
}

.section-header.centered {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-gray);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 968px) {
    .collections-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.collection-card {
    background: var(--color-light);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.collection-image {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
}

.collection-card:hover .collection-image {
    transform: scale(1.05);
}

.collection-content {
    padding: 40px;
    text-align: center;
}

.collection-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.collection-content p {
    color: var(--color-gray);
    margin-bottom: 25px;
}

/* ===================================
   STUDIO SECTION
   =================================== */

.studio-section {
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.studio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

@media (max-width: 968px) {
    .studio-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.studio-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.studio-content h2 {
    margin-bottom: 30px;
}

.large-text {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--color-dark);
    margin-bottom: 25px;
}

/* Process Section Wrapper - Frosted Glass Background */
.process-section-wrapper {
    position: relative;
    padding: 100px 0;
    margin-top: 60px;
    overflow: hidden;
}

.process-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/wanderlust-collection.png');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    filter: blur(2px);
    z-index: 0;
}

.process-section {
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.centered-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-dark);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    padding: 0 20px;
    align-items: stretch;
}

@media (max-width: 968px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.process-step {
    text-align: center;
    display: flex;
    min-height: 280px;
}

/* African Handcrafted Paper Card */
.paper-card {
    flex: 1;
    background: linear-gradient(145deg,
        #F5EDE4 0%,
        #EDE4D8 25%,
        #E8DDD0 50%,
        #F0E6DA 75%,
        #F7EFE5 100%);
    padding: 40px 30px;
    position: relative;
    border-radius: 3px;
    box-shadow:
        0 4px 15px rgba(139, 109, 76, 0.15),
        0 2px 6px rgba(139, 109, 76, 0.1),
        inset 0 0 60px rgba(139, 109, 76, 0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;

    /* Rough paper edge effect */
    clip-path: polygon(
        0% 2%, 2% 0%, 5% 1%, 8% 0%, 12% 1%, 15% 0%,
        20% 1%, 25% 0%, 30% 1%, 35% 0%, 40% 0.5%,
        45% 0%, 50% 1%, 55% 0%, 60% 0.5%, 65% 0%,
        70% 1%, 75% 0%, 80% 0.5%, 85% 0%, 90% 1%,
        95% 0%, 98% 1%, 100% 0%,
        100% 98%, 98% 100%, 95% 99%, 90% 100%, 85% 99%,
        80% 100%, 75% 99%, 70% 100%, 65% 99%, 60% 100%,
        55% 99%, 50% 100%, 45% 99%, 40% 100%, 35% 99%,
        30% 100%, 25% 99%, 20% 100%, 15% 99%, 10% 100%,
        5% 99%, 2% 100%, 0% 98%,
        0% 95%, 1% 90%, 0% 85%, 1% 80%, 0% 75%,
        1% 70%, 0% 65%, 0.5% 60%, 0% 55%, 1% 50%,
        0% 45%, 0.5% 40%, 0% 35%, 1% 30%, 0% 25%,
        0.5% 20%, 0% 15%, 1% 10%, 0% 5%
    );
}

/* Paper texture overlay */
.paper-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(139, 109, 76, 0.02) 2px,
            rgba(139, 109, 76, 0.02) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(139, 109, 76, 0.015) 3px,
            rgba(139, 109, 76, 0.015) 6px
        );
    pointer-events: none;
    border-radius: 3px;
}

/* Subtle worn edge shadow */
.paper-card::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(139, 109, 76, 0.08);
    border-radius: 2px;
    pointer-events: none;
}

.paper-card:hover {
    transform: translateY(-5px) rotate(0.5deg);
    box-shadow:
        0 12px 30px rgba(139, 109, 76, 0.2),
        0 6px 12px rgba(139, 109, 76, 0.15),
        inset 0 0 60px rgba(139, 109, 76, 0.05);
}

.step-number {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 300;
    color: #B8956A;
    margin-bottom: 15px;
    opacity: 0.7;
    text-shadow: 1px 1px 2px rgba(139, 109, 76, 0.1);
}

.process-step h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #3D3428;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.process-step p {
    color: #6B5D4D;
    font-size: 0.95rem;
    line-height: 1.6;
}

.process-timeline {
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-gray);
    font-style: italic;
}

/* ===================================
   FEATURED PROJECTS & ARTIST SECTIONS
   =================================== */

.featured-projects-section {
    padding: 80px 0;
}

.artist-section {
    padding: 60px 0;
}

.artist-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .artist-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact-section {
    padding: var(--section-padding) 0;
    background: var(--color-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-methods {
    margin-top: 40px;
}

.contact-method {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-method svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

.contact-method h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-method a {
    color: var(--color-dark);
    font-size: 1.1rem;
}

.contact-method a:hover {
    color: var(--color-primary);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-white);
    padding: 50px;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form-wrapper {
        padding: 30px 20px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--color-gray-light);
    border-radius: 0;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    border-radius: 0;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 44, 42, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    margin-bottom: 50px;
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-brand h3 {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.footer-brand p {
    font-family: var(--font-serif);
    font-style: italic;
    opacity: 0.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 10px;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    opacity: 1;
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a:hover {
    opacity: 1;
}

/* ===================================
   SCROLL ANIMATIONS
   =================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   COMPREHENSIVE RESPONSIVE SYSTEM
   Best Practices for All Devices
   =================================== */

/* === FLUID TYPOGRAPHY SCALE === */
html {
    font-size: clamp(14px, 1vw + 12px, 18px);
}

/* === SAFE AREA INSETS (Notched Devices) === */
@supports (padding: max(0px)) {
    .container, .container-fluid {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }

    .mobile-nav {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
}

/* === TOUCH TARGET OPTIMIZATION === */
@media (pointer: coarse) {
    /* Minimum 44px touch targets for accessibility */
    .filter-btn,
    .btn-primary,
    .btn-secondary,
    .mobile-nav-item,
    .nav-links a,
    .entry-link,
    .project-view-btn,
    .footer-col a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS zoom */
    }

    /* Increase tap spacing */
    .nav-links {
        gap: 30px;
    }

    .project-filters {
        gap: 12px;
    }
}

/* === EXTRA SMALL DEVICES (320px - 479px) === */
@media (max-width: 479px) {
    :root {
        --section-padding: 50px;
    }

    .container, .container-fluid {
        padding: 0 16px;
    }

    /* Hero adjustments */
    .hero-section {
        height: 100svh; /* Use small viewport height */
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 0.08em;
    }

    .hero-quote {
        font-size: 1rem;
    }

    .hero-tagline {
        font-size: 0.75rem;
        margin-bottom: 40px;
    }

    .award-badges {
        gap: 8px;
    }

    .award-badge {
        padding: 8px 12px;
        width: 100%;
        justify-content: center;
    }

    .award-text {
        font-size: 0.65rem;
    }

    /* Entry cards */
    .entry-image {
        height: 250px;
    }

    .entry-content {
        padding: 20px;
    }

    .entry-content h3 {
        font-size: 1.4rem;
    }

    /* Projects */
    .project-card {
        flex: 0 0 95%;
    }

    .project-card-image {
        height: 200px;
    }

    .project-card-content {
        padding: 20px;
    }

    /* Collections */
    .collection-image {
        height: 250px;
    }

    .collection-content {
        padding: 25px 20px;
    }

    .collection-content h3 {
        font-size: 1.5rem;
    }

    /* Studio */
    .studio-content h2 {
        font-size: 1.8rem;
    }

    .large-text {
        font-size: 1.1rem;
    }

    .process-grid {
        gap: 25px;
    }

    .step-number {
        font-size: 2.5rem;
    }

    /* Contact */
    .contact-info h2 {
        font-size: 1.8rem;
    }

    .contact-form-wrapper {
        padding: 25px 16px;
    }

    /* Footer */
    .footer {
        padding: 50px 0 30px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .footer-col h4 {
        font-size: 0.85rem;
    }

    .footer-col a {
        font-size: 0.8rem;
    }
}

/* === SMALL DEVICES (480px - 767px) === */
@media (min-width: 480px) and (max-width: 767px) {
    :root {
        --section-padding: 60px;
    }

    .hero-section {
        height: 85svh;
    }

    .entry-image {
        height: 300px;
    }

    .project-card {
        flex: 0 0 85%;
    }

    .collection-image {
        height: 280px;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === TABLET DEVICES (768px - 967px) === */
@media (min-width: 768px) and (max-width: 967px) {
    :root {
        --section-padding: 80px;
    }

    .nav-container {
        padding: 0 30px;
    }

    .nav-links {
        gap: 25px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .entry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .entry-image {
        height: 320px;
    }

    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .collection-image {
        height: 300px;
    }

    .studio-grid {
        gap: 50px;
    }

    .contact-grid {
        gap: 50px;
    }
}

/* === STANDARD DEVICES (768px and below - combined) === */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px; /* Space for bottom nav */
    }

    .hero-section {
        height: 100svh;
        min-height: 600px;
    }

    /* Better scroll behavior on mobile */
    html {
        scroll-padding-top: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Improve mobile nav touch targets */
    .mobile-nav {
        padding: 10px 0 calc(15px + env(safe-area-inset-bottom, 5px));
    }

    .mobile-nav-item {
        padding: 8px 12px;
        min-height: 50px;
    }

    .mobile-nav-item svg {
        width: 22px;
        height: 22px;
    }

    .mobile-nav-item span {
        font-size: 0.6rem;
    }

    /* Better button sizing */
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 16px 30px;
        font-size: 0.9rem;
    }

    /* Improve form on mobile */
    .form-group label {
        font-size: 0.8rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Filter buttons scroll horizontally */
    .project-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .project-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 12px 20px;
    }
}

/* === LARGE TABLETS / SMALL LAPTOPS (968px - 1199px) === */
@media (min-width: 968px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .entry-grid {
        gap: 30px;
    }

    .entry-image {
        height: 380px;
    }

    .collections-grid {
        gap: 30px;
    }

    .project-item.large {
        height: 450px;
    }

    .project-item.medium {
        height: 350px;
    }
}

/* === LARGE SCREENS (1200px - 1599px) === */
@media (min-width: 1200px) and (max-width: 1599px) {
    .container {
        max-width: 1200px;
    }

    .entry-image {
        height: 420px;
    }
}

/* === EXTRA LARGE SCREENS (1600px+) === */
@media (min-width: 1600px) {
    html {
        font-size: 18px;
    }

    .container {
        max-width: 1500px;
    }

    .hero-title {
        font-size: 6rem;
    }

    .entry-image {
        height: 500px;
    }

    .collection-image {
        height: 450px;
    }

    .project-item.large {
        height: 600px;
    }

    .project-item.medium {
        height: 480px;
    }
}

/* === LANDSCAPE ORIENTATION ON MOBILE === */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero-quote {
        margin-bottom: 10px;
    }

    .hero-tagline {
        margin-bottom: 30px;
    }

    .award-badges {
        flex-direction: row;
        margin-bottom: 20px;
    }

    .hero-scroll {
        display: none;
    }
}

/* === HIGH DPI / RETINA DISPLAYS === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp text */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* === REDUCED MOTION PREFERENCE === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-slide {
        transition: opacity 0.3s ease;
    }

    .hero-scroll {
        animation: none;
    }
}

/* === DARK MODE SUPPORT (Optional) === */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode
    :root {
        --color-light: #1a1a1a;
        --color-white: #0d0d0d;
        --color-dark: #f5f5f5;
        --color-gray: #a0a0a0;
        --color-gray-light: #333333;
    }
    */
}

/* === PRINT STYLES === */
@media print {
    .main-nav,
    .mobile-nav,
    .hero-scroll,
    .filter-btn,
    .btn-primary,
    .btn-secondary,
    .contact-form-wrapper {
        display: none !important;
    }

    body {
        padding: 0;
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    .hero-section {
        height: auto;
        page-break-after: always;
    }

    .entry-card,
    .project-item,
    .collection-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
