﻿/* gateway.css */

:root {
    --bg-deep: #030a16;
    --gold-primary: #D4AF37;
    --gold-light: #F9E076;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --text-muted: #94a3b8;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-deep);
    color: #fff;
    overflow: hidden;
}

/* --- LAYOUT --- */
.split-layout {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100vh;
    width: 100%;
}

/* --- LEFT PANE (BRANDING) --- */
.left-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.logo-wrapper {
    position: relative;
    margin-bottom: -50px;
    animation: fadeUp 1s ease-out forwards;
    z-index: 1;
}

.logo-img {
    width: 500px;
    height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.6));
    position: relative;
    z-index: 2;
}

/* Glowing Halo behind Logo */
.logo-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: var(--gold-primary);
    filter: blur(100px);
    opacity: 0.15;
    border-radius: 50%;
    animation: pulseGlow 5s infinite alternate;
}

.brand-text {
    text-align: center;
    animation: fadeUp 1.2s ease-out forwards;
    max-width: 800px;
    position: relative;
    z-index: 5;
}

    .brand-text h1 {
        font-size: 4.5rem;
        font-weight: 800;
        line-height: 1;
        margin: 0 0 15px 0;
        background: linear-gradient(180deg, #fff 20%, #b0b0b0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    .brand-text .gold-accent {
        font-size: 1.1rem;
        color: var(--gold-primary);
        text-transform: uppercase;
        letter-spacing: 3px;
        font-weight: 600;
        display: block;
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
        opacity: 0.9;
    }

/* --- RIGHT PANE (CONTROLS) --- */
.right-controls {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    padding-left: 0px;
    align-items: center;
    border-left: none;
    position: relative;
    z-index: 2;
}

/* --- GLASS PANEL --- */
.glass-panel {
    width: 100%;
    max-width: 750px;
    padding: 80px;
    margin: 50px 0 50px 50px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
    animation: cardEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.panel-header {
    margin-bottom: 3rem;
    position: relative;
    border-left: 5px solid var(--gold-primary);
    padding-left: 30px;
}

    .panel-header h3 {
        font-weight: 800;
        font-size: 2.2rem;
        color: #fff;
        margin: 0;
        line-height: 1;
        letter-spacing: -1px;
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    }

    .panel-header p {
        color: var(--gold-primary);
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 3px;
        margin-top: 10px;
        opacity: 0.8;
    }

/* --- BUTTONS --- */
.nav-btn {
    position: relative;
    display: flex;
    align-items: center;
    padding: 45px;
    margin-bottom: 30px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    /* Gradient Border on Hover */
    .nav-btn::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 16px;
        padding: 1px;
        background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-btn:hover {
        transform: translateY(-4px);
        background: rgba(0,0,0,0.3);
        box-shadow: 0 15px 30px -5px rgba(0,0,0,0.4);
    }

        .nav-btn:hover::before {
            opacity: 1;
        }

/* Icon Styling */
.btn-icon-box {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    font-size: 1.4rem;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.nav-btn:hover .btn-icon-box {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-glow);
}

.btn-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.btn-content span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.nav-btn:hover .btn-content span {
    color: var(--gold-light);
}

.arrow-icon {
    margin-left: auto;
    color: var(--gold-primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.3s;
}

.nav-btn:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.1;
    }

    100% {
        opacity: 0.25;
    }
}

/* --- TOP HEADER STYLES --- */
.top-header {
    position: absolute;
    top: 30px;
    left: 40px;
    display: flex;
    align-items: center;
    z-index: 100;
    pointer-events: none;
}

.header-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 15px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.header-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
}

.uni-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    line-height: 1.2;
}

.campus-name {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--gold-primary);
    letter-spacing: 2px;
    margin-top: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
    }

    .left-brand {
        padding: 3rem 1rem 1rem 1rem;
        flex: 0.8;
    }

    .right-controls {
        padding: 1rem;
        flex: 1.2;
        border: none;
        align-items: flex-start;
    }

    .logo-img {
        width: 200px;
        height: 200px;
    }

    .brand-text h1 {
        font-size: 3rem;
    }

    .brand-text .gold-accent {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .glass-panel {
        width: 100%;
        padding: 30px;
        margin: 0;
    }

    .top-header {
        top: 20px;
        left: 20px;
    }

    .header-logo {
        width: 45px;
        height: 45px;
    }

    .uni-name {
        font-size: 0.8rem;
    }

    .campus-name {
        font-size: 0.7rem;
    }
}

/* Matrix Background */
#matrixCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2;
}
