/* ===== CSS Variables & Reset ===== */
:root {
    --bg: #0a0a0f;
    --bg-alt: #0f0f18;
    --surface: rgba(255,255,255,0.03);
    --surface-hover: rgba(255,255,255,0.06);
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.15);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --primary: #818cf8;
    --primary-bright: #a78bfa;
    --accent: #22d3ee;
    --gradient: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    --gradient-text: linear-gradient(135deg, #818cf8, #c084fc, #f472b6);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { color: #c4b5fd; font-weight: 600; }

/* ===== Canvas Background ===== */
#particles-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

/* ===== Utility ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.text-gradient {
    background: var(--gradient-text); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 16px 0; transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(10,10,15,0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); padding: 10px 0;
}
.nav-container {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-size: 1.5rem; font-weight: 800; letter-spacing: -1px;
    transition: var(--transition);
}
.nav-logo:hover { transform: scale(1.05); }
.logo-dot { color: var(--primary); }
.nav-links {
    display: flex; align-items: center; gap: 8px;
}
.nav-links a {
    padding: 8px 16px; border-radius: 8px; font-size: 0.9rem;
    font-weight: 500; color: var(--text-muted); transition: var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--surface-hover); }
.nav-cta {
    background: var(--gradient) !important; color: #fff !important;
    font-weight: 600 !important; border-radius: 8px !important;
}
.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none;
    border: none; cursor: pointer; padding: 4px; z-index: 1001;
}
.nav-toggle span {
    width: 24px; height: 2px; background: var(--text);
    transition: var(--transition); border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    padding: 120px 24px 60px; position: relative; z-index: 1;
}
.hero-content { max-width: 800px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; border-radius: 50px; font-size: 0.85rem;
    background: rgba(129,140,248,0.1); border: 1px solid rgba(129,140,248,0.2);
    color: var(--primary); margin-bottom: 32px; font-weight: 500;
    animation: fadeInDown 0.8s ease;
}
.badge-dot {
    width: 8px; height: 8px; background: #34d399; border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
.hero-name { margin-bottom: 16px; animation: fadeInUp 0.8s ease 0.1s both; }
.greeting {
    display: block; font-size: 1.1rem; font-weight: 400;
    color: var(--text-muted); margin-bottom: 8px; letter-spacing: 1px;
}
.name-gradient {
    font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 900;
    background: var(--gradient-text); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
    letter-spacing: -2px; line-height: 1.1;
}
.hero-title {
    font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--text-muted);
    margin-bottom: 24px; font-weight: 400; min-height: 2.4rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.title-prefix { color: var(--text-muted); }
.typewriter { color: var(--accent); font-weight: 600; }
.cursor {
    color: var(--accent); animation: blink 1s infinite;
    font-weight: 300; margin-left: 2px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-description {
    font-size: 1.05rem; color: var(--text-muted); max-width: 600px;
    margin: 0 auto 40px; line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-actions {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 60px; animation: fadeInUp 0.8s ease 0.4s both;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius-sm); font-weight: 600;
    font-size: 0.95rem; transition: var(--transition); cursor: pointer;
    border: none; font-family: var(--font);
}
.btn-primary {
    background: var(--gradient); color: #fff;
    box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.4); }
.btn-secondary {
    background: transparent; color: var(--text);
    border: 1px solid var(--border-hover);
}
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--primary); }
.btn-full { width: 100%; justify-content: center; }

/* ===== Hero Stats ===== */
.hero-stats {
    display: flex; justify-content: center; gap: 48px;
    animation: fadeInUp 0.8s ease 0.5s both;
}
.stat { text-align: center; }
.stat-number {
    font-size: 2rem; font-weight: 800; color: var(--text);
    font-family: var(--mono);
}
.stat-plus { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.stat-label {
    display: block; font-size: 0.8rem; color: var(--text-muted);
    margin-top: 4px; font-weight: 500;
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute; bottom: 32px; display: flex; flex-direction: column;
    align-items: center; gap: 8px; animation: fadeInUp 1s ease 1s both;
}
.scroll-indicator span { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }
.mouse {
    width: 24px; height: 38px; border: 2px solid var(--border-hover);
    border-radius: 12px; display: flex; justify-content: center; padding-top: 8px;
}
.wheel {
    width: 3px; height: 8px; background: var(--primary); border-radius: 3px;
    animation: scroll 2s infinite;
}
@keyframes scroll { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }

/* ===== Sections ===== */
.section { padding: 100px 0; position: relative; z-index: 1; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    font-family: var(--mono); font-size: 0.85rem; color: var(--primary);
    letter-spacing: 2px; display: block; margin-bottom: 12px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
    letter-spacing: -1px;
}
.section-subtitle {
    color: var(--text-muted); max-width: 500px; margin: 16px auto 0;
    font-size: 1.05rem;
}

/* ===== About ===== */
.about-text p {
    font-size: 1.05rem; color: var(--text-muted); margin-bottom: 20px;
    max-width: 720px; margin-left: auto; margin-right: auto;
}
.about-highlights {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px; margin-top: 40px;
}
.highlight-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 20px; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--border);
    transition: var(--transition);
}
.highlight-item:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.highlight-icon { font-size: 1.5rem; flex-shrink: 0; }
.highlight-item strong { display: block; color: var(--text); font-size: 0.95rem; }
.highlight-item span { font-size: 0.85rem; color: var(--text-muted); }

/* ===== Skills ===== */
.skills-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.skill-category {
    padding: 28px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    transition: var(--transition);
    opacity: 0; transform: translateY(30px);
}
.skill-category.visible { opacity: 1; transform: translateY(0); transition: all 0.6s cubic-bezier(0.4,0,0.2,1); }
.skill-category:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.skill-category-header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.skill-icon { font-size: 1.5rem; }
.skill-category h3 { font-size: 1.1rem; font-weight: 700; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
    padding: 6px 14px; border-radius: 6px; font-size: 0.82rem;
    background: rgba(129,140,248,0.08); color: var(--primary-bright);
    border: 1px solid rgba(129,140,248,0.15); font-weight: 500;
    transition: var(--transition);
}
.skill-tag:hover {
    background: rgba(129,140,248,0.18); border-color: var(--primary);
    transform: translateY(-1px);
}

/* ===== Timeline ===== */
.timeline { max-width: 800px; margin: 0 auto; }
.timeline-item {
    display: flex; gap: 24px; margin-bottom: 48px;
    opacity: 0; transform: translateY(30px);
}
.timeline-item.visible { opacity: 1; transform: translateY(0); transition: all 0.6s cubic-bezier(0.4,0,0.2,1); }
.timeline-marker {
    display: flex; flex-direction: column; align-items: center;
    padding-top: 8px; flex-shrink: 0;
}
.timeline-dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--gradient); flex-shrink: 0;
    box-shadow: 0 0 16px rgba(99,102,241,0.4);
}
.timeline-line {
    width: 2px; flex: 1; background: linear-gradient(to bottom, var(--primary), transparent);
    margin-top: 8px;
}
.timeline-content {
    flex: 1; padding: 24px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    transition: var(--transition);
}
.timeline-content:hover { border-color: var(--border-hover); }
.timeline-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.timeline-role { font-size: 1.2rem; font-weight: 700; }
.timeline-company { color: var(--primary); font-weight: 500; margin-top: 4px; }
.timeline-meta { text-align: right; }
.timeline-date {
    font-family: var(--mono); font-size: 0.82rem; color: var(--text-muted);
    display: block;
}
.timeline-location {
    font-size: 0.8rem; color: var(--text-muted); display: block; margin-top: 2px;
}
.timeline-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.badge {
    padding: 4px 12px; border-radius: 6px; font-size: 0.78rem;
    background: rgba(34,211,238,0.08); color: var(--accent);
    border: 1px solid rgba(34,211,238,0.15); font-weight: 500;
}
.timeline-details { padding-left: 18px; }
.timeline-details li {
    position: relative; font-size: 0.92rem; color: var(--text-muted);
    margin-bottom: 10px; line-height: 1.7;
    list-style: none;
}
.timeline-details li::before {
    content: '▹'; position: absolute; left: -18px;
    color: var(--primary); font-weight: bold;
}

/* ===== Education ===== */
.education-card {
    max-width: 600px; margin: 0 auto; padding: 36px;
    border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--border); display: flex; gap: 24px;
    align-items: center; transition: var(--transition);
    opacity: 0; transform: translateY(30px);
}
.education-card.visible { opacity: 1; transform: translateY(0); transition: all 0.6s cubic-bezier(0.4,0,0.2,1); }
.education-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.edu-icon { font-size: 3rem; }
.edu-content h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.edu-field { color: var(--primary); font-weight: 500; margin-bottom: 4px; }
.edu-college { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 12px; }
.edu-meta {
    display: flex; gap: 16px; align-items: center; font-size: 0.85rem;
    color: var(--text-muted); font-family: var(--mono);
}
.edu-grade {
    padding: 4px 12px; border-radius: 6px;
    background: rgba(52,211,153,0.1); color: #34d399;
    border: 1px solid rgba(52,211,153,0.2); font-weight: 500;
}

/* ===== Achievements ===== */
.achievements-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px;
}
.achievement-card {
    text-align: center; padding: 36px 24px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    transition: var(--transition);
    opacity: 0; transform: translateY(30px);
}
.achievement-card.visible { opacity: 1; transform: translateY(0); transition: all 0.6s cubic-bezier(0.4,0,0.2,1); }
.achievement-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.achievement-icon { font-size: 2.5rem; margin-bottom: 16px; }
.achievement-number {
    font-size: 2.2rem; font-weight: 800; font-family: var(--mono);
    background: var(--gradient-text); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.achievement-label { font-weight: 600; margin: 8px 0; font-size: 1rem; }
.achievement-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ===== Contact ===== */
.contact-cards {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
    max-width: 700px; margin: 0 auto;
}
.contact-item {
    display: flex; align-items: center; gap: 16px; padding: 24px;
    border-radius: var(--radius-sm); background: var(--surface);
    border: 1px solid var(--border); transition: var(--transition);
    opacity: 0; transform: translateY(20px);
}
.contact-item.visible { opacity: 1; transform: translateY(0); transition: all 0.5s cubic-bezier(0.4,0,0.2,1); }
.contact-item:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
.contact-icon { font-size: 1.8rem; flex-shrink: 0; }
.contact-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.contact-value { font-weight: 500; font-size: 0.95rem; }

/* ===== Footer ===== */
.footer {
    padding: 32px 0; border-top: 1px solid var(--border);
    position: relative; z-index: 1;
}
.footer-content {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-content p { color: var(--text-muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }

/* ===== Animations ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        flex-direction: column; background: rgba(10,10,15,0.98);
        backdrop-filter: blur(20px); padding: 80px 32px 32px;
        gap: 4px; transition: var(--transition);
        border-left: 1px solid var(--border);
    }
    .nav-links.active { right: 0; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .hero { padding: 100px 20px 60px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .stat-number { font-size: 1.5rem; }
    .contact-cards { grid-template-columns: 1fr; }
    .timeline-item { flex-direction: column; gap: 12px; }
    .timeline-marker { flex-direction: row; padding-top: 0; }
    .timeline-line { width: auto; height: 2px; flex: 1; }
    .timeline-header { flex-direction: column; }
    .timeline-meta { text-align: left; }
    .education-card { flex-direction: column; text-align: center; }
    .footer-content { flex-direction: column; text-align: center; }
    .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
    .name-gradient { font-size: 2.2rem; }
    .section { padding: 60px 0; }
    .skills-grid { grid-template-columns: 1fr; }
    .achievements-grid { grid-template-columns: 1fr 1fr; }
    .about-highlights { grid-template-columns: 1fr; }
}
