/* 
   1. IMPORTS & VARIABLES 
    */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --beige: #e8e4d9;  
    --blood-red: #8a0303;  
    --neon-red: #d10000;  
    --charcoal: #080808;  
    --charcoal-light: #151515;
    --text-dark: #111111;
    --text-light: #f5f5f5;
    
    --font-script: 'Courier Prime', monospace;
    --font-display: 'Bebas Neue', sans-serif;  
}

/* 
   2. GLOBAL RESETS & ANIMATIONS
    */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; 
}

body {
    font-family: var(--font-script);
    background-color: var(--charcoal);
    color: var(--text-light);
    line-height: 1.7;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    overflow-x: hidden;
}

p {
    text-align: justify;
    hyphens: auto; 
}

/* Aggressive cinematic fade-in */
@keyframes dramaticFade {
    from { opacity: 0; filter: blur(10px); transform: scale(0.98); }
    to { opacity: 1; filter: blur(0); transform: scale(1); }
}

section {
    animation: dramaticFade 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* New Title Styling */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0; 
}

/* 
   3. REUSABLE LAYOUT CONTAINERS
    */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 6rem) 2rem;
    position: relative;
    z-index: 2; 
}

.narrow-container { max-width: 750px; margin: 0 auto; }
.text-center { text-align: center; }
.text-center p { text-align: center; }
.about-biography p, .section-text p { text-align: justify; }

.red-text {
    color: var(--neon-red);
    text-shadow: 0 0 15px rgba(209, 0, 0, 0.4); 
}

.small-text {
    font-size: 0.85rem;
    opacity: 0.7;
    font-family: var(--font-script);
    letter-spacing: 0;
}

/* 
   4. BACKGROUNDS (PAPER & BLOOD EFFECTS)
    */

.beige-bg {
    background-color: var(--beige);
    color: var(--text-dark);
   
    background-image: 
        radial-gradient(circle at 10% 90%, rgba(138, 3, 3, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(90, 5, 5, 0.1) 0%, transparent 30%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.06'/%3E%3C/svg%3E");
    position: relative;
}

.dark-bg {
    background-color: var(--charcoal);
    color: var(--text-light);
    background-image: radial-gradient(circle at 50% 0%, rgba(138, 3, 3, 0.15) 0%, transparent 70%);
}

.dark-pattern-bg {
    background-image: 
        radial-gradient(circle at top left, rgba(138, 3, 3, 0.6), transparent 50%),
        radial-gradient(circle at bottom right, rgba(20, 0, 0, 0.9), transparent 60%),
        url('../assets/images/site-design.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    color: var(--text-light);
}

.section-divider {
    height: 60px;
    width: 100%;
    background: linear-gradient(to bottom, var(--charcoal), var(--blood-red), var(--charcoal));
    opacity: 0.8;
}

/* 
   5. NAVIGATION
    */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    color: var(--text-light);
    background: rgba(8, 8, 8, 0.85); 
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--blood-red); /* Sharp red line */
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 1.3rem; /* Slightly larger for Bebas Neue */
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--neon-red);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--neon-red);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* 
   6. CINEMATIC BUTTONS
    */
.btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 2px;
    border-radius: 0; /* Sharp edges */
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
    background-color: var(--blood-red);
    color: var(--text-light);
    border: 1px solid var(--neon-red);
    text-transform: uppercase;
}

.btn:hover {
    transform: scale(1.05);
    background-color: var(--neon-red); 
    box-shadow: 0 0 20px rgba(209, 0, 0, 0.6); 
    color: white;
}

.btn-white, .btn-red {
    background-color: var(--blood-red);
    color: var(--text-light);
}

/* 
   7. HOME PAGE  
    */
.hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    padding-top: 100px; 
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
    width: 100%;
}

.hero-text h1 {
    font-size: clamp(4rem, 8vw, 7rem);  
    margin-bottom: 0.5rem;
    text-shadow: 4px 4px 0px rgba(138, 3, 3, 0.5); 
}

.hero-text h2 {
    font-family: var(--font-script);  
    text-transform: none;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    border-left: 4px solid var(--neon-red);
    padding-left: 1rem;
}

.hero-image img {
    width: 350px;
    filter: grayscale(80%) contrast(120%);  
    border: 1px solid #333;
    box-shadow: 20px 20px 0px rgba(138, 3, 3, 0.3);  
}

.mission-statement {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 700;
}

.project-grid, .teaser-grid, .split-header, .visuals-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; 
    gap: 5rem;
    align-items: center;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--blood-red);
    padding-bottom: 1rem;
}

.action-buttons { display: flex; gap: 1.5rem; }

/* 7B. IMAGE CAROUSEL */
.teaser-visual { position: relative; }

.image-carousel {
    display: flex;
    flex-direction: row;      
    flex-wrap: nowrap;        
    overflow-x: auto;         
    scroll-snap-type: x mandatory;
    gap: 1rem;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    padding-bottom: 10px; 
    
    -ms-overflow-style: none; 
    scrollbar-width: none;    
}

.image-carousel::-webkit-scrollbar, .horizontal-slider::-webkit-scrollbar, .slider::-webkit-scrollbar {
    height: 4px; display: block; 
}
.image-carousel::-webkit-scrollbar-track, .horizontal-slider::-webkit-scrollbar-track, .slider::-webkit-scrollbar-track {
    background: #000; 
}
.image-carousel::-webkit-scrollbar-thumb, .horizontal-slider::-webkit-scrollbar-thumb, .slider::-webkit-scrollbar-thumb {
    background: var(--neon-red); 
}

.image-carousel img {
    flex: 0 0 100%; 
    scroll-snap-align: start; 
    object-fit: contain; 
    background-color: #000; 
    max-height: 600px; 
    border: 1px solid #333;
}

/* 
   8. PAGE GRIDS & CARDS
    */
.centered-content { display: flex; justify-content: center; align-items: center; }

.about-hero, .project-hero { padding-top: 150px; min-height: 50vh; }

.hero-artwork { max-width: 550px; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,0.8); }

.content-grid { display: grid; grid-template-columns: 250px 1fr; gap: 4rem; align-items: start; }

.section-label { font-size: clamp(2rem, 4vw, 3rem); color: var(--blood-red); }

.button-group { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }

/* 8A. Inspirations Grid */
.horizontal-slider {
    display: flex; flex-direction: row; flex-wrap: nowrap; gap: 3rem; overflow-x: auto; 
    padding: 2rem 4rem 4rem 4rem; scroll-snap-type: x mandatory; scroll-behavior: smooth;
}

.horizontal-slider .inspiration-card { flex: 0 0 400px; scroll-snap-align: start; }

.slider { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.slider img { flex: 0 0 100%; scroll-snap-align: start; object-fit: contain; max-height: 500px; background-color: #000; }

.inspiration-card {
    break-inside: avoid;
    margin-bottom: 3rem;
    background-color: #fff;
    color: var(--text-dark);
    border-radius: 0;
    overflow: hidden;
    border-bottom: 4px solid var(--charcoal);
    transition: all 0.3s ease;
}

.inspiration-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--neon-red); /* Bleeds red on hover */
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.text-only-card { padding: 3rem 2rem; background-color: var(--beige); color: var(--text-dark); border: 1px solid #ddd; }
.card-content { padding: 2rem; }
.card-content h4 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--blood-red); }

/* Portfolio Gallery Grid */
.project-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 4rem; }

.portfolio-card {
    display: block;
    background-color: var(--charcoal-light);
    color: var(--text-light);
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: scale(1.03);
    border-color: var(--neon-red);
    box-shadow: 0 0 30px rgba(138, 3, 3, 0.4);
}

.portfolio-card .card-image img { transition: transform 0.6s ease; filter: grayscale(40%); }
.portfolio-card:hover .card-image img { transform: scale(1.05); filter: grayscale(0%); }

.card-info { padding: 2rem; text-align: center; }

/* 
   9. FOOTER & RESPONSIVE DESIGN
    */
.social-footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    background-image: none; /* Keep footer clean */
}

.social-icon {
    font-size: 2rem;
    margin: 0 1.2rem;
    color: var(--charcoal);
    transition: all 0.3s ease;
}

.social-icon:hover { color: var(--neon-red); transform: translateY(-4px) scale(1.1); }

/* 
   10. CAROUSEL NAVIGATION (ARROWS & PROGRESS)
*/
.carousel-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Cinematic Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8, 8, 8, 0.85); /* Dark translucent background */
    color: var(--neon-red);
    border: 1px solid var(--blood-red);
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    font-family: var(--font-display);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.carousel-arrow:hover {
    background: var(--neon-red);
    color: var(--text-light);
    box-shadow: 0 0 15px rgba(209, 0, 0, 0.6);
    border-color: var(--neon-red);
}

.carousel-arrow.prev { left: 15px; }
.carousel-arrow.next { right: 15px; }

/* Enhanced Progress Bar (Scrollbar) */
.image-carousel::-webkit-scrollbar, 
.horizontal-slider::-webkit-scrollbar, 
.slider::-webkit-scrollbar {
    height: 6px; /* Slightly thicker to look like a progress bar */
    display: block;
}

.image-carousel::-webkit-scrollbar-track, 
.horizontal-slider::-webkit-scrollbar-track, 
.slider::-webkit-scrollbar-track {
    background: var(--charcoal-light);
    border-top: 1px solid #333;
}

.image-carousel::-webkit-scrollbar-thumb, 
.horizontal-slider::-webkit-scrollbar-thumb, 
.slider::-webkit-scrollbar-thumb {
    background: var(--blood-red);
    border-radius: 0; /* Keep it sharp */
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

.image-carousel::-webkit-scrollbar-thumb:hover, 
.horizontal-slider::-webkit-scrollbar-thumb:hover, 
.slider::-webkit-scrollbar-thumb:hover {
    background: var(--neon-red);
}

/* Mobile Screens */
@media (max-width: 900px) {
    .hero-container, .project-grid, .teaser-grid, .split-header, .visuals-grid, .content-grid {
        grid-template-columns: 1fr; flex-direction: column; gap: 3rem;
    }
    .navbar { flex-direction: column; padding: 1rem; background: var(--charcoal); border-bottom: 3px solid var(--blood-red); }
    .nav-links { margin-top: 1rem; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
    .hero-image { order: -1; }
    .hero-image img { width: 250px; box-shadow: 10px 10px 0px rgba(138, 3, 3, 0.3); }
    .horizontal-slider { padding: 2rem 1.5rem; gap: 1.5rem; }
    .horizontal-slider .inspiration-card { flex: 0 0 85vw; scroll-snap-align: center; }
    .project-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}
