/* =========================================== */
/*  Cursor PM Design Language - Portfolio     */
/*  Sophisticated, warm, premium aesthetic    */
/* =========================================== */

/* Font Import - DM Sans */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* =========================================== */
/*  Design System Variables                   */
/* =========================================== */
:root {
  /* Core Brand - Critical Colors */
  --bg-primary: #0c0c0c;
  --logo-gradient: linear-gradient(135deg, #7d9e8a 0%, #9db5a3 100%);
  
  /* Surfaces - with subtle blue tint option */
  --bg-surface: rgba(24, 24, 24, 0.7);
  --bg-surface-hover: rgba(28, 28, 28, 0.9);
  --bg-surface-blue: rgba(14, 20, 30, 0.7);
  --bg-inset: rgba(14, 14, 14, 0.9);
  
  /* Text */
  --text-primary: #e6e6e6;
  --text-secondary: #8f8f8f;
  --text-tertiary: #666666;
  
  /* Accents - Diverse palette */
  --accent-sage: #7d9e8a;
  --accent-sage-light: #9db5a3;
  --accent-honey: #d4a870;
  --accent-coral: #d4a08f;
  --accent-maroon: #4A051C;
  --accent-maroon-light: #6b1a2e;
  --accent-blue: #1a2332;
  --accent-blue-light: #6B818C;
  --accent-burnt-orange: #bf5700;
  --accent-burnt-orange-light: #cc6611;
  
  /* Accent Backgrounds */
  --accent-sage-bg: rgba(125, 158, 138, 0.15);
  --accent-honey-bg: rgba(212, 168, 112, 0.15);
  --accent-coral-bg: rgba(212, 160, 143, 0.15);
  --accent-maroon-bg: rgba(74, 5, 28, 0.15);
  --accent-blue-bg: rgba(26, 35, 50, 0.4);
  --accent-burnt-orange-bg: rgba(191, 87, 0, 0.12);
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.15);
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Shadows - Subtle and warm */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.2);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.25);
  --shadow-hero: 0 24px 80px rgba(0, 0, 0, 0.4);
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  
  /* Layout */
  --container-max: 1100px;
  --sidebar-width: 220px;
}

/* =========================================== */
/*  Base Resets & Typography                  */
/* =========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle background warmth */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60vh;
  background: 
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(180, 160, 140, 0.04), transparent 50%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(140, 160, 150, 0.03), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================== */
/*  Sidebar Navigation                        */
/* =========================================== */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--bg-primary);
  border-right: 1px solid var(--border-subtle);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.15s ease;
}

#sidebar.open {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  #sidebar {
    transform: none;
  }
}

#sidebar ul {
  list-style: none;
}

#sidebar li {
  margin-bottom: var(--space-lg);
}

#sidebar li a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
  display: block;
  padding: var(--space-xs) 0;
}

#sidebar li a:hover {
  color: var(--text-primary);
}

/* Nav Toggle Button */
.nav-toggle {
  position: fixed;
  top: var(--space-lg);
  left: var(--space-lg);
  font-size: 1.25rem;
  color: var(--bg-primary);
  background: var(--text-primary);
  border-radius: var(--radius-full);
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  z-index: 1000;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-card);
}

.nav-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

/* Main Content Offset */
main {
  margin-left: 0;
  transition: margin-left 0.15s ease;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  main {
    margin-left: var(--sidebar-width);
  }
}

/* =========================================== */
/*  Floating Resume Button                    */
/* =========================================== */
.floating-resume-btn {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  background-color: var(--text-primary);
  color: var(--bg-primary);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 500;
  font-size: 0.9rem;
  z-index: 1000;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-card);
}

.floating-resume-btn:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.floating-resume-btn i {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .floating-resume-btn {
    padding: var(--space-md);
    border-radius: var(--radius-full);
  }
  
  .floating-resume-btn span {
    display: none;
  }
}

/* =========================================== */
/*  Hero Section                              */
/* =========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  position: relative;
}

.hero-content {
  max-width: 700px;
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .prof-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-medium);
  margin: 0 auto var(--space-xl);
  transition: all 0.15s ease;
}

.hero .prof-pic:hover {
  border-color: var(--accent-honey);
  transform: scale(1.02);
}

.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.hero-content > p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.5;
}

/* Hero Metrics */
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-metric {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.hero-metric:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-medium);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.hero-metric i {
  color: var(--accent-blue-light);
  font-size: 0.9rem;
}

/* Hero Links/Buttons */
.hero .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.hero-btn-primary,
.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

.hero-btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

.hero-btn-primary:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.hero-btn-secondary {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}

.hero-btn-secondary:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background-color: var(--bg-surface);
}

@media (max-width: 640px) {
  .hero .links {
    flex-direction: column;
    width: 100%;
    padding: 0 var(--space-lg);
  }
  
  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================== */
/*  Section Containers                        */
/* =========================================== */
section.container,
.featured-section,
.experience-section,
.projects-section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

section h2,
.section-header h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-3xl);
}

/* =========================================== */
/*  Featured Section                          */
/* =========================================== */
.featured-section h2 {
  margin-bottom: var(--space-2xl);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.featured-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.15s ease;
}

.featured-card:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.featured-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
  color: var(--accent-honey);
  transition: transform 0.15s ease;
}

.featured-card:hover .featured-icon {
  transform: scale(1.1);
}

.featured-metric {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

.featured-metric-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.featured-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.featured-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.featured-tag {
  background-color: var(--accent-honey-bg);
  color: var(--accent-honey);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Card Accent Variations */
.featured-arm .featured-icon { color: var(--accent-maroon-light); }
.featured-arm .featured-tag {
  background-color: var(--accent-maroon-bg);
  color: var(--accent-coral);
}

.featured-robocup .featured-icon { color: var(--accent-honey); }
.featured-robocup .featured-tag {
  background-color: var(--accent-honey-bg);
  color: var(--accent-honey);
}

.featured-cms .featured-icon { color: var(--accent-blue-light); }
.featured-cms .featured-tag {
  background-color: var(--accent-blue-bg);
  color: var(--accent-blue-light);
}

/* =========================================== */
/*  Resume Section                            */
/* =========================================== */
.resume-container {
  display: flex;
  justify-content: center;
}

.resume-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  max-width: 400px;
  transition: all 0.15s ease;
}

.resume-card:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.resume-icon {
  font-size: 3rem;
  color: var(--accent-coral);
  margin-bottom: var(--space-lg);
}

.resume-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.resume-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  font-size: 0.9rem;
}

.resume-download-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--text-primary);
  color: var(--bg-primary);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.resume-download-btn:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
}

/* =========================================== */
/*  About Me Section                          */
/* =========================================== */
.about-me-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all 0.15s ease;
}

.about-me-content:hover {
  border-color: var(--border-medium);
}

.about-me-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

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

.about-me-content ul {
  list-style: none;
  margin-top: var(--space-xl);
}

.about-me-content li {
  background-color: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: all 0.15s ease;
}

.about-me-content li:hover {
  background-color: var(--bg-surface);
  border-color: var(--border-medium);
  transform: translateX(4px);
}

.about-me-content li strong {
  color: var(--accent-honey);
}

/* =========================================== */
/*  Skills Section                            */
/* =========================================== */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.skills-group {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.15s ease;
}

.skills-group:hover {
  border-color: var(--border-medium);
}

.skills-group h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.skill-tag {
  background-color: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.skill-tag:hover {
  background-color: var(--accent-blue-bg);
  border-color: var(--accent-blue-light);
  color: var(--accent-blue-light);
}

.skill-tag i {
  margin-right: var(--space-xs);
}

/* =========================================== */
/*  Education Section                         */
/* =========================================== */
.education-content {
  max-width: 100%;
  margin: 0 auto;
}

.education-item {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(191, 87, 0, 0.03) 100%);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-burnt-orange);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.education-item::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-burnt-orange-bg) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.education-item:hover {
  border-color: var(--border-medium);
  border-left-color: var(--accent-burnt-orange-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.education-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.education-logo {
  width: 80px;
  height: 80px;
  background-color: var(--accent-burnt-orange);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 2.5rem;
  color: white;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
}

.education-header-text {
  flex: 1;
}

.education-header h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.education-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}

.education-header p strong {
  color: var(--accent-burnt-orange);
}

.education-details {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
}

@media (max-width: 768px) {
  .education-details {
    grid-template-columns: 1fr;
  }
  
  .education-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .education-logo {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }
}

.education-column p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.education-column strong {
  color: var(--text-primary);
}

.education-column ul {
  list-style: none;
  margin-top: var(--space-sm);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-xs) var(--space-lg);
}

.education-column li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: var(--space-xs) 0;
  padding-left: var(--space-lg);
  position: relative;
}

.education-column li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-burnt-orange);
  font-weight: bold;
}

/* =========================================== */
/*  Experience Section                        */
/* =========================================== */
.experience-section h2 {
  margin-bottom: var(--space-2xl);
}

.experience-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.experience-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-lg);
  align-items: start;
  transition: all 0.15s ease;
  position: relative;
}

.experience-item:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* Flagship roles with accent border */
.flagship-role {
  border-left: 3px solid var(--accent-maroon-light);
}

.flagship-role:hover {
  border-left-color: var(--accent-coral);
}

.experience-content {
  flex: 1;
}

.experience-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.company-location {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
}

.summary {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.summary a {
  color: var(--accent-honey);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s ease;
}

.summary a:hover {
  text-decoration-color: var(--accent-honey);
}

/* Role Badge */
.role-badge {
  background-color: var(--accent-maroon-bg);
  color: var(--accent-coral);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Tech bullets - shown on hover */
.tech-bullets {
  list-style: none;
  margin-top: var(--space-md);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.2s ease;
}

.experience-item:hover .tech-bullets {
  max-height: 500px;
  opacity: 1;
}

.tech-bullets li {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  line-height: 1.6;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  position: relative;
}

.tech-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-blue-light);
  font-weight: 600;
}

.tech-bullets a {
  color: var(--accent-honey);
}

.tech-bullets a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .experience-item {
    grid-template-columns: 1fr;
  }
  
  .role-badge {
    justify-self: start;
    order: -1;
    margin-bottom: var(--space-sm);
  }
}

/* =========================================== */
/*  Projects Section                          */
/* =========================================== */
.section-header {
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: calc(-1 * var(--space-xl));
  margin-bottom: var(--space-2xl);
}

/* Featured Projects - Hero Cards */
.featured-projects {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.featured-project {
  position: relative;
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(30, 30, 30, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.25s ease;
}

.featured-project:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.featured-project-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.featured-project:hover .featured-project-glow {
  opacity: 0.6;
}

/* Glow colors per card */
.featured-project-cursor .featured-project-glow {
  background: radial-gradient(ellipse 80% 100% at 20% 0%, rgba(125, 158, 138, 0.3), transparent 60%);
}

.featured-project-llm .featured-project-glow {
  background: radial-gradient(ellipse 80% 100% at 20% 0%, rgba(212, 168, 112, 0.3), transparent 60%);
}

.featured-project-diffusion .featured-project-glow {
  background: radial-gradient(ellipse 80% 100% at 20% 0%, rgba(107, 129, 140, 0.3), transparent 60%);
}

.featured-project-content {
  position: relative;
  padding: var(--space-2xl);
  z-index: 1;
}

.featured-project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.featured-project-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.featured-project:hover .featured-project-icon {
  transform: scale(1.1);
}

.featured-project-cursor .featured-project-icon {
  background: linear-gradient(135deg, rgba(125, 158, 138, 0.2), rgba(125, 158, 138, 0.1));
  color: var(--accent-sage-light);
}

.featured-project-llm .featured-project-icon {
  background: linear-gradient(135deg, rgba(212, 168, 112, 0.2), rgba(212, 168, 112, 0.1));
  color: var(--accent-honey);
}

.featured-project-diffusion .featured-project-icon {
  background: linear-gradient(135deg, rgba(107, 129, 140, 0.2), rgba(107, 129, 140, 0.1));
  color: var(--accent-blue-light);
}

.featured-project-badges {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.project-badge {
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.project-badge-live {
  background-color: rgba(125, 158, 138, 0.15);
  color: var(--accent-sage-light);
  border: 1px solid rgba(125, 158, 138, 0.3);
}

.project-badge-ai {
  background-color: rgba(125, 158, 138, 0.1);
  color: var(--accent-sage);
}

.project-badge-research {
  background-color: rgba(212, 168, 112, 0.15);
  color: var(--accent-honey);
}

.project-badge-metrics {
  background-color: rgba(74, 5, 28, 0.2);
  color: var(--accent-coral);
}

.project-badge-dual {
  background-color: rgba(107, 129, 140, 0.15);
  color: var(--accent-blue-light);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-sage-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.featured-project h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

.featured-project-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

.featured-project-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.featured-project-highlights {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background-color: var(--bg-inset);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.highlight-item {
  flex: 1;
  text-align: center;
}

.highlight-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.highlight-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-xs);
}

.featured-project-details {
  list-style: none;
  margin-bottom: var(--space-xl);
  padding-left: 0;
}

.featured-project-details li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  padding: var(--space-sm) 0;
  padding-left: var(--space-xl);
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.featured-project-details li:last-child {
  border-bottom: none;
}

.featured-project-details li::before {
  content: '›';
  position: absolute;
  left: var(--space-sm);
  color: var(--accent-honey);
  font-weight: 700;
  font-size: 1.1rem;
}

.featured-project-details li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.featured-project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.tech-tag {
  background-color: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.tech-tag:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.featured-project-actions {
  display: flex;
  gap: var(--space-md);
}

.project-action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.project-action-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

.project-action-primary:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* Other Projects Carousel Section */
.other-projects-section {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
}

.other-projects-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.carousel-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-medium);
  color: var(--text-primary);
  transform: scale(1.05);
}

.projects-carousel {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--space-sm) 0;
  flex: 1;
}

.projects-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex: 0 0 260px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.15s ease;
}

.carousel-card:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.carousel-card-icon {
  width: 40px;
  height: 40px;
  background-color: var(--bg-inset);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--accent-honey);
  font-size: 1rem;
  transition: transform 0.15s ease;
}

.carousel-card:hover .carousel-card-icon {
  transform: scale(1.1);
}

.carousel-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.carousel-card h4 a {
  color: var(--text-primary);
  transition: color 0.15s ease;
}

.carousel-card h4 a:hover {
  color: var(--accent-honey);
}

.carousel-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.carousel-tech {
  color: var(--text-tertiary);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Legacy project-card styles (keep for backwards compatibility) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.project-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.15s ease;
}

.project-card:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.project-card h3 a {
  color: var(--text-primary);
  transition: color 0.15s ease;
}

.project-card h3 a:hover {
  color: var(--accent-honey);
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.project-card strong {
  color: var(--accent-honey);
  font-weight: 500;
}

.project-note {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-style: italic;
}

/* Responsive adjustments for featured projects */
@media (max-width: 768px) {
  .featured-project-content {
    padding: var(--space-xl);
  }
  
  .featured-project h3 {
    font-size: 1.25rem;
  }
  
  .featured-project-highlights {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .highlight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  
  .highlight-label {
    margin-top: 0;
  }
  
  .carousel-btn {
    display: none;
  }
  
  .carousel-card {
    flex: 0 0 85%;
  }
}

@media (max-width: 480px) {
  .featured-project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
  
  .featured-project-badges {
    align-self: flex-start;
  }
  
  .project-action-btn {
    width: 100%;
    justify-content: center;
  }
  
  .featured-project-actions {
    flex-direction: column;
  }
}

/* =========================================== */
/*  Hobbies Section                           */
/* =========================================== */
.hobbies-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.hobby-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.15s ease;
}

.hobby-item:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.hobby-item i {
  font-size: 2rem;
  color: var(--accent-coral);
  margin-bottom: var(--space-md);
  display: block;
  transition: transform 0.15s ease;
}

.hobby-item:hover i {
  transform: scale(1.1);
}

.hobby-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.hobby-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* =========================================== */
/*  Utility Classes                           */
/* =========================================== */
.text-center { text-align: center; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }

/* =========================================== */
/*  Animations                                */
/* =========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animations for cards */
.featured-card,
.experience-item,
.project-card,
.hobby-item,
.skills-group {
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}

.featured-card:nth-child(1) { animation-delay: 0.1s; }
.featured-card:nth-child(2) { animation-delay: 0.15s; }
.featured-card:nth-child(3) { animation-delay: 0.2s; }

.experience-item:nth-child(1) { animation-delay: 0.1s; }
.experience-item:nth-child(2) { animation-delay: 0.15s; }
.experience-item:nth-child(3) { animation-delay: 0.2s; }
.experience-item:nth-child(4) { animation-delay: 0.25s; }
.experience-item:nth-child(5) { animation-delay: 0.3s; }
.experience-item:nth-child(n+6) { animation-delay: 0.35s; }

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.15s; }
.project-card:nth-child(3) { animation-delay: 0.2s; }
.project-card:nth-child(n+4) { animation-delay: 0.25s; }

/* =========================================== */
/*  Responsive Adjustments                    */
/* =========================================== */
@media (max-width: 768px) {
  :root {
    --space-xl: 20px;
    --space-2xl: 24px;
    --space-3xl: 40px;
  }
  
  section.container,
  .featured-section,
  .experience-section,
  .projects-section {
    padding: var(--space-2xl) var(--space-lg);
  }
  
  .hero {
    padding: var(--space-2xl) var(--space-lg);
  }
  
  .hero .prof-pic {
    width: 140px;
    height: 140px;
  }
  
  .featured-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .education-details {
    grid-template-columns: 1fr;
  }
  
  .about-me-content,
  .education-item,
  .experience-item,
  .project-card {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .hero-metrics {
    gap: var(--space-sm);
  }
  
  .hero-metric {
    font-size: 0.8rem;
    padding: var(--space-xs) var(--space-md);
  }
  
  .featured-card,
  .hobby-item {
    padding: var(--space-lg);
  }
  
  .skills-container {
    grid-template-columns: 1fr;
  }
}

/* =========================================== */
/*  Footer                                    */
/* =========================================== */
footer {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  color: var(--text-tertiary);
  font-size: 0.85rem;
}
