/* ========================================
   CSS Variables & Base Styles
   ======================================== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161d;
    --bg-card-hover: #1c1c25;
    --text-primary: #e2e2e8;
    --text-secondary: #8888a0;
    --text-muted: #5a5a72;
    --accent: #64ffda;
    --accent-rgb: 100, 255, 218;
    --accent-dark: #45b89a;
    --gradient-start: #64ffda;
    --gradient-end: #48b1ff;
    --border-color: #1e1e2a;
    --nav-height: 70px;
    --container-width: 1100px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', monospace;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
}

/* ========================================
   Reset & Global Styles
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(var(--accent-rgb), 0.2);
    color: var(--accent);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 25px;
}

/* ========================================
   Cursor Glow
   ======================================== */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ========================================
   Text Utilities
   ======================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.inline-link {
    color: var(--accent);
    position: relative;
}

.inline-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.inline-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15), rgba(var(--accent-rgb), 0.05));
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.25), rgba(var(--accent-rgb), 0.1));
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(var(--accent-rgb), 0.15);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

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

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

.btn-lg {
    padding: 18px 48px;
    font-size: 1.05rem;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.35s ease;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    border-bottom-color: var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}

.logo-bracket {
    color: var(--accent);
    opacity: 0.7;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

.nav-link::before {
    content: attr(data-number);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    margin-right: 4px;
}

.nav-link:hover {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05);
}

.nav-cta {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--accent);
    padding: 8px 20px;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 6px;
    transition: var(--transition);
}

.nav-cta:hover {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: var(--accent);
}

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

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: calc(var(--nav-height) + 20px) 25px 40px;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(var(--accent-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    max-width: var(--container-width);
    width: 100%;
    z-index: 2;
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-name {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.2;
}

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

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

.hero-stats {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* ========================================
   Section Styles
   ======================================== */
.section {
    padding: 120px 0;
    position: relative;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 60px;
    white-space: nowrap;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
}

.heading-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
    max-width: 300px;
}

/* ========================================
   About Section
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    align-items: start;
}

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

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

.about-tech-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 30px;
    margin-top: 20px;
}

.about-tech-list li {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.about-tech-list li::before {
    content: '▹';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

.about-image-wrapper {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.about-image-placeholder i {
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.5;
}

.about-image-placeholder span {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
}

.about-image-border {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 12px;
    opacity: 0.3;
    transition: var(--transition);
    z-index: 1;
}

.about-image-wrapper:hover .about-image-border {
    top: 10px;
    left: 10px;
    opacity: 0.5;
}

.about-image-wrapper:hover .about-image-placeholder {
    transform: translate(-3px, -3px);
}

/* ========================================
   Experience Section
   ======================================== */
.experience-timeline {
    position: relative;
    padding-left: 40px;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

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

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.4);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-separator {
    color: var(--accent);
    opacity: 0.5;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    transition: var(--transition);
}

.timeline-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(var(--accent-rgb), 0.15);
    transform: translateX(5px);
    box-shadow: var(--shadow-card);
}

.timeline-card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.company-name {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
}

.company-name:hover {
    text-decoration: underline;
}

.company-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
    margin-bottom: 18px;
}

.company-location i {
    margin-right: 6px;
    color: var(--accent);
    opacity: 0.7;
    font-size: 0.8rem;
}

.timeline-details {
    list-style: none;
}

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

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

.timeline-details li strong {
    color: var(--accent);
    font-weight: 600;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(var(--accent-rgb), 0.15);
}

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

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category:hover {
    background: var(--bg-card-hover);
    border-color: rgba(var(--accent-rgb), 0.15);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.skill-category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-rgb), 0.08);
    border-radius: 10px;
    margin-bottom: 18px;
}

.skill-category-icon i {
    font-size: 1.3rem;
    color: var(--accent);
}

.skill-category h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(var(--accent-rgb), 0.04);
    border: 1px solid rgba(var(--accent-rgb), 0.08);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-item:hover {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.2);
}

.skill-item i {
    font-size: 0.9rem;
    color: var(--accent);
    opacity: 0.7;
}

/* ========================================
   Projects Section
   ======================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.02), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(var(--accent-rgb), 0.15);
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}

.project-card:hover::after {
    opacity: 1;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.project-icon i {
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.8;
}

.project-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.project-card:hover .project-title {
    color: var(--accent);
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
    position: relative;
    z-index: 2;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.project-tech span:not(:last-child)::after {
    content: '·';
    margin-left: 8px;
    color: var(--accent);
    opacity: 0.5;
}

/* ========================================
   Education Section
   ======================================== */
.education-card {
    display: flex;
    gap: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    transition: var(--transition);
    max-width: 700px;
}

.education-card:hover {
    border-color: rgba(var(--accent-rgb), 0.15);
    box-shadow: var(--shadow-card);
}

.education-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-rgb), 0.08);
    border-radius: 12px;
}

.education-icon i {
    font-size: 1.5rem;
    color: var(--accent);
}

.education-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.education-school {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
}

.education-year,
.education-gpa {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.education-year i,
.education-gpa i {
    color: var(--accent);
    opacity: 0.7;
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.education-courses {
    margin-top: 18px;
}

.education-courses h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

.course-tags span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(var(--accent-rgb), 0.05);
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    padding: 5px 14px;
    border-radius: 20px;
    transition: var(--transition);
}

.course-tags span:hover {
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.3);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding-bottom: 80px;
}

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

.contact-subtitle {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.contact-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: var(--transition);
}

.contact-method:hover {
    color: var(--accent);
}

.contact-method i {
    color: var(--accent);
    font-size: 1rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 30px 25px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    display: none;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

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

/* ========================================
   Side Elements
   ======================================== */
.side-element {
    position: fixed;
    bottom: 0;
    z-index: 10;
}

.side-left {
    left: 30px;
}

.side-right {
    right: 30px;
}

.side-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.side-social a {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 5px;
}

.side-social a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.side-line {
    width: 1px;
    height: 90px;
    background: var(--text-muted);
    margin: 0 auto;
    margin-top: 20px;
}

.side-email {
    writing-mode: vertical-rl;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    transition: var(--transition);
    padding: 10px;
}

.side-email:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1080px) {
    .side-element {
        display: none;
    }

    .footer-social {
        display: flex;
    }
}

@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-image-wrapper {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transition: right 0.35s ease;
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        align-items: flex-start;
        padding-top: calc(var(--nav-height) + 30px);
        padding-bottom: 30px;
        min-height: auto;
    }

    .hero-greeting {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .hero-name {
        font-size: 2.2rem;
        word-break: break-word;
        margin-bottom: 10px;
    }

    .hero-title {
        font-size: 1.25rem;
        margin-bottom: 14px;
    }

    .hero-description {
        font-size: 0.92rem;
        margin-bottom: 24px;
        line-height: 1.7;
    }

    .hero-cta {
        margin-bottom: 30px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.78rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        text-align: center;
        justify-content: center;
    }

    .section {
        padding: 50px 0;
    }

    .section-heading {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

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

    .education-card {
        flex-direction: column;
        gap: 20px;
        padding: 25px;
        margin: 0 auto;
    }

    .about-image-wrapper {
        max-width: 200px;
    }

    .timeline-card {
        padding: 20px;
    }

    .timeline-card-header h3 {
        font-size: 1.05rem;
    }

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

@media (max-width: 600px) {
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 40px 0;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 24px);
    }

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

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

    .hero-description {
        font-size: 0.88rem;
        margin-bottom: 20px;
    }

    .hero-cta {
        flex-direction: column;
        margin-bottom: 24px;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .experience-timeline {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -30px;
        width: 12px;
        height: 12px;
    }

    .experience-timeline::before {
        left: 5px;
    }

    .project-card {
        padding: 22px;
    }
}

@media (max-width: 380px) {
    .hero-name {
        font-size: 1.7rem;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
    }
}

/* ========================================
   Mobile Menu Overlay
   ======================================== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}
