/* ===================================
   GibsFest 2K26 - Logo & Sponsor Carousel Styles
   HIERARKI: 1 (TERTINGGI - PRIORITAS UTAMA)
   NOTE: Mengoverride semua logo dan sponsor carousel styling
   =================================== */

/* ===== Logo 3D di Hero Section - OVERRIDE SEMUA ===== */
.hero-logo-large {
    margin-bottom: 2rem !important;
    text-align: center;
    animation: float-hero 4s ease-in-out infinite;
}

.logo-3d-large {
    display: inline-block;
    position: relative;
    padding: 1.5rem;
}

/* Logo lebih lebar - aspect ratio lebih landscape */
.logo-3d-large img {
    width: 280px !important;
    height: 160px !important;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(225, 6, 0, 0.6)) drop-shadow(0 0 60px rgba(225, 6, 0, 0.4)) !important;
    transition: all 0.5s ease;
    animation: logoGlow 3s ease-in-out infinite;
}

.logo-3d-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 200px;
    background: radial-gradient(circle, rgba(225, 6, 0, 0.25), transparent 70%);
    border-radius: 50%;
    animation: pulse-logo 2s ease-in-out infinite;
    z-index: -1;
}

.logo-3d-large::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 230px;
    border: 2px solid rgba(225, 6, 0, 0.3);
    border-radius: 50%;
    animation: rotate-border 10s linear infinite;
    z-index: -1;
}

@keyframes logoGlow {

    0%,
    100% {
        filter: drop-shadow(0 15px 35px rgba(225, 6, 0, 0.6)) drop-shadow(0 0 60px rgba(225, 6, 0, 0.4));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 20px 45px rgba(225, 6, 0, 0.8)) drop-shadow(0 0 80px rgba(225, 6, 0, 0.6));
        transform: scale(1.05);
    }
}

@keyframes rotate-border {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulse-logo {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes float-hero {

    0%,
    100% {
        transform: translateY(0) rotateY(0deg);
    }

    25% {
        transform: translateY(-10px) rotateY(5deg);
    }

    50% {
        transform: translateY(-20px) rotateY(0deg);
    }

    75% {
        transform: translateY(-10px) rotateY(-5deg);
    }
}

/* ===== OVERRIDE LOGO DI BERBAGAI KONTEKS ===== */
/* Hero Section Logo Override */
.hero-section .logo-3d,
.hero-content .logo-3d {
    display: inline-block !important;
    margin-bottom: 2rem !important;
    animation: float-hero 3s ease-in-out infinite !important;
}

.hero-section .logo-3d img,
.hero-content .logo-3d img {
    width: 200px !important;
    height: 200px !important;
    filter: drop-shadow(0 10px 30px rgba(225, 6, 0, 0.8)) !important;
    transition: all 0.3s ease;
}

.hero-section .logo-3d img:hover {
    transform: scale(1.1) rotateY(15deg);
    filter: drop-shadow(0 15px 40px rgba(225, 6, 0, 1)) !important;
}

/* Navbar Logo - TETAP KECIL */
.navbar .logo-3d img,
.nav-logo .logo-3d img {
    width: 50px !important;
    height: 50px !important;
    filter: drop-shadow(0 5px 15px rgba(225, 6, 0, 0.5)) !important;
}

.nav-logo .logo-3d {
    display: inline-block;
    animation: float-hero 3s ease-in-out infinite;
}

/* ===== RESPONSIVE LOGO BREAKPOINTS ===== */

/* Extra Small Devices (phones, <576px) */
@media (max-width: 575.98px) {
    .hero-logo-large {
        margin-bottom: 1rem !important;
    }

    .logo-3d-large {
        padding: 0.5rem;
    }

    .logo-3d-large img {
        width: 160px !important;
        height: 90px !important;
    }

    .logo-3d-large::before {
        width: 180px;
        height: 110px;
    }

    .logo-3d-large::after {
        width: 200px;
        height: 130px;
    }

    .hero-section .logo-3d img,
    .hero-content .logo-3d img {
        width: 110px !important;
        height: 110px !important;
    }

    .navbar .logo-3d img,
    .nav-logo .logo-3d img {
        width: 35px !important;
        height: 35px !important;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .logo-3d-large img {
        width: 200px !important;
        height: 115px !important;
    }

    .logo-3d-large::before {
        width: 220px;
        height: 135px;
    }

    .logo-3d-large::after {
        width: 250px;
        height: 165px;
    }

    .hero-section .logo-3d img,
    .hero-content .logo-3d img {
        width: 130px !important;
        height: 130px !important;
    }

    .navbar .logo-3d img,
    .nav-logo .logo-3d img {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .logo-3d-large img {
        width: 220px !important;
        height: 125px !important;
    }

    .logo-3d-large::before {
        width: 260px;
        height: 165px;
    }

    .logo-3d-large::after {
        width: 290px;
        height: 195px;
    }

    .hero-section .logo-3d img,
    .hero-content .logo-3d img {
        width: 160px !important;
        height: 160px !important;
    }

    .navbar .logo-3d img,
    .nav-logo .logo-3d img {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .logo-3d-large img {
        width: 240px !important;
        height: 140px !important;
    }

    .logo-3d-large::before {
        width: 280px;
        height: 180px;
    }

    .logo-3d-large::after {
        width: 310px;
        height: 210px;
    }

    .hero-section .logo-3d img,
    .hero-content .logo-3d img {
        width: 180px !important;
        height: 180px !important;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .logo-3d-large img {
        width: 260px !important;
        height: 150px !important;
    }

    .logo-3d-large::before {
        width: 300px;
        height: 190px;
    }

    .logo-3d-large::after {
        width: 330px;
        height: 220px;
    }
}

/* XXL Devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .logo-3d-large img {
        width: 280px !important;
        height: 160px !important;
    }

    .logo-3d-large::before {
        width: 320px;
        height: 200px;
    }

    .logo-3d-large::after {
        width: 350px;
        height: 230px;
    }
}

/* Landscape override untuk logo */
@media (max-width: 992px) and (orientation: landscape) {

    .hero-section .logo-3d img,
    .hero-content .logo-3d img {
        width: 100px !important;
        height: 100px !important;
    }
}

/* ===== SPONSOR CAROUSEL SECTION - OVERRIDE SEMUA ===== */
.sponsor-carousel-section {
    width: 100%;
    background: linear-gradient(180deg, rgba(21, 21, 30, 0.95) 0%, rgba(30, 30, 46, 0.9) 100%) !important;
    padding: 4rem 0 !important;
    overflow: hidden;
    position: relative;
    border-top: 3px solid var(--color-red-primary);
    border-bottom: 3px solid var(--color-red-primary);
    z-index: 2;
    box-shadow: 0 10px 50px rgba(225, 6, 0, 0.2),
        0 -10px 50px rgba(225, 6, 0, 0.2);
}

.sponsor-carousel-section::before,
.sponsor-carousel-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.sponsor-carousel-section::before {
    left: 0;
    background: linear-gradient(90deg,
            rgba(21, 21, 30, 1) 0%,
            rgba(21, 21, 30, 0.8) 50%,
            transparent 100%);
}

.sponsor-carousel-section::after {
    right: 0;
    background: linear-gradient(270deg,
            rgba(21, 21, 30, 1) 0%,
            rgba(21, 21, 30, 0.8) 50%,
            transparent 100%);
}

.sponsor-title {
    text-align: center;
    font-size: 1.8rem !important;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--color-red-primary);
    margin-bottom: 3rem !important;
    text-transform: uppercase;
    font-family: var(--font-secondary);
    text-shadow: 0 0 20px rgba(225, 6, 0, 0.5);
    position: relative;
}

.sponsor-title::before,
.sponsor-title::after {
    content: '▬▬▬';
    color: var(--color-red-primary);
    margin: 0 1rem;
    opacity: 0.5;
}

.sponsor-track-wrapper {
    width: 100%;
    overflow: hidden;
}

.sponsor-track {
    display: flex;
    gap: 3rem !important;
    animation: sponsorScroll 60s linear infinite !important;
    width: fit-content;
}

.sponsor-track:hover {
    animation-play-state: paused;
}

@keyframes sponsorScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
    }
}

.sponsor-item {
    flex-shrink: 0;
    width: 200px !important;
    height: 100px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 15px !important;
    padding: 1.2rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.sponsor-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(225, 6, 0, 0.05),
            transparent);
    transition: left 0.6s ease;
}

.sponsor-item:hover {
    transform: translateY(-8px) scale(1.08) !important;
    border-color: var(--color-red-primary) !important;
    background: #ffffff !important;
    box-shadow: 0 12px 35px rgba(225, 6, 0, 0.25),
        0 0 25px rgba(225, 6, 0, 0.15) !important;
    border-width: 3px !important;
}

.sponsor-item:hover::before {
    left: 100%;
}

.sponsor-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sponsor-item:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(225, 6, 0, 0.2)) !important;
}

/* ===== RESPONSIVE SPONSOR CAROUSEL ===== */

/* Extra Small Devices (phones, <576px) */
@media (max-width: 575.98px) {
    .sponsor-carousel-section {
        padding: 1.5rem 0 !important;
    }

    .sponsor-title {
        font-size: 1rem !important;
        letter-spacing: 1.5px;
        margin-bottom: 1.5rem !important;
    }

    .sponsor-title::before,
    .sponsor-title::after {
        content: '▬';
        margin: 0 0.5rem;
    }

    .sponsor-item {
        width: 120px !important;
        height: 60px !important;
        padding: 0.7rem !important;
        border-radius: 10px !important;
    }

    .sponsor-track {
        gap: 1.5rem !important;
        animation: sponsorScroll 60s linear infinite !important;
    }

    .sponsor-carousel-section::before,
    .sponsor-carousel-section::after {
        width: 60px;
    }

    .sponsor-item:hover {
        transform: translateY(-4px) scale(1.04) !important;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .sponsor-carousel-section {
        padding: 2rem 0 !important;
    }

    .sponsor-title {
        font-size: 1.1rem !important;
        letter-spacing: 2px;
        margin-bottom: 1.8rem !important;
    }

    .sponsor-title::before,
    .sponsor-title::after {
        content: '▬';
        margin: 0 0.7rem;
    }

    .sponsor-item {
        width: 140px !important;
        height: 70px !important;
        padding: 0.8rem !important;
        border-radius: 12px !important;
    }

    .sponsor-track {
        gap: 1.8rem !important;
        animation: sponsorScroll 60s linear infinite !important;
    }

    .sponsor-carousel-section::before,
    .sponsor-carousel-section::after {
        width: 80px;
    }

    .sponsor-item:hover {
        transform: translateY(-5px) scale(1.05) !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .sponsor-carousel-section {
        padding: 2.5rem 0 !important;
    }

    .sponsor-title {
        font-size: 1.3rem !important;
        letter-spacing: 2.5px;
        margin-bottom: 2rem !important;
    }

    .sponsor-title::before,
    .sponsor-title::after {
        content: '▬▬';
        margin: 0 0.8rem;
    }

    .sponsor-item {
        width: 160px !important;
        height: 80px !important;
        padding: 0.9rem !important;
        border-radius: 13px !important;
    }

    .sponsor-track {
        gap: 2rem !important;
        animation: sponsorScroll 65s linear infinite !important;
    }

    .sponsor-carousel-section::before,
    .sponsor-carousel-section::after {
        width: 120px;
    }

    .sponsor-item:hover {
        transform: translateY(-6px) scale(1.06) !important;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .sponsor-carousel-section {
        padding: 3rem 0 !important;
    }

    .sponsor-title {
        font-size: 1.5rem !important;
        letter-spacing: 3px;
        margin-bottom: 2.5rem !important;
    }

    .sponsor-item {
        width: 180px !important;
        height: 90px !important;
        padding: 1rem !important;
        border-radius: 14px !important;
    }

    .sponsor-track {
        gap: 2.3rem !important;
        animation: sponsorScroll 55s linear infinite !important;
    }

    .sponsor-carousel-section::before,
    .sponsor-carousel-section::after {
        width: 150px;
    }

    .sponsor-item:hover {
        transform: translateY(-7px) scale(1.07) !important;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .sponsor-carousel-section {
        padding: 3.5rem 0 !important;
    }

    .sponsor-title {
        font-size: 1.6rem !important;
        letter-spacing: 3.5px;
        margin-bottom: 2.8rem !important;
    }

    .sponsor-item {
        width: 190px !important;
        height: 95px !important;
        padding: 1.1rem !important;
    }

    .sponsor-track {
        gap: 2.5rem !important;
        animation: sponsorScroll 58s linear infinite !important;
    }

    .sponsor-carousel-section::before,
    .sponsor-carousel-section::after {
        width: 180px;
    }
}

/* XXL Devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .sponsor-carousel-section {
        padding: 4rem 0 !important;
    }

    .sponsor-title {
        font-size: 1.8rem !important;
        letter-spacing: 4px;
        margin-bottom: 3rem !important;
    }

    .sponsor-item {
        width: 200px !important;
        height: 100px !important;
        padding: 1.2rem !important;
    }

    .sponsor-track {
        gap: 3rem !important;
        animation: sponsorScroll 60s linear infinite !important;
    }

    .sponsor-carousel-section::before,
    .sponsor-carousel-section::after {
        width: 200px;
    }
}

/* ===== HERO TITLE OVERRIDE ===== */
.hero-title {
    font-size: clamp(3rem, 10vw, 8rem) !important;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem !important;
    letter-spacing: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-title .title-main {
    color: var(--color-white);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.6),
        0 5px 20px rgba(225, 6, 0, 0.4);
}

.hero-title .title-year {
    font-style: italic;
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    font-size: 0.9em;
}

/* Responsive Hero Title */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 3.5rem) !important;
        letter-spacing: 2px;
        margin-bottom: 1rem !important;
        gap: 0.3rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: clamp(3rem, 10vw, 4rem) !important;
        letter-spacing: 3px;
        margin-bottom: 1.2rem !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: clamp(3.5rem, 9vw, 5rem) !important;
        letter-spacing: 4px;
        margin-bottom: 1.5rem !important;
    }
}

/* ===== HERO SECTION SPACING OVERRIDE ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 1rem 4rem !important;
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 6rem 1rem 3rem !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding: 7rem 1.5rem 3.5rem !important;
    }
}

@media (min-width: 768px) {
    .hero-section {
        padding: 8rem 2rem 4rem !important;
    }
}

@media (min-width: 992px) {
    .hero-section {
        padding: 10rem 2rem 6rem !important;
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

@media (min-width: 576px) {
    .hero-content {
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .hero-content {
        padding: 0 2rem;
    }
}

/* ===== UTILITY - PREVENT HORIZONTAL SCROLL ===== */
body {
    overflow-x: hidden !important;
}

html {
    scroll-behavior: smooth;
}

/* Touch optimization for mobile */
@media (hover: none) and (pointer: coarse) {
    .sponsor-item:hover {
        transform: translateY(-5px) scale(1.05) !important;
    }

    .logo-3d-large img {
        will-change: transform;
    }
}

/* Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}