/* ============================================
   RESET & VARIABLES
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary:     #06060f;
    --bg-secondary:   #09091a;
    --bg-card:        rgba(255, 255, 255, 0.03);
    --bg-card-hover:  rgba(255, 255, 255, 0.06);
    --cyan:           #00d4ff;
    --purple:         #7b2ff7;
    --text-primary:   #f0f0ff;
    --text-secondary: #7878a0;
    --text-muted:     #3c3c5a;
    --border:         rgba(255, 255, 255, 0.06);
    --border-cyan:    rgba(0, 212, 255, 0.2);
    --border-purple:  rgba(123, 47, 247, 0.2);
    --glow-cyan:      0 0 40px rgba(0, 212, 255, 0.12);
    --glow-purple:    0 0 40px rgba(123, 47, 247, 0.12);
    --radius:         12px;
    --radius-lg:      20px;
    --font:           'Inter', system-ui, sans-serif;
    --mono:           'Fira Code', monospace;
    --nav-h:          68px;
    --pad:            120px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 3px; }

/* ============================================
   UTILITIES
   ============================================ */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: var(--pad) 0; }

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--cyan);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 4px 14px;
    border: 1px solid var(--border-cyan);
    border-radius: 100px;
    background: rgba(0, 212, 255, 0.05);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent { color: var(--cyan); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font);
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.35), 0 8px 30px rgba(0, 0, 0, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-cyan);
}

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--cyan);
    transform: translateY(-2px);
}

/* Fade-in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   NAV
   ============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}

.nav.scrolled {
    background: rgba(6, 6, 15, 0.88);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.nav-logo .accent {
    -webkit-text-fill-color: var(--cyan);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 7px 15px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
    color: var(--cyan) !important;
    border: 1px solid var(--border-cyan) !important;
}

.nav-cta:hover {
    background: rgba(0, 212, 255, 0.1) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#particles {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    padding: calc(var(--nav-h) + 24px) 24px 100px;
}

.hero-greeting {
    font-family: var(--mono);
    font-size: 0.95rem;
    color: var(--cyan);
    margin-bottom: 16px;
    letter-spacing: 0.12em;
    opacity: 0.85;
}

.hero-name {
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 45%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    background-size: 200% 200%;
    animation: gradShift 8s ease infinite;
}

@keyframes gradShift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

.hero-roles {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-weight: 400;
    min-height: 2.2em;
}

.typing {
    color: var(--cyan);
    font-weight: 600;
}

.cursor {
    color: var(--cyan);
    animation: blink 1s step-end infinite;
    font-weight: 200;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-tagline {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 44px;
    letter-spacing: 0.04em;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 22px 44px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
}

.stat { text-align: center; }

.stat-number {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--cyan);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--mono);
}

.stat-divider {
    width: 1px;
    height: 38px;
    background: var(--border);
}

.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    opacity: 0.35;
}

.scroll-indicator span {
    font-size: 0.65rem;
    font-family: var(--mono);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.scroll-line {
    width: 1px;
    height: 38px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--bg-secondary); }

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-size: 0.97rem;
    line-height: 1.85;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.highlight-card {
    padding: 22px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    opacity: 0;
    transition: opacity 0.3s;
}

.highlight-card:hover {
    border-color: var(--border-cyan);
    background: var(--bg-card-hover);
    transform: translateX(5px);
}

.highlight-card:hover::before { opacity: 1; }

.highlight-icon { font-size: 1.4rem; margin-bottom: 10px; }

.highlight-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 7px;
}

.highlight-card p {
    font-size: 0.855rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============================================
   EXPERIENCE
   ============================================ */
.experience { background: var(--bg-primary); }

.timeline {
    display: flex;
    flex-direction: column;
    max-width: 760px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 22px;
    padding-bottom: 36px;
}

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

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 22px;
}

.marker-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: box-shadow 0.3s;
}

.marker-dot.current {
    background: var(--cyan);
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.7);
}

.marker-line {
    width: 1px;
    flex: 1;
    background: linear-gradient(to bottom, var(--border-cyan), transparent);
    margin-top: 8px;
    min-height: 40px;
}

.exp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    transition: all 0.3s;
}

.exp-card:hover {
    border-color: var(--border-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.exp-company-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.exp-company {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.company-sub {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.exp-badge {
    font-size: 0.68rem;
    font-family: var(--mono);
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.current-badge {
    background: rgba(0, 212, 255, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.exp-dates {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    padding-top: 4px;
}

.exp-role {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 4px;
}

.exp-division {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-family: var(--mono);
}

.exp-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 22px;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    font-size: 0.73rem;
    padding: 4px 10px;
    background: rgba(123, 47, 247, 0.1);
    border: 1px solid var(--border-purple);
    color: #b09df0;
    border-radius: 6px;
    font-weight: 500;
}

/* ============================================
   SKILLS
   ============================================ */
.skills { background: var(--bg-secondary); }

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s;
}

.skill-category:hover {
    border-color: var(--border-purple);
    box-shadow: var(--glow-purple);
}

.skill-cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.skill-cat-icon { font-size: 1.25rem; }

.skill-cat-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    font-size: 0.78rem;
    padding: 5px 12px;
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.12);
    color: var(--text-secondary);
    border-radius: 8px;
    font-weight: 500;
    font-family: var(--mono);
    transition: all 0.2s;
    cursor: default;
}

.skill-tag:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: var(--cyan);
    color: var(--cyan);
}

/* ============================================
   CERTIFICATIONS (below skills)
   ============================================ */
.certs-row {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 240px;
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s;
}

.cert-badge:hover {
    border-color: var(--border-cyan);
    box-shadow: var(--glow-cyan);
}

.cert-badge .cert-icon { font-size: 1.2rem; flex-shrink: 0; }

.cert-badge .cert-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.cert-badge .cert-issuer {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

/* ============================================
   EDUCATION & CERTIFICATIONS
   ============================================ */
.education { background: var(--bg-primary); }

.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 760px;
    margin: 0 auto;
}

.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: all 0.3s;
}

.edu-card:hover {
    border-color: var(--border-cyan);
    box-shadow: var(--glow-cyan);
}

.edu-icon { font-size: 2rem; flex-shrink: 0; }

.edu-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.edu-place {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.edu-dates {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

.cert-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s;
}

.cert-list:hover {
    border-color: var(--border-purple);
    box-shadow: var(--glow-purple);
}

.cert-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.cert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

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

.cert-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

.cert-name {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 3px;
}

.cert-issuer {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

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

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--bg-primary); }

.contact-content {
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 48px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s;
}

.contact-card:hover {
    border-color: var(--border-cyan);
    background: var(--bg-card-hover);
    transform: translateX(6px);
}

.contact-card-dim:hover {
    border-color: var(--border);
    transform: none;
    cursor: default;
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.07);
    border: 1px solid var(--border-cyan);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--cyan);
    font-weight: 700;
    flex-shrink: 0;
    font-family: var(--mono);
}

.contact-label {
    display: block;
    font-size: 0.68rem;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.contact-value {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
    text-align: center;
}

.footer p {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    :root { --pad: 80px; }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: rgba(6, 6, 15, 0.96);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        gap: 4px;
    }

    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }

    .about-content { grid-template-columns: 1fr; gap: 40px; }
    .skills-grid   { grid-template-columns: 1fr; }

    .hero-stats { gap: 18px; padding: 18px 28px; }

    .timeline-item { grid-template-columns: 24px 1fr; gap: 14px; }

    .exp-header { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-stats   { gap: 14px; padding: 16px 20px; }
}
