/* Cinema Dark Theme - v2.0 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Syne:wght@400;700;800&family=Inter:wght@300;400;600&family=Oswald:wght@400;700&display=swap');

:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-color: #00f3ff;
    /* Cyber Blue */
    --accent-glow: rgba(0, 243, 255, 0.5);
    /* Switched Heading to Orbitron as requested */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-tech: 'Orbitron', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

::-webkit-scrollbar-track {
    background: #111;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo img {
    height: 40px;
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-tech);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

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

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/img/Background3.jpg') no-repeat center center/cover;
    opacity: 0.3;
    z-index: -1;
    /* Parallax effect handled by JS or simple fixed attachment here */
    background-attachment: fixed;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.glitch-text {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    text-transform: uppercase;
    position: relative;
    /* Simple glitch effect using text-shadow */
    text-shadow: 2px 2px var(--accent-color), -2px -2px #ff00de;
    animation: glitch 3s infinite alternate;
}

@keyframes glitch {
    0% {
        text-shadow: 2px 2px var(--accent-color), -2px -2px #ff00de;
    }

    25% {
        text-shadow: -2px 2px #ff00de, 2px -2px var(--accent-color);
    }

    50% {
        text-shadow: 2px -2px var(--accent-color), -2px 2px #ff00de;
    }

    100% {
        text-shadow: -2px -2px var(--accent-color), 2px 2px #ff00de;
    }
}

.subtitle {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    color: var(--accent-color);
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--font-tech);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.arrow-down {
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(10px);
    }

    60% {
        transform: translateX(-50%) translateY(5px);
    }
}

/* Sections */
.section {
    padding: 100px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .section {
        padding: 60px 20px;
        /* Reduced mobile padding */
    }
}

@media (max-width: 900px) {
    .section {
        padding: 50px 20px;
        /* Drastically reduce side padding on mobile */
    }
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    /* Use margin auto for centering if block, or text-align if inline-block parent */
    display: table;
    /* Centers the border-bottom correctly relative to text */
    margin-left: auto;
    margin-right: auto;
    left: auto;
    transform: none;
}

/* ... existing after ... */

.section-title::after {
    /* ... same ... */
    margin: 10px auto 0;
}

/* About Section Responsive Fixes */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--card-bg);
    padding: 60px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 1400px;
    /* Widened to match work grid */
    width: 100%;
    margin: 0 auto;
    /* Center the container itself */
}

/* ... */

@media (max-width: 900px) {
    .section-title {
        font-size: 2.2rem;
        /* Smaller title on mobile */
    }

    .about-container {
        flex-direction: column;
        padding: 40px 20px;
        /* More breathing room than 30px */
        text-align: center;
    }

    .about-text p {
        text-align: left;
        /* Keep text left-aligned for readability, or center if preferred? User said 'squeezed', left align usually reads better */
        text-align: center;
        /* User complaint about 'squeezed' usually means narrow width. Center align can look squeezed if lines break often. */
        font-size: 1rem;
        line-height: 1.6;
    }
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.work-card {
    position: relative;
    display: block;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Grid Layout Tweaks */
.work-card.wide {
    grid-column: span 2;
    height: 500px;
}

.work-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--text-primary);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.work-overlay h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 5px;
}

.work-overlay p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
}

.link-arrow {
    display: inline-block;
    margin-top: 15px;
    font-size: 1.5rem;
    color: var(--accent-color);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: var(--accent-color);
}

.work-card:hover .work-image {
    transform: scale(1.1);
}

.work-card:hover .work-overlay {
    transform: translateY(0);
}

.work-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--card-bg);
    padding: 60px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 30px var(--accent-glow);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #ccc;
}

.highlight-link {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
}

.skills-list {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.skills-list span {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-family: var(--font-tech);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.skills-list span:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Footer stringently minimal */
.footer-section {
    padding: 80px 20px;
    background: linear-gradient(to top, #000, var(--bg-color));
    text-align: center;
}

.footer-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-button {
    display: inline-block;
    margin: 30px 0;
    padding: 15px 40px;
    background: var(--accent-color);
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    /* Slight round */
    font-family: var(--font-tech);
    transition: transform 0.2s;
}

.contact-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--accent-glow);
}

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    font-size: 0.9rem;
    color: #555;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 900px) {
    .glitch-text {
        font-size: 3rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-card.wide {
        grid-column: span 1;
        height: 400px;
    }

    .about-container {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    .about-image img {
        width: 200px;
        height: 200px;
    }

    .navbar {
        padding: 20px;
    }

    .nav-links {
        display: none;
    }

    /* ... existing mobile styles ... */
    /* Could add hamburger menu for mobile */
}

/* --- Privacy & Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    /* Hidden by default */
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid var(--accent-color);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 9999;
    backdrop-filter: blur(10px);
    transition: bottom 0.5s ease;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-banner.visible {
    bottom: 0;
}

.cookie-text {
    color: #ccc;
    font-size: 0.9rem;
    max-width: 800px;
    flex: 1;
    /* Allow text to take available space */
}

/* Mobile Optimization for Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        /* Stack text and buttons */
        gap: 15px;
        padding: 15px;
        text-align: center;
    }

    .cookie-text {
        font-size: 0.8rem;
        /* Slightly smaller text */
        width: 100%;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .cookie-btn {
        padding: 8px 16px;
        /* Smaller buttons */
        font-size: 0.8rem;
        flex: 1;
        /* Make buttons equal width */
        max-width: 150px;
    }
}

.cookie-actions {
    display: flex;
    gap: 15px;
}

.cookie-btn {
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-tech);
    transition: all 0.3s;
}

.cookie-btn.accept {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
    font-weight: bold;
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.2);
}

/* Video Placeholders (2-Click Solution) */
.video-placeholder {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay */
}

.play-button {
    width: 70px;
    height: 70px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.privacy-notice {
    z-index: 2;
    color: #ddd;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
}

.video-placeholder:hover .play-button {
    transform: scale(1.1);
    background: #f00;
}