/* ==========================================================================
   PORTFOLIO 2: MIDNIGHT STUDIO (PREMIUM DARK MODE)
   ========================================================================== */

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-white: #ffffff;
    --text-gray: #a1a1aa;
    --border-dark: #27272a;
    --accent: #d4d4d8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.dark-theme {
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background-color: var(--bg-dark); 
    color: var(--text-white); 
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography Classes */
.serif { font-family: 'Playfair Display', serif; }
.italic { font-style: italic; }
.text-accent { color: var(--text-gray); }

.container { max-width: 1300px; margin: 0 auto; padding: 0 5%; }
.noselect { user-select: none; -webkit-user-select: none; }
img { width: 100%; display: block; }
a { text-decoration: none; }

/* Banner */
.josef-preview-banner { background: #ffffff; color: #000; text-align: center; padding: 10px; font-size: 13px; z-index: 2000; position: relative; font-weight: 500; }

/* Header */
.studio-header { position: absolute; width: 100%; top: 30px; z-index: 100; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 25px; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.4rem; font-weight: 700; letter-spacing: 1px; color: var(--text-white); }
.logo span { font-weight: 400; color: var(--text-gray); }

.desktop-nav a { color: var(--text-gray); font-size: 0.9rem; margin: 0 1.5rem; transition: color 0.3s ease; }
.desktop-nav a:hover { color: var(--text-white); }

.header-actions { display: flex; align-items: center; gap: 2rem; }
.link-back { color: var(--text-gray); font-size: 0.9rem; transition: color 0.3s; }
.link-back:hover { color: var(--text-white); }

.btn-glass { 
    background: rgba(255, 255, 255, 0.05); 
    color: var(--text-white); 
    padding: 10px 24px; 
    border-radius: 50px; 
    font-size: 0.9rem; 
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease; 
}
.btn-glass:hover { background: var(--text-white); color: var(--bg-dark); }

/* Cinematic Hero */
.hero-dark { position: relative; padding: 25vh 0 10vh 0; min-height: 80vh; display: flex; align-items: center; }
.hero-glow { position: absolute; top: -20%; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%); border-radius: 50%; pointer-events: none; z-index: -1; }

.hero-container { position: relative; z-index: 2; }
.hero-dark h1 { font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 500; line-height: 1.05; letter-spacing: -2px; margin-bottom: 2rem; }
.hero-sub { font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--text-gray); max-width: 600px; line-height: 1.6; font-weight: 300; margin-bottom: 4rem; }

.hero-scroll { display: flex; align-items: center; gap: 15px; color: var(--text-gray); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; }
.scroll-line { width: 50px; height: 1px; background: var(--border-dark); }

/* Gallery Layout */
.gallery-section { padding-bottom: 120px; }
.gallery-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.large-card { grid-column: span 2; }

/* Premium Image Cards */
.project-card { display: block; group; margin-bottom: 20px; }
.project-image-wrap { position: relative; border-radius: 16px; overflow: hidden; background: var(--bg-card); aspect-ratio: 16/9; }
.project-card:not(.large-card) .project-image-wrap { aspect-ratio: 4/5; } /* Taller for smaller columns */

.project-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.8s ease; }
.hover-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; transition: opacity 0.4s ease; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.view-case { background: white; color: black; padding: 12px 24px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); display: flex; align-items: center; gap: 8px; }

/* The Hover Magic */
.project-card:hover .project-image-wrap img { transform: scale(1.05); filter: grayscale(50%); }
.project-card:hover .hover-overlay { opacity: 1; }
.project-card:hover .view-case { transform: translateY(0); }

.project-info { padding: 25px 0; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--border-dark); }
.project-info h3 { font-size: 2rem; font-weight: 400; color: var(--text-white); }
.project-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.project-tags span { font-size: 0.8rem; color: var(--text-gray); border: 1px solid var(--border-dark); padding: 6px 14px; border-radius: 50px; }

/* Massive Footer */
.dark-footer { padding: 120px 0 60px 0; background: var(--bg-card); border-top: 1px solid var(--border-dark); }
.dark-footer h2 { font-size: 1.5rem; color: var(--text-gray); font-style: italic; margin-bottom: 10px; }
.giant-link { display: inline-block; font-size: clamp(3rem, 8vw, 8rem); font-weight: 700; color: var(--text-white); letter-spacing: -3px; margin-bottom: 80px; transition: color 0.3s ease; line-height: 1; }
.giant-link:hover { color: var(--text-gray); }

.footer-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-dark); padding-top: 30px; }
.social-links { display: flex; gap: 30px; }
.social-links a { color: var(--text-white); font-size: 0.9rem; display: flex; align-items: center; gap: 5px; transition: color 0.3s; }
.social-links a:hover { color: var(--text-gray); }
.copyright { color: var(--text-gray); font-size: 0.85rem; }

/* Animations */
.fade-in-up { animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; opacity: 0; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Breakdown */
@media (max-width: 992px) {
    .gallery-layout { grid-template-columns: 1fr; }
    .large-card { grid-column: span 1; }
    .project-card:not(.large-card) .project-image-wrap { aspect-ratio: 16/9; }
    .header-actions .btn-glass, .desktop-nav { display: none; }
    .footer-meta { flex-direction: column; align-items: flex-start; gap: 30px; }
    .project-info { flex-direction: column; gap: 15px; }
}
/* ==========================================================================
   NEW SECTIONS: MANIFESTO & CAPABILITIES
   ========================================================================== */

/* Manifesto Section */
.manifesto-section { padding: 120px 0 80px 0; border-top: 1px solid var(--border-dark); }
.manifesto-section h2 { font-size: clamp(2rem, 4vw, 3.5rem); max-width: 1000px; line-height: 1.3; font-weight: 400; color: var(--text-white); margin-bottom: 80px; }

.manifesto-stats { display: flex; gap: 80px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 10px; }
.stat-number { font-size: 3.5rem; color: var(--text-white); line-height: 1; }
.stat-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-gray); }

/* Capabilities Section */
.capabilities-section { padding: 0 0 120px 0; }
.cap-header { border-bottom: 1px solid var(--border-dark); padding-bottom: 20px; margin-bottom: 50px; }
.uppercase { text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; }

.cap-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.cap-item { border-left: 1px solid var(--border-dark); padding-left: 30px; transition: border-color 0.4s ease; cursor: default; }
.cap-item:hover { border-color: var(--text-white); } /* Cool line highlight on hover */
.cap-item h3 { font-size: 2rem; color: var(--text-white); font-weight: 400; margin-bottom: 15px; }
.cap-item p { color: var(--text-gray); font-size: 0.95rem; line-height: 1.7; }