/* ==========================================
   SOCIAL UNIVERSE - NAV BUTTON
   ========================================== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-nav-btn {
    background: transparent;
    border: 1px solid var(--accent-1);
    color: var(--accent-1);
    padding: 8px 16px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.social-nav-btn:hover {
    background: rgba(255, 212, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 212, 0, 0.2);
    transform: translateY(-2px);
}


/* ==========================================
   SOCIAL UNIVERSE - OVERLAY MENU
   ========================================== */
.social-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.social-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.close-overlay {
    position: absolute;
    top: 40px;
    right: 50px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.close-overlay:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--accent-1);
}

.overlay-content {
    text-align: center;
}

.overlay-title {
    font-size: 1.5rem;
    color: var(--text-muted);
    letter-spacing: 5px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.overlay-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--accent-1);
}

.overlay-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.overlay-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.overlay-link .overlay-action {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent-1);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.overlay-link:hover {
    color: #fff;
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(255, 212, 0, 0.5);
}

.overlay-link:hover .overlay-action {
    opacity: 1;
    transform: translateX(0);
}


/* ==========================================
   SOCIAL UNIVERSE - 3D SECTION
   ========================================== */
#social-universe {
    position: relative;
    overflow: hidden;
    min-height: 80vh;
}

.universe-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.explore-text {
    font-family: var(--font-heading);
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.yellow-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent-1));
}

.explore-text-bold {
    font-family: var(--font-heading);
    color: var(--accent-1);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 1.2rem;
}

.universe-heading {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.universe-subheading {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 80px;
}

.universe-3d-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 0 auto;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.universe-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
    border: 2px solid var(--accent-1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 50px rgba(255, 212, 0, 0.2), inset 0 0 20px rgba(255, 212, 0, 0.1);
    z-index: 10;
    transition: transform 0.2s ease-out;
}

.core-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.core-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 1px;
}

.core-tagline {
    font-size: 0.7rem;
    color: var(--accent-1);
    letter-spacing: 2px;
}

.portal {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(13, 13, 13, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
    cursor: pointer;
}

.portal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}

.portal-content i {
    font-size: 2rem;
    color: var(--text-muted);
    transition: color 0.4s ease;
}

.portal-action {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    color: var(--accent-1);
}

.portal-name {
    font-size: 0.9rem;
    font-family: var(--font-heading);
}

.portal-hover-text {
    position: absolute;
    bottom: -40px;
    white-space: nowrap;
    font-size: 0.8rem;
    color: var(--accent-1);
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    pointer-events: none;
}

/* Positioning */
.portal-youtube { top: 0; left: 50%; transform: translateX(-50%) translateZ(0); }
.portal-linkedin { top: 50%; right: 0; transform: translateY(-50%) translateZ(0); }
.portal-instagram { bottom: 0; left: 50%; transform: translateX(-50%) translateZ(0); }
.portal-x { top: 50%; left: 0; transform: translateY(-50%) translateZ(0); }

/* Hover States */
.universe-3d-container:hover .portal {
    opacity: 0.3; /* dim others slightly */
}

.universe-3d-container .portal:hover {
    opacity: 1;
    border-color: var(--accent-1);
    box-shadow: 0 0 30px rgba(255, 212, 0, 0.3);
    z-index: 20;
}

.portal:hover {
    transform: scale(1.15) translateZ(50px) !important;
}

.portal:hover .portal-content i {
    color: var(--accent-1);
}

.portal:hover .portal-action {
    opacity: 1;
    transform: translateY(0);
}

.portal:hover .portal-hover-text {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   CINEMATIC TRANSITION
   ========================================== */
#cinematic-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#cinematic-transition.active {
    opacity: 1;
    pointer-events: all;
}

.cinematic-light {
    width: 0;
    height: 2px;
    background: var(--accent-1);
    box-shadow: 0 0 50px var(--accent-1), 0 0 100px var(--accent-1);
    transition: width 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

#cinematic-transition.active .cinematic-light {
    width: 100vw;
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */
@media (max-width: 768px) {
    .nav-right {
        gap: 10px;
    }
    
    .social-nav-btn span {
        display: none;
    }
    
    .social-nav-btn {
        padding: 8px 12px;
    }
    
    .overlay-link {
        font-size: 2rem;
    }
    
    .universe-3d-container {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        perspective: none;
        padding-bottom: 50px;
    }
    
    .universe-core {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 20px;
    }
    
    .portal {
        position: relative;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        width: 80%;
        max-width: 300px;
        height: 100px;
        border-radius: 20px;
    }
    
    .portal-content {
        flex-direction: row;
        gap: 15px;
    }
    
    .portal-hover-text {
        display: none;
    }
    
    .portal-youtube, .portal-linkedin {
        border-color: rgba(255, 212, 0, 0.3);
    }
}
