:root {
    /* New Artistic Palette: Cinema Noir + Neon */
    --primary: #000000; /* Pure Black */
    --secondary: #0D0D0D; /* Rich Black */
    --accent: #0066FF; /* Electric Blue */
    --accent-alt: #00fa9a; /* Sea Green */
    --bg-main: #000000;
    --text-main: #FAFAFA;
    --text-dimmed: #52525B;
    --glass-bg: rgba(0, 0, 0, 0.8);
    --border: rgba(255, 255, 255, 0.05);
    
    /* Typography */
    --font-heading: 'Archivo', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    
    /* Spacing & Borders */
    --container-max: 1200px;
    --radius: 8px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Design Tokens */
    --glow: 0 0 15px rgba(0, 102, 255, 0.4);
    --glow-alt: 0 0 15px rgba(0, 250, 154, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none; /* Hide default cursor */
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s var(--transition), background 0.3s;
    mix-blend-mode: difference;
    box-shadow: 0 0 20px var(--accent);
}

#custom-cursor.active {
    transform: scale(3);
    background: var(--accent-alt);
    box-shadow: 0 0 30px var(--accent-alt);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition) 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* Parallax Background */
.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.parallax-element {
    position: absolute;
    will-change: transform;
    opacity: 0.6;
}

.main-bg-image {
    width: 100%;
    height: 120%;
    top: -10%;
    left: 0;
    background-image: url(assets/images/bg-parallax.png);
    background-size: cover;
    background-position: center;
    opacity: 0.2; /* 20% Opacity */
    filter: saturate(1.2) contrast(1.1); /* Slight enhancement for premium feel */
    z-index: -10;
}

.blob-sea {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 250, 154, 0.08) 0%, transparent 70%);
    top: 10%;
    left: -200px;
}

.blob-electric {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.12) 0%, transparent 70%);
    bottom: 5%;
    right: -100px;
}

.floating-particles {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
    top: 0;
    left: 0;
}

.grid-system {
    width: 100%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(0, 102, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    top: 0;
    left: 0;
}

.text-bg {
    font-family: var(--font-heading);
    font-size: 25vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.01);
    white-space: nowrap;
    top: 20%;
    left: -10%;
    user-select: none;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--accent);
    z-index: 9999;
}

/* Nav */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: 0.4s var(--transition);
}

#main-nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #FFD54D;
}

.logo span {
    font-weight: 300;
    color: #5530AC;
}

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

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    color: var(--text-dimmed);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: 0.3s var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-lang {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-dimmed);
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: none;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-lang:hover {
    color: var(--text-main);
    border-color: var(--accent);
    background: rgba(0, 102, 255, 0.1);
}

/* Hero */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
    z-index: 2;
}

.reveal-text {
    overflow: hidden;
}

.sub-headline {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1.5rem;
    transform: translateY(100%);
    animation: reveal 0.8s forwards 0.2s;
}

.headline {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1;
    margin-bottom: 2rem;
    transform: translateY(100%);
    animation: reveal 1s forwards 0.4s;
}

.dimmed {
    color: var(--text-dimmed);
    font-weight: 300;
}

.accent {
    position: relative;
    color: var(--accent);
    text-shadow: var(--glow);
}

/* Section Header */
.section-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-alt);
    display: block;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
}

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

.btn-primary:hover {
    background: var(--accent-alt);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 250, 154, 0.2);
}

.btn-secondary {
    border: 1px solid var(--border);
    background: transparent;
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Portfolio grid */
#work {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.filter-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dimmed);
    cursor: pointer;
    position: relative;
    padding-bottom: 5px;
}

.filter-btn.active {
    color: var(--text-main);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-main);
}

.portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    border-radius: var(--radius);
    overflow: visible; /* Needed for 3D */
    perspective: 1000px;
    height: 100%;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--secondary);
}

.project-image {
    height: 100%;
    width: 100%;
    position: relative;
    pointer-events: none;
}

.project-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: 1.2s var(--transition);
}

.glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    mix-blend-mode: overlay;
    transition: opacity 0.3s;
}

.project-card:hover .glare {
    opacity: 1;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.1) 70%);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transition: 0.6s var(--transition);
    z-index: 5;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    text-align: center;
    transform: translateY(20px);
    transition: 0.6s var(--transition) 0.1s;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-category {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 1rem;
}

.project-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.project-desc {
    color: #A1A1AA;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.project-link {
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* About Section */
#about {
    padding: 150px 0;
    background: #050505;
    color: white;
}

#about .grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
}

.about-visual {
    position: relative;
}

#about .image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 102, 255, 0.1);
}

.about-img {
    filter: grayscale(1) contrast(1.2);
    opacity: 0.6;
    transition: 0.8s var(--transition);
}

#about:hover .about-img {
    filter: grayscale(0.2) contrast(1);
    opacity: 0.9;
}

.about-text p {
    font-size: 1.1rem;
    color: #A1A1AA;
    margin-bottom: 1.5rem;
}

.capabilities {
    margin: 3rem 0;
    display: flex;
    gap: 3rem;
}

.cap-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.cap-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

.cap-item span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Contact */
#contact {
    padding: 15rem 0;
    background-color: var(--bg-main);
}

.contact-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-header {
    margin-bottom: 4rem;
}

#contact-form {
    background: #0a0a0a;
    padding: 4rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.grid {
    grid-template-columns: 1fr 1fr;
}

input, textarea {
    width: 100%;
    padding: 1.25rem;
    background: #050505;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    color: white;
    outline: none;
    transition: 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.1);
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    padding: 5rem 0 3rem;
    background: #09090B;
    color: #71717A;
}

.footer-top {
    grid-template-columns: 1fr auto;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 3rem;
    margin-bottom: 3rem;
}

.footer-logo .logo {
    display: block;
    margin-bottom: 0.5rem;
}

.footer-socials {
    display: flex;
    gap: 2rem;
}

.footer-socials a {
    font-size: 1.25rem;
}

.footer-socials a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a:hover {
    color: white;
}

/* Animations */
@keyframes reveal {
    to { transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    
    #particles-canvas, .parallax-container {
        display: none;
    }
}

@media (max-width: 768px) {
    #about .grid, .form-group.grid, .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Project Detail Page Styles (Cinema Noir) */
.project-header-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 5rem;
    position: relative;
    z-index: 10;
}

/* ... existing project styles ... */

/* Luxury Grain Overlay for Filmic Texture */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.12;
    pointer-events: none;
    z-index: 11000;
}


.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    padding-top: 3rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.2em;
    font-weight: 700;
}

.meta-value {
    font-size: 1.1rem;
    color: var(--text-main);
}

.project-media-container {
    padding: 5rem 0;
    max-width: var(--container-max);
    margin: 0 auto;
}

.project-media-item {
    width: 100%;
    margin-bottom: 4rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    background: var(--secondary);
    border: 1px solid var(--border);
}

.project-media-item img, .project-media-item video {
    width: 100%;
    display: block;
}

.back-btn {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1100;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dimmed);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    color: var(--text-main);
    border-color: var(--accent);
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .project-meta-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* Marketing Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--transition);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--secondary);
    width: 90%;
    max-width: 800px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: all 0.5s var(--transition);
    box-shadow: var(--glow);
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.close-btn:hover {
    opacity: 1;
}

.popup-inner {
    grid-template-columns: 1fr;
    gap: 0;
}

.popup-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    overflow: hidden;
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.popup-image:hover img {
    transform: scale(1.05);
}

.popup-text {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.popup-tagline {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.3em;
    font-weight: 700;
}

.popup-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.1;
    font-weight: 700;
}

.popup-description {
    color: var(--text-dimmed);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .popup-inner {
        grid-template-columns: 1fr;
    }
    .popup-image {
        max-height: 200px;
    }
    .popup-text {
        padding: 2rem;
        text-align: center;
    }
    .popup-title {
        font-size: 1.8rem;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--glow);
    color: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}
