/* SALAR KHOSROJERDI - BRAND DNA (RESTORATION) */

:root {
    --background: #050505;
    --foreground: #e0e0e0;
    --accent-orange: #e25822;
    --font-sans: "Outfit", "Inter", sans-serif;
    --tracking-tighter: -0.05em;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.has-bg-art::before {
    content: '';
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    height: calc(100% - 100px);
    background: url('../background_art.jpg') center/cover no-repeat;
    opacity: 0.2;
    z-index: -2;
    pointer-events: none;
    transform: translate(var(--bg-x, 0), var(--bg-y, 0)) scale(1.05);
    transition: transform 0.2s ease-out;
}


/* Watermark */
.bg-watermark {
    position: absolute;
    top: 300px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20vw;
    font-weight: 800;
    color: rgba(255,255,255,0.015);
    letter-spacing: var(--tracking-tighter);
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 32px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.5s ease-out;
}

nav.scrolled {
    padding: 16px 80px;
    background: #050505;
    border-bottom: 1px solid var(--glass-border);
}

.logo-wrap {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.1em;
}

.logo-subtext {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

/* Page Headers */
.section-tag {
    color: var(--accent-orange);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: var(--tracking-tighter);
    margin-bottom: 32px;
}

section {
    padding: 60px 80px;
}

@media (max-width: 768px) {
    .section-title { font-size: 2.5rem !important; line-height: 1.1; }
    .hero-title { font-size: 3rem !important; }
}

/* BUTTONS */
.btn-glass {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    color: #fff;
}

.btn-glass:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-glass-primary {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}


/* Grid & Cards */
.card-grid {
    display: grid;
    gap: 32px;
}

.project-card {
    position: relative;
    background: #111;
    overflow: hidden;
    transition: 0.5s ease-out;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.7s;
}

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

.project-info {
    position: absolute;
    bottom: 0;
    padding: 32px;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 1s cubic-bezier(0, 0, .2, 1);
}

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

.md-hidden { display: none; }

@media (max-width: 1024px) {
    nav, section { padding: 24px 40px; }
    .nav-links { gap: 20px; }
}

@media (max-width: 768px) {
    nav { padding: 20px; }
    .nav-links { 
        display: none; 
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #000;
        padding: 40px;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-links.active { display: flex; }
    .md-hidden { display: block !important; }
}

/* 50/50 Hero Layout */
.hero-split {
    display: flex;
    min-height: 70vh;
    align-items: center;
    gap: 60px;
    padding: 0 80px;
}

.hero-left { flex: 1; z-index: 10; }
.hero-right { flex: 1.5; position: relative; cursor: pointer; }

@media (max-width: 1024px) {
    .hero-split {
        flex-direction: column-reverse;
        padding: 120px 24px 60px !important;
        min-height: auto;
        gap: 40px;
    }
    .hero-left, .hero-right {
        width: 100%;
        flex: none;
    }
}

.showreel-preview-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    background: #111;
    overflow: hidden;
    position: relative;
    transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showreel-preview-wrap:hover {
    transform: scale(1.02);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 5;
}

.showreel-preview-wrap:hover .play-button-overlay {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Cinematic Lightbox */
.video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.video-lightbox.active {
    display: flex;
}

.video-lightbox video {
    max-width: 90%;
    max-height: 80vh;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    background: #000;
}

.close-lightbox {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: 0.3s;
    z-index: 3001;
}

.close-lightbox:hover {
    background: var(--accent-orange);
    transform: rotate(90deg);
}
@media (max-width: 768px) {
    /* Global Spacing */
    section { padding: 60px 30px !important; }
    
    /* Header & Nav */
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.portrait-card .thumbnail-wrap {
    aspect-ratio: 3/4;
    background: #111;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .grid-4, .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-4, .grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    .portrait-card .thumbnail-wrap {
        aspect-ratio: 3/4 !important;
    }
}
