:root {
    --primary-color: #5B6CFF;
    --hover-color: #4A5BEE;
    --green-accent: #27FF92;
    --bg-dark: #000000;
    --text-white: #ffffff;
    --text-gray: #a1a1a1;
}

/* Base Styles */
body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Scroll Reveal Magic Styles */
.reveal-init {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.container {
    max-width: 1250px !important;
}

/* NAVBAR */
.navbar .nav-link {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-white);
    transition: opacity 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .navbar .container {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }

    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.95);
        padding: 24px;
        border-radius: 20px;
        margin-top: 1.1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 1000;
    }
    
    .navbar-nav {
        text-align: center;
        gap: 15px !important;
    }
}

.nav-logo {
    max-height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

@media (max-width: 991px) {
    .nav-logo {
        max-height: 50px; /* Smaller logo on mobile */
    }
}

.navbar-brand:hover .nav-logo {
    transform: scale(1.1);
}

.btn-main-color {
    background-color: var(--primary-color) !important;
    border: none;
    font-size: 13px;
    padding: 10px 24px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-main-color:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(91, 108, 255, 0.4);
    background-color: var(--hover-color) !important;
    color: #fff !important;
}

.btn-main-color:active {
    transform: translateY(-1px) scale(1);
}

/* HERO SECTION */
.hero-section {
    min-height: 110vh;
    background-image:
        radial-gradient(circle at bottom right, rgba(169, 58, 58, 0.2), transparent 40%),
        radial-gradient(circle at top right, rgba(91, 108, 255, 0.15), transparent 40%),
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 1)),
        url('../images/633b9211f3a23a857f2a4434_home-hero-blur-p-1600.webp.png');
    background-size: cover;
    background-position: center bottom;
    padding-top: 140px;
}

.hero-title-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.main-title {
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -2px;
}

.subtitle-container {
    width: 100%;
    margin-top: -10px;
}

.hero-subtitle {
    font-size: 32px;
    color: var(--text-gray);
    letter-spacing: -1px;
    margin-bottom: 0;
}

.hero-lead-text {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-gray);
    width: 100%;
    margin-top: 20px;
}

/* Hero Image Container */
.hero-image-container {
    max-width: 1400px;
    border-radius: 20px !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    background: #111;
}

/* STATS */
.text-green {
    color: var(--green-accent);
}

.stat-item {
    margin-bottom: 30px;
    padding-left: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -1px;
}

.stat-number .fs-4 {
    font-size: 1.5rem !important;
    vertical-align: middle;
}

.stat-desc {
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-gray);
    margin-top: 8px;
    opacity: 0.8;
}

/* PARTNERS */
.partners-container {
    padding-left: 0;
}

.partner-logo {
    max-width: 130px;
    max-height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

/* WHY US SECTION */
.why-us-section {
    min-height: 50vh;
    background-image: url('../images/blur-2-section.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0;
}

.why-us-fused-grid {
    position: relative;
    max-width: 1000px;
}

.why-us-text {
    font-size: 6.5rem;
    font-weight: 500;
    /* line-height: 0.85; */
    letter-spacing: -2px;
}

.text-indent-lg {
    padding-left: 120px;
}

.large-logo-circle {
    background-color: #ffffff;
    color: #000;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 500;
    flex-shrink: 0;
}

.why-us-list {
    font-size: 32px;
    font-weight: 300;
}

.why-us-list li {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* ABOUT SECTION */
.about-section {
    background-color: var(--bg-dark);
}

.section-title {
    font-size: 72px;
    font-weight: 500;
    letter-spacing: -2px;
}

.about-card-refined {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-top-right-radius: 50px;
    margin-right: 50px;
}

.about-text-content p {
    font-size: 18px;
    font-weight: 300;
    color: var(--text-gray);
    line-height: 1.6;
}

/* SERVICES SECTION */
.services-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 50%, #ffffff 100%);
    position: relative;
    z-index: 1;
}

.services-title {
    font-size: 111px;
    font-weight: 400;
    letter-spacing: -2px;
}

.services-subtitle {
    font-size: 24px;
    color: #6c757d;
    font-weight: 300;
}

.service-item img {
    transition: transform 0.4s ease, filter 0.3s ease;
    cursor: pointer;
}

.service-item:hover img {
    transform: scale(1.02);
}

.object-cover {
    object-fit: cover;
}

/* QUOTE SECTION */
.quote-section {
    min-height: 80vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('../images/background-section-4.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.quote-text {
    font-size: 56px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.quote-footer {
    letter-spacing: 2px;
}

/* PROJECTS LIST SECTION */
.projects-list-section {
    background-color: #ffffff;
    color: #000000;
    overflow: hidden;
}

.projects-main-title {
    font-size: 111px;
    font-weight: 400;
    letter-spacing: -3px;
    color: #000;
    line-height: 0.9;
}

.projects-head-desc {
    font-size: 20px;
    color: #333;
    line-height: 1.5;
    max-width: 500px;
}

/* Toggle Carousel Container */
.projects-expand-container {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin: 0;
}

.projects-expand-container.active {
    height: auto;
    opacity: 1;
    margin-top: 50px;
    margin-bottom: 50px;
    overflow: visible;
}

/* Horizontal Carousel */
.project-carousel-track {
    display: flex;
    gap: 30px;
    padding: 20px 0 60px 0;
    overflow-x: auto;
    scrollbar-width: none;
    cursor: grab;
    mask-image: linear-gradient(to right, transparent, black 1%, black 99%, transparent);
    user-select: none; /* Avoid text selection while dragging */
}

.project-carousel-track.grabbing {
    cursor: grabbing;
    scroll-behavior: auto; /* Disable smooth scroll while dragging for immediate feedback */
}

.project-carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    min-width: 300px;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.carousel-card:hover {
    transform: translateY(-10px);
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Project Items (List) */
.project-item {
    padding: 60px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.project-item:hover {
    background-color: #f8f9fa;
}

.project-item .category {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 1px;
}

.project-item h3 {
    font-size: 56px;
    font-weight: 500;
    margin: 10px 0;
    letter-spacing: -2px;
}

.project-item p {
    font-size: 14px;
    color: #444;
    max-width: 400px;
    line-height: 1.6;
}

.project-item-img-container {
    width: 100%;
    max-width: 600px;
    border-radius: 100px;
    overflow: hidden;
    margin-left: auto;
}

.project-item-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Button with specific arrow */
.btn-toggle-icon {
    transition: transform 0.3s ease;
}

#btn-toggle-projects.active .btn-toggle-icon {
    transform: rotate(180deg);
}

/* FEATURED EVENTS SECTION */
.featured-events-section {
    background-color: #000;
}

.section-logo-centered {
    max-height: 120px;
}

.events-main-title {
    font-size: 90px;
    font-weight: 400;
    letter-spacing: -3px;
}

.event-featured-card, .event-card-small {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
    cursor: pointer;
}

.event-featured-card:hover, .event-card-small:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(91, 108, 255, 0.2);
}

.event-card-small {
    height: 450px;
}

/* CONTACT SECTION */
.contact-section {
    background-image: url('../images/blur-section-7-contact.jpg');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.contact-title {
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: -2px;
}

.contact-subtitle {
    font-size: 24px;
    font-weight: 300;
    line-height: 1.4;
    max-width: 400px;
}

.contact-input {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 0 !important;
    color: #fff !important;
    padding: 10px 0 !important;
    font-size: 18px !important;
    font-weight: 300;
}

.contact-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.contact-input:focus {
    border-bottom: 1px solid #fff !important;
}

textarea.contact-input {
    resize: none;
}

/* PRODUCCIÓN AUDIOVISUAL SECTION */
.produccion-section {
    padding-bottom: 0 !important;
}

.produccion-title {
    font-size: 4rem;
    line-height: 0.9;
    letter-spacing: -3px;
    font-weight: 500;
}

.capsule-marquee-container {
    padding-bottom: 80px;
    overflow: hidden;
}

/* MARQUEE STYLES */
.marquee-track {
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marquee-scroll 50s linear infinite;
}

.marquee-reverse {
    animation: marquee-scroll-reverse 50s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes marquee-scroll-reverse {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.capsule-item {
    width: 380px;
    height: 180px;
    border-radius: 100px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.capsule-item:hover {
    transform: scale(1.15) rotate(2deg);
    z-index: 5;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.capsule-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-row-2 {
    transform: translateX(50px);
}

/* FOOTER SECTION */
.footer-final {
    background-image: url('../images/background-footer.png');
    background-size: cover;
    background-position: center;
}

.footer-logo {
    max-height: 80px;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact a {
    color: #fff;
    text-decoration: none;
    font-weight: 300;
    transition: opacity 0.3s;
    opacity: 0.8;
}

.footer-links a:hover,
.footer-contact a:hover {
    opacity: 1;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
}

.social-links a {
    color: #fff;
    transition: transform 0.3s;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1400px) {
    .main-title {
        font-size: 70px;
        line-height: 1.1;
    }
}

@media (max-width: 1200px) {
    .main-title {
        font-size: 60px;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 36px;
    }

    .why-us-text {
        font-size: 70px;
    }

    .large-logo-circle {
        width: 140px;
        height: 140px;
        font-size: 36px;
    }

    .text-indent-lg {
        padding-left: 80px;
    }
}

@media (max-width: 991px) {
    .main-title {
        font-size: 50px;
        line-height: 60px;
    }

    .hero-subtitle {
        font-size: 28px;
    }

    .partners-container {
        padding-left: 0;
        margin-top: 40px;
    }

    .fused-title-fixed-center {
        flex-direction: column;
        white-space: normal;
        text-align: center;
    }

    .why-us-text {
        font-size: 50px;
    }

    .text-indent-lg {
        padding-left: 0;
    }

    .large-logo-circle {
        width: 120px;
        height: 120px;
        font-size: 32px;
        margin: 20px 0;
    }

    .why-us-list {
        font-size: 20px;
        text-align: center;
    }

    .section-title {
        font-size: 48px;
    }

    .services-title {
        font-size: 60px;
    }

    .services-subtitle {
        font-size: 18px;
    }

    .quote-text {
        font-size: 42px;
    }

    .projects-main-title {
        font-size: 60px;
    }

    .events-main-title {
        font-size: 50px;
    }

    .contact-title {
        font-size: 50px;
    }

    .contact-subtitle {
        font-size: 18px;
    }

    .produccion-title {
        font-size: 42px;
    }

    .capsule-item {
        width: 250px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 36px;
        line-height: 1.2; /* Better line height for mobile */
        margin-bottom: 20px; /* Space from subtitle */
    }

    .hero-subtitle {
        font-size: 20px;
        margin-top: 15px; /* Extra space */
    }

    .hero-lead-text {
        font-size: 16px;
    }

    .stat-number {
        font-size: 3rem;
    }

    .quote-text {
        font-size: 32px;
    }
}