/* ===== CSS Variables ===== */
:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fb923c;
  --primary-bg: rgba(249, 115, 22, 0.1);
  --accent: #a78bfa;
  --accent-light: #c4b5fd;
  --bg: #141414;
  --bg-card: #1e1e1e;
  --bg-card-hover: #262626;
  --surface: #2a2a2a;
  --text: #d4d4d4;
  --text-muted: #a3a3a3;
  --text-heading: #f5f5f5;
  --border: #2a2a2a;
  --success: #4ade80;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --transition: 0.3s ease;
  --nav-bg: rgba(20, 20, 20, 0.85);
  --nav-bg-scroll: rgba(20, 20, 20, 0.95);
  --nav-mobile-bg: rgba(20, 20, 20, 0.98);
}

/* ===== Light Theme ===== */
[data-theme="light"] {
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --primary-light: #f97316;
  --primary-bg: rgba(234, 88, 12, 0.08);
  --accent: #7c3aed;
  --accent-light: #8b5cf6;
  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f5;
  --surface: #e5e5e5;
  --text: #525252;
  --text-muted: #737373;
  --text-heading: #171717;
  --border: #e5e5e5;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
  --nav-bg: rgba(250, 250, 250, 0.85);
  --nav-bg-scroll: rgba(250, 250, 250, 0.95);
  --nav-mobile-bg: rgba(250, 250, 250, 0.98);
}

[data-theme="light"] .shape {
  opacity: 0.08;
}

[data-theme="light"] .nav-logo {
  -webkit-text-fill-color: transparent;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-heading);
  background: var(--primary-bg);
}

.nav-shine {
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.nav-shine:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-light)) !important;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.35), 0 0 16px rgba(167, 139, 250, 0.25);
}

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  margin-left: 8px;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(167, 139, 250, 0.08);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 64px;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: -50px;
  left: -100px;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: #a855f7;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  flex: 1;
}

.hero-image {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.hero-image img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.2), 0 0 80px rgba(167, 139, 250, 0.1);
}

@media (max-width: 768px) {
  .hero-layout {
    flex-direction: column-reverse;
    text-align: center;
    gap: 32px;
  }

  .hero-image img {
    width: 200px;
    height: 200px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-socials {
    justify-content: center;
  }
}

.hero-greeting {
  font-size: 1.1rem;
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 8px;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-summary {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}

.social-link:hover {
  color: var(--primary-light);
  border-color: var(--primary);
  background: var(--primary-bg);
  transform: translateY(-2px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: var(--primary-bg);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 48px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin: 12px auto 0;
  border-radius: 3px;
}

/* ===== About ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
}

.stat-plus {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-light);
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Startup Traits ===== */
.startup-traits {
  margin-top: 48px;
  text-align: center;
}

.startup-traits h3 {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.startup-traits > p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.traits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trait-card {
  background: var(--bg-card);
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-align: center;
}

.trait-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.trait-card svg {
  color: var(--primary-light);
  margin-bottom: 12px;
}

.trait-card h4 {
  font-size: 0.9rem;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.trait-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .traits-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .traits-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.skill-category {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.skill-category:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.skill-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  color: var(--primary-light);
  margin-bottom: 16px;
}

.skill-category h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--surface);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all var(--transition);
}

.tag:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.tag img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.tag i {
  font-size: 14px;
  line-height: 1;
}

/* ===== Timeline / Experience ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--primary);
  z-index: 1;
}

.timeline-item:first-child .timeline-marker {
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-bg);
}

.timeline-content {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.timeline-content:hover {
  border-color: var(--primary);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 16px;
}

.timeline-header h3 {
  font-size: 1.1rem;
  color: var(--text-heading);
}

.company {
  color: var(--primary-light);
  font-weight: 500;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  background: var(--surface);
  padding: 4px 12px;
  border-radius: 20px;
}

.timeline-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timeline-details {
  list-style: none;
  margin-top: 12px;
}

.timeline-details li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.timeline-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
}

.timeline-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.timeline-tools .tag {
  font-size: 0.75rem;
  padding: 4px 10px;
}

/* ===== Education ===== */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.edu-heading {
  font-size: 1.25rem;
  color: var(--text-heading);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.edu-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  transition: all var(--transition);
}

.edu-card:hover {
  border-color: var(--primary);
}

.edu-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  color: var(--primary-light);
}

.cert-icon {
  background: rgba(167, 139, 250, 0.1);
  color: var(--accent);
}

.edu-card h4 {
  font-size: 0.95rem;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.edu-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.edu-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ===== Awards ===== */
.awards-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.award-card {
  background: var(--bg-card);
  padding: 24px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
}

.award-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.award-icon {
  color: var(--accent);
  margin-bottom: 12px;
}

.award-card h4 {
  font-size: 0.95rem;
  color: var(--text-heading);
}

/* ===== Page Hero (Contact / Projects) ===== */
.page-hero {
  padding: 140px 0 60px;
  position: relative;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== Contact Fullpage ===== */
.contact-fullpage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 64px;
}

.contact-fullpage .container {
  width: 100%;
}

.contact-fullpage-header {
  text-align: center;
  margin-bottom: 32px;
}

.contact-fullpage-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.contact-fullpage-header p {
  font-size: 1rem;
  color: var(--text-muted);
}

.contact-grid-compact {
  gap: 32px;
}

.contact-grid-compact .contact-cards {
  margin-bottom: 16px;
  gap: 10px;
}

.contact-grid-compact .contact-card {
  padding: 12px 16px;
}

.contact-grid-compact .contact-card-icon {
  width: 36px;
  height: 36px;
}

.contact-form-compact {
  padding: 24px;
}

.contact-form-compact h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.contact-form-compact .form-group {
  margin-bottom: 12px;
}

.contact-form-compact .form-group input,
.contact-form-compact .form-group textarea {
  padding: 10px 14px;
  font-size: 0.9rem;
}

.contact-form-compact .form-group textarea {
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-fullpage {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 32px;
  }
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h2,
.contact-form-wrapper h2 {
  font-size: 1.5rem;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
  color: var(--text);
}

.contact-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  color: var(--text);
  transform: translateX(4px);
}

.contact-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  color: var(--primary-light);
}

.contact-card h4 {
  font-size: 0.85rem;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Contact Form ===== */
.contact-form-wrapper {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--surface);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== Languages ===== */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.language-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.language-card h4 {
  color: var(--text-heading);
  margin-bottom: 4px;
}

.language-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.lang-bar {
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
}

.lang-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width 1s ease;
}

/* ===== Projects Page ===== */
.project-detail-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 40px;
  overflow: hidden;
  transition: all var(--transition);
}

.project-detail-card:hover {
  border-color: var(--primary);
}

.project-header {
  padding: 32px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.05), rgba(167, 139, 250, 0.05));
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.project-header-text {
  flex: 1;
}

.project-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  transition: all var(--transition);
  margin-top: 4px;
}

.project-toggle svg {
  transition: transform 0.3s ease;
}

.project-detail-card.expanded .project-toggle svg {
  transform: rotate(180deg);
}

.project-detail-card.expanded .project-toggle {
  background: var(--primary-bg);
  color: var(--primary-light);
}

.project-header:hover .project-toggle {
  background: var(--primary-bg);
  color: var(--primary-light);
}

.project-year {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-bg);
  color: var(--primary-light);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.project-header h2 {
  font-size: 1.5rem;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.project-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project-body {
  padding: 0 32px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.project-detail-card.expanded .project-body {
  padding: 32px;
  max-height: 2000px;
}

.project-detail-card:not(.expanded) .project-header {
  border-bottom-color: transparent;
}

.project-overview,
.project-highlights,
.project-tech {
  margin-bottom: 28px;
}

.project-body h3 {
  font-size: 1.05rem;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.project-overview p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project-highlights ul {
  list-style: none;
}

.project-highlights li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.highlight-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  color: var(--success);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== Blog Page ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  transition: all var(--transition);
  color: var(--text);
  text-decoration: none;
}

.blog-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 1.1rem;
  color: var(--text-heading);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.blog-tags .tag {
  font-size: 0.75rem;
  padding: 3px 10px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-top: auto;
  transition: gap var(--transition);
}

.blog-card:hover .blog-read-more {
  gap: 10px;
}

.blog-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.blog-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(167, 139, 250, 0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section h2 {
  font-size: 1.75rem;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary-light);
}

/* ===== Micro SaaS Tiles ===== */
.saas-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
  gap: 20px;
}

.saas-tile {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.saas-tile:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: inherit;
}

.saas-tile:hover .saas-tile-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.saas-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.saas-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.saas-tile-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(74, 222, 128, 0.12);
  color: var(--success);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.saas-tile h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0;
}

.saas-tile-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.saas-tile-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.saas-tile-tech .tag {
  font-size: 0.68rem;
  padding: 2px 7px;
}

.saas-tile-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--primary);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all var(--transition);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 14px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .edu-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .languages-grid {
    grid-template-columns: 1fr;
  }

  .timeline-header {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    text-align: center;
    justify-content: center;
  }

  .saas-tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .awards-grid {
    flex-direction: column;
    align-items: center;
  }
}
