:root {
    --bg-color: #050B14;
    --text-primary: #e0e6ed;
    --text-secondary: #8b9bb4;
    
    /* These can be overridden by JS */
    --accent-color: #00ffff; 
    --glass-bg: rgba(5, 15, 30, 0.7);
    --glass-border: rgba(0, 255, 255, 0.15);
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: var(--font-body);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Background & Cursor Glow */
#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: -2;
}

#cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color) 0%, rgba(0, 0, 0, 0) 70%);
    opacity: 0.15;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: background 0.3s, opacity 0.3s;
}

/* HUD Overlay */
.hud-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.hud-top-left, .hud-top-right {
    position: absolute;
    top: 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-color);
    opacity: 0.7;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.hud-top-left { left: 20px; }
.hud-top-right { right: 20px; pointer-events: auto; }

/* Theme Switcher */
.theme-switcher {
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.5);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.theme-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.theme-dot:hover {
    transform: scale(1.3);
}

.theme-dot.active {
    box-shadow: 0 0 10px currentColor;
    border: 2px solid #fff;
}

/* Main Container */
.scroll-container {
    position: relative;
    z-index: 1;
}

/* Typography & Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.decode-text {
    opacity: 0; 
}
.decode-text.visible {
    opacity: 1;
}

.mb-4 { margin-bottom: 2rem; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero .title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 0 10px var(--accent-color);
    margin-top: 2rem;
    transition: text-shadow 0.3s;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.hero-nav {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-mono);
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: text-shadow 0.3s, color 0.3s;
}

.nav-link:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-color);
}

.hero-socials {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    pointer-events: auto;
}

.hero-socials a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.hero-socials a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* WebGL 3D Brain Container */
.logo-3d-container {
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 15px var(--accent-color));
    transition: filter 0.3s;
}
.logo-3d-container canvas {
    outline: none;
    pointer-events: none; /* Let clicks pass through */
}

/* Sections */
.about-section,
.projects-section,
.activity-section,
.diagnostics-section,
.contact-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-container {
    padding: 2.5rem;
    border-radius: 12px;
    line-height: 1.8;
    font-size: 1.15rem;
    color: var(--text-color);
}

.section-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    transition: color 0.3s, border-color 0.3s;
}

/* Activity Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.activity-card {
    position: relative;
    border-radius: 12px;
    padding: 1.5rem;
    overflow: hidden;
    height: 650px; /* Adjust based on iframe height + padding */
}

.activity-card iframe {
    border-radius: 8px;
    background: #ffffff; /* LinkedIn posts look best on white */
}

@media (max-width: 900px) {
    .activity-grid {
        grid-template-columns: 1fr;
    }
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.project-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}

.repo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
    opacity: 0.9;
    transition: opacity 0.3s;
}

.project-card:hover .repo-image {
    opacity: 1;
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    transition: color 0.3s, border-color 0.3s;
}

.card-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: color 0.3s;
}

.card-links a:hover {
    color: var(--accent-color);
}

/* Diagnostics Section */
.diagnostics-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.timeline-panel {
    padding: 2.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    border-left: 2px solid var(--glass-border);
    margin-left: 10px;
    padding-left: 30px;
}

.timeline-item {
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
    transition: background 0.3s, box-shadow 0.3s;
}

.timeline-content h4 {
    color: #fff;
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.timeline-content .date {
    font-family: var(--font-mono);
    display: block;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

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

/* Skills Bento Grid */
.skills-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.bento-box {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.bento-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.bento-box h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills-grid span {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact Section */
.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-container {
    width: 100%;
    max-width: 600px;
    padding: 3rem;
}

.contact-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-color);
    transition: color 0.3s;
}

.input-group input,
.input-group textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 1rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent-color);
}

.submit-btn {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    filter: brightness(1.2);
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .diagnostics-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .skills-bento {
        grid-template-columns: 1fr;
    }
    .hero .title {
        font-size: 2rem;
    }
}

/* Animations */
.fade-in { animation: fadeInSmooth 1.5s ease-out forwards; }
@keyframes fadeInSmooth { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Horizontal Panels */
.horizontal-panels-container { display: flex; flex-direction: column; gap: 2rem; margin-top: 3rem; }
.horizontal-bento-box { padding: 2.5rem; border-radius: 12px; }
.horizontal-bento-box h3 { margin-bottom: 2rem; color: var(--accent-color); }
.flex-row-between { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 2rem; }
.exam-item, .cert-item { text-align: center; }
.exam-item h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.exam-item .score { font-family: 'Orbitron', sans-serif; color: var(--accent-color); font-size: 1.5rem; font-weight: 700; }
.cert-item.future h4 { color: rgba(255, 255, 255, 0.5); font-style: italic; margin-top: 0.5rem; }
.cert-item.future i { color: rgba(255, 255, 255, 0.5); font-size: 2rem; }
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.course-item { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); padding: 1rem 1.5rem; border-radius: 8px; transition: transform 0.3s, border-color 0.3s; }
.course-item:hover { transform: translateY(-3px); border-color: var(--accent-color); }
.course-provider { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-color); display: block; margin-bottom: 0.4rem; }
.course-item h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 400; line-height: 1.4; color: var(--text-primary); }
