/* --- DESIGN TOKENS --- */
:root {
    /* Color Palette */
    --bg-light: #fdfbf7;      /* Off-white warm paper feel */
    --bg-dark: #121212;       /* Deep dark */
    --bg-darker: #09090b;     /* Almost black */
    --bg-brown: #2d1810;      /* Dark coffee brown for services like Mojju */
    --bg-paper: #f4f0e6;      /* Wanted poster paper */
    
    --text-dark: #1f1f22;     /* For light sections */
    --text-light: #f8fafc;    /* For dark sections */
    --text-muted-dark: #52525b;
    --text-muted-light: #a1a1aa;
    
    --accent-1: #8b5cf6; /* Purple */
    --accent-2: #3b82f6; /* Blue */
    --accent-red: #ef4444; /* Wanted red */
    --gradient-accent: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    
    --border-light: rgba(0,0,0,0.1);
    --border-dark: rgba(255,255,255,0.1);
    
    --font-main: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    line-height: 1.5;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; transition: var(--transition-smooth); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* --- SECTION BACKGROUNDS & COLORS --- */
.section-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
}
.section-light p { color: var(--text-muted-dark); }
.section-light .overline { color: var(--accent-1); font-weight: 800; }

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}
.section-dark p { color: var(--text-muted-light); }
.section-dark .overline { color: var(--accent-2); }

.section-darker {
    background-color: var(--bg-darker);
    color: var(--text-light);
}
.section-darker p { color: var(--text-muted-light); }

.section-darker-brown {
    background-color: var(--bg-brown);
    color: var(--text-light);
}
.section-darker-brown p { color: rgba(255,255,255,0.7); }
.section-darker-brown .overline { color: #f59e0b; /* Amber/gold */ }

/* PATTERNS */
.pattern-dots {
    background-image: radial-gradient(rgba(0,0,0,0.05) 1.5px, transparent 1.5px);
    background-size: 25px 25px;
}
.pattern-grid {
    background-image: linear-gradient(var(--border-light) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 40px 40px;
}
.section-dark .pattern-grid {
    background-image: linear-gradient(var(--border-dark) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border-dark) 1px, transparent 1px);
}

/* --- TYPOGRAPHY --- */
h1 { font-size: clamp(3rem, 5vw + 1rem, 5.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 1.5rem; text-transform: uppercase; }
h2 { font-size: clamp(2.5rem, 4vw + 1rem, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; text-transform: uppercase; }
h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.2; }

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-header { margin-bottom: 4rem; max-width: 650px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

.overline {
    font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.15em; display: block; margin-bottom: 0.75rem; font-weight: 700;
}

/* --- BUTTONS --- */
.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2rem; border-radius: 100px; font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: var(--transition-smooth); border: none; outline: none;
    text-transform: uppercase; letter-spacing: 0.05em;
}

.btn-primary { background: var(--text-dark); color: var(--bg-light); }
.section-dark .btn-primary { background: var(--text-light); color: var(--bg-dark); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }

.btn-secondary { background: transparent; border: 2px solid var(--border-light); color: var(--text-dark); }
.btn-secondary.dark-border { border-color: var(--text-dark); }
.section-dark .btn-secondary { border-color: var(--border-dark); color: var(--text-light); }
.btn-secondary:hover { background: var(--text-dark); color: var(--bg-light); }

.w-full { width: 100%; }

/* --- PLACEHOLDERS --- */
.media-placeholder {
    width: 100%; height: 100%; background: rgba(0,0,0,0.03);
    border: 2px dashed rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center;
    color: inherit; font-size: 0.875rem; font-weight: 600; text-transform: uppercase;
    position: relative; overflow: hidden;
}
.section-dark .media-placeholder { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.1); }

.media-placeholder-fallback {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.03); border: 2px dashed rgba(0,0,0,0.1);
    color: var(--text-muted-dark); font-size: 0.875rem; font-weight: 600; text-transform: uppercase;
    z-index: -1; /* Behind the video */
}

/* Base video styling for cards */
.work-media-video {
    width: 100%; height: 100%; object-fit: cover;
    cursor: pointer; transition: transform 0.4s ease;
}
.work-card:hover .work-media-video {
    transform: scale(1.05); /* Slight zoom on hover along with card */
}

/* --- NAVBAR --- */
.navbar { position: fixed; top: 0; left: 0; width: 100%; padding: 1.5rem 0; z-index: 100; transition: var(--transition-smooth); color: var(--text-light); mix-blend-mode: difference; }
.navbar.scrolled { padding: 1rem 0; mix-blend-mode: normal; background: rgba(253,251,247, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-light); color: var(--text-dark); }
.navbar-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.02em; }
.logo span { color: var(--accent-1); }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.navbar .nav-btn { padding: 0.6rem 1.5rem; font-size: 0.85rem; background: var(--text-light); color: var(--bg-dark); }
.navbar.scrolled .nav-btn { background: var(--text-dark); color: var(--bg-light); }

.mobile-menu-btn { display: none; background: none; border: none; color: inherit; cursor: pointer; }

/* --- HERO SECTION --- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 10rem 2rem 4rem; overflow: hidden; }

/* Video Background */
.video-bg-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; background: #050505; }
.bg-video { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(9,9,11,1) 0%, rgba(9,9,11,1) 40%, rgba(9,9,11,0) 70%, rgba(9,9,11,0) 100%); z-index: 1; }
.video-placeholder-box { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,0.2); font-family: monospace; text-transform: uppercase; letter-spacing: 0.1em; background: repeating-linear-gradient(45deg, #111, #111 10px, #0a0a0a 10px, #0a0a0a 20px); }
.video-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.5; }

/* Hero Content */
.hero-content { position: relative; z-index: 2; max-width: 950px; margin: 0 auto; text-align: center; }
.hero-content.left-align { text-align: left; margin: 0; max-width: 800px; padding-left: 2rem; }
.hero h1 { font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem); margin-bottom: 1.5rem; } /* Made slightly smaller than global h1 */
.hero h1 .small-title { font-size: clamp(1.2rem, 2vw + 0.5rem, 2rem); display: block; margin-top: 0.5rem; color: var(--text-muted-light); }
.hero-subtitle { font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 500; margin-bottom: 3rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-content.left-align .hero-subtitle { margin-left: 0; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-buttons.left { justify-content: flex-start; }

/* --- FEATURED WORK (GRID) --- */
.featured-work { padding: 8rem 0; }
.work-filters { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.filter-btn { background: transparent; border: 1px solid var(--border-light); color: var(--text-muted-dark); padding: 0.5rem 1.5rem; border-radius: 100px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: var(--transition-smooth); text-transform: uppercase; letter-spacing: 0.05em; }
.filter-btn:hover { border-color: var(--text-dark); color: var(--text-dark); }
.filter-btn.active { background: var(--text-dark); color: var(--bg-light); border-color: var(--text-dark); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2.5rem; margin-bottom: 4rem; }

.work-card { border-radius: 12px; transition: var(--transition-smooth); }
.work-media { position: relative; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; margin-bottom: 1.25rem; background: #eee; transition: var(--transition-smooth); }
.work-card:hover .work-media { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.work-info h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.tag { display: inline-block; padding: 0.25rem 0.75rem; background: var(--bg-dark); color: var(--bg-light); border-radius: 100px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.hidden-work { display: none; }
.load-more-container { text-align: center; }

/* --- LATEST PROJECT (Deep Dive) --- */
.latest-project { padding: 8rem 0; position: relative; }
.project-showcase { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.project-specs { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.project-specs li { display: flex; flex-direction: column; gap: 0.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border-dark); font-size: 1.1rem; }
.project-specs strong { color: var(--text-light); font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.05em; }
.mockup-frame { background: var(--bg-darker); padding: 1rem; border-radius: 24px; border: 1px solid var(--border-dark); box-shadow: 0 30px 60px rgba(0,0,0,0.8); transform: rotate(-2deg); transition: var(--transition-smooth); }
.mockup-frame:hover { transform: rotate(0deg) scale(1.02); }
.mockup-placeholder { position: relative; aspect-ratio: 9/16; border-radius: 12px; }

/* --- PROCESS --- */
.process { padding: 8rem 0; }
.process-steps { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 5rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.step { display: grid; grid-template-columns: 100px 1fr; gap: 2rem; align-items: center; padding: 2.5rem; background: #fff; border: 2px solid var(--text-dark); border-radius: 16px; box-shadow: 8px 8px 0 var(--text-dark); transition: var(--transition-smooth); }
.step:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--text-dark); }
.step-number { font-size: 3.5rem; font-weight: 900; color: var(--text-dark); font-family: monospace; }
.process-stats { display: flex; justify-content: space-around; align-items: center; background: var(--text-dark); color: var(--bg-light); padding: 3rem; border-radius: 24px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.stat-value { font-size: 3rem; font-weight: 900; color: var(--accent-1); }
.stat-label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.875rem; font-weight: 700; }
.stat.divider { width: 2px; height: 60px; background: rgba(255,255,255,0.2); }

/* --- SERVICES --- */
.services { padding: 8rem 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.paper-style { background: #efebe0; padding: 3rem 2rem; border-radius: 4px; box-shadow: 5px 5px 15px rgba(0,0,0,0.3); color: var(--text-dark); position: relative; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease; }
.paper-style:hover { transform: translateY(-10px) rotate(-1deg); box-shadow: 0 15px 30px rgba(0,0,0,0.4); }
/* Push pin effect */
.paper-style::before { content: ''; position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; background: #333; border-radius: 50%; box-shadow: inset -2px -2px 4px rgba(0,0,0,0.5), 2px 2px 2px rgba(0,0,0,0.2); }
.service-icon { font-size: 3rem; margin-bottom: 1.5rem; text-align: center; }

/* --- PRICING --- */
.pricing { padding: 8rem 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1100px; margin: 0 auto; align-items: start; }
.pricing-card { display: flex; flex-direction: column; gap: 1.5rem; }
.pricing-card.featured { transform: scale(1.05); z-index: 1; border: 3px solid var(--accent-1); }
.pricing-card.featured:hover { transform: scale(1.05) translateY(-10px) rotate(0deg); }
.plan-header { border-bottom: 2px dashed #ccc; padding-bottom: 1.5rem; text-align: center; }
.plan-header h3 { font-size: 1.8rem; font-weight: 900; margin-bottom: 0.5rem; font-family: monospace; }
.plan-subtitle { font-size: 0.9rem; font-style: italic; color: #555; font-weight: 600; }
.plan-features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.plan-features li { font-size: 1rem; font-weight: 500; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 0.5rem; }
.plan-desc { font-size: 0.9rem; margin-top: auto; padding-top: 1.5rem; color: #444; font-weight: 600; line-height: 1.5; }
.paper-style h3 { text-align: center; margin-bottom: 1rem; font-size: 1.4rem; }
.paper-style p { text-align: center; font-weight: 500; color: var(--text-muted-dark); }

/* --- WANTED POSTERS (TEAM) --- */
.team { padding: 8rem 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 4rem; max-width: 900px; margin: 0 auto; }
.wanted-poster { background: var(--bg-paper); padding: 2rem; border: 1px solid #d1c8b3; box-shadow: 4px 4px 10px rgba(0,0,0,0.1), inset 0 0 40px rgba(0,0,0,0.03); position: relative; transform: rotate(-1deg); transition: var(--transition-smooth); }
.wanted-poster:nth-child(2) { transform: rotate(1.5deg); }
.wanted-poster:hover { transform: rotate(0deg) scale(1.02) translateY(-10px); box-shadow: 8px 12px 20px rgba(0,0,0,0.15); z-index: 10; }
.tape { position: absolute; top: -15px; left: 50%; transform: translateX(-50%) rotate(-3deg); width: 100px; height: 35px; background: rgba(255, 255, 255, 0.4); border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 1px 3px rgba(0,0,0,0.1); backdrop-filter: blur(2px); z-index: 2; }
.wanted-poster:nth-child(2) .tape { transform: translateX(-50%) rotate(2deg); }
.poster-header { text-align: center; margin-bottom: 1.5rem; border-bottom: 3px double #333; padding-bottom: 1rem; }
.poster-header h4 { font-family: "Courier New", Courier, monospace; font-size: 3.5rem; font-weight: 900; color: var(--accent-red); margin-bottom: 0.2rem; letter-spacing: -2px; }
.poster-header p { font-weight: 800; font-size: 0.9rem; text-transform: uppercase; color: #333; }
.team-photo { border: 4px solid #333; padding: 5px; margin-bottom: 1.5rem; background: #fff; }
.wanted-poster .avatar-placeholder { aspect-ratio: 3/4; border: 1px solid #ddd; background: #e9e9e9; color: #666; font-family: monospace; font-size: 1rem; text-align: center; padding: 1rem; }
.team-info { text-align: center; color: #222; }
.team-info h3 { font-family: "Courier New", Courier, monospace; font-size: 1.6rem; font-weight: 900; margin-bottom: 0.2rem; }
.team-info .role { font-weight: 800; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 1rem; letter-spacing: 1px; color: #555; }
.team-info .bio { font-style: italic; font-weight: 600; margin-bottom: 1.5rem; font-size: 1rem; line-height: 1.4; }
.team-stats { border-top: 2px solid #ccc; padding-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; text-align: left; font-size: 0.85rem; }
.stat-row strong { text-transform: uppercase; margin-right: 0.5rem; }

/* --- CONTACT --- */
.contact { padding: 8rem 0; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; background: #1a1a1a; padding: 4rem; border-radius: 32px; border: 1px solid var(--border-dark); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input, .form-group textarea { width: 100%; padding: 1.25rem; background: var(--bg-dark); border: 2px solid var(--border-dark); border-radius: 12px; color: var(--text-light); font-family: inherit; font-size: 1rem; transition: var(--transition-smooth); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-1); background: #000; }

/* --- FOOTER --- */
.footer { padding: 4rem 0 2rem; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand p { margin-top: 1rem; max-width: 450px; font-size: 1.1rem; }
.tools-list { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.tools-list li { padding: 0.6rem 1.25rem; background: rgba(255,255,255,0.05); border-radius: 100px; font-size: 0.875rem; font-weight: 600; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; font-size: 0.875rem; font-weight: 500; }

/* --- ANIMATIONS & UTILS --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- VIDEO MODAL --- */
.video-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.video-modal.active { opacity: 1; pointer-events: auto; }
.video-modal .modal-content {
    width: 90%; max-width: 1000px; max-height: 90vh;
    border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
#modal-video { width: 100%; height: 100%; max-height: 90vh; object-fit: contain; display: block; background: #000; }
.close-modal {
    position: absolute; top: 2rem; right: 2rem;
    background: none; border: none; color: #fff; font-size: 3rem; cursor: pointer; transition: transform 0.2s ease;
}
.close-modal:hover { transform: scale(1.1); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .project-showcase, .contact-wrapper { grid-template-columns: 1fr; }
    .contact-wrapper { padding: 3rem 2rem; }
}

@media (max-width: 768px) {
    .video-bg-container { display: none; }
    .hero { background: #050505; }
    .work-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .navbar { mix-blend-mode: normal; color: var(--text-dark); background: rgba(253,251,247, 0.95); }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    
    .navbar.mobile-open .nav-links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-light); padding: 2rem; border-bottom: 1px solid var(--border-light); }
    .navbar.mobile-open .nav-btn { display: none; }
    
    .hero { padding-top: 8rem; }
    .hero-content.left-align { padding-left: 0; text-align: center; margin: 0 auto; }
    .hero-content.left-align .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-buttons.left { justify-content: center; }
    
    .process-stats { flex-direction: column; gap: 2rem; }
    .stat.divider { width: 80px; height: 2px; }
    
    .step { grid-template-columns: 1fr; text-align: center; padding: 2rem; }
    .step-number { margin-bottom: -1rem; }
    
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}
