/* ============================
   DESIGN TOKENS
   ============================ */
:root {
    /* Colors – Dark theme (default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161d;
    --bg-card-hover: #1c1c25;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #33ced3;
    --accent-dim: rgba(51, 206, 211, 0.12);
    --accent-glow: rgba(51, 206, 211, 0.25);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --gradient: linear-gradient(135deg, #33ced3, #20e3b2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --nav-height: 72px;
}

/* Light theme */
[data-theme="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #f4f4f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f9f9fb;
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;
    --accent: #0d9ea3;
    --accent-dim: rgba(13, 158, 163, 0.08);
    --accent-glow: rgba(13, 158, 163, 0.15);
    --border: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover { opacity: 0.85; }

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================
   TYPOGRAPHY
   ============================ */
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.btn-primary {
    background: var(--gradient);
    color: #0a0a0f;
    box-shadow: 0 2px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent-dim);
    transform: translateY(-2px);
    opacity: 1;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.82rem;
    background: var(--gradient);
    color: #0a0a0f;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--accent-glow);
    opacity: 1;
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 100;
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(250, 250, 250, 0.85);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo:hover {
    opacity: 1;
}

.nav-logo img {
    height: 56px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--accent-dim);
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

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

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    max-width: 100vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: 10%;
    right: -10%;
    filter: blur(80px);
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 20px); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.hero-greeting {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero-role {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 1.5rem;
    min-height: 2em;
}

.role-prefix { color: var(--text-secondary); }
.typewriter { color: var(--accent); font-weight: 600; }
.cursor {
    color: var(--accent);
    animation: blink 1s infinite;
    font-weight: 300;
}

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

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-desc strong { color: var(--text-primary); }

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-socials {
    display: flex;
    gap: 16px;
}

.hero-socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.hero-socials a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--accent-glow);
    opacity: 1;
}

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

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

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.hero-image-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0.15;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================
   SECTIONS
   ============================ */
.section {
    padding: 6rem 0;
    overflow-x: hidden;
}

.section:nth-child(even) {
    background: var(--bg-secondary);
}

/* ============================
   ABOUT
   ============================ */
.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 3px solid var(--accent);
    box-shadow: var(--shadow-lg);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-content strong { color: var(--text-primary); }

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================
   EXPERIENCE (Timeline)
   ============================ */
.timeline {
    position: relative;
    margin-top: 3rem;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 28px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--accent-dim);
    z-index: 1;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.timeline-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

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

.timeline-company {
    display: flex;
    align-items: center;
    gap: 12px;
}

.company-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border);
}

.timeline-company h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.company-name {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    font-family: var(--font-mono);
    white-space: nowrap;
}

.timeline-details {
    list-style: none;
    margin-bottom: 1rem;
}

.timeline-details li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.timeline-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.timeline-details li strong { color: var(--text-primary); }

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.timeline-tags span {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 500;
    font-family: var(--font-mono);
}

/* Collapsible bullet points */
.collapsible-hidden {
    display: none;
}

.collapsible.expanded .collapsible-hidden {
    display: list-item;
}

.collapse-toggle {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
    transition: opacity 0.2s;
}

.collapse-toggle:hover {
    opacity: 0.75;
}

/* ============================
   SKILLS
   ============================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

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

.skill-group:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.skill-group-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
    display: flex;
    align-items: center;
}

.skill-group h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}

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

.skill-tags span {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: var(--accent-dim);
    color: var(--text-primary);
    font-family: var(--font-mono);
    transition: all 0.2s;
    cursor: default;
}

.skill-tags span:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ============================
   PROJECTS
   ============================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-info {
    padding: 1.2rem 1.5rem;
}

.project-tech {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0.3rem 0 0.8rem;
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-links a {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.project-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    opacity: 1;
}

/* ============================
   PUBLICATIONS
   ============================ */
.publications-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.pub-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.pub-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.pub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-content {
    padding: 1.5rem 1.5rem 1.5rem 0;
}

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

.pub-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0.3rem 0;
    line-height: 1.4;
}

.pub-content h3 a {
    color: var(--text-primary);
    transition: color 0.2s;
}

.pub-content h3 a:hover { color: var(--accent); opacity: 1; }

.pub-authors {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.pub-authors a {
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.pub-authors a:hover {
    color: var(--accent);
    text-decoration-color: transparent;
    opacity: 1;
}

.pub-content > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.pub-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

/* ============================
   EDUCATION
   ============================ */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

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

.edu-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.edu-icon {
    font-size: 2rem;
    flex-shrink: 0;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.edu-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.edu-degree {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.edu-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 0.25rem;
}

/* ============================
   TESTIMONIALS (LinkedIn Style)
   ============================ */
.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.li-rec-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.li-rec-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.li-rec-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}

.li-rec-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0a66c2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    text-decoration: none;
    transition: opacity 0.2s;
}

.li-rec-avatar:hover {
    opacity: 0.85;
}

.li-rec-meta {
    flex: 1;
    min-width: 0;
}

.li-rec-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.li-rec-name:hover {
    color: #0a66c2;
    text-decoration: underline;
    opacity: 1;
}

.li-rec-title {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 2px;
}

.li-rec-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.li-rec-logo {
    flex-shrink: 0;
    opacity: 0.7;
}

.li-rec-logo-link {
    flex-shrink: 0;
    margin-left: auto;
    transition: opacity 0.2s;
    opacity: 0.7;
    display: flex;
}

.li-rec-logo-link:hover {
    opacity: 1;
}

.li-rec-body {
    padding-left: 60px;
}

.li-rec-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.li-rec-body p:last-child {
    margin-bottom: 0;
}

/* Collapsible recommendation body */
.rec-collapsible {
    max-height: 5.5em;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}

.rec-collapsible::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3em;
    background: linear-gradient(transparent, var(--bg-card));
    pointer-events: none;
    transition: opacity 0.3s;
}

.rec-collapsible.expanded {
    max-height: 600px;
}

.rec-collapsible.expanded::after {
    opacity: 0;
}

.rec-read-more {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    padding: 6px 0;
    margin-left: 60px;
    transition: opacity 0.2s;
}

.rec-read-more:hover {
    opacity: 0.75;
}

@media (min-width: 769px) {
    .rec-collapsible {
        max-height: none;
    }

    .rec-collapsible::after {
        display: none;
    }

    .rec-read-more {
        display: none;
    }
}

.testimonials-cta {
    text-align: center;
    margin-top: 2.5rem;
}

@media (max-width: 768px) {
    .li-rec-body {
        padding-left: 0;
        margin-top: 0.5rem;
    }

    .li-rec-logo {
        display: none;
    }
}

/* ============================
   CONTACT
   ============================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    text-decoration: none;
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 8px 30px var(--accent-glow);
    opacity: 1;
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    word-break: break-all;
}

/* ============================
   FOOTER
   ============================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding-top: 3rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-logo img {
    height: 44px;
    width: auto;
}

.footer-left p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-links a:hover { color: var(--accent); opacity: 1; }

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-socials a:hover { color: var(--accent); opacity: 1; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ============================
   BACK TO TOP
   ============================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s ease;
    z-index: 90;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* ============================
   SCROLL REVEAL
   ============================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-content { order: 2; }
    .hero-image { order: 1; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-socials { justify-content: center; }
    .hero-image-wrapper { width: 280px; height: 280px; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-image { max-width: 240px; margin: 0 auto; }
    .about-stats { grid-template-columns: repeat(4, 1fr); }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .education-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        border-left: 1px solid var(--border);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 4px;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 99;
    }

    .nav-links.open { transform: translateX(0); }

    .nav-link {
        font-size: 1.05rem;
        padding: 12px 16px;
    }

    .hamburger { display: flex; }

    .btn-sm { display: none; }

    .hero-name { font-size: 2.2rem; }

    .pub-card { grid-template-columns: 1fr; }
    .pub-content { padding: 1.5rem; }

    .timeline { padding-left: 24px; }
    .timeline-marker { left: -24px; width: 12px; height: 12px; }
    .timeline::before { left: 5px; }

    .timeline-header { flex-direction: column; gap: 0.5rem; }
    
    .timeline-card { padding: 1.2rem; }

    .timeline-company {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .company-logo {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .timeline-company h3 {
        font-size: 0.95rem;
    }

    .company-name {
        font-size: 0.78rem;
    }

    .timeline-date {
        font-size: 0.75rem;
    }

    .timeline-details li {
        font-size: 0.85rem;
    }

    .timeline-tags {
        gap: 4px;
    }

    .timeline-tags span {
        font-size: 0.68rem;
        padding: 3px 8px;
    }
    
    .footer-container { flex-direction: column; text-align: center; }
    .footer-left { display: flex; flex-direction: column; align-items: center; }
    .footer-left p { text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; }
    .footer-socials { justify-content: center; }
}

@media (max-width: 480px) {
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .skills-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

    .footer-logo img { height: 36px; }
    .footer-left p { font-size: 0.8rem; }
}
