/* ==========================================================================
   VECTORMOTIF DESIGN SYSTEM & CONFIGURATION (LIGHT THEME)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --bg-primary: #FFFFFF;     /* Crisp, clean pure white backdrop */
    --bg-surface: #F8F9FA;     /* Premium soft off-white/light gray for cards and sections */
    --text-main: #1A1A1A;      /* Deep charcoal for bold, readable headlines */
    --text-muted: #636366;     /* Elegant muted slate gray for body paragraphs */
    --accent-teal: #00ADB5;    /* Your signature high-vibrancy Electric Teal accent */
    --border-color: #E5E5EA;   /* Minimalist light structural dividers */
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: sans-serif;
    text-align: center;
    padding-top: 50px;
    margin: 0;
}

/* ==========================================================================
   GLOBAL NAVIGATION STYLING
   ========================================================================== */
.main-header {
    display: flex;
    justify-content: space-between; 
    align-items: center;            
    padding: 20px 10%;              
    background-color: var(--bg-primary);      
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-main);
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-desktop {
    height: 40px;      
    width: auto;       
    display: block;    
}

.logo-mobile {
    display: none;     
}

.nav-links ul {
    list-style: none;               
    display: flex;                  
    gap: 30px;                      
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;          
    color: var(--text-muted);                 
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;    
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-teal);                 
}

/* ==========================================================================
   LANDING PAGE HERO ELEMENT
   ========================================================================== */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%; 
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    min-height: 550px; 
    overflow: hidden;
}

.hero-left {
    flex: 1;
    max-width: 600px;
    padding: 80px 40px 80px 0; 
    z-index: 2; 
    text-align: left;
}

.hero-section h2 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--text-main);
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-right {
    position: relative;
    width: 55%;           
    height: 100%;         
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;    
    display: block;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;          
    pointer-events: none; 
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 40%),
                linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0) 90%, #ffffff 100%);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-teal); 
    color: #ffffff;
    text-decoration: none;
    padding: 15px 35px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 173, 181, 0.15);
}

.cta-button:hover {
    background-color: #008f96; 
    transform: translateY(-2px); 
}

.cta-button:active {
    transform: translateY(0); 
}

/* ==========================================================================
   PORTFOLIO DISPLAY GRID & CARDS
   ========================================================================== */
.portfolio-intro, 
.portfolio-page-intro {
    padding: 60px 10% 20px 10%;
    text-align: left; 
    max-width: 800px;
}

.portfolio-intro h1, 
.portfolio-page-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.portfolio-intro p, 
.portfolio-page-intro p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* OPTIMIZED: Combined shared layout traits for portfolio grids and archive rows */
.portfolio-grid, 
.gallery-row {
    display: grid;
    gap: 30px;
    width: 100%;
}

.portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 40px 0;
}

.portfolio-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

a.portfolio-item {
    text-decoration: none; 
    color: inherit;        
    cursor: pointer;
}

a.portfolio-item:hover .portfolio-image {
    transform: scale(1.02);
}

.portfolio-item:hover {
    transform: translateY(-5px); 
    border-color: var(--accent-teal);        
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* OPTIMIZED: Merged duplicate .portfolio-image parameters safely */
.portfolio-image {
    width: 100%;
    height: 280px;        
    object-fit: cover;    
    object-position: center; 
    display: block;
    border-bottom: 1px solid #f0f0f0;
    transition: transform 0.3s ease; 
}

.item-details {
    padding: 20px;
    background: #ffffff;
    flex-grow: 1;         
}

.item-details h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: #111;
}

.item-details p {
    font-size: 0.9rem;
    color: #777;
}

/* Filter Module */
.filter-section {
    padding: 20px 10% 40px 10%;
    text-align: left;
}

.filter-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; 
}

.filter-btn {
    background-color: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 30px; 
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.filter-btn:hover {
    color: var(--text-main);
    border-color: #999999;
}

.filter-btn.active {
    background-color: var(--accent-teal);
    color: #ffffff;
    border-color: var(--accent-teal);
}

.archive-grid-section { padding-top: 10px; }
.upcoming-project { opacity: 0.75; border-style: dashed; }
.item-image-placeholder { transition: background-color 0.3s ease; }
.portfolio-item:hover .item-image-placeholder { background-color: #E5E5E7; }

.UI-placeholder {
    background-color: #EFEFED;
    font-style: italic;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   SERVICES & PRODUCTION WORKFLOW
   ========================================================================== */
.services-section {
    padding: 80px 10%;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.services-section.page-override {
    border-top: none;
    padding-top: 20px;
}

.services-intro, 
.workflow-intro {
    text-align: center;
    margin-bottom: 60px;
}

.workflow-intro { text-align: left; }

.services-intro h2, 
.workflow-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.workflow-intro h2 { font-size: 2.2rem; }

.services-intro p, 
.workflow-intro p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.price-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-teal);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.card-header h3 {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    color: var(--text-main);
    text-align: left;
}

.price {
    font-size: 1.1rem;
    color: var(--accent-teal);
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    text-align: left;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    text-align: left;
    flex-grow: 1; 
}

.card-features li {
    font-size: 0.95rem;
    color: #48484A;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.card-features li:last-child { border-bottom: none; }

.card-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.card-btn:hover {
    background-color: var(--accent-teal);
    border-color: var(--accent-teal);
    color: #ffffff;
}

.workflow-section {
    padding: 100px 10%;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.step-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 35px 25px;
    border-radius: 8px;
    text-align: left;
    position: relative;
}

.step-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-teal);
    margin-bottom: 15px;
    font-family: monospace;
}

.step-card h4 {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    color: var(--text-main);
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   CONTACT CLIENT INTAKE SYSTEM
   ========================================== */
.form-intro {
    padding: 60px 10% 20px 10%;
    text-align: left;
    max-width: 700px;
}

.form-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.form-intro p { color: var(--text-muted); font-size: 1.1rem; }

.form-section {
    padding: 0 10% 100px 10%;
    display: flex;
    justify-content: flex-start; 
}

.intake-form {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 700px; 
}

.form-group {
    display: flex;
    flex-direction: column; 
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 14px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: sans-serif;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 8px rgba(0, 173, 181, 0.15);
}

.form-group textarea { resize: vertical; }

.submit-btn {
    display: block;
    width: 100%;
    background-color: var(--accent-teal);
    color: #ffffff;
    border: none;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: #008f96;
    transform: translateY(-2px);
}

.submit-btn:active { transform: translateY(0); }

/* ==========================================
   CASE STUDY EXPANDED PRODUCTION GALLERIES
   ========================================== */
.case-study-gallery-container {
    max-width: 1100px;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px; 
}

.gallery-split-2 { grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); }
.gallery-split-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.full-width-hero { grid-template-columns: 1fr; }

.gallery-item {
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.asset-showcase .gallery-item img {
    max-height: 200px;
    width: auto;
    object-fit: contain;
}

.portrait-crop img, 
.landscape-crop img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
}

.img-caption {
    display: block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

/* ==========================================
   PURE CSS FULL-SCREEN LIGHTBOX OVERLAY ENGINE
   ========================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.95); 
    z-index: 9999;                      
    opacity: 0;
    pointer-events: none;               
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay:target {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: default;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 4px;
}

.close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 35px;
    text-decoration: none;
    transition: color 0.2s;
}

.close-btn:hover { color: #ff4a4a; }

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 45px;
    text-decoration: none;
    font-weight: 300;
    padding: 20px;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
    z-index: 10000; 
}

.prev-arrow { left: -70px; }
.next-arrow { right: -70px; }

.nav-arrow:hover { color: #ffffff; }
.prev-arrow:hover { transform: translateY(-50%) translateX(-4px); }
.next-arrow:hover { transform: translateY(-50%) translateX(4px); }

/* Global Website Footer Layout */
.main-footer {
    padding: 40px 10%;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.main-footer p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ==========================================
   OPTIMIZED CONSOLIDATED MEDIA QUERIES
   ========================================== */

/* --- TABLET COMPRESSION LAYOUT (Under 960px Views) --- */
@media screen and (max-width: 960px) {
    .hero-section,
    .portfolio-intro,
    .portfolio-page-intro,
    .services-page-intro,
    .form-intro,
    .filter-section,
    .form-section,
    .workflow-section,
    .main-footer {
        padding-left: 5%;
        padding-right: 5%;
    }

    .services-container {
        grid-template-columns: 1fr;
        max-width: 500px; 
        gap: 25px;
    }

    .hero-section h2 { font-size: 2.5rem; }
}

/* --- ADAPTIVE INTERFACE VIEWS (Under 768px Views) --- */
@media screen and (max-width: 768px) {
    .logo-desktop { display: none; }
    .logo-mobile { height: 35px; width: auto; display: block; }
    
    .gallery-mixed-split { grid-template-columns: 1fr; }
    .nav-arrow { font-size: 35px; padding: 10px; }
    .prev-arrow { left: -40px; }
    .next-arrow { right: -40px; }
}

/* --- MOBILE STACK LAYOUT (Under 600px Phone Views) --- */
@media screen and (max-width: 600px) {
    body { padding-top: 20px; }

    .main-header { flex-direction: column; gap: 15px; padding: 20px 5%; }
    .nav-links ul { gap: 20px; }

    .hero-section { flex-direction: column; padding: 40px 5%; min-height: auto; }
    .hero-left { max-width: 100%; padding: 0 0 40px 0; text-align: center; }
    .hero-section h2 { font-size: 2.1rem; }
    .hero-section p { font-size: 1.1rem; margin-bottom: 30px; }

    .hero-right { width: 100%; height: 300px; border-radius: 6px; }
    .hero-image-overlay {
        background: linear-gradient(to bottom, var(--bg-primary) 0%, rgba(255, 255, 255, 0.4) 100%);
    }

    .portfolio-grid { padding: 0 5% 60px 5%; grid-template-columns: 1fr; gap: 20px; }
    .item-image-placeholder { height: 200px; }
    
    .portfolio-intro h1,
    .portfolio-page-intro h1,
    .services-page-intro h1,
    .form-intro h1 { font-size: 2rem; }

    .intake-form { padding: 25px 20px; }
    .filter-bar { gap: 8px; }
    .filter-btn { padding: 8px 16px; font-size: 0.85rem; }
    .gallery-split-2 { grid-template-columns: 1fr; }
}