/* CSS Reset & Variables */
:root {
    --bg-color: #050505;
    --brand-primary: #FF5A1F; /* Vivid editorial orange */
    --brand-secondary: #7A00FF; /* Neon purple for contrast/glow */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #a0a0a5;
    
    --font-ui: 'Outfit', sans-serif;
    
    --radius-lg: 32px;
    --radius-md: 20px;
    
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-ui);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* --- Dynamic Background & Editorial Typography --- */
.bg-typography {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28vw;
    font-weight: 900;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.02);
    z-index: 0;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: -1vw;
    pointer-events: none;
}
.bg-typography.back {
    top: 20%;
    transform: translate(-50%, -50%) scale(1.5);
    color: rgba(255, 90, 31, 0.03); /* subtle orange tint */
}

/* Neon Gradient Orbs */
.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}
.orb-1 {
    top: -10%; left: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--brand-primary) 0%, transparent 70%);
}
.orb-2 {
    bottom: -20%; right: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--brand-secondary) 0%, transparent 70%);
}

/* --- Layout --- */
.main-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 100vh;
}

/* Glass Header */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
}
.logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links span {
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.nav-links span:hover {
    color: var(--text-main);
}
.profile-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 5px 15px 5px 5px;
    border-radius: 50px;
}
.profile-chip img {
    width: 30px; height: 30px; border-radius: 50%;
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
    width: 100%;
}

/* Glass Card Base Styles */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    /* For JS 3D tilt */
    transform-style: preserve-3d;
}

/* Subtle glow border on hover */
.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
}

/* Individual Grid Items Specifics */

/* Hero spans 2 cols, 2 rows */
.hero-card {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: flex-end;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(20,20,20,0.6) 0%, rgba(5,5,5,0.8) 100%);
}
.hero-bg-img {
    position: absolute;
    top: 0; right: 0; left: 0; bottom: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: -1;
    mix-blend-mode: luminosity;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-card:hover .hero-bg-img {
    opacity: 0.5;
    transform: scale(1.05);
}
.card-tag {
    position: relative;
    display: inline-block;
    width: max-content;
    margin-bottom: 1.5rem;
    background: var(--brand-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-card h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    transform: translateZ(30px); /* 3D layer effect */
}
.hero-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 80%;
    margin-bottom: 2rem;
    transform: translateZ(20px);
}
.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: black;
    border: none;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-ui);
    cursor: pointer;
    width: max-content;
    transition: transform 0.2s;
    transform: translateZ(40px);
}
.primary-btn:hover {
    transform: translateZ(40px) scale(1.05);
}

/* Content cards */
.content-card {
    justify-content: center;
}
.icon-circle {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--brand-primary);
    transform: translateZ(20px);
    transition: background 0.3s;
}
.content-card:hover .icon-circle {
    background: var(--brand-primary);
    color: white;
}
.content-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    transform: translateZ(30px);
}
.content-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    transform: translateZ(10px);
}

/* Image/Video focus card (Image 1 aesthetic inspiration) */
.image-card {
    grid-column: span 1;
    grid-row: span 2;
    padding: 0;
    background: transparent;
    border: none;
}
.image-inner {
    width: 100%; height: 100%;
    border-radius: var(--radius-lg);
    background: url('assets/tequila-hero.png') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}
.image-card:hover .image-inner {
    transform: scale(0.98);
}
.play-btn {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--brand-secondary);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px rgba(122, 0, 255, 0.4);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    transform: translateZ(50px);
}
.play-btn:hover {
    transform: translateZ(50px) scale(1.1);
    background: #902afa;
}

/* Specific grids layout positioning */
/* Replacing explicit rigid placements with flexible spans to prevent overlap */
.photocard, .videocard-1, .videocard-2, .rawcard { 
    grid-column: span 1; 
}
.image-card { 
    grid-column: span 1; 
    grid-row: span 2; 
}

/* Equipment Card */
.equipment-card {
    grid-column: span 2;
    background: rgba(20,20,25, 0.5);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    transform: translateZ(20px);
}
.card-header h3 {
    font-size: 1.8rem;
}
.card-header svg {
    color: rgba(255,255,255,0.4);
    width: 32px; height: 32px;
}
.clean-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    transform: translateZ(10px);
}
.clean-list li {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 1.1rem;
    font-weight: 500;
}
.clean-list li span {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--brand-primary);
    letter-spacing: 1px;
    font-weight: 800;
}

/* Investment Card */
.investment-card {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255,90,31,0.1), rgba(122,0,255,0.05));
    border: 1px solid rgba(255,90,31,0.3);
    text-align: center;
    justify-content: center;
    align-items: center;
}
.investment-card:hover {
    border: 1px solid rgba(255,90,31,0.6);
    box-shadow: 0 20px 50px rgba(255,90,31,0.2);
}
.tag-row {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    transform: translateZ(20px);
    justify-content: center;
}
.tag {
    background: rgba(255,255,255,0.1);
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 50px;
}
.investment-card h3 {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    transform: translateZ(20px);
}
.price-display {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    margin-bottom: 1rem;
    transform: translateZ(40px);
}
.currency { font-size: 2rem; font-weight: 600; margin-top: 10px;}
.amount { font-size: 6rem; font-weight: 900; line-height: 1; letter-spacing: -3px;}
.iso { font-size: 1.5rem; font-weight: 600; margin-top: auto; margin-bottom: 10px; color: var(--text-muted);}

.price-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    margin-bottom: 2rem;
    transform: translateZ(20px);
}
.approve-btn {
    background: var(--brand-primary);
    color: white;
    border: none;
    width: 100%;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    transform: translateZ(30px);
}
.approve-btn:hover {
    background: #ff7543;
    box-shadow: 0 10px 20px rgba(255,90,31,0.4);
}

/* ============================================
   Card with background photo (photo-bg-card)
   ============================================ */
.photo-bg-card {
    position: relative;
}
.card-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
    border-radius: var(--radius-lg);
    z-index: 0;
    transition: opacity 0.4s ease;
}
.photo-bg-card:hover .card-bg-img {
    opacity: 0.25;
}
.photo-bg-card > *:not(.card-bg-img) {
    position: relative;
    z-index: 1;
}

/* ============================================
   WORK SAMPLES / PORTFOLIO PREVIEW SECTION
   ============================================ */
.samples-section {
    padding: 2rem 0 4rem;
}

.samples-header {
    text-align: center;
    margin-bottom: 3rem;
}
.samples-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 1rem;
}
.samples-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Bento grid for sample images */
.samples-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 360px 280px;
    gap: 1rem;
}

/* each cell */
.sample-img {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
}
.sample-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}
.sample-img:hover img {
    transform: scale(1.06);
}

/* Overlay label */
.sample-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.5rem 1.5rem 1.2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sample-img:hover .sample-overlay {
    opacity: 1;
}
.sample-overlay span {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    background: rgba(255,90,31,0.85);
    padding: 4px 12px;
    border-radius: 50px;
}

/* Grid placements */
/* Row 1: wide landscape (7 cols) + portrait (3 cols) + square-a (2 cols) */
.sample-wide      { grid-column: 1 / span 7;  grid-row: 1; }
.sample-portrait  { grid-column: 8 / span 3;  grid-row: 1; }
.sample-square-a  { grid-column: 11 / span 2; grid-row: 1; }

/* Row 2: square-b (3 cols) + process wide (9 cols) */
.sample-square-b  { grid-column: 1 / span 3;  grid-row: 2; }
.sample-wide-2    { grid-column: 4 / span 9;  grid-row: 2; }

/* ============================================
   Responsiveness
   ============================================ */
@media (max-width: 900px) {
    .samples-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 0.75rem;
    }
    .sample-wide,
    .sample-portrait,
    .sample-square-a,
    .sample-square-b,
    .sample-wide-2 {
        grid-column: auto;
        grid-row: auto;
        height: 260px;
    }
    .sample-wide   { grid-column: span 2; height: 300px; }
    .sample-wide-2 { grid-column: span 2; height: 280px; }
}

/* Responsiveness */
@media (max-width: 1100px) {
    .bento-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .hero-card, 
    .equipment-card, 
    .investment-card { 
        grid-column: span 2; 
    }
    .image-card { 
        grid-row: span 1; 
    }
}

@media (max-width: 768px) {
    .main-wrapper {
        padding: 1rem;
    }
    .glass-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    .logo {
        text-align: center;
    }
    .bento-grid { 
        grid-template-columns: 1fr; 
    }
    .hero-card, 
    .equipment-card, 
    .investment-card,
    .photocard, 
    .videocard-1, 
    .videocard-2, 
    .rawcard,
    .image-card { 
        grid-column: 1; 
        grid-row: auto; 
    }
    /* Provide sufficient vertical padding to stop squishing on mobile */
    .glass-card {
        padding: 2rem 1.5rem;
    }
    .hero-card {
        padding: 3rem 1.5rem;
    }
    .clean-list { 
        grid-template-columns: 1fr; 
    }
    .bg-typography { 
        font-size: 40vw; 
    }
    .nav-links { 
        display: none; 
    }
    .hero-card h1 {
        font-size: 2.5rem;
    }
    .amount {
        font-size: 4.5rem;
    }
}
