/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #06b6d4; /* cyan */
    --primary-dark: #0e7490;
    --secondary-color: #22c55e; /* green accent */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-alt: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    /* Sci‑fi theme accents */
    --accent-cyan: #22d3ee;
    --accent-purple: #a78bfa;
    --accent-green: #34d399;
    --line-soft: rgba(2, 6, 23, 0.08);
    --glow-cyan: 0 0 24px rgba(34, 211, 238, 0.35);
    --glow-purple: 0 0 24px rgba(167, 139, 250, 0.35);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 0;
    background: radial-gradient(1000px 600px at 10% 20%, #0b1220 0%, #0b1220 45%, transparent 46%) , linear-gradient(180deg, #0b1220 0%, #0f172a 60%, #0b1220 100%);
    color: white;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-themed {
    position: relative;
    overflow: hidden;
}

.hero-themed::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34,211,238,0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167,139,250,0.12) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px;
    background-position: 0 0, 0 0;
    mix-blend-mode: screen;
    opacity: 0.35;
    pointer-events: none;
    animation: gridPan 30s linear infinite;
}

.hero-themed::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(#ffffff50 1px, transparent 1px) 0 0/60px 60px,
        radial-gradient(#ffffff30 1px, transparent 1px) 20px 20px/80px 80px,
        linear-gradient(transparent 60%, rgba(255,255,255,0.06)),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 2px, transparent 3px, transparent 4px);
    mix-blend-mode: soft-light;
    pointer-events: none;
    animation: scanlines 8s linear infinite, twinkle 6s ease-in-out infinite alternate;
}

@keyframes scanlines {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 0 0, 0 20px; }
}

@keyframes gridPan {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 80px 80px, 80px 80px; }
}

.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(34,211,238,0.35);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 0 2px rgba(34,211,238,0.22) inset, 0 20px 60px rgba(167,139,250,0.12);
}

.hero-image-placeholder::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    filter: blur(40px);
    background: radial-gradient(circle at 50% 50%, rgba(34,211,238,0.22), rgba(167,139,250,0.16), transparent 60%);
    z-index: -1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(34,211,238,0.35);
    backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow: 0 0 0 2px rgba(34,211,238,0.22) inset, 0 20px 60px rgba(167,139,250,0.12);
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.placeholder-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.placeholder-content span {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.placeholder-content p {
    font-size: 1.2rem;
    font-weight: 500;
}

.placeholder-content.small span {
    font-size: 2rem;
}

.placeholder-content.small p {
    font-size: 0.9rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-location {
    font-size: 1.1rem;
    opacity: 0.9;
}

.social-row {
    display: flex;
    gap: .6rem;
}
.social-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.6);
    color: white;
    text-decoration: none;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.15) inset, 0 8px 20px rgba(0,0,0,0.15);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.social-btn:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.25) inset, 0 12px 28px rgba(0,0,0,0.2);
}

.hero-buttons-primary {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

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

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-neo {
    position: relative;
    box-shadow: 0 0 0 2px rgba(34,211,238,0.35) inset, 0 8px 24px rgba(167,139,250,0.22);
}
.btn-neo:after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: conic-gradient(from 0deg, rgba(34,211,238,0.55), rgba(167,139,250,0.55), rgba(34,211,238,0.55));
    filter: blur(14px);
    z-index: -1;
    opacity: 0.6;
    animation: glowSpin 6s linear infinite;
}
.btn-neo-outline {
    border-color: rgba(255,255,255,0.7);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.2) inset;
}
@keyframes glowSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.miran-btn {
    background: linear-gradient(135deg, rgba(34,211,238,0.15) 0%, rgba(167,139,250,0.15) 100%);
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.miran-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34,211,238,0.3) 0%, rgba(167,139,250,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.miran-btn:hover::before {
    opacity: 1;
}

.miran-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 0 0 2px rgba(34,211,238,0.4) inset, 0 12px 32px rgba(167,139,250,0.3), var(--glow-cyan);
}

.miran-btn span,
.miran-btn {
    position: relative;
    z-index: 1;
}

/* Miran button on light backgrounds (experience page) */
.section-alt .miran-btn,
.exp-body .miran-btn {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(34,211,238,0.3), 0 0 0 2px rgba(167,139,250,0.2) inset;
}

.section-alt .miran-btn:hover,
.exp-body .miran-btn:hover {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    box-shadow: 0 6px 24px rgba(34,211,238,0.4), 0 0 0 2px rgba(167,139,250,0.3) inset, var(--glow-cyan);
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background:
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    position: relative;
}
.section-alt::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(2,6,23,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(2,6,23,0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    mix-blend-mode: multiply;
    opacity: 1;
}

/* Education + Experience Grid */
.edu-exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 968px) {
    .edu-exp-grid {
        grid-template-columns: 1fr;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 2px;
    box-shadow: var(--glow-cyan), var(--glow-purple);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-alt);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    overflow: hidden;
    position: relative;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.contact-image {
    object-position: center 50%;
}

/* Experience Section */
.experience-timeline {
    position: relative;
    padding-left: 2rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
    opacity: .35;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 40% 40%, var(--accent-cyan), var(--accent-purple));
    border-radius: 50%;
    border: 4px solid #ffffff;
    z-index: 1;
    box-shadow: var(--glow-cyan), var(--glow-purple);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.experience-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 1rem;
}

.experience-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-right: 1rem;
}

.experience-company {
    color: var(--accent-purple);
    font-weight: 600;
    font-size: 1.1rem;
}

.experience-type {
    background: var(--bg-alt);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.experience-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.experience-description {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.experience-details {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.project-highlight {
    background: linear-gradient(135deg, rgba(34,211,238,0.12) 0%, rgba(167,139,250,0.12) 100%);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid var(--accent-cyan);
}

.project-highlight strong {
    color: var(--accent-purple);
}

.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: rgba(167,139,250,0.10);
    color: var(--accent-purple);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(167,139,250,0.35);
}

.experience-image-placeholder {
    margin-top: 1.5rem;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-alt);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.experience-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.experience-image-contain {
    object-fit: contain;
}

/* Education Section */
.education-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.education-header {
    margin-bottom: 1.5rem;
}

.education-header h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.education-degree {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 1.1rem;
}

.education-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.education-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.education-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.education-details p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skills-category {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--line-soft);
    padding-bottom: 1rem;
}

.skill-group {
    margin-bottom: 1.5rem;
}

.skill-group h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: var(--bg-alt);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-tag:hover {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan), var(--glow-purple);
}

/* Experience CTA */
.experience-cta {
    max-width: 840px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--line-soft);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.experience-summary {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

/* Learning Tracker */
.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.learning-item {
    background: white;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 1.25rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
    perspective: 800px;
}
.learning-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(167,139,250,0.35);
}
.learning-header h3 {
    margin-top: .35rem;
    font-size: 1.1rem;
}
.learning-bullets {
    margin: .75rem 0 .5rem 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.learning-footer {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .5rem;
}
.chip {
    background: var(--bg-alt);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    padding: .2rem .6rem;
    font-size: .8rem;
}
.learning-pill {
    display: inline-block;
    background: rgba(34,211,238,0.10);
    color: var(--accent-cyan);
    border: 1px solid rgba(34,211,238,0.35);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--glow-cyan);
}
.learning-desc {
    color: var(--text-secondary);
}
.learning-note {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Hero decorative dots */
.hero-decor .dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 20px rgba(52,211,153,0.7);
    animation: drift 12s ease-in-out infinite;
}
.hero-decor .dot-a { top: 10%; right: 12%; animation-delay: 0s; }
.hero-decor .dot-b { top: 45%; right: 6%; width: 8px; height: 8px; animation-delay: 2s; background: var(--accent-cyan); box-shadow: 0 0 20px rgba(34,211,238,0.7); }
.hero-decor .dot-c { bottom: 12%; right: 18%; width: 12px; height: 12px; animation-delay: 4s; }
@keyframes drift {
    0%,100% { transform: translate(0,0); }
    50% { transform: translate(-6px, -8px); }
}

/* Favorites */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.favorite-card {
    background: white;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}
.favorite-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.favorite-cover {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, rgba(34,211,238,0.14), rgba(167,139,250,0.16));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.favorite-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.favorite-meta {
    padding: .75rem 1rem;
    display: flex;
    justify-content: flex-end;
}

/* Suggest a Topic */
.suggest-card {
    background: white;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    max-width: 900px;
    margin: 1.5rem auto 0 auto;
}
.suggest-sub {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.suggest-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.suggest-form .field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.suggest-form label {
    font-size: .9rem;
    color: var(--text-secondary);
}
.suggest-form input,
.suggest-form textarea {
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    padding: .7rem .9rem;
    font: inherit;
    outline: none;
    background: var(--bg-secondary);
}
.suggest-form textarea {
    grid-column: 1 / -1;
}
.suggest-form button {
    width: fit-content;
    grid-column: 1 / -1;
}

@media (max-width: 720px) {
    .suggest-form {
        grid-template-columns: 1fr;
    }
}
/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-alt);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--line-soft);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.contact-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.contact-link {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.contact-text {
    color: var(--text-primary);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Shared Page Hero (Experience, Contact, Links) */
.page-hero {
    margin-top: 80px;
    padding: 3.5rem 0 2rem 0;
    color: white;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 500px at 10% 0%, #0b1220 0%, #0b1220 45%, rgba(11,18,32,0.0) 46%),
        linear-gradient(115deg, rgba(34,211,238,0.18) 0%, rgba(167,139,250,0.18) 100%),
        linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34,211,238,0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167,139,250,0.12) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 44px 44px, 44px 44px, 22px 22px;
    background-position: 0 0, 0 0, 0 0;
    mix-blend-mode: screen;
    pointer-events: none;
    animation: gridPan 30s linear infinite, scanlines 8s linear infinite;
}
.page-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
}
.page-subtitle {
    opacity: 0.95;
    margin-top: .5rem;
}
.back-link {
    background: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    padding: .6rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.25);
    transition: var(--transition);
}
.back-link:hover {
    background: white;
    color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .honors-grid {
        grid-template-columns: 1fr;
    }

    .experience-timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        padding-left: 2rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem 0;
        min-height: 60vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation on Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Experience page: TOC and cards */
.exp-toc {
    position: sticky;
    top: 90px;
    align-self: start;
    height: fit-content;
}
.exp-toc-card {
    background: white;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 1rem;
}
.exp-toc-card h3 {
    font-size: 1.1rem;
    margin-bottom: .5rem;
}
.exp-toc-card ul {
    list-style: none;
}
.exp-toc-card li {
    margin: .35rem 0;
}
.exp-toc-card a {
    text-decoration: none;
    color: var(--text-primary);
}
.exp-toc-card a:hover {
    color: var(--primary-dark);
}
.exp-card {
    background: white;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.exp-toggle {
    width: 100%;
    text-align: left;
    background: linear-gradient(135deg, rgba(34,211,238,0.09) 0%, rgba(167,139,250,0.09) 100%);
    border: none;
    padding: 1rem 1.25rem;
    cursor: pointer;
}
.exp-toggle .experience-header {
    margin-bottom: .35rem;
}
.exp-meta-inline {
    color: var(--text-secondary);
    font-size: .95rem;
}
.exp-body {
    padding: 1rem 1.25rem 1.25rem 1.25rem;
    display: none;
}
.exp-card.open .exp-body,
.exp-toggle[aria-expanded="true"] + .exp-body {
    display: block;
}

/* Media page */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.media-card {
    background: white;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    transition: var(--transition);
}
.media-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.media-icon {
    font-size: 2rem;
}
.media-link {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
}

