/* Cinematic / Netflix Vibe CSS */
:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: #888888;
    --accent: #E50914; /* Cinematic Red Accent */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body.light-theme {
    --bg-color: #f5f5f7;
    --text-color: #111111;
    --text-muted: #555555;
    --accent: #E50914;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

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

/* Typography */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background 0.4s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent);
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.contact-btn {
    border: 1px solid var(--text-color);
    padding: 0.6rem 1.5rem;
    border-radius: 2px;
}

.contact-btn:hover {
    background: var(--text-color);
    color: var(--bg-color) !important;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_bg.png'); /* Update with actual cinematic bg */
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 10s ease-out;
}

.hero.loaded .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    padding: 0 2rem;
}

.headline {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    transform: scaleY(0.85); /* Makes it 'chapta' (flatter) */
    display: inline-block;
}

.subheadline {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 300;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 1.2rem 3rem;
    letter-spacing: 2px;
    transition: background 0.3s;
}

.hero-btn:hover {
    background: #b0070f;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-down span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.scroll-down .line {
    width: 1px;
    height: 50px;
    background: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.scroll-down .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Vision Section */
.vision {
    padding: 10rem 2rem;
    background: #000;
}

.vision-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vision h2 {
    font-size: 3rem;
    line-height: 1.2;
}

.vision h2 span {
    color: var(--text-muted);
}

.vision-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Work Section */
.work {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-label {
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 4rem;
}

.work-showcase {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.work-item {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.work-item:nth-child(even) {
    grid-template-columns: 1.2fr 1fr;
}

.work-item:nth-child(even) .img-wrapper {
    order: 2;
}

.img-wrapper {
    width: 100%;
    overflow: hidden;
    background: #000;
}

.img-wrapper img,
.img-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
    border-radius: 8px;
}

.img-wrapper:hover img,
.img-wrapper:hover video {
    transform: scale(1.03);
}

.work-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.work-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Reviews Section */
.reviews {
    padding: 5rem 2rem;
    background: #000;
}

body.light-theme .reviews {
    background: #eaeaea;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 12px;
    transition: transform 0.3s;
}

body.light-theme .review-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.review-card:hover {
    transform: translateY(-10px);
}

.stars {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.client-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Video Section */
.video-section {
    padding: 10rem 2rem;
    background: #000;
    display: flex;
    justify-content: center;
}

.video-wrapper {
    position: relative;
    max-width: 1400px;
    width: 100%;
}

.masterpiece-video {
    width: 100%;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.5s;
}

.masterpiece-video:hover {
    filter: grayscale(0%);
}

.video-label {
    position: absolute;
    bottom: -2rem;
    right: 0;
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

body.light-theme .video-label {
    color: rgba(0, 0, 0, 0.05);
}

body.light-theme .navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
}

body.light-theme .vision, body.light-theme .video-section {
    background: #eaeaea;
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.theme-btn:hover {
    color: var(--accent);
}

.mt-2 {
    margin-top: 1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.contact-info a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--accent);
}

/* Footer */
.footer {
    padding: 8rem 2rem 4rem;
    text-align: center;
    border-top: 1px solid #111;
}

.footer-title {
    font-size: 4rem;
    margin-bottom: 3rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 6rem;
}

.btn-primary, .btn-secondary {
    padding: 1.2rem 3rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: #ddd;
}

.btn-secondary {
    border: 1px solid #333;
    color: var(--text-color);
}

.btn-secondary:hover {
    border-color: var(--text-color);
}

.copyright {
    color: #444;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .vision-content, .work-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .work-item {
        display: flex;
        flex-direction: column;
    }
    .work-item .img-wrapper {
        order: 1;
    }
    .work-item .work-info {
        order: 2;
    }
    .headline {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 2rem;
    }
    .nav-links {
        display: flex;
        gap: 1.5rem;
    }
    .nav-links a {
        display: none; /* Hide text links on mobile, keep buttons */
    }
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .contact-btn {
        display: inline-block !important; /* ensure HIRE ME button stays */
    }
    .headline {
        font-size: 3rem;
    }
    .footer-title {
        font-size: 2.5rem;
    }
    .footer-links {
        flex-direction: column;
    }
}

/* Portfolio Overlay Menu */
.portfolio-overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0, 0.95);
    backdrop-filter: blur(10px);
    overflow-x: hidden;
    transition: 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light-theme .portfolio-overlay {
    background-color: rgba(255,255,255, 0.98);
}

.overlay-content {
    text-align: center;
    width: 100%;
}

.menu-title {
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 3rem;
}

.portfolio-overlay a.menu-link {
    padding: 15px;
    text-decoration: none;
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--text-muted);
    display: block;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.portfolio-overlay a.menu-link:hover, .portfolio-overlay a.menu-link:focus {
    color: var(--text-color);
    transform: scale(1.02);
}

.portfolio-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.portfolio-overlay .close-btn:hover {
    color: var(--accent);
}

@media screen and (max-height: 450px) {
  .portfolio-overlay {overflow-y: auto;}
  .portfolio-overlay a.menu-link {font-size: 2rem;}
  .portfolio-overlay .close-btn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}
@media screen and (max-width: 768px) {
  .portfolio-overlay a.menu-link {font-size: 2.5rem;}
  .portfolio-overlay .close-btn {right: 25px;}
}
