/* ==========================================
   PORTAL CONTAINER
   ========================================== */

.portal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 0;
    z-index: var(--z-content);
    overflow: hidden;
}

/* ==========================================
   LOGO CENTER
   ========================================== */

.logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    pointer-events: none;
    animation: logoFloat 4s ease-in-out infinite;
}

.logo-image {
    max-width: 160px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 102, 255, 0.3));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
}

/* ==========================================
   PORTAL SECTIONS
   ========================================== */

.portal-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-base);
}

.portal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: all var(--transition-base);
    z-index: 1;
}

.portal-section:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.section-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    text-align: center;
    width: 100%;
    height: 100%;
    padding: var(--spacing-lg);
}

/* ==========================================
   SECTION IMAGE
   ========================================== */

.section-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.65) 100%);
    z-index: 1;
}

@media (max-width: 768px) {
    .image-overlay {
        background: rgba(0, 0, 0, 0.85);
    }
}

.portal-section:hover .section-image img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1);
}

@media (max-width: 768px) {
    .portal-section:hover .section-image img {
        transform: none;
        filter: none;
    }

    .portal-section:hover::before {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* ==========================================
   SECTION TEXT
   ========================================== */

.section-text {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    animation: slideUp 0.8s ease 0.3s both;
}

.section-text h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    transition: all var(--transition-base);
}

.section-text p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.85;
    font-weight: 300;
    max-width: 400px;
}

.arrow-icon {
    font-size: 2rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all var(--transition-base);
}

.portal-section:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   LEFT SECTION - MÍDIAS
   ========================================== */

.portal-left {
    background: linear-gradient(135deg, rgba(11, 11, 11, 0.8) 0%, rgba(28, 28, 28, 0.6) 100%);
    border-right: 1px solid rgba(0, 102, 255, 0.2);
    position: relative;
}

.portal-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 0;
    height: 100%;
    background: rgba(0, 102, 255, 0.1);
    transition: width var(--transition-base);
}

.portal-left:hover::after {
    width: 100%;
}

.portal-left .section-text h2 {
    color: #0066FF;
    text-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
}

.portal-left:hover .section-text h2 {
    text-shadow: 0 0 30px rgba(0, 102, 255, 0.5);
}

/* ==========================================
   RIGHT SECTION - CAMISETAS
   ========================================== */

.portal-right {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(28, 28, 28, 0.6) 100%);
    border-left: 1px solid rgba(110, 0, 255, 0.2);
    position: relative;
}

.portal-right::after {
    content: '';
    position: absolute;
    top: 0;
    right: 100%;
    width: 0;
    height: 100%;
    background: rgba(110, 0, 255, 0.1);
    transition: width var(--transition-base);
}

.portal-right:hover::after {
    width: 100%;
}

.portal-right .section-text h2 {
    background: linear-gradient(135deg, #6E00FF 0%, #FF2D95 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(110, 0, 255, 0.3);
}

.portal-right:hover .section-text h2 {
    filter: drop-shadow(0 0 30px rgba(110, 0, 255, 0.5));
}

/* ==========================================
   ANIMAÇÃO DE TRANSIÇÃO
   ========================================== */

.portal-section.active {
    animation: expandSection 0.8s ease forwards;
}

@keyframes expandSection {
    0% {
        width: 50%;
    }
    100% {
        width: 100%;
    }
}

.portal-section:not(.active) {
    animation: collapseSection 0.8s ease forwards;
}

@keyframes collapseSection {
    0% {
        width: 50%;
        opacity: 1;
    }
    100% {
        width: 0;
        opacity: 0;
    }
}

/* ==========================================
   MOBILE LAYOUT
   ========================================== */

@media (max-width: 1024px) {
    .portal-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .portal-left {
        border-right: none;
        border-bottom: 1px solid rgba(0, 102, 255, 0.2);
    }

    .portal-right {
        border-left: none;
        border-top: 1px solid rgba(110, 0, 255, 0.2);
    }

    .portal-left::after {
        top: 100%;
        left: 0;
        width: 100%;
        height: 0;
    }

    .portal-left:hover::after {
        width: 100%;
    }

    .portal-right::after {
        bottom: 100%;
        right: 0;
        width: 100%;
        height: 0;
    }

    .portal-right:hover::after {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .portal-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr 1fr;
        height: 100vh;
    }

    .logo-center {
        position: static;
        transform: none;
        height: auto;
        padding: var(--spacing-lg) 0;
        animation: none;
        pointer-events: auto;
        z-index: 25;
        background: rgba(11, 11, 11, 0.95);
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    }

    .logo-image {
        max-width: 100px;
        height: auto;
    }

    .portal-section {
        height: auto;
        min-height: 50vh;
        flex: 1;
    }

    .section-image {
        display: none;
    }

    .section-content {
        gap: var(--spacing-md);
    }

    .section-text h2 {
        font-size: 1.3rem;
        margin: 0;
    }

    .section-text p {
        font-size: 0.9rem;
        max-width: 90%;
    }

    .arrow-icon {
        font-size: 1.2rem;
    }

    .portal-left {
        border-right: none;
        border-bottom: 1px solid rgba(0, 102, 255, 0.2);
    }

    .portal-right {
        border-left: none;
    }
}

@media (max-width: 480px) {
    .portal-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr 1fr;
    }

    .logo-center {
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    }

    .logo-image {
        max-width: 80px;
        height: auto;
    }

    .portal-section {
        min-height: 50vh;
        padding: var(--spacing-md);
    }

    .section-content {
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }

    .section-text h2 {
        font-size: 1.1rem;
        margin: 0;
    }

    .section-text p {
        font-size: 0.85rem;
        max-width: 95%;
    }

    .arrow-icon {
        font-size: 1rem;
        margin-top: var(--spacing-sm);
    }
}

/* ==========================================
   HOVER EFFECTS
   ========================================== */

.portal-section {
    position: relative;
}

.portal-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                                rgba(0, 102, 255, 0.1) 0%, 
                                transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: 2;
}

.portal-section:hover::before {
    opacity: 1;
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */

@media (max-height: 600px) {
    .section-text h2 {
        font-size: 1.5rem;
    }

    .section-text p {
        font-size: 0.9rem;
    }

    .portal-section {
        min-height: 600px;
    }
}
