/* CSS Variables for Dark/Light Theme Switching */
:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --glass-bg: rgba(10, 10, 12, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent: #00f2fe;
    --card-shadow: rgba(0, 0, 0, 0.5);
    --input-bg: rgba(255, 255, 255, 0.05);
}

body.light-mode {
    --bg-color: #f0f4f8;
    --text-main: #111827;
    --text-muted: #4b5563;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.1);
    --accent: #0284c7;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --input-bg: rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 15px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

.theme-toggle .sun-icon, .theme-toggle .moon-icon {
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    font-size: 1.1rem;
}

.theme-toggle .sun-icon { opacity: 0; transform: translateY(20px) rotate(90deg); }
.theme-toggle .moon-icon { opacity: 1; transform: translateY(0) rotate(0); }
body.light-mode .theme-toggle .sun-icon { opacity: 1; transform: translateY(0) rotate(0); }
body.light-mode .theme-toggle .moon-icon { opacity: 0; transform: translateY(-20px) rotate(-90deg); }

/* Glass Navbar */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 15px;
    right: 70px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 8px 12px;
    border-radius: 50px;
    display: flex;
    gap: 8px;
    z-index: 100;
    overflow-x: auto;
    scrollbar-width: none;
}

.glass-nav::-webkit-scrollbar {
    display: none;
}

.nav-pill {
    color: var(--text-main);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-pill:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.scroll-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.panel {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.center-align { justify-content: center; text-align: center; }
.right-align { justify-content: flex-end; text-align: right; }
.left-align { justify-content: flex-start; text-align: left; }

.content-box {
    max-width: 600px;
    width: 100%;
}

/* Reusable Glass Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--card-shadow);
    padding: 2.5rem 2rem;
    transition: all 0.5s ease;
}

/* OVERLAPPING HERO LAYOUT */
.hero-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-top: 70px; 
}

.main-hero-card {
    width: 100%;
    padding: 3.5rem 1.8rem 2rem 1.8rem;
    position: relative;
    text-align: left;
}

.profile-wrapper {
    position: absolute;
    top: -65px; 
    right: 5%; 
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--accent);
    box-shadow: 0 15px 35px var(--card-shadow), 0 0 30px rgba(0, 242, 254, 0.2);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 10; 
    transition: all 0.5s ease;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: contrast(1.1);
}

/* Typography - Fully Restored Original Clean Font */
.main-hero-card h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    line-height: 1.15;
}

body:not(.light-mode) .main-hero-card h1 {
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.light-mode .main-hero-card h1 { color: var(--text-main); }

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--accent);
}

p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; transition: color 0.5s ease; }
.subtitle { font-size: 1.05rem; margin-bottom: 1.5rem; }
.tagline { font-size: 0.8rem; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; }

.blink { animation: blinker 1.5s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

.exp-list { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
.exp-list li { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; transition: color 0.5s ease;}
.exp-list i { color: var(--accent); margin-right: 8px; font-size: 1.1rem; }

/* Project Highlight Box */
.project-highlight {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.project-highlight:hover {
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.project-header h3 { font-size: 1.1rem; color: var(--text-main); }

.status-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.upcoming-tag {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    border-color: rgba(236, 72, 153, 0.3);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    outline: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
    background: transparent;
}

.submit-btn {
    background: var(--accent);
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
body:not(.light-mode) .submit-btn { color: #000; } 

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
    min-width: 100px;
}

.social-links a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
body:not(.light-mode) .social-links a:hover { color: #000; }

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.2);
    border: 2px solid var(--accent);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* Mini Game UI */
#game-trigger:hover {
    color: var(--accent) !important;
}

#game-node {
    display: none;
    position: fixed;
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 0 20px var(--accent);
    transition: left 0.15s ease-out, top 0.15s ease-out;
    
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #000;
}
