/* ============================================================
   SECTIONS.CSS — Portfolio panels, skills, about, contact,
                  Glitch Studios, entry screen, snow, responsive
   ============================================================ */

/* ================================
   PORTFOLIO SECTIONS
   ================================ */

.portfolio-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    padding: 40px 20px;
    /* Perf: skip rendering off-screen sections */
    content-visibility: auto;
    contain-intrinsic-size: 100vh;
}

.portfolio-section.active {
    visibility: visible;
    pointer-events: auto;
}

/* Hide home content when a section is active */
body:has(.portfolio-section.active) .profile-container,
body:has(.portfolio-section.active) .stats-terminal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Glass containers - always have glass ready, fade content */
.portfolio-section .about-container,
.portfolio-section .skills-container,
.portfolio-section .projects-section-container,
.portfolio-section .glitch-container {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}

.portfolio-section.active .about-container,
.portfolio-section.active .skills-container,
.portfolio-section.active .projects-section-container,
.portfolio-section.active .glitch-container {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   PROJECTS SECTION - Modern Glassmorphism
   ================================ */

.projects-section-container {
    position: relative;
    background: rgba(20, 20, 35, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 30px;
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.project-card-new {
    background: rgba(25, 25, 40, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.project-card-new:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.project-preview {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: none;
    will-change: opacity;
}

.project-preview-img.active {
    opacity: 1;
}

.project-card-new:hover .project-preview-img.active {
    transform: scale(1.05);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Gallery Controls */
.gallery-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.project-preview:hover .gallery-controls {
    opacity: 1;
    pointer-events: auto;
}

.gallery-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(15, 15, 25, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gallery-btn:hover {
    background: rgba(25, 25, 45, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: scale(1.05);
}

.gallery-btn svg {
    width: 16px;
    height: 16px;
}

/* Gallery counter (small preview) */
.gallery-counter {
    position: absolute;
    top: 9px;
    left: 10px;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 20px;
    z-index: 4;
    pointer-events: none;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Lightbox counter (fullscreen view) */
.lightbox-counter {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.55);
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 10;
    pointer-events: none;
    letter-spacing: 0.05em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Fullscreen Button */
.gallery-fullscreen {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(15, 15, 25, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
}

.project-preview:hover .gallery-fullscreen {
    opacity: 1;
}

.gallery-fullscreen:hover {
    background: rgba(25, 25, 45, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: scale(1.1);
}

.gallery-fullscreen svg {
    width: 14px;
    height: 14px;
}

/* Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 85vw;
    max-height: 85vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(25, 25, 45, 0.8);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 80, 80, 0.8);
    border-color: rgba(255, 80, 80, 0.5);
    color: #fff;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(25, 25, 45, 0.8);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-nav:hover {
    background: rgba(35, 35, 55, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

/* Project Card Content */
.project-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 20px 0 20px;
}

.project-info {
    flex: 1;
}

.project-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: visible;
    flex-shrink: 0;
}

.project-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.project-icon.planner {
    background: transparent;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    padding: 16px 20px 20px 20px;
}

.project-card-new .project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.project-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(30, 30, 50, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.project-link:hover {
    background: rgba(40, 40, 60, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--primary);
}

.project-link.primary {
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--bg-dark);
    font-weight: 500;
}

.project-link.primary:hover {
    background: #00b8d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

.project-link.disabled {
    background: rgba(40, 40, 50, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.35);
    cursor: not-allowed;
    opacity: 0.7;
}

.project-link.disabled:hover {
    background: rgba(40, 40, 50, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.35);
    transform: none;
}

.project-link.disabled svg {
    opacity: 0.5;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-btn:hover {
    opacity: 1;
}

/* Snow Effect */
.snow {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: white;
    border-radius: 50%;
    opacity: 0.6;
    pointer-events: none;
}

/* ================================
   GLITCH STUDIOS - Modern Glassmorphism
   ================================ */

.glitch-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: rgba(20, 20, 35, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.glitch-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.glitch-logo-container {
    width: 80px;
    height: 80px;
    background: rgba(30, 30, 50, 0.35);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glitch-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.glitch-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(90deg, #f5f5f5, #a09bff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.glitch-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.glitch-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(25, 25, 45, 0.3);
    border-radius: 14px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(35, 35, 55, 0.45);
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

.feature-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #f0f0f5;
}

.feature-text p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* Glitch Studios subtitle */
.glitch-subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    margin-top: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Resources grid */
.glitch-resources {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 28px 0;
}

.glitch-resource-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}

.glitch-resource-card:hover {
    background: rgba(79, 195, 247, 0.08);
    border-color: rgba(79, 195, 247, 0.35);
    transform: translateY(-3px);
}

.glitch-resource-card svg {
    flex-shrink: 0;
    opacity: 0.75;
}

.glitch-resource-card h4 {
    margin: 0 0 2px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f0f0f5;
}

.glitch-resource-card span {
    font-size: 0.78rem;
    opacity: 0.55;
}

.glitch-resource-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 6px;
    border-radius: 20px;
}

.glitch-resource-badge.paid {
    background: rgba(255, 180, 50, 0.18);
    color: #ffb432;
    border: 1px solid rgba(255, 180, 50, 0.35);
}

.glitch-resource-badge.free {
    background: rgba(80, 220, 130, 0.15);
    color: #50dc82;
    border: 1px solid rgba(80, 220, 130, 0.3);
}

.glitch-resource-badge.docs {
    background: rgba(79, 195, 247, 0.15);
    color: #4fc3f7;
    border: 1px solid rgba(79, 195, 247, 0.3);
}

.glitch-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(79, 195, 247, 0.4);
}

.glitch-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(79, 195, 247, 0.5);
}

.glitch-cta-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.glitch-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.glitch-cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
}

/* Glitch Studios background grid */
.glitch-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(20, 20, 30, 0.7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 20, 30, 0.7) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

/* Join Team Section */
.glitch-join-team {
    margin: 40px 0;
    padding: 25px;
    background: rgba(25, 25, 45, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(135, 120, 255, 0.2);
    text-align: center;
}

.glitch-join-team h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #8778ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glitch-join-team p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.team-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(135, 120, 255, 0.2), rgba(255, 0, 255, 0.2));
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(135, 120, 255, 0.3);
}

.team-join-btn:hover {
    background: linear-gradient(90deg, rgba(135, 120, 255, 0.4), rgba(255, 0, 255, 0.4));
    transform: translateY(-3px);
}

.team-join-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .glitch-container {
        padding: 2rem;
    }
    
    .glitch-header {
        flex-direction: column;
        text-align: center;
    }
    
    .glitch-features {
        grid-template-columns: 1fr;
    }

    .glitch-resources {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .glitch-container {
        padding: 1.5rem;
    }
    
    .glitch-title {
        font-size: 2rem;
    }
    
    .feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ================================
   TERMINAL ENTRY SCREEN
   ================================ */

.entry-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

.entry-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 600px;
    width: 90%;
}

.terminal-window {
    width: 100%;
    background: var(--aero-gradient), rgba(20, 20, 35, 0.85);
    border: 1px solid var(--border-glass);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--aero-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.terminal-header {
    background: var(--aero-gradient), rgba(40, 40, 60, 0.6);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-glass);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-btn.close { background: #ff5f57; }
.terminal-btn.minimize { background: #ffbd2e; }
.terminal-btn.maximize { background: #28ca42; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: auto;
}

.terminal-body {
    padding: 20px;
    min-height: 120px;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.terminal-prompt {
    color: var(--accent);
    font-weight: 600;
}

.terminal-text {
    color: var(--text-primary);
}

.terminal-cursor {
    color: var(--primary);
    animation: blink 1s step-end infinite;
}

.terminal-output {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.terminal-output div {
    margin: 4px 0;
}

.terminal-output .success {
    color: #4ade80;
}

.terminal-output .dim {
    color: rgba(255, 255, 255, 0.4);
}

.terminal-output .info {
    color: var(--code-blue);
}

.terminal-output .warning {
    color: var(--accent-warning);
}

/* Matrix Background */
.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    overflow: hidden;
}

.matrix-column {
    position: absolute;
    top: -100%;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--primary);
    writing-mode: vertical-rl;
    animation: matrixFall linear infinite;
}

@keyframes matrixFall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200vh); }
}

/* Entry Button - Win7 Aero Glass */
.entry-loader {
    margin: 30px 0;
}

.loader-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: "";
    position: absolute;
    left: -50%;
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, transparent, #3498fe, transparent);
    animation: loading 1.5s infinite linear;
}

.loader-progress {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 10px;
    letter-spacing: 1px;
}

.entry-button {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(230, 235, 250, 0.85) 50%,
        rgba(200, 210, 240, 0.8) 100%);
    border: 1px solid rgba(180, 190, 220, 0.5);
    border-radius: 50px;
    color: #4a5080;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 16px 48px;
    margin-top: 30px;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(150, 160, 200, 0.3),
        0 8px 30px rgba(180, 190, 220, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(180, 190, 220, 0.3);
    backdrop-filter: blur(6px);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.entry-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50px 50px 100px 100px;
    pointer-events: none;
}

.entry-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(150, 160, 200, 0.4),
        0 12px 40px rgba(180, 190, 220, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.9),
        inset 0 -1px 2px rgba(180, 190, 220, 0.3);
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(235, 240, 255, 0.9) 50%,
        rgba(210, 220, 250, 0.85) 100%);
}

.entry-button:hover::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
}

.button-icon {
    margin-left: 10px;
    display: flex;
}

.entry-screen.hide {
    animation: screenFadeOut 0.8s forwards;
}

@keyframes screenFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loading {
    0% { left: -50%; }
    100% { left: 150%; }
}

/* ================================
   SKILLS SECTION - Modern Glassmorphism
   ================================ */

.skills-container {
    position: relative;
    background: rgba(20, 20, 35, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.title-decorator {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-weight: 400;
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.skill-category {
    background: rgba(25, 25, 45, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.skill-category:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon {
    font-size: 1.2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(35, 35, 55, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: rgba(79, 195, 247, 0.2);
    border-color: rgba(79, 195, 247, 0.35);
    color: var(--primary);
}

.skill-tag[data-level="expert"] {
    border-color: rgba(129, 199, 132, 0.4);
    color: var(--accent);
}

.skill-tag[data-level="advanced"] {
    border-color: rgba(100, 181, 246, 0.4);
    color: var(--code-blue);
}

/* Code Showcase */
.code-showcase {
    margin-top: 30px;
}

.code-window {
    background: rgba(15, 15, 25, 0.55);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.code-header {
    background: rgba(30, 30, 50, 0.4);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.code-dots span:first-child { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #28ca42; }

.code-filename {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.code-content {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-keyword { color: var(--code-purple); }
.code-variable { color: var(--text-primary); }
.code-property { color: var(--code-blue); }
.code-string { color: var(--code-green); }
.code-number { color: var(--code-orange); }
.code-function { color: var(--code-yellow); }
.code-boolean { color: var(--code-purple); }

/* ================================
   ABOUT SECTION - Modern Glassmorphism
   ================================ */

.about-container {
    position: relative;
    background: rgba(20, 20, 35, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-block {
    background: rgba(25, 25, 45, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.about-block:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.about-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.heading-icon {
    font-size: 1.2rem;
}

.about-block p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.about-block strong {
    color: var(--primary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.1);
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-number.coffee-stat {
    color: var(--accent-warning);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Block Headers */
.block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.block-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.block-icon {
    font-size: 1.3rem;
}

.highlight {
    color: var(--primary);
    font-weight: 500;
}

/* ================================
   CONTACT SECTION - Modern
   ================================ */

.contact-container {
    max-width: 700px !important;
}

.contact-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-icon.discord-icon {
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
}
.contact-icon.discord-icon svg { fill: #5865F2; }

.contact-icon.github-icon {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-icon.email-icon {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.2);
}
.contact-icon.email-icon svg { fill: var(--primary); }

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-method-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-badge {
    position: absolute;
    right: 20px;
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-cta {
    text-align: center;
    padding: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}

.contact-cta p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-cta strong {
    color: var(--primary);
}

/* Contact Method Cards */
.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.contact-method:hover {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.1);
}

.contact-method.discord:hover {
    border-color: #5865F2;
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.2);
}

.contact-method.github:hover {
    border-color: #fff;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

.contact-method.email:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.2);
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.contact-method.discord .method-icon {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.3);
}
.contact-method.discord .method-icon svg { fill: #5865F2; }

.contact-method.github .method-icon {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.contact-method.email .method-icon {
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.2);
}
.contact-method.email .method-icon svg { fill: var(--primary); }

.method-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.method-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.method-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.method-badge {
    position: absolute;
    right: 16px;
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================
   RESPONSIVE — Sections
   ================================ */

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .skills-container,
    .about-container,
    .contact-container {
        padding: 24px 16px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}
