/* VARIABLES & FONT SETUP */
:root {
    --bg-dark: #07090f;
    --bg-card: rgba(18, 24, 38, 0.7);
    --primary: #00f0ff;
    --secondary: #3b82f6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

canvas#matrix-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(7, 9, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    cursor: pointer;
    user-select: none;
}
.logo span { color: var(--primary); }

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }

/* MAIN LAYOUT */
main {
    max-width: 900px;
    margin: 100px auto 0;
    padding: 0 2rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    display: inline-block;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 40px; height: 2px;
    background: var(--primary);
}

/* HERO SECTION */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.profile-frame {
    position: relative;
    width: 140px; height: 140px;
    margin: 0 auto 2rem;
}

.profile-pic {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.availability-badge {
    position: absolute;
    bottom: -10px; left: 50%; transform: translateX(-50%);
    background: #0f172a;
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap;
}

.pulse-dot {
    width: 8px; height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}

.glitch-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
#typewriter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: var(--primary);
    height: 30px;
    margin-bottom: 1.5rem;
}

.bio {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

/* BUTTONS */
.hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex; align-items: center; gap: 8px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* GRID SKILLS */
.skills-section { margin-bottom: 5rem; }
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    transition: var(--transition);
}
.skill-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: rgba(18, 24, 38, 0.9);
}
.skill-icon { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
.skill-card h4 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.skill-card p { font-size: 0.85rem; color: var(--text-muted); }

/* TIMELINE (EXP & EDU) */
.timeline-section { margin-bottom: 5rem; }
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--border-color);
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -2.35rem; top: 0.2rem;
    width: 14px; height: 14px;
    background: var(--bg-dark);
    border: 2px solid var(--secondary);
    border-radius: 50%;
}
.edu-dot { border-color: var(--primary); }

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.timeline-content h4 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.timeline-content h5 { font-size: 0.9rem; color: var(--text-muted); font-style: italic; margin-bottom: 1rem; }
.timeline-content ul, .timeline-content p { font-size: 0.95rem; color: #cbd5e1; }
.timeline-content ul { padding-left: 1.2rem; }
.timeline-content li { margin-bottom: 0.4rem; }

/* CERTIFICATIONS */
.certs-section { margin-bottom: 5rem; }
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.cert-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    border-left: 3px solid var(--secondary);
    transition: var(--transition);
}
.cert-box:hover { border-left-color: var(--primary); background: rgba(255,255,255,0.03); }
.cert-box i { font-size: 1.5rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.cert-box h4 { font-size: 1rem; }
.cert-box span { font-size: 0.8rem; color: var(--text-muted); }

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 2rem 0; }
    .glitch-title { font-size: 2rem; }
}