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

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --secondary: #06b6d4;
    --accent: #f43f5e;
    --accent2: #f59e0b;
    --success: #10b981;
    --bg: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --bg-section: #141428;
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --text-muted: #64748b;
    --border: #2d2d50;
    --radius: 12px;
    --glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
}

.gradient-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(244,63,94,0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--primary-light); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--secondary); }

.gradient-text {
    background: linear-gradient(135deg, #6366f1, #06b6d4, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.link-highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ===== NAV ===== */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-weight: 800; font-size: 1.3rem; color: var(--primary-light); display: flex; align-items: center; gap: 0.5rem; }
.logo-icon { color: var(--accent); font-size: 1rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-light); font-size: 0.9rem; font-weight: 500; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 0.3s; }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 7rem 2rem 4rem; position: relative; overflow: hidden;
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
    position: absolute; border-radius: 50%; opacity: 0.4;
    animation: float 15s infinite ease-in-out;
}
.p1 { width: 300px; height: 300px; top: 10%; left: 5%; background: radial-gradient(circle, rgba(99,102,241,0.3), transparent); animation-delay: 0s; }
.p2 { width: 200px; height: 200px; top: 60%; right: 10%; background: radial-gradient(circle, rgba(6,182,212,0.25), transparent); animation-delay: -5s; }
.p3 { width: 150px; height: 150px; top: 30%; right: 30%; background: radial-gradient(circle, rgba(244,63,94,0.2), transparent); animation-delay: -10s; }
.p4 { width: 100px; height: 100px; bottom: 20%; left: 20%; background: radial-gradient(circle, rgba(245,158,11,0.2), transparent); animation-delay: -3s; }
.p5 { width: 250px; height: 250px; bottom: 10%; right: 5%; background: radial-gradient(circle, rgba(16,185,129,0.15), transparent); animation-delay: -7s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content { max-width: 750px; text-align: center; position: relative; z-index: 1; }
.hero-badge {
    display: inline-block; padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
    background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.3);
    margin-bottom: 1.5rem; letter-spacing: 0.5px;
}
.greeting { font-size: 1.1rem; color: var(--primary-light); font-weight: 500; margin-bottom: 0.5rem; }
.hero h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -0.03em; }
.tagline { font-size: 1.3rem; color: var(--text-light); margin-bottom: 1.5rem; }
.tagline-sep { color: var(--accent); margin: 0 0.25rem; }
.summary { font-size: 1.05rem; color: var(--text-light); max-width: 600px; margin: 0 auto 2rem; line-height: 1.8; }
.summary strong { color: var(--text); }

.hero-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.75rem;
    border-radius: 50px; font-weight: 600; font-size: 0.95rem; transition: all 0.3s; border: none; cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99,102,241,0.4); color: #fff; }
.btn-glow { background: linear-gradient(135deg, #0A66C2, #06b6d4); color: #fff; }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(6,182,212,0.4); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-light); transform: translateY(-2px); }

.hero-stats { display: flex; gap: 3rem; justify-content: center; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, var(--primary-light), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* ===== SECTIONS ===== */
.section { padding: 6rem 2rem; position: relative; z-index: 1; opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
.section.visible { opacity: 1; transform: translateY(0); }
.section-dark { background: var(--bg-section); }
.container { max-width: 1050px; margin: 0 auto; }
.section-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 2.5rem; display: flex; align-items: center; gap: 0.75rem; }
.section-icon { color: var(--accent2); font-size: 1.5rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.about-text p { font-size: 1.05rem; color: var(--text-light); margin-bottom: 1.25rem; line-height: 1.8; }
.about-text strong { color: var(--text); }
.highlight { color: var(--secondary); font-weight: 600; }
.about-highlights { display: flex; flex-direction: column; gap: 1rem; }
.highlight-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem; transition: all 0.3s; text-align: center;
}
.highlight-card:hover { border-color: var(--primary); box-shadow: var(--glow); transform: translateY(-3px); }
.highlight-icon { font-size: 1.75rem; display: block; margin-bottom: 0.5rem; }
.highlight-card h4 { font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--text); }
.highlight-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; border-left: 2px solid var(--border); }
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
    position: absolute; left: -2.6rem; top: 0.35rem; width: 14px; height: 14px;
    border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 10px rgba(99,102,241,0.5);
}
.timeline-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: all 0.3s; }
.timeline-content:hover { border-color: var(--primary); box-shadow: var(--glow); }
.timeline-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.25rem; flex-wrap: wrap; }
.timeline-badge { font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 50px; background: linear-gradient(135deg, var(--accent), #e11d48); color: #fff; text-transform: uppercase; letter-spacing: 0.5px; }
.timeline-content h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.timeline-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; }
.timeline-company { font-weight: 600; color: var(--primary-light); display: flex; align-items: center; gap: 0.4rem; }
.company-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.company-dot.cisco { background: #049fd9; }
.company-dot.google { background: #4285f4; }
.company-dot.adp { background: #d0271d; }
.company-dot.airbus { background: #00205b; }
.company-dot.drdo { background: #ff9933; }
.timeline-location, .timeline-date { color: var(--text-muted); font-size: 0.85rem; }
.timeline-content ul { list-style: none; padding: 0; }
.timeline-content li { position: relative; padding-left: 1.25rem; margin-bottom: 0.4rem; color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }
.timeline-content li::before { content: "\25B8"; position: absolute; left: 0; color: var(--secondary); }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.skill-category {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; transition: all 0.3s;
}
.skill-category:hover { border-color: var(--primary); box-shadow: var(--glow); transform: translateY(-3px); }
.skill-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.skill-category h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { padding: 0.3rem 0.75rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; border: 1px solid transparent; transition: all 0.2s; }
.tag:hover { transform: scale(1.05); }
.tag-lang { background: rgba(99,102,241,0.15); color: #a5b4fc; border-color: rgba(99,102,241,0.3); }
.tag-sys { background: rgba(6,182,212,0.15); color: #67e8f9; border-color: rgba(6,182,212,0.3); }
.tag-proto { background: rgba(245,158,11,0.15); color: #fbbf24; border-color: rgba(245,158,11,0.3); }
.tag-gpu { background: rgba(244,63,94,0.15); color: #fb7185; border-color: rgba(244,63,94,0.3); }
.tag-tool { background: rgba(16,185,129,0.15); color: #6ee7b7; border-color: rgba(16,185,129,0.3); }
.tag-domain { background: rgba(168,85,247,0.15); color: #c4b5fd; border-color: rgba(168,85,247,0.3); }

/* Projects */
.org-section { margin-bottom: 3rem; }
.org-header { margin-bottom: 1.5rem; }
.org-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.eos-badge { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.org-header h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.35rem; }
.org-desc { color: var(--text-muted); font-size: 0.95rem; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.project-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.1rem; transition: all 0.3s; position: relative; overflow: hidden;
}
.project-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0; transition: opacity 0.3s;
}
.project-card:hover { border-color: var(--primary); box-shadow: var(--glow); transform: translateY(-3px); }
.project-card:hover::before { opacity: 1; }
.card-eos:hover { border-color: var(--secondary); box-shadow: 0 0 20px rgba(6,182,212,0.3); }
.card-agl:hover { border-color: var(--accent2); box-shadow: 0 0 20px rgba(245,158,11,0.3); }
.card-oss:hover { border-color: var(--success); box-shadow: 0 0 20px rgba(16,185,129,0.3); }
.project-card h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.project-card h4 a { color: var(--text); }
.project-card h4 a:hover { color: var(--primary-light); }
.project-lang {
    display: inline-block; font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.5rem;
    border-radius: 50px; margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.lang-c { background: rgba(0,89,156,0.3); color: #5dade2; }
.lang-py { background: rgba(55,118,171,0.3); color: #85c1e9; }
.lang-ts { background: rgba(49,120,198,0.3); color: #7fb3d8; }
.lang-cpp { background: rgba(0,89,156,0.3); color: #5dade2; }
.lang-rust { background: rgba(183,65,14,0.3); color: #e67e22; }
.lang-dart { background: rgba(1,117,194,0.3); color: #3498db; }
.lang-swift { background: rgba(255,69,58,0.3); color: #ff6b6b; }
.lang-hw { background: rgba(255,111,0,0.3); color: #f39c12; }
.project-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.4; }

/* Education */
.education-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.education-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem; text-align: center; transition: all 0.3s;
}
.education-card:hover { border-color: var(--primary); box-shadow: var(--glow); transform: translateY(-3px); }
.edu-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.education-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.35rem; }
.edu-field { background: linear-gradient(135deg, var(--primary-light), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 600; margin-bottom: 0.35rem; }
.edu-school { color: var(--text-light); font-size: 0.95rem; }
.edu-date { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.35rem; }

/* Contact */
.contact-text { color: var(--text-light); font-size: 1.1rem; margin-bottom: 2.5rem; text-align: center; }
.contact-links { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.contact-card {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    color: var(--text); font-weight: 600; padding: 1.5rem 2rem;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    transition: all 0.3s; min-width: 120px;
}
.contact-card:hover { border-color: var(--primary); box-shadow: var(--glow); transform: translateY(-5px); color: var(--primary-light); }

/* Footer */
footer {
    text-align: center; padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-section), var(--bg));
}
.footer-content p { color: var(--text-light); font-size: 0.9rem; }
.footer-sub { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.25rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(15,15,26,0.98); flex-direction: column;
        padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); gap: 1rem;
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: flex; }
    .section { padding: 4rem 1.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .skills-grid, .projects-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 1.5rem; }
    .timeline-meta { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
    .contact-links { flex-direction: column; align-items: center; }
    .contact-card { width: 100%; flex-direction: row; justify-content: center; }
}
