/* ============================================
   CSS VARIABLES & THEME
   ============================================ */
:root {
  /* Light Theme (Default) */
  --bg-primary: #f8fafc;
  --bg-secondary: #e2e8f0;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-hover: rgba(255, 255, 255, 0.85);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --accent-primary: #8b5cf6;
  --accent-secondary: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --border-color: rgba(148, 163, 184, 0.3);
  --shadow-color: rgba(15, 23, 42, 0.1);
  --sidebar-width: 280px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;
}

[data-theme="dark"] {
  --bg-primary: #0a0a1a;
  --bg-secondary: #151528;
  --bg-glass: rgba(21, 21, 40, 0.8);
  --bg-glass-hover: rgba(30, 30, 60, 0.9);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --accent-primary: #a78bfa;
  --accent-secondary: #22d3ee;
  --border-color: rgba(148, 163, 184, 0.15);
  --shadow-color: rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  color: var(--accent-secondary);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   GLASSMORPHISM CARD
   ============================================ */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 32px var(--shadow-color);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--shadow-color);
}

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -2;
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* ============================================
   MOBILE HEADER
   ============================================ */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  z-index: 1001;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

.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);
}

.mobile-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.mobile-theme {
  padding: 8px;
}

/* ============================================
   OVERLAY
   ============================================ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 32px 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  border-right: 1px solid var(--border-color);
  border-left: none;
  border-top: none;
  border-bottom: none;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-header {
  margin-bottom: 40px;
}

.sidebar-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: var(--bg-glass-hover);
  color: var(--accent-primary);
}

.nav-link.active {
  background: var(--accent-gradient);
  color: white;
}

.nav-link.active svg {
  stroke: white;
}

.nav-link svg {
  stroke: var(--text-tertiary);
  transition: stroke 0.2s ease;
}

.nav-link:hover svg {
  stroke: var(--accent-primary);
}

/* ============================================
   SIDEBAR FOOTER
   ============================================ */
.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.theme-toggle:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.sun-icon, .moon-icon {
  transition: all 0.3s ease;
}

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

[data-theme="light"] .moon-icon,
:root:not([data-theme]) .moon-icon {
  display: none;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
}

.social-links a:hover svg {
  stroke: white;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding: 0 40px;
}

.section {
  min-height: 100vh;
  padding: 100px 0;
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================
   SECTION HEADING
   ============================================ */
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 48px;
}

.section-heading svg {
  stroke: var(--accent-primary);
}

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

.section-title {
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
  margin-left: 16px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  display: flex;
  align-items: center;
  padding-top: 60px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.hero-greeting {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.hero-greeting svg {
  stroke: var(--accent-primary);
}

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

.hero-tagline {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.highlight {
  color: var(--accent-primary);
  position: relative;
}

.hero-description {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.7;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
  color: white;
}

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

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

/* ============================================
   HERO IMAGE
   ============================================ */
.hero-image {
  text-align: center;
}

.image-frame {
  width: 280px;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.image-placeholder svg {
  stroke: var(--text-tertiary);
  opacity: 0.5;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hidden {
  display: none;
}

.image-hint {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.about-text p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-highlights {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.highlight-item svg {
  stroke: var(--accent-primary);
  flex-shrink: 0;
}

.about-image-frame {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

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

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

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: 3px solid var(--bg-primary);
  z-index: 1;
}

.timeline-card {
  padding: 24px;
}

.timeline-header {
  margin-bottom: 12px;
}

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

.timeline-header .company {
  font-size: 1rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.timeline-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.timeline-meta svg {
  stroke: var(--text-tertiary);
}

.timeline-details {
  list-style: none;
  padding-left: 0;
}

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

.timeline-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-secondary);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.filter-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.filter-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  padding: 24px;
  transition: all 0.3s ease;
}

.project-card.hidden {
  display: none;
}

.project-card.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

.project-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.project-icon svg {
  stroke: white;
}

.project-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.project-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

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

.tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-container {
  display: grid;
  gap: 48px;
}

.skills-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* Skill Bars */
.skills-bars {
  max-width: 600px;
}

.skill-bar-item {
  margin-bottom: 20px;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.skill-bar-bg {
  height: 10px;
  border-radius: 5px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: var(--accent-gradient);
  width: 0;
  transition: width 1s ease-out;
}

/* Bubble Chart */
.bubble-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 24px;
}

.bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  font-weight: 600;
  text-align: center;
  animation: float 3s ease-in-out infinite;
  animation-delay: var(--delay);
}

.bubble.large {
  width: 120px;
  height: 120px;
  font-size: 0.9375rem;
}

.bubble.medium {
  width: 100px;
  height: 100px;
  font-size: 0.8125rem;
}

.bubble.small {
  width: 80px;
  height: 80px;
  font-size: 0.75rem;
}

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

/* Bar Chart (CSS) */
.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 200px;
  padding: 0 16px;
  border-bottom: 2px solid var(--border-color);
  gap: 12px;
}

.bar-item {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.bar {
  width: 100%;
  height: var(--height);
  background: var(--accent-gradient);
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  transition: height 1s ease-out;
}

.bar-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.6875rem;
  color: white;
  font-weight: 500;
}

/* Skills Matrix */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.matrix-category {
  padding: 20px;
}

.matrix-category h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

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

.matrix-tag {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.matrix-tag:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.education-card {
  padding: 32px;
  text-align: center;
}

.edu-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.edu-icon svg {
  stroke: var(--accent-primary);
}

.education-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.education-card h4 {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.edu-school {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.edu-date {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.edu-location {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.edu-focus {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-container {
  max-width: 800px;
}

.contact-intro {
  text-align: center;
  margin-bottom: 48px;
}

.contact-intro p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}

.contact-item svg {
  stroke: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.contact-form {
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
}

.footer p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.footer-year {
  margin-top: 4px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 240px;
  }
  
  .main-content {
    padding: 0 24px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-text {
    order: 2;
  }
  
  .hero-image {
    order: 1;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-image {
    order: -1;
    justify-self: center;
  }
  
  .about-highlights {
    align-items: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }
  
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 280px;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    padding: 80px 20px 20px;
  }
  
  .section {
    padding: 60px 0;
    min-height: auto;
  }
  
  .hero-section {
    padding-top: 40px;
  }
  
  .section-heading {
    font-size: 1.5rem;
    flex-wrap: wrap;
  }
  
  .section-line {
    display: none;
  }
  
  .image-frame {
    width: 220px;
    height: 220px;
  }
  
  .timeline {
    padding-left: 30px;
  }
  
  .timeline-marker {
    left: -30px;
    width: 20px;
    height: 20px;
  }
  
  .timeline::before {
    left: 9px;
  }
  
  .project-filters {
    justify-content: center;
  }
  
  .filter-btn {
    padding: 8px 14px;
    font-size: 0.8125rem;
  }
  
  .bar-chart {
    height: 160px;
    gap: 8px;
  }
  
  .bar-label {
    font-size: 0.5625rem;
  }
  
  .bubble.large {
    width: 100px;
    height: 100px;
    font-size: 0.8125rem;
  }
  
  .bubble.medium {
    width: 80px;
    height: 80px;
    font-size: 0.75rem;
  }
  
  .bubble.small {
    width: 60px;
    height: 60px;
    font-size: 0.6875rem;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2rem;
  }
  
  .hero-tagline {
    font-size: 1.125rem;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 0.875rem;
  }
  
  .timeline-card {
    padding: 16px;
  }
  
  .project-card {
    padding: 20px;
  }
  
  .education-card {
    padding: 24px;
  }
  
  .contact-form {
    padding: 24px;
  }
}
