/* CSS Reset and Variables */
:root {
    --primary-color: #EF8000;
    --primary-hover: #ff951c;
    --secondary-color: #ffffff;
    --bg-color: #0a0a0a;
    --bg-light: rgba(30, 30, 30, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-black: #000000;
    --transition-speed: 0.4s;
    --border-radius: 16px;
    --font-main: 'Outfit', sans-serif;
    --container-padding: 2rem;
    --header-height: 100px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(239, 128, 0, 0.3);
}

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

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

body {
    font-family: var(--font-main);
    background-color: transparent;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed);
}

ul {
    list-style: none;
}

img,
video {
    max-width: 100%;
    border-radius: var(--border-radius);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Background Texture - Topographical */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/topo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}



/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width var(--transition-speed);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--secondary-color);
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--bg-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 0;
    background: transparent;
    z-index: 1000;
    transition: all var(--transition-speed);
}

header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-left: -1.5rem;
    /* Move slightly left */
}

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

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

.nav-links li a {
    position: relative;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    font-weight: 500;
}

.nav-links li a.active,
.nav-links li a:hover {
    color: var(--secondary-color);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background-color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
}

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

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    filter: brightness(0.6) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: -2;
}

.hero-content {
    z-index: 1;
    padding-top: 60px;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
    opacity: 0.9;
    font-weight: 300;
    animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeUp 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections General */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.section-title span {
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* Services Preview */
#services-preview {
    position: relative;
    /* Ensure z-index allows pseudo-element to be behind content but visible */
    z-index: 1;
}



.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(239, 128, 0, 0.3);
    background: rgba(40, 40, 40, 0.7);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(239, 128, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: all var(--transition-speed);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Featured Work Preview */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    gap: 2rem;
}

.work-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    width: 100%;
    /* Strict 16:9 Ratio using padding hack */
    padding-bottom: 56.25%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-light);
}

.work-item img,
.work-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    pointer-events: none;
    /* Ensure clicks go through to the video */
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-overlay h3 {
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.work-overlay p {
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.work-item:hover .work-overlay h3,
.work-item:hover .work-overlay p {
    transform: translateY(0);
}

/* Footer */
footer {
    background: rgba(10, 10, 10, 0.95);
    padding: 5rem 0 2rem;
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(239, 128, 0, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Mobile Nav */
@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Disable sticky header on mobile to stop popping */
    header {
        position: absolute;
        background: transparent !important;
        backdrop-filter: none !important;
        border-bottom: none !important;
        transform: none !important;
        transition: none !important;
    }

    header.scrolled {
        background: transparent !important;
        padding: 0.8rem 0 !important;
        backdrop-filter: none !important;
        border-bottom: none !important;
    }

    .nav-links {
        position: fixed;
        left: 0;
        top: -100vh;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        width: 100%;
        height: 100vh;
        padding: 80px 0 30px;
        align-items: center;
        justify-content: flex-start;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.active {
        top: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links li a {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.5;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Adjust logo position for mobile */
    .container {
        padding: 0 1.2rem;
    }

    .logo {
        margin-left: -5px;
    }

    /* Force 16:9 aspect ratio for work items on mobile */
    .work-item {
        padding-bottom: 56.25% !important;
    }
}

/* Preloader Animation */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.8s ease-in-out;
}

.intro-logo-container {
    position: relative;
    /* overflow property removed to prevent clipping during move */
}


#intro-logo {
    height: 150px;
    /* Larger start size */
    width: auto;
    object-fit: contain;
    /* We use clip-path to reveal 'part by part' (left to right) */
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Class to trigger the reveal */
.intro-logo-container.reveal #intro-logo {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Class to hide the overlay background */
#intro-overlay.fade-out {
    background-color: transparent;
    pointer-events: none;
}

/* =========================================
   YouTube Integration Styles
   ========================================= */
.youtube-section {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
}

.youtube-header {
    margin-bottom: 2rem;
    text-align: center;
}

.youtube-header h3 {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Featured Video Container (Home) */
#featured-video-container {
    width: 100%;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.featured-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.featured-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.video-text h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.video-text span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn-subscribe {
    background-color: #FF0000;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
}

.btn-subscribe:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

/* Gallery Grid for YouTube */
.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 450px), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.youtube-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.youtube-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.card-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 */
    background: #000;
    cursor: pointer;
}

.card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.card-thumbnail:hover img {
    opacity: 1;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.card-thumbnail:hover .play-button {
    background: #FF0000;
    border-color: #FF0000;
    transform: translate(-50%, -50%) scale(1.1);
}

.card-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Ensure iframe is on top when loaded */
}

.card-info {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-info h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Mobile Responsiveness for YouTube Section */
@media (max-width: 768px) {
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .btn-subscribe {
        width: 100%;
        justify-content: center;
    }
}

/* YouTube Playlist Section */
.youtube-playlist-section {
    margin-top: 5rem;
    margin-bottom: 5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.youtube-playlist-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.youtube-playlist-section p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.playlist-container {
    max-width: 1200px;
    margin: 60px auto;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    background: #000;
}

.playlist-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .youtube-playlist-section {
        margin-top: 3rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }

    .youtube-playlist-section h2 {
        font-size: 1.5rem;
    }

    .playlist-container {
        margin: 30px auto;
    }
}