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

:root {
  --primary: #667eea;
  --primary-dark: #5a67d8;
  --secondary: #764ba2;
  --accent: #f093fb;
  --accent-dark: #f5576c;
  --text: #1a202c;
  --text-light: #4a5568;
  --bg: #ffffff;
  --bg-light: #f7fafc;
  --border: #e2e8f0;
  --success: #48bb78;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 25px;
}

/* Constrain section content width */
.featured .project-grid,
.fullstack .fullstack-grid,
.achievements .achievements-grid,
.tech-stack .stack-grid {
  max-width: 1000px;
  margin: 0 auto;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  padding: 140px 0 80px;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

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

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 15px;
  margin-bottom: 50px;
}

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

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 5px;
}

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration svg {
  width: 100%;
  max-width: 500px;
  animation: float 6s ease-in-out infinite;
}

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

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

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

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

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

.btn-large {
  padding: 18px 48px;
  font-size: 1.1rem;
}

/* ===================================
   SECTION STYLES
   =================================== */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   FEATURED PROJECTS
   =================================== */
.featured {
  padding: 100px 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.project-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-illustration {
  height: 120px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-illustration svg {
  width: 100%;
  height: 100%;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.3;
}

.project-description {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.5;
  font-size: 0.9rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.tag {
  background: var(--bg-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.project-links {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.project-links .project-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--primary);
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
}

.project-links .project-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.project-links .demo-link {
  background: var(--gradient-2);
  border-color: transparent;
  color: white;
}

.project-links .demo-link:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}
  gap: 5px;
}

.project-link:hover {
  gap: 10px;
}

/* ===================================
   FINE-TUNING SECTION
   =================================== */
.fine-tuning {
  padding: 100px 0;
  background: var(--bg-light);
}

.tuning-card {
  background: white;
  border-radius: 16px;
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.tuning-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text);
}

.tuning-content p {
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.8;
}

.tuning-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

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

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 5px;
}

.tuning-illustration svg {
  width: 100%;
  max-width: 350px;
}

/* ===================================
   OPEN SOURCE
   =================================== */
.opensource {
  padding: 100px 0;
}

.contributions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.contribution-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.contribution-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.contribution-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.contribution-card p {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.contribution-card a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===================================
   TECH STACK
   =================================== */
.tech-stack {
  padding: 100px 0;
  background: var(--bg-light);
}

.tech-stack .container {
  max-width: 900px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.stack-category {
  background: white;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.stack-category h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text);
}

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

.stack-item {
  background: var(--bg-light);
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.stack-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===================================
   CTA SECTION
   =================================== */
.cta {
  padding: 100px 0;
  background: var(--gradient-1);
  text-align: center;
  color: white;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.cta .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--text);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-section a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .tuning-illustration {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: 20px;
  }

  .hero {
    padding: 120px 0 60px;
  }

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

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

  .hero-stats {
    gap: 20px;
  }

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

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

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

@media (max-width: 480px) {
  .nav-container {
    padding: 0 15px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-links {
    gap: 15px;
    font-size: 0.9rem;
  }

  .container {
    padding: 0 15px;
  }

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

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

/* ===================================
   FULLSTACK SECTION
   =================================== */
.fullstack {
  padding: 100px 0;
  background: var(--bg-light);
}

.fullstack-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.header-illustration svg {
  width: 100%;
  height: auto;
}

.header-content .section-title {
  margin-bottom: 15px;
}

.header-content .section-subtitle {
  margin-bottom: 0;
}

.card-svg {
  width: 80px;
  height: 70px;
  margin-bottom: 15px;
}

.card-svg svg {
  width: 100%;
  height: 100%;
}

.fullstack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.fullstack-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fullstack-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.fullstack-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.fullstack-card:hover::before {
  transform: scaleX(1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.card-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.card-header h3 {
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.3;
}

.fullstack-card p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.5;
  font-size: 0.9rem;
  flex-grow: 1;
}

.tech-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.tech-tag {
  background: var(--bg-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.card-links {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--primary);
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
  display: block;
}

.btn-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ===================================
   HEALTHCARE SPECIALTY SECTION
   =================================== */
.healthcare-specialty {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.05) 0%, rgba(245, 87, 108, 0.05) 100%);
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.specialty-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.specialty-card:hover {
  border-color: #f093fb;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(240, 147, 251, 0.12);
}

.specialty-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
}

.specialty-icon svg {
  width: 100%;
  height: 100%;
}

.specialty-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.3;
}

.specialty-card p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.5;
  font-size: 0.9rem;
  flex-grow: 1;
}

.specialty-tags {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.specialty-card .tag {
  background: var(--bg-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.specialty-card .btn-link {
  display: inline-block;
  margin-top: auto;
  width: auto;
  padding: 6px 16px;
}

/* ===================================
   PROJECT LINKS
   =================================== */
.project-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.project-links .project-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--primary);
  transition: all 0.3s ease;
}

.project-links .project-link:hover {
  background: var(--primary);
  color: white;
}

.project-links .demo-link {
  background: var(--gradient-2);
  border-color: transparent;
  color: white;
}

.project-links .demo-link:hover {
  opacity: 0.9;
}

/* ===================================
   ACHIEVEMENTS SECTION
   =================================== */
.achievements {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.achievements .section-title {
  margin-bottom: 50px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.achievement-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.achievement-card.gold::before {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.achievement-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.achievement-card:hover::before {
  transform: scaleX(1);
}

.achievement-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.achievement-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.4;
  font-weight: 700;
}

.achievement-subtitle {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
}

.achievement-desc {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.achievement-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 15px;
  border-top: 2px solid var(--border);
}

.achievement-card .tag {
  background: var(--bg-light);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

/* ===================================
   ABOUT PAGE STYLES
   =================================== */
.page-hero {
  padding: 140px 0 60px;
  background: var(--bg-light);
  text-align: center;
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  font-size: 1.2rem;
  color: var(--text-light);
}

.about-content {
  padding: 80px 0;
}

.about-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: var(--text);
}

.about-text .lead {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-illustration svg {
  width: 100%;
  max-width: 400px;
  animation: float 6s ease-in-out infinite;
}

.about-divider {
  height: 1px;
  background: var(--border);
  margin: 60px 0;
}

.about-section {
  margin-bottom: 60px;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--text);
}

.section-intro {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.8;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-category {
  background: white;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.skill-category:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.skill-category h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text);
}

.skill-category ul {
  list-style: none;
}

.skill-category li {
  color: var(--text-light);
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.skill-category li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.opensource-detailed {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.os-project {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  background: white;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.os-project:hover {
  border-color: var(--primary);
  transform: translateX(5px);
}

.os-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
}

.os-icon svg {
  width: 100%;
  height: 100%;
}

.os-details h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text);
}

.os-details p {
  color: var(--text-light);
  margin-bottom: 12px;
}

.os-details a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

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

.current-project {
  background: white;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  position: relative;
}

.project-status {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--success);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.current-project h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
  margin-top: 10px;
}

.current-project p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.learning-item {
  background: white;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

.learning-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.learning-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.learning-item h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
}

.learning-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===================================
   PROJECTS PAGE STYLES
   =================================== */
.projects-hero {
  padding: 140px 0 60px;
  background: var(--bg-light);
  text-align: center;
}

.projects-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projects-hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.projects-section {
  padding: 80px 0;
}

.projects-section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text);
}

.project-category {
  margin-bottom: 80px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.category-header h3 {
  font-size: 1.8rem;
  color: var(--text);
}

.category-line {
  flex: 1;
  height: 2px;
  background: var(--border);
}

.projects-detailed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card-detailed {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 35px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card-detailed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card-detailed:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-card-detailed:hover::before {
  transform: scaleX(1);
}

.project-card-detailed.healthcare::before {
  background: var(--gradient-2);
}

.project-card-detailed.finetune::before {
  background: var(--gradient-3);
}

.project-card-detailed h4 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text);
}

.project-card-detailed .project-description {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.project-card-detailed .project-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.project-card-detailed .project-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.project-card-detailed .project-link:hover {
  gap: 10px;
}

.project-features {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.project-features h5 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text);
}

.project-features ul {
  list-style: none;
}

.project-features li {
  color: var(--text-light);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.9rem;
}

.project-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ===================================
   CONTACT PAGE STYLES
   =================================== */
.contact-hero {
  padding: 140px 0 60px;
  background: var(--bg-light);
  text-align: center;
}

.contact-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-hero p {
  font-size: 1.2rem;
  color: var(--text-light);
}

.contact-content {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.contact-form-section {
  background: white;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.contact-form-section h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--text);
}

.contact-form-section > p {
  color: var(--text-light);
  margin-bottom: 30px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.contact-info-section h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--text);
}

.contact-info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 25px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  border-color: var(--primary);
  transform: translateX(5px);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 100%;
  height: 100%;
}

.contact-info-details h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.contact-info-details p,
.contact-info-details a {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-info-details a:hover {
  color: var(--primary);
}

.open-for-section {
  background: var(--gradient-1);
  padding: 60px 40px;
  border-radius: 16px;
  text-align: center;
  color: white;
}

.open-for-section h3 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.open-for-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.open-for-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.open-for-item h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.open-for-item p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===================================
   RESPONSIVE UPDATES
   =================================== */
@media (max-width: 968px) {
  .about-intro {
    grid-template-columns: 1fr;
  }

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

  .projects-detailed-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav-container {
    padding: 0 15px;
  }
  
  .nav-links {
    gap: 15px;
    font-size: 0.9rem;
  }

  /* Hero */
  .hero {
    padding: 120px 0 60px;
  }

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

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

  .hero-cta {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .hero-stats {
    gap: 15px;
  }

  /* Fullstack Header */
  .fullstack-header {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
    max-width: 400px;
  }
  
  .header-illustration {
    order: -1;
  }
  
  .header-illustration svg {
    max-width: 200px;
  }
  
  .card-svg {
    margin: 0 auto 15px;
  }

  /* Page Heroes */
  .page-hero h1,
  .projects-hero h1,
  .contact-hero h1 {
    font-size: 2rem;
  }

  /* Sections */
  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
    padding: 0 10px;
  }

  /* Grids */
  .project-grid,
  .projects-detailed-grid,
  .fullstack-grid,
  .specialty-grid,
  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Tech Stack */
  .stack-grid {
    grid-template-columns: 1fr;
  }

  /* About */
  .about-text h2,
  .about-section h2 {
    font-size: 1.75rem;
  }

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

  .os-project {
    flex-direction: column;
    gap: 15px;
  }

  .current-projects,
  .learning-grid {
    grid-template-columns: 1fr;
  }
  
  /* Contact */
  .open-for-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  /* Base */
  body {
    font-size: 14px;
  }

  /* Navigation */
  .nav-container {
    padding: 0 10px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .nav-links {
    gap: 10px;
    font-size: 0.8rem;
  }

  /* Hero */
  .hero {
    padding: 100px 0 40px;
  }

  .hero-container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

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

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

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

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

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

  .hero-illustration {
    display: none;
  }

  /* Container */
  .container {
    padding: 0 15px;
  }

  /* Sections */
  .featured,
  .fine-tuning,
  .fullstack,
  .healthcare-specialty,
  .achievements,
  .tech-stack,
  .cta {
    padding: 60px 0;
  }

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

  .section-subtitle {
    font-size: 0.9rem;
  }

  /* Cards */
  .project-card,
  .fullstack-card,
  .specialty-card,
  .achievement-card {
    padding: 20px;
  }

  .project-title,
  .fullstack-card h3,
  .specialty-card h3,
  .achievement-card h3 {
    font-size: 1.2rem;
  }

  .project-description,
  .fullstack-card p,
  .specialty-card p,
  .achievement-desc {
    font-size: 0.9rem;
  }

  .project-tags,
  .tech-tags,
  .specialty-tags,
  .achievement-tags {
    gap: 5px;
  }

  .tag,
  .tech-tag {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  .project-links,
  .card-links {
    flex-direction: column;
    gap: 10px;
  }

  .project-links .project-link,
  .btn-link {
    width: 100%;
    text-align: center;
  }

  /* Fine Tuning */
  .tuning-card {
    padding: 25px;
  }

  .tuning-content h3 {
    font-size: 1.3rem;
  }

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

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

  .tuning-illustration svg {
    max-width: 250px;
  }

  /* Tech Stack */
  .stack-category {
    padding: 20px;
  }

  .stack-category h3 {
    font-size: 1.1rem;
  }

  .stack-item {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  /* Achievements */
  .achievement-icon {
    font-size: 2.5rem;
  }

  .achievement-card h3 {
    font-size: 1.2rem;
  }

  .achievement-subtitle {
    font-size: 0.85rem;
  }

  .achievement-desc {
    font-size: 0.85rem;
  }

  /* CTA */
  .cta h2 {
    font-size: 1.5rem;
  }

  .cta p {
    font-size: 0.95rem;
  }

  .btn-large {
    padding: 14px 28px;
    font-size: 1rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .footer-section h4 {
    font-size: 1rem;
  }

  .footer-section a {
    display: inline-block;
    margin: 5px 10px;
  }

  /* Contact Page */
  .contact-form-section,
  .contact-info-section {
    padding: 20px;
  }

  .contact-info-item {
    padding: 15px;
  }

  .contact-info-icon {
    width: 40px;
    height: 40px;
  }

  /* About Page */
  .about-intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-text h2 {
    font-size: 1.5rem;
  }

  .about-text .lead {
    font-size: 1rem;
  }

  .about-illustration {
    display: none;
  }

  .skill-category {
    padding: 20px;
  }

  .os-project {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  .os-icon {
    width: 50px;
    height: 50px;
  }

  .current-projects,
  .learning-grid {
    grid-template-columns: 1fr;
  }

  /* Open For Section */
  .open-for-section {
    padding: 40px 20px;
  }

  .open-for-item {
    padding: 20px;
  }

  .open-for-item h4 {
    font-size: 1rem;
  }

  .open-for-item p {
    font-size: 0.85rem;
  }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .btn-link,
  .project-link,
  .tag,
  .tech-tag {
    min-height: 44px;
  }
  
  input,
  textarea {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}
