/* ===========================
   VARIABLES & RESET
   =========================== */
:root {
    --bg:            #0d1117;
    --bg-secondary:  #161b22;
    --bg-card:       #21262d;
    --border:        #30363d;
    --accent:        #58a6ff;
    --accent-hover:  #79b8ff;
    --text:          #e6edf3;
    --text-secondary:#c9d1d9;
    --text-muted:    #8b949e;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius:    8px;
    --radius-lg: 12px;
    --transition: 0.2s ease;
    --nav-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===========================
   UTILITIES
   =========================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 6rem 0; }
.section-alt { /* background handled by #bg-overlay via GSAP */ }

.section-header { margin-bottom: 3rem; }

.section-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
}

.accent  { color: var(--accent); }
.keyword { color: var(--accent); font-weight: 600; }

/* ===========================
   CHIPS
   =========================== */
.chip {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.25);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent);
    font-family: var(--font-mono);
}

.chip.sm {
    padding: 0.2rem 0.55rem;
    font-size: 0.74rem;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #0d1117;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-links a.active:not(.nav-cta) {
    color: var(--accent);
}

.nav-cta.active {
    background: rgba(88, 166, 255, 0.2) !important;
    border-color: var(--accent) !important;
}

.nav-cta {
    color: var(--accent) !important;
    background: rgba(88, 166, 255, 0.08);
    border: 1px solid rgba(88, 166, 255, 0.25);
    padding: 0.4rem 1rem;
    border-radius: var(--radius);
    transition: background var(--transition), border-color var(--transition);
}
.nav-cta:hover {
    color: var(--accent) !important;
    background: rgba(88, 166, 255, 0.18) !important;
    border-color: var(--accent) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ===========================
   BACKGROUND OVERLAY (GSAP controlled)
   =========================== */
#bg-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: #0d1117;
    pointer-events: none;
}

/* ===========================
   HERO
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.hero-bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 65% at 75% 35%, rgba(88, 166, 255, 0.15) 0%, transparent 100%),
        radial-gradient(ellipse 35% 40% at 18% 72%, rgba(88, 166, 255, 0.08) 0%, transparent 100%);
}

.hero-bg-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(88, 166, 255, 0.12) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 55% 65% at 74% 30%, rgba(0,0,0,0.55) 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 55% 65% at 74% 30%, rgba(0,0,0,0.55) 0%, transparent 100%);
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 55%);
    z-index: 0;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    border: 3px solid var(--bg);
    filter: grayscale(15%);
    transition: filter 0.4s ease;
    will-change: transform;
}

.profile-img:hover { filter: grayscale(0%); }

/* ===========================
   ABOUT
   =========================== */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: start;
}

.about-bio p {
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 1.03rem;
    margin-bottom: 1.1rem;
}
.about-bio p:last-child { margin-bottom: 0; }

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: border-color var(--transition), transform var(--transition);
}
.about-card:hover {
    border-color: rgba(88, 166, 255, 0.4);
    transform: translateY(-2px);
}

.about-card-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    background: rgba(88, 166, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.about-card-content h3 {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.about-card-content p {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.about-card-content p strong { color: var(--text-secondary); }

/* ===========================
   EXPERIENCE TIMELINE
   =========================== */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), rgba(48,54,61,0.4) 85%, transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: calc(-3rem + 1px);
    top: 1.35rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
}

.timeline-dot.current {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.15);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color var(--transition);
}
.timeline-card:hover { border-color: rgba(88, 166, 255, 0.3); }

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.timeline-role {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 0.88rem;
    color: var(--text-muted);
}
.timeline-company i { margin-right: 0.3rem; }

.timeline-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.timeline-period {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.timeline-period i { margin-right: 0.3rem; }

.timeline-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    font-weight: 600;
}
.current-badge {
    background: rgba(88, 166, 255, 0.12);
    color: var(--accent);
    border: 1px solid rgba(88, 166, 255, 0.3);
}

.timeline-bullets { margin-bottom: 1rem; }

.timeline-bullets li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.4rem;
}
.timeline-bullets li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.7rem;
    top: 0.2em;
}

.timeline-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ===========================
   SKILLS
   =========================== */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.skills-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.skills-category-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-info {
    margin-bottom: 0.3rem;
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.skill-bar-track {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 2px;
    transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-bar.animated { width: var(--w); }

/* ===========================
   EDUCATION & CERTS
   =========================== */
.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.edu-column-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: border-color var(--transition);
}
.edu-card:hover { border-color: rgba(88, 166, 255, 0.3); }

.edu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.edu-card-header h4 {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
}

.edu-grade {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    background: rgba(88, 166, 255, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.edu-institution,
.edu-period {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.edu-institution i,
.edu-period i { margin-right: 0.3rem; }

.edu-subjects {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color var(--transition), transform var(--transition);
}
.cert-card:hover {
    border-color: rgba(88, 166, 255, 0.3);
    transform: translateX(4px);
}

.cert-link-icon {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: auto;
    flex-shrink: 0;
    transition: color var(--transition);
}
.cert-card:hover .cert-link-icon { color: var(--accent); }

.cert-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: rgba(88, 166, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.cert-content h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}
.cert-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===========================
   CONTACT
   =========================== */
.contact .section-header { text-align: center; }

.contact-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto 2.5rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.contact-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}
.contact-btn-linkedin:hover {
    border-color: #0a66c2;
    color: #0a66c2;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
}
.footer p { color: var(--text-muted); font-size: 0.85rem; }
.footer-sub { margin-top: 0.25rem; font-size: 0.8rem !important; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
    .skills-grid { grid-template-columns: 1fr; }
    .education-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* mobile nav */
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0; right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 0;
    }
    .nav-links.open { display: flex; }
    .nav-links li a { display: block; padding: 0.75rem 1.5rem; }
    .nav-cta { margin: 0.5rem 1.5rem; text-align: center; display: block; }
    .nav-toggle { display: block; }

    /* hero */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    .hero-image { order: -1; }
    .hero-image-wrapper { width: 200px; height: 200px; }
    .hero-chips, .hero-actions { justify-content: center; }

    /* about */
    .about-grid { grid-template-columns: 1fr; }

    /* timeline */
    .timeline-header { flex-direction: column; }
    .timeline-meta { align-items: flex-start; }

    .section { padding: 4rem 0; }
}

@media (max-width: 480px) {
    .nav-logo { font-size: 1rem; }
    .hero-name { font-size: 2rem; }
    .hero-title { font-size: 1.1rem; }
    .timeline { padding-left: 2rem; }
}
