@font-face {
    font-family: 'ClashDisplay';
    src: url('ClashDisplay_Complete/Fonts/TTF/ClashDisplay-Variable.ttf') format('truetype');
    font-weight: 200 700;
    font-display: swap;
}

:root {
    --bg-color: #0A0A0A;
    --text-color: #FFF5ED;
    --accent-color: #FC0403;
    --accent-gradient: linear-gradient(135deg, #FC0403, #b30302);
    --secondary-bg: #111111;
    --card-bg: #151515;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --font-main: 'ClashDisplay', sans-serif;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
    cursor: none !important;
    /* Hide default for elite feel */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-weight: 450;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(10, 10, 10, 0.95);
}

.logo img {
    height: 40px;
    filter: brightness(1.2);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* Space for navbar */
    text-align: center;
    padding: 0 5%;
    background-color: #000;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.85);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30vh;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: #888;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #e30302;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 100px 5%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #bbb;
}

.about-image img {
    width: 100%;
    max-width: 300px;
    filter: drop-shadow(0 0 20px rgba(252, 4, 3, 0.1));
}

/* Work Slider */
.work-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.work-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.work-slide {
    display: none;
    animation: fadeEffect 0.8s ease-in-out;
}

.work-slide.active {
    display: block;
}

@keyframes fadeEffect {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.work-media {
    width: 100%;
    aspect-ratio: 16/9;
}

.work-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-content {
    padding: 3rem;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent);
    position: absolute;
    bottom: 0;
    width: 100%;
}

.work-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.work-description {
    font-size: 1.1rem;
    font-weight: 500;
    color: #bbb;
    max-width: 700px;
    margin-bottom: 1.5rem;
}

/* Work Tabs */
.work-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.tab-btn.active {
    color: var(--text-color);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Flyers Grid */
.flyers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.flyer-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    aspect-ratio: 4/5;
    transition: var(--transition);
}

.flyer-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.flyer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.flyer-item:hover .flyer-overlay {
    opacity: 1;
}

.flyer-item:hover img {
    transform: scale(1.05);
}

.btn-view-more {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-view-more:hover {
    background: var(--accent-color);
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    overflow-y: auto;
}

.modal-content {
    margin: 5vh auto;
    width: 90%;
    max-width: 1200px;
    background: var(--card-bg);
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    z-index: 2100;
}

.modal-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    border-radius: 20px;
}

.modal-bg-blur img,
.modal-bg-blur video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(40px);
    transform: scale(1.1);
    will-change: filter;
    opacity: 0.6;
}

.modal-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7);
    z-index: 2;
    border-radius: 20px;
}

.modal-body {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: row;
    min-height: 80vh;
}

.modal-video-container {
    flex: 0 0 40%;
    background: #000;
    border-radius: 20px 0 0 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    max-height: 80vh;
}

.modal-info h2 {
    font-size: 2.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.modal-meta {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 2rem;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.modal-info p {
    font-size: 1rem;
    color: #bbb;
    line-height: 1.6;
    font-weight: 450;
}

.modal-info strong {
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* Responsive Modal */
@media (max-width: 1024px) {
    .modal-body {
        flex-direction: column;
    }

    .modal-video-container {
        flex: none;
        width: 100%;
        border-radius: 20px 20px 0 0;
    }

    .modal-info {
        padding: 3rem;
    }
}

.modal-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav-btn:hover {
    background: var(--accent-color);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.modal-prev-btn {
    left: 20px;
}

.modal-next-btn {
    right: 20px;
}

@media (max-width: 1024px) {
    .modal-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .modal-prev-btn {
        left: 10px;
    }

    .modal-next-btn {
        right: 10px;
    }
}

/* Slider Controls */
.slider-btn {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 10;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: scale(1.1);
}

/* Contact Section */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #888;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #2a2a2a;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-submit:hover {
    opacity: 0.9;
    transform: scale(0.98);
}

/* Footer */
footer {
    padding: 3rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #555;
    font-size: 0.9rem;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Optimization & Elite Responsiveness */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 1024px) {

    /* Navbar Mobile Refinement - Slim Elite Version */
    .navbar {
        padding: 0.8rem 5% !important;
        /* Force slimmer header */
    }

    .navbar.scrolled {
        padding: 0.5rem 5% !important;
        /* Even finer when scrolled */
    }

    .menu-toggle {
        display: flex;
        gap: 5px;
        /* Tighter gap */
    }

    .navbar .logo img {
        height: 24px;
        /* More discrete and fine logo */
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 1000;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    nav ul li a {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    /* Hero Section */
    .hero {
        height: 60vh;
        /* Even shorter to avoid excessive scrolling */
    }

    .hero h1 {
        font-size: 1.8rem;
        padding: 0 10%;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* Work Slider converted to Vertical Feed on Mobile */
    .work-slider-container {
        padding: 0;
        /* No space for arrows */
        overflow: visible;
    }

    .slider-btn {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .work-slider-container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .work-slide {
        display: flex !important;
        /* Show ALL slides */
        position: relative;
        flex-direction: column;
        background: var(--card-bg);
        border-radius: 15px;
        overflow: hidden;
        margin-bottom: 2rem;
        /* Spacing between feed items */
        opacity: 1 !important;
        transform: none !important;
    }

    .work-slide.active {
        display: flex !important;
    }

    .work-media {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        position: relative;
        z-index: 1;
    }

    .work-media video {
        object-fit: contain !important;
        background: #000;
    }

    .work-content {
        position: static;
        padding: 1.5rem 1rem;
        background: #0d0d0d;
        /* Solid elite dark background for legibility */
        text-align: center;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        min-height: 200px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .work-content h3 {
        font-size: clamp(1rem, 5vw, 1.2rem);
        /* Dynamic sizing to never overflow */
        margin-bottom: 0.5rem;
        color: var(--text-color);
        letter-spacing: -0.5px;
        /* Tighter tracking for long words */
        text-transform: uppercase;
        word-break: break-all;
        /* Absolute fallback for Instagram browser */
    }

    .work-description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
        color: #bbb;
        max-width: 100%;
        padding: 0 5%;
    }

    .btn-view-more {
        width: auto;
        padding: 0.8rem 2rem;
        font-size: 0.8rem;
    }

    .work-slider-container {
        padding: 0;
    }

    /* Tab Buttons Mobile - Elite Scrollable Strip */
    .work-tabs {
        gap: 1rem;
        margin-bottom: 2rem;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 10px 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .work-tabs::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .tab-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
        letter-spacing: 1px;
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 30px;
        color: #888;
    }

    .tab-btn.active {
        background: var(--accent-color);
        color: #fff;
    }

    .tab-btn::after {
        display: none;
        /* Remove line under tabs on mobile for bubbles */
    }

    /* Projects & Media Centering */
    .flyers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }

    .flyer-item {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Modal Mobile */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-video-container {
        width: 100%;
        aspect-ratio: 16/9;
    }

    .modal-info h2 {
        font-size: 1.5rem;
    }
}

/* Touch Device Refinements & Cursor Kill */
@media (max-width: 1024px) {
    #custom-cursor {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    * {
        cursor: auto !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .flyer-overlay {
        opacity: 1;
        background: rgba(10, 10, 10, 0.4);
    }

    .flyer-overlay .btn-view-more {
        transform: scale(0.9);
    }
}



#custom-cursor {
    position: fixed;
    width: 32px;
    height: 32px;
    background-image: url('1x/Recurso 1.png');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, transform 0.05s linear;
    display: none;
}

#custom-cursor.cursor-active {
    width: 64px;
    height: 64px;
}

/* Tech-Elite Initialization Sequence */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0A0A0A;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-logo img {
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(252, 4, 3, 0.3));
}

.loader-counter {
    font-family: 'ClashDisplay', monospace;
    font-size: 1.2rem;
    color: #FFF5ED;
    font-weight: 500;
    letter-spacing: 2px;
}

.loader-status {
    font-family: monospace;
    font-size: 0.75rem;
    color: rgba(255, 245, 237, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 1rem;
}



body.loading {
    overflow: hidden;
}