/* 
   Evan's Personal Homepage CSS
   Theme: High-End Minimalist Cyberpunk & Glassmorphism 
*/

/* -------------------------------------------------------------
   1. Root variables & Design Tokens
   ------------------------------------------------------------- */
:root {
    --bg-dark: #07070a;
    --bg-card: rgba(15, 15, 25, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    /* Neon gradients */
    --neon-cyan: #00f2fe;
    --neon-purple: #9d4edd;
    --neon-pink: #fe019a;
    
    /* Text colors */
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Animation Speeds */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.25s ease;
}

/* -------------------------------------------------------------
   2. Base Reset & Typography
   ------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: linear-gradient(to bottom, #010208 0%, #040612 55%, #0c0d22 100%) no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background: transparent; /* Seamless transparent overlay on top of HTML gradient */
}

/* -------------------------------------------------------------
   Code-Generated Seamless Dynamic Winter Background (100% Original)
   ------------------------------------------------------------- */
.scenery-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999; /* Placed in front of everything, clicks pass through via pointer-events */
    pointer-events: none;
    display: block;
}

/* -------------------------------------------------------------
   3. Animated Background Glows (Celestial Moonlight & Cosmic space)
   ------------------------------------------------------------- */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -4; /* Behind the scenery canvas */
    overflow: hidden;
    pointer-events: none;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    mix-blend-mode: screen;
    opacity: 0.8;
}

/* Moon Halo / Soft Golden Moonlight Glow (Top Right) */
.glow-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 240, 200, 0.18) 0%, rgba(255, 200, 100, 0.05) 45%, transparent 70%);
    animation: moonBreathe 8s infinite alternate ease-in-out;
}

/* Cold Deep Space Cyan Glow (Center) */
.glow-2 {
    top: 25%;
    left: 20%;
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, rgba(0, 78, 146, 0.02) 50%, transparent 70%);
    animation: spaceFloat 25s infinite alternate ease-in-out;
}

/* Soft Cosmic Purple Glow (Bottom Left) */
.glow-3 {
    bottom: -15%;
    left: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.08) 0%, rgba(33, 150, 243, 0.02) 50%, transparent 70%);
    animation: spaceFloat 18s infinite alternate-reverse ease-in-out;
}

@keyframes moonBreathe {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes spaceFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 40px) scale(1.1); }
}

@keyframes fireplaceFlicker {
    0% { transform: scale(0.95) translate(0, 0); opacity: 0.8; }
    30% { transform: scale(1.05) translate(-15px, 8px); opacity: 1; filter: blur(120px); }
    60% { transform: scale(0.9) translate(10px, -12px); opacity: 0.7; filter: blur(140px); }
    80% { transform: scale(1.02) translate(-5px, -5px); opacity: 0.9; }
    100% { transform: scale(0.98) translate(15px, 15px); opacity: 0.85; }
}

@keyframes moveGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-80px, 80px) scale(1.1); }
}

/* -------------------------------------------------------------
   4. Glassmorphism Design System (Cards)
   ------------------------------------------------------------- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}

.glass-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

.glass-card:hover::before {
    left: 150%;
}

/* -------------------------------------------------------------
   5. Headers, Logo & Nav
   ------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    z-index: 100;
    background: transparent; /* Fully seamless transparent header */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: none; /* Removed the top horizontal dividing line for a borderless seamless look */
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@keyframes logoGradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -1.0px; /* Tighter letter-spacing for premium tech brand lockup */
    text-decoration: none;
    background: linear-gradient(135deg, var(--neon-cyan), #3b82f6, var(--neon-purple), var(--neon-pink), var(--neon-cyan));
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGradientFlow 8s ease infinite;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.logo:hover {
    transform: scale(1.06);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-quick);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    color: #000;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    margin-left: 16px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
}

/* Mobile Nav Menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background: rgba(7, 7, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: none; /* Removed the horizontal line on mobile menu as well */
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 99;
}

.mobile-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

/* -------------------------------------------------------------
   6. Main Grid & Sections
   ------------------------------------------------------------- */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px 60px 24px;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8s;
    align-items: center;
    gap: 48px;
    padding: 60px 0;
}

@media (min-width: 992px) {
    .hero-section {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-content {
    max-width: 650px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neon-cyan);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 15px var(--neon-cyan); }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--neon-cyan), #3b82f6, var(--neon-purple), var(--neon-pink), var(--neon-cyan));
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGradientFlow 10s ease infinite;
}

.typewriter-container {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    min-height: 2.7rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.typewriter-prefix {
    color: var(--text-secondary);
}

.typewriter-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
}

.typewriter-cursor {
    color: var(--neon-cyan);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: var(--bg-dark);
}

.avatar-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    animation: rotateRing 30s linear infinite;
    pointer-events: none;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Stats Section */
.stats-section {
    padding: 40px 0;
}

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

.stat-card {
    padding: 32px;
    text-align: center;
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Section Common Header */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 80px auto 48px auto;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.about-card {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.icon-cyan {
    background: rgba(0, 242, 254, 0.1);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.icon-purple {
    background: rgba(157, 78, 221, 0.1);
    color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.15);
}

.icon-pink {
    background: rgba(254, 1, 154, 0.1);
    color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(254, 1, 154, 0.15);
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Projects Index Section Table */
.projects-container {
    width: 100%;
}

.project-list-card {
    padding: 24px;
}

.project-table-wrapper {
    overflow-x: auto;
}

.project-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.project-table th {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.project-table td {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.95rem;
    vertical-align: middle;
}

.project-table tr:last-child td {
    border-bottom: none;
}

.p-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.p-icon {
    font-size: 1.1rem;
    color: var(--neon-cyan);
}

.p-desc {
    color: var(--text-secondary);
    max-width: 320px;
}

.p-tech {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-right: 4px;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background: rgba(52, 211, 153, 0.08);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.status-planning {
    background: rgba(251, 191, 36, 0.08);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.p-link {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-quick);
}

.p-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

.p-link-disabled {
    color: var(--text-muted);
    font-weight: 500;
    cursor: not-allowed;
}

/* Media & Knowledge Section */
.media-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
}

.media-card {
    padding: 40px;
}

.media-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--neon-pink);
    margin-bottom: 16px;
}

.media-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.media-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.qr-placeholder {
    width: 100%;
    height: 180px;
    border: 1px dashed var(--border-hover);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.qr-placeholder i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qr-placeholder:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

.brain-list {
    list-style: none;
}

.brain-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.brain-list li i {
    color: var(--neon-cyan);
}

/* Contact Section */
.contact-box {
    margin-top: 80px;
    padding: 60px 40px;
    text-align: center;
}

.contact-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-text {
    max-width: 650px;
    margin: 0 auto 36px auto;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-cyan {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--neon-cyan);
}

.btn-cyan:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
}

.btn-purple {
    background: rgba(157, 78, 221, 0.08);
    border: 1px solid rgba(157, 78, 221, 0.3);
    color: var(--neon-purple);
}

.btn-purple:hover {
    background: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.4);
    transform: translateY(-2px);
}

.btn-pink {
    background: rgba(254, 1, 154, 0.08);
    border: 1px solid rgba(254, 1, 154, 0.3);
    color: var(--neon-pink);
}

.btn-pink:hover {
    background: var(--neon-pink);
    color: #fff;
    box-shadow: 0 0 20px rgba(254, 1, 154, 0.4);
    transform: translateY(-2px);
}

/* Footer styling */
.footer {
    background-color: transparent; /* Fully seamless transparent footer */
    padding: 60px 0 40px 0;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
}

/* -------------------------------------------------------------
   7. Responsive Adaptations (Media Queries)
   ------------------------------------------------------------- */
@media (max-width: 991px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .typewriter-container {
        justify-content: center;
    }
    
    .hero-avatar {
        order: -1;
    }
    
    .avatar-wrapper {
        width: 260px;
        height: 260px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .typewriter-container {
        font-size: 1.4rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-box {
        padding: 40px 24px;
    }
}
