/* layout.css - Page Layout (sections, navbar, containers) */

/* Intro Section */
.intro-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 50px;
    overflow: hidden;
    perspective: 2000px;
    transform-style: preserve-3d;
    transition: opacity 1s ease-out;
    z-index: 100;
}

.intro-section.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 212, 255, 0.15) 0%,
        rgba(131, 56, 236, 0.1) 30%,
        rgba(255, 0, 110, 0.08) 60%,
        transparent 80%
    );
    animation: pulseGlow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* Screen text content */
.screen-text-container {
    text-align: center;
    padding: 30px;
    position: relative;
    z-index: 10;
    transform-style: preserve-3d;
}

.screen-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-color);
    letter-spacing: 8px;
    margin-bottom: 15px;
    animation: titleGlow 4s ease-in-out infinite;
    position: relative;
    transform-style: preserve-3d;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(0, 212, 255, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.8);
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow:
            0 0 15px rgba(255, 255, 255, 0.2),
            0 0 30px rgba(0, 212, 255, 0.15),
            0 2px 4px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow:
            0 0 25px rgba(255, 255, 255, 0.4),
            0 0 50px rgba(0, 212, 255, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.8);
    }
}

.screen-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    color: var(--text-secondary);
    letter-spacing: 3px;
    font-weight: 300;
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 20px rgba(139, 168, 196, 0.5);
    animation: subtitleGlow 4s ease-in-out infinite;
}

@keyframes subtitleGlow {
    0%, 100% {
        opacity: 0.8;
        text-shadow: 0 0 10px rgba(139, 168, 196, 0.3);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(139, 168, 196, 0.6);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 100;
    cursor: pointer;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary-color);
    text-shadow:
        0 0 10px rgba(0, 212, 255, 0.6),
        0 0 20px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-text {
    transform: scale(1.1);
    text-shadow:
        0 0 20px rgba(0, 212, 255, 0.9),
        0 0 40px rgba(0, 212, 255, 0.6);
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Copyright Text */
.copyright-text {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-color);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    z-index: 100;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.copyright-text:hover {
    opacity: 1;
}

/* Main Panel */
.main-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in;
    z-index: 50;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    display: flex;
    flex-direction: column;
}

.main-panel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.main-panel.active {
    opacity: 1;
    pointer-events: all;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    z-index: 1000;
    background: transparent;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    list-style: none;
}

.nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav-link.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

/* Content Container */
.content-container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 50px 50px;
}

.content-section {
    display: none;
    text-align: center;
    width: 100%;
}

.content-section.active {
    display: block;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--text-color);
    margin-bottom: 30px;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(0, 212, 255, 0.2);
}

.section-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    letter-spacing: 2px;
    font-weight: 300;
    margin-bottom: 50px;
}

/* Intro Content */
.intro-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
    padding: 0 20px;
    max-width: 1200px;
    width: 100%;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 0 20px;
    max-width: 1400px;
}

/* Responsive */
@media (max-width: 768px) {
    .intro-section {
        padding: 80px 20px;
    }

    .connection-status {
        display: none;
    }

    .scroll-indicator {
        bottom: 20%;
    }

    .copyright-text {
        font-size: 12px;
    }

    .navbar {
        padding: 20px 20px;
    }

    .nav-menu {
        gap: 8px;
        flex-wrap: nowrap;
        width: 100%;
        justify-content: space-around;
    }

    .nav-link {
        font-size: 0.85rem;
        letter-spacing: 0px;
    }

    .content-container {
        padding: 80px 20px;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
        margin-top: 30px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 0 10px;
    }
}
