@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@300;400;700;900&display=swap');

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent: #ff2a2a;
    --accent-hover: #ff4a4a;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* Global Media Protection */
img, video {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-touch-callout: none; /* Prevents long-press 'Save Image' on iOS */
    -webkit-user-drag: none; /* Prevents drag and drop */
    pointer-events: none; /* Prevents direct right-click 'Save As' on the element */
}

/* Ensure parents still receive hover events for animations */
.grid-item, .video-card, .about-image {
    pointer-events: auto;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

/* Buttons */
.primary-btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.primary-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 42, 42, 0.2);
}


/* Clear Floating Button */
.clear-floating-btn {
    display: inline-block;
    padding: 15px 40px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.clear-floating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.clear-floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 40px rgba(255, 42, 42, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
}

.clear-floating-btn:hover::before {
    left: 100%;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: baseline;
    text-decoration: none;
}

.logo-car {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.logo-signature {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--accent);
    margin-left: 1px;
    margin-right: 12px;
    transform: translateY(1px);
}

.logo-media {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.cta-btn {
    border: 1px solid var(--accent);
    padding: 8px 24px;
    border-radius: 4px;
}

.cta-btn:hover {
    background: var(--accent);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background: white;
    transition: var(--transition);
}

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

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2; /* Behind everything */
    filter: brightness(0.6) contrast(1.1); /* Slightly darken video to make text readable */
}

#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Above video, below overlay */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.8) 100%);
    z-index: 1; /* Above particles, below text */
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 10; /* Above everything */
    position: relative;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 900;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

/* Sections */
.section {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    background: var(--bg-primary); /* Ensure it covers particles if they overflow */
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-size: 3rem;
    text-transform: uppercase;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.dark-bg {
    background-color: var(--bg-secondary);
    max-width: 100%;
}

/* Portfolio 16:9 Video Grid */
.video-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 100%;
}

.video-card {
    display: block;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: translateY(0);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(255, 42, 42, 0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 50px;
    opacity: 0.8;
    transition: var(--transition);
}

.video-card:hover .video-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(255,42,42,0.4) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.1) 100%);
}

.video-overlay h3 {
    font-size: 4rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.video-overlay p {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

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

.video-card:hover .video-overlay p {
    transform: translateY(0);
    opacity: 1;
}

/* Masonry Grid (For sub-pages) */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
}
.grid-item { 
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative; 
    border-radius: 8px; 
    overflow: hidden; 
    cursor: pointer; 
}
.grid-item img,
.grid-item video { 
    width: 100%; 
    display: block; /* Prevents bottom margin */
    filter: grayscale(100%) opacity(0.3); /* Black & white and dimmed */
    transition: all 0.5s ease; 
}
.item-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); transform: translateY(20px); opacity: 0; transition: var(--transition); }
.grid-item:hover img,
.grid-item:hover video { 
    transform: scale(1.02); /* Slight zoom */
    filter: grayscale(0%) opacity(1); /* Full color and opacity */
}
.grid-item:hover .item-overlay { transform: translateY(0); opacity: 1; }

.hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 60px auto;
}

.gallery-section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin: 60px 0 30px 0;
    text-align: center;
    color: var(--text-primary);
}

/* About Section */
.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text h2 { font-size: 3rem; margin-bottom: 30px; text-transform: uppercase; }
.about-text p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 40px; }
.stats { display: flex; gap: 40px; }
.stat-item h4 { font-size: 3rem; color: var(--accent); line-height: 1; }
.stat-item p { font-size: 0.9rem; color: var(--text-primary); text-transform: uppercase; letter-spacing: 1px; }
.about-image {
    position: relative;
    border-radius: 4px;
    padding: 20px;
    overflow: hidden;
    cursor: pointer;
}
.about-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 20px; bottom: 20px;
    border: 2px solid var(--accent);
    z-index: 1;
}
.about-image img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    filter: grayscale(100%) opacity(0.3);
    transition: all 0.8s ease 0.8s; /* 0.8s delay so it fades in B&W first */
}
.about-image.active img {
    transform: scale(1.02);
    filter: grayscale(0%) opacity(1);
}
.contact-container { max-width: 600px; margin: 0 auto; text-align: center; }
.contact-container h2 { font-size: 3rem; margin-bottom: 10px; text-transform: uppercase; }
.contact-container p { color: var(--text-secondary); margin-bottom: 40px; }
.form-group { margin-bottom: 20px; }
input, textarea { width: 100%; padding: 15px; background: var(--bg-secondary); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 4px; font-family: var(--font-body); transition: var(--transition); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
.submit-btn { width: 100%; }

/* Footer */
footer { background: var(--bg-secondary); padding: 60px 40px 20px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-content { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.footer-brand h3 { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; font-weight: 700; letter-spacing: 4px; color: var(--text-secondary); text-transform: uppercase; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; }
.social-links { display: flex; gap: 20px; }
.social-links a { color: var(--text-secondary); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.social-links a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-secondary); font-size: 0.8rem; }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 992px) {
    .about-container { grid-template-columns: 1fr; }
    .video-overlay h3 { font-size: 2.5rem; }
    .masonry-grid { column-count: 2; }
}
@media (max-width: 768px) {
    .nav-container { padding: 0 20px; }
    .logo-car { font-size: 1.4rem; }
    .logo-signature { font-size: 2rem; margin-right: 8px; }
    .logo-media { font-size: 0.8rem; letter-spacing: 2px; }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; margin-bottom: 30px; }
    
    .nav-links { display: none; }
    .hamburger { display: flex; }
    
    .section { padding: 60px 20px; }
    .section-header h2, .about-text h2, .contact-container h2 { font-size: 2rem; }
    
    .video-overlay { padding: 20px; }
    .video-overlay h3 { font-size: 2rem; }
    .video-overlay p { font-size: 0.9rem; }
    
    .masonry-grid { column-count: 1; }
    .hub-grid { grid-template-columns: 1fr; gap: 20px; margin: 40px auto; }
    
    footer { padding: 40px 20px 20px; }
    .footer-content { flex-direction: column; text-align: center; gap: 20px; }
    .social-links { justify-content: center; width: 100%; flex-wrap: wrap; gap: 15px; }
    
    .stats { flex-direction: column; gap: 20px; }
    
    .grid-item img, .grid-item video, .video-wrapper img, .video-wrapper video, .about-image img {
        filter: grayscale(0%) opacity(1) !important;
    }
}
@media (max-width: 480px) {
    .logo-car { font-size: 1.2rem; }
    .logo-signature { font-size: 1.6rem; margin-right: 4px; }
    .logo-media { font-size: 0.6rem; letter-spacing: 1px; }

    .hero-content h1 { font-size: 2rem; }
    .section-header h2, .about-text h2, .contact-container h2 { font-size: 1.8rem; }
    
    .video-overlay h3 { font-size: 1.5rem; }
    
    .clear-floating-btn { padding: 12px 30px; font-size: 0.9rem; }
}
