:root {
    --bg-color: #000000;
    --text-color: #f5f5f7;
    --font-main: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    
    /* Culori Apple Gradient (Neon fluid) */
    --grad-1: #ff2a5f;
    --grad-2: #ff7539;
    --grad-3: #c93ce4;
    --grad-4: #0071e3;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* ==============================
   1. INTRO / SPLASH SCREEN
   ============================== */
#intro-loader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: #000000; z-index: 9999;
    display: flex; justify-content: center; align-items: center; flex-direction: column;
}
.intro-logo { height: 250px; width: auto; position: absolute; opacity: 0; }
.intro-text { position: absolute; font-size: 4rem; font-weight: 800; letter-spacing: -2px; text-align: center; opacity: 0; }

/* ==============================
   2. FUNDAL LICHID (AMBIENT BACKGROUND)
   ============================== */
.ambient-background {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; overflow: hidden; background: #000;
}
.blob {
    position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.4;
    animation: float 15s infinite alternate ease-in-out;
}
.blob-1 { width: 40vw; height: 40vw; background: var(--grad-1); top: -10%; left: -10%; }
.blob-2 { width: 50vw; height: 50vw; background: var(--grad-4); bottom: -20%; right: -10%; animation-delay: -5s; }
.blob-3 { width: 35vw; height: 35vw; background: var(--grad-3); top: 40%; left: 40%; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

/* ==============================
   3. EFECT DE STICLĂ & TEXT GRADIENT
   ============================== */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.gradient-text {
    background: linear-gradient(90deg, var(--grad-1), var(--grad-2), var(--grad-3), var(--grad-4), var(--grad-1));
    background-size: 300% 300%; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite; display: inline-block;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==============================
   4. COMPONENTE & STRUCTURĂ
   ============================== */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 40px; position: fixed; width: 100%; top: 0; z-index: 1000;
    border: none; background: rgba(0, 0, 0, 0.5); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 90px; width: auto; display: block; }

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { color: #f5f5f7; text-decoration: none; font-size: 0.9rem; transition: opacity 0.3s; opacity: 0.8; }
.nav-links a:hover { opacity: 1; }

.hero {
    height: 100vh; position: relative; display: flex; align-items: center; justify-content: center;
    overflow: hidden; text-align: center; background-color: #000;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1492684223066-81342ee5ff30?auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.6; /* AICI: E vizibilă implicit */
    z-index: 0; transform: scale(1);
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,1));
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-title { font-size: 7rem; font-weight: 800; line-height: 1; letter-spacing: -4px; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.5rem; font-weight: 300; opacity: 0.8; }

.apple-scroll-section { height: 300vh; position: relative; }
.scroll-container {
    height: 100vh; position: sticky; top: 0;
    display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden;
}

/* ==============================
   STILURI NOI PENTRU FUNDALURILE SCROLL
   ============================== */
.scroll-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.15); /* Zoom in inițial pentru efectul de reveal */
    z-index: 0;
}

.scroll-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Gradient de la negru transparent la negru intens jos, pentru text clar */
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.9));
    z-index: 1;
}

.scroll-text-item { 
    position: absolute; width: 100%; opacity: 0; transform: translateY(50px); 
    z-index: 2; /* Textul stă deasupra tuturor */
}
.scroll-text-item h2 { font-size: 5rem; font-weight: 800; letter-spacing: -2px; margin-bottom: 10px; }
.scroll-text-item p { font-size: 1.2rem; color: #a1a1a6; }

/* ==============================
   5. PORTOFOLIU & THUMBNAILS
   ============================== */
.portfolio { padding: 100px 5%; position: relative; z-index: 2; }
.section-title { text-align: center; font-size: 3.5rem; font-weight: 800; margin-bottom: 30px; letter-spacing: -2px; }

.filters { text-align: center; }
.filter-btn {
    background: transparent; border: none; color: #a1a1a6; font-size: 1rem;
    margin: 0 10px; cursor: pointer; transition: color 0.3s;
}
.filter-btn.active, .filter-btn:hover { color: #fff; }

.portfolio-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-auto-rows: 350px; gap: 30px; grid-auto-flow: dense;
}

.portfolio-item {
    position: relative; border-radius: 20px; overflow: hidden; cursor: pointer;
    transform: translateY(30px); opacity: 0; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background-color: rgba(0,0,0,0.1); 
}

.portfolio-item::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5; 
}

.portfolio-item.landscape { grid-column: span 1; grid-row: span 1; }
.portfolio-item.portrait { grid-column: span 1; grid-row: span 2; } 

.portfolio-item img, 
.portfolio-item .thumbnail-video {
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none; 
}
.portfolio-item:hover img, 
.portfolio-item:hover .thumbnail-video { transform: scale(1.08); }

.item-overlay {
    position: absolute; bottom: 15px; left: 15px; right: 15px; height: auto;
    border-radius: 15px; padding: 20px;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    opacity: 0; transform: translateY(20px); transition: all 0.4s ease;
    z-index: 10; 
    pointer-events: none;
}
.portfolio-item:hover .item-overlay { opacity: 1; transform: translateY(0); }
.item-overlay h4 { font-size: 1.2rem; margin-bottom: 5px; color: #fff; }
.play-btn { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--grad-2); font-weight: 600; }

/* ==============================
   CONTACT & BUTOANE SOCIAL MEDIA
   ============================== */
.contact { text-align: center; padding: 150px 20px; position: relative; z-index: 2; }
.contact h2 { font-size: 4rem; font-weight: 800; letter-spacing: -2px; margin-bottom: 20px; }
.contact p { font-size: 1.2rem; color: #a1a1a6; margin-bottom: 40px; }

/* Grupul de butoane principale */
.contact-actions {
    display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px;
}
.apple-btn {
    display: inline-block; padding: 15px 40px; color: #fff;
    text-decoration: none; border-radius: 30px; font-weight: 600; font-size: 1.1rem;
    transition: transform 0.3s, background 0.3s;
    border: none; cursor: pointer; font-family: inherit;
}
.apple-btn:hover { transform: scale(1.05); background: rgba(255,255,255,0.1); }

/* Container Butoane Social Media */
.social-links {
    display: inline-flex; gap: 25px; padding: 15px 35px;
    border-radius: 40px; justify-content: center; align-items: center;
}
.social-icon {
    color: #a1a1a6; width: 26px; height: 26px;
    display: flex; justify-content: center; align-items: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
}
/* Asigurăm afișarea corectă a iconițelor SVG în orice browser */
.social-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Efecte Hover pe Social Media cu culorile brandurilor */
.social-icon:hover { transform: scale(1.3) translateY(-5px); }
.social-icon.yt:hover { color: #ff0000; }
.social-icon.fb:hover { color: #1877f2; }
.social-icon.ig:hover { color: #e1306c; }
.social-icon.tk:hover { color: #00f2fe; }

/* ==============================
   6. MODAL VIDEO ANIMAT FLUID
   ============================== */
.modal {
    visibility: hidden; opacity: 0; display: flex; 
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 2000; justify-content: center; align-items: center;
    background: rgba(0, 0, 0, 0.95);
}
.close-modal { position: absolute; top: 30px; right: 50px; font-size: 3rem; color: #fff; cursor: pointer; z-index: 2001; }

.modal-content { 
    position: relative; width: 90vw; max-width: 1000px; aspect-ratio: 16/9; 
    box-shadow: 0 40px 100px rgba(0,0,0,0.8); border-radius: 20px; background-color: #000; overflow: hidden;
}

.modal-content.portrait-mode { 
    width: 90vw !important; max-width: 400px !important; height: auto !important; aspect-ratio: 9/16 !important; 
}

.modal-content iframe, .modal-content video { 
    position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: none; 
}

.modal-content.portrait-mode iframe { transform: scale(1.08); transform-origin: center center; }

/* ==============================
   7. RESPONSIVE (TELEFOANE)
   ============================== */
@media (max-width: 768px) {
    .intro-text { font-size: 2.5rem; }
    .intro-logo { height: 120px; }
    .hero-title { font-size: 4rem; }
    .scroll-text-item h2 { font-size: 3rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-item.portrait { grid-column: span 1; grid-row: span 2; }
}
