/* =========================================================
   Producer / Tech Aesthetic — Dark Mode
   Palette:
     BG       : #0a0a0d  (near-black graphite)
     Card BG  : #111116
     Accent   : #9D00FF  (Electric Violet)
     Secondary: #00F0FF  (Cyan / Turquoise)
     Pink     : #FF10F0  (Neon Pink, sparingly)
     Text Hi  : #ffffff
     Text Lo  : #9696a0  (Silver-Grey)
========================================================= */

/* ── Variables ───────────────────────────────────────── */
:root {
    --bg:           #0a0a0d;
    --bg-card:      #111116;
    --bg-nav:       rgba(10, 10, 13, 0.94);

    --white:        #ffffff;
    --silver:       #9696a0;
    --border:       #22222d;

    --purple:       #9D00FF;
    --purple-glow:  rgba(157, 0, 255, 0.35);
    --purple-soft:  rgba(157, 0, 255, 0.08);

    --cyan:         #00F0FF;
    --cyan-glow:    rgba(0, 240, 255, 0.35);
    --cyan-soft:    rgba(0, 240, 255, 0.07);

    --pink:         #FF10F0;
    --pink-glow:    rgba(255, 16, 240, 0.25);

    --radius:       10px;
    --radius-sm:    6px;
    --transition:   0.25s ease;

    --sans: 'Inter', sans-serif;
    --mono: 'Space Mono', monospace;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--silver);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.7;
    background-image:
        linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
    background-size: 36px 36px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--white);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
p { margin-bottom: 0; }

a { color: var(--purple); text-decoration: none; transition: color var(--transition), text-shadow var(--transition); }
a:hover { color: var(--cyan); text-shadow: 0 0 8px var(--cyan-glow); }

img { display: block; max-width: 100%; }
ul  { list-style: none; }

/* ── Layout helpers ──────────────────────────────────── */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
}

.text-accent {
    color: var(--purple);
    text-shadow: 0 0 12px var(--purple-glow);
}

.section-header {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2.8rem;
}

.section-sub {
    text-align: center;
    margin-top: -2rem;
    margin-bottom: 2.5rem;
    font-size: 0.92rem;
}

.line {
    width: 48px;
    height: 2px;
    background: var(--purple);
    box-shadow: 0 0 8px var(--purple-glow);
    margin: 12px 0 20px;
    border-radius: 2px;
}

section { padding: 88px 0; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}
.btn-glow {
    background: transparent;
    border: 1.5px solid var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 12px var(--cyan-glow) inset;
}
.btn-glow:hover  { background: var(--cyan); color: var(--bg); box-shadow: 0 0 22px var(--cyan-glow); text-shadow: none; }
.btn-ghost {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--silver);
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); box-shadow: 0 0 10px var(--purple-glow); text-shadow: none; }

/* ── Progress bars ───────────────────────────────────── */
.progress-track { height: 5px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.progress-fill  { height: 100%; background: linear-gradient(90deg, var(--purple), var(--cyan)); border-radius: 999px; box-shadow: 0 0 8px var(--cyan-glow); transition: width 1s cubic-bezier(.4,0,.2,1); }

/* ═══════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════ */
.header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}
.header-bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 55% at 12% 55%, var(--purple-glow), transparent),
        radial-gradient(ellipse 40% 35% at 82% 22%, var(--cyan-glow),   transparent);
    z-index: 0;
    pointer-events: none;
}
.header-inner { position: relative; z-index: 1; }

.social-icons { display: flex; gap: 18px; margin-bottom: 34px; }
.social-icons a { color: var(--silver); font-size: 1.3rem; transition: color var(--transition), transform var(--transition); }
.social-icons a:hover { color: var(--purple); transform: translateY(-3px); text-shadow: 0 0 10px var(--purple-glow); }

.header-subtitle {
    font-family: var(--mono);
    color: var(--cyan);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}
.header-title {
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 40%, #7878a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.header-mono {
    font-family: var(--mono);
    font-size: clamp(0.78rem, 1.8vw, 0.96rem);
    color: var(--silver);
    margin-bottom: 32px;
}
.header-mono .link-ucsp { color: var(--cyan); -webkit-text-fill-color: var(--cyan); }
.header-mono .link-ucsp:hover { color: var(--white); -webkit-text-fill-color: var(--white); }
.header-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition), padding var(--transition);
}

.navbar.scrolled {
    background: var(--bg-nav);
    border-bottom-color: var(--border);
    padding: 26px 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex-shrink: 0;
}
.brand-title {
    font-family: var(--mono);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--purple);
    text-shadow: 0 0 8px var(--purple-glow);
}
.brand-subtitle {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--silver);
    margin-top: 1px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
}
.nav-link {
    color: var(--silver);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 7px 11px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
    color: var(--purple);
    background: var(--purple-soft);
    text-shadow: 0 0 8px var(--purple-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--silver); border-radius: 2px;
    transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════
   MAIN WRAPPER
═══════════════════════════════════════════════════════ */
.main-content { padding-top: 16px; }

/* ═══════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════ */
.about-section { padding-top: 64px; }

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}
.about-card {
    background: var(--bg-card);
    padding: 30px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.about-card:hover { transform: translateY(-6px); border-color: var(--purple); box-shadow: 0 12px 36px rgba(0,0,0,0.5); }

.card-heading { font-size: 1.45rem; font-weight: 300; color: var(--white); }
.about-role { font-family: var(--mono); font-size: 0.75rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }

.info-list li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.89rem; }
.info-list li:last-child { border-bottom: none; }
.info-label { font-weight: 700; color: var(--white); font-size: 0.8rem; min-width: 82px; flex-shrink: 0; }

.expertise-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.expertise-item:last-child { margin-bottom: 0; }
.expertise-icon { font-size: 1.3rem; color: var(--purple); margin-top: 2px; flex-shrink: 0; width: 26px; text-align: center; }
.expertise-item h6 { font-size: 0.92rem; margin-bottom: 3px; }
.expertise-item p  { font-size: 0.85rem; line-height: 1.55; }

/* ═══════════════════════════════════════════════════════
   RESUME SECTION
═══════════════════════════════════════════════════════ */
.resume-section { padding-top: 80px; }

/* Instead of column, make it exactly like About section */
.resume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.resume-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 28px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.resume-card:hover {
    transform: translateY(-6px);
    border-color: var(--purple);
    box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}

.resume-item {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
}
.resume-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.resume-date {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--purple);
    background: var(--purple-soft);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.resume-item h5 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 8px;
}
.resume-item p { font-size: 0.9rem; line-height: 1.6; }

/* Skills inside Resume */
.skill-item { margin-bottom: 18px; }
.skill-item:last-child { margin-bottom: 0; }

.skill-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}
.skill-pct {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--silver);
}

/* ═══════════════════════════════════════════════════════
   COURSES
═══════════════════════════════════════════════════════ */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.course-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan);
    box-shadow: 0 10px 32px var(--cyan-soft);
}

.course-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--purple-soft);
    border: 1px solid rgba(157,0,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--purple);
    flex-shrink: 0;
}

.course-info { flex: 1; min-width: 0; }

.course-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);
}

.course-desc { font-size: 0.84rem; line-height: 1.6; margin-bottom: 12px; }

.course-professor {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-family: var(--mono);
}
.course-professor i { color: var(--cyan); }
.course-professor a { color: var(--silver); }
.course-professor a:hover { color: var(--cyan); }

/* ═══════════════════════════════════════════════════════
   STATS
═══════════════════════════════════════════════════════ */
.stats-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 52px 0;
    margin: 16px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item i { font-size: 1.9rem; color: var(--silver); margin-bottom: 10px; display: block; }
.stat-number { font-size: 2.5rem; font-weight: 800; font-family: var(--mono); line-height: 1; margin-bottom: 6px; }
.stat-item p { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; }

/* ═══════════════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════════════ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 26px;
}
.project-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.project-card:hover { transform: translateY(-7px); border-color: var(--cyan); box-shadow: 0 14px 40px rgba(0,240,255,0.1); }

.project-img { height: 205px; overflow: hidden; background: #0d0d12; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-img img { transform: scale(1.04); }

.project-img-portfolio { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #120820, #0a1525); }
.portfolio-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(157,0,255,0.35); }
.portfolio-placeholder i { font-size: 2.8rem; }
.portfolio-placeholder span { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; }

.project-content { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.project-header { display: flex; justify-content: space-between; align-items: flex-start; }
.project-header h4 { font-size: 1.1rem; }
.project-links { display: flex; gap: 12px; font-size: 1.1rem; flex-shrink: 0; padding-top: 2px; }
.project-links a { color: var(--silver); }
.project-links a:hover { color: var(--purple); text-shadow: 0 0 8px var(--purple-glow); }
.tech-stack { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--pink); }
.project-content > p { font-size: 0.86rem; line-height: 1.65; flex: 1; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 700; font-family: var(--mono); text-transform: uppercase; letter-spacing: 1px; color: var(--cyan); margin-top: auto; padding-top: 4px; }
.read-more i { transition: transform var(--transition); }
.read-more:hover { color: var(--white); text-shadow: 0 0 6px var(--cyan-glow); }
.read-more:hover i { transform: translateX(5px); }

/* ═══════════════════════════════════════════════════════
   NETWORK
═══════════════════════════════════════════════════════ */
.network-category {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--purple);
    margin-bottom: 20px;
    margin-top: 36px;
    padding-left: 14px;
    border-left: 3px solid var(--purple);
}
.network-category:first-of-type { margin-top: 0; }
.network-category--professors { color: var(--cyan); border-left-color: var(--cyan); }

.network-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.network-grid--professors { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.network-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.network-card:hover { transform: translateY(-5px); border-color: var(--pink); box-shadow: 0 10px 28px var(--pink-glow); }
.network-card--professor { flex-direction: row; text-align: left; padding: 20px 22px; gap: 16px; }
.network-card--professor:hover { border-color: var(--cyan); box-shadow: 0 10px 28px var(--cyan-glow); }

.avatar-ring {
    width: 68px; height: 68px; border-radius: 50%;
    border: 2px solid var(--purple);
    background: linear-gradient(135deg, #1a0030, #0a1020);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: rgba(157,0,255,0.3);
    box-shadow: 0 0 14px var(--purple-glow);
    flex-shrink: 0;
}
.avatar-ring--professor { border-color: var(--cyan); box-shadow: 0 0 14px var(--cyan-glow); color: rgba(0,240,255,0.3); }

.network-info { flex: 1; min-width: 0; }
.net-name { font-size: 0.96rem; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.network-card--professor .net-name { white-space: normal; }
.net-role { font-family: var(--mono); font-size: 0.7rem; color: var(--silver); margin-bottom: 10px; line-height: 1.4; }

.network-link {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-family: var(--mono); font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--silver);
    transition: all var(--transition);
}
.network-link:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-soft); text-shadow: none; box-shadow: 0 0 8px var(--cyan-glow); }
.network-link--linkedin:hover { border-color: #0A66C2; color: #0A66C2; background: rgba(10,102,194,0.08); box-shadow: none; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 60px 0 32px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-text h3 { font-size: 1.55rem; margin-bottom: 8px; }
.footer-text p  { font-size: 0.88rem; max-width: 460px; }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { color: var(--silver); font-size: 1.35rem; transition: color var(--transition), transform var(--transition); }
.footer-socials a:hover { color: var(--purple); transform: translateY(-3px); text-shadow: 0 0 10px var(--purple-glow); }
.copyright { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.copyright a { color: rgba(255,255,255,0.4); }
.copyright a:hover { color: var(--cyan); text-shadow: none; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 860px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .navbar-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 14px 22px 18px;
        gap: 2px;
    }
    .navbar-nav.open { display: flex; }
    .navbar { position: relative; }
    .hamburger { display: flex; }
    .header { padding: 100px 0 56px; }
    .header-cta { gap: 12px; }
    .courses-grid { grid-template-columns: 1fr; }
    .network-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .project-img { height: 175px; }
    
    .resume-card { padding: 24px 20px; }
}

@media (max-width: 480px) {
    section { padding: 60px 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .network-grid { grid-template-columns: 1fr 1fr; }
    .network-grid--professors { grid-template-columns: 1fr; }
    .network-card--professor { flex-direction: column; text-align: center; }
    .network-card--professor .net-role { text-align: center; }
}
