/* Styles for Raghav Sethi's Portfolio */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- CUSTOM PROPERTIES --- */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color Palette */
  --bg-dark: #080b11;
  --bg-card: rgba(17, 25, 40, 0.6);
  --bg-card-hover: rgba(25, 36, 56, 0.85);
  --border-color: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  --primary: #8b5cf6; /* violet */
  --primary-rgb: 139, 92, 246;
  --secondary: #06b6d4; /* cyan */
  --secondary-rgb: 6, 182, 212;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-glow: #ffffff;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.15);
}

/* Light Mode Overrides */
[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  
  --primary: #6d28d9;
  --secondary: #0891b2;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-glow: #000000;
  
  --shadow-glow: 0 0 25px rgba(109, 40, 217, 0.08);
}

/* --- RESET & GLOBALS --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- DECORATIVE BACKGROUND BLOBS --- */
.bg-blobs {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  transition: all var(--transition-slow);
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  left: -100px;
  animation: float-blob 20s infinite alternate;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary);
  bottom: -150px;
  right: -100px;
  animation: float-blob 25s infinite alternate-reverse;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: #a855f7;
  top: 40%;
  left: 60%;
  animation: float-blob 18s infinite alternate;
}

[data-theme="light"] .blob {
  opacity: 0.08;
}

@keyframes float-blob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(60px, 40px) scale(1.1);
  }
  100% {
    transform: translate(-30px, 80px) scale(0.9);
  }
}

/* --- GLASS CONTAINER STYLING --- */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

.glass-panel-hover:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* --- TYPOGRAPHY UTILITIES --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- HEADER / NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background-color var(--transition-fast), padding var(--transition-fast);
}

header.scrolled {
  background: rgba(8, 11, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] header.scrolled {
  background: rgba(248, 250, 252, 0.85);
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width var(--transition-fast);
  border-radius: 2px;
}

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

.actions-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.theme-toggle .sun-icon {
  display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: none;
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --- HERO SECTION --- */
.section {
  padding: 7rem 2rem 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
  min-height: 90vh;
  padding-top: 8rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tagline {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tagline::before {
  content: '';
  width: 20px;
  height: 2px;
  background-color: var(--primary);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
}

/* Typewriter animation */
.typewriter-wrapper {
  display: inline-block;
  min-height: 1.2em;
  vertical-align: bottom;
}

.typewriter {
  font-weight: 700;
  color: var(--text-main);
  border-right: 2px solid var(--primary);
  white-space: nowrap;
  animation: blink 0.75s step-end infinite;
  font-size: clamp(1.6rem, 5vw, 3.5rem);
}

@keyframes blink {
  from, to { border-color: transparent }
  50% { border-color: var(--primary); }
}



.hero-cta {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  box-shadow: 0 10px 20px -5px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(var(--primary-rgb), 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow-glow), 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  animation: subtle-pulse 6s infinite alternate;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-dark);
}

@keyframes subtle-pulse {
  0% {
    transform: scale(1) rotate(0deg);
  }
  100% {
    transform: scale(1.03) rotate(2deg);
  }
}

.avatar-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  filter: blur(30px);
  opacity: 0.35;
  z-index: -1;
}

/* --- STATS SECTION --- */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: -3rem;
  margin-bottom: 5rem;
  padding: 0 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.stat-card {
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- APPS / PORTFOLIO SECTION --- */
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.section-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
}

.filter-search-container {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Filters */
.filter-tabs {
  display: flex;
  background: var(--bg-card);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  gap: 0.25rem;
}

.filter-tab {
  background: none;
  border: none;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.filter-tab:hover {
  color: var(--text-main);
}

.filter-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

[data-theme="light"] .filter-tab.active {
  background: rgba(0, 0, 0, 0.05);
}

/* Search Bar */
.search-wrapper {
  position: relative;
}

.search-input {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border-radius: 12px;
  color: var(--text-main);
  font-size: 0.9rem;
  width: 240px;
  transition: width var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.15);
  width: 280px;
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

/* App Grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  min-height: 300px;
}

.no-apps-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* App Card styling */
.app-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--app-color, var(--primary));
  opacity: 0.7;
}

.app-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.app-card-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.app-card:hover .app-card-img-wrapper img {
  transform: scale(1.03);
}

.app-card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.3rem 0.75rem;
  background: rgba(8, 11, 17, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

.app-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.app-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  transition: color var(--transition-fast);
}

.app-card:hover .app-card-title {
  color: var(--app-color, var(--primary));
}

.app-card-rating {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fbbf24; /* Amber yellow */
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(251, 191, 36, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.app-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.app-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.25rem;
}

.app-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-muted);
}

[data-theme="light"] .tag-pill {
  background: rgba(0, 0, 0, 0.03);
}

.app-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.learn-more-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--app-color, var(--primary));
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.learn-more-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.app-card:hover .learn-more-link svg {
  transform: translateX(3px);
}

/* Hover glow effects custom per card */
.app-card:hover {
  box-shadow: var(--shadow-lg), 0 0 25px var(--app-color-light, var(--shadow-glow));
}

/* --- SKILLS & STACK --- */
.skills-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 5rem 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.skill-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.1));
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.skill-icon svg {
  width: 24px;
  height: 24px;
}

.skill-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.skill-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- CONTACT SECTION --- */
.contact-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  padding: 5rem 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-text {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
}

.contact-detail-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-detail-value {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Social icons grid */
.socials-list {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
}

.social-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
  transform: translateY(-2px);
}

/* Form Styles */
.contact-form-panel {
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

[data-theme="light"] .form-control {
  background: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.15);
}

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

/* Success Checkmark Animation styles */
.form-success-wrapper {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 0;
  text-align: center;
  animation: fadeIn 0.4s ease forwards;
}

.checkmark-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  position: relative;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.checkmark-circle svg {
  width: 36px;
  height: 36px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  background: rgba(8, 11, 17, 0.4);
}

[data-theme="light"] footer {
  background: rgba(248, 250, 252, 0.4);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-main);
}

/* --- PREMIUM INTERACTIVE DETAILS MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 11, 17, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 860px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 24px;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-normal);
  outline: none;
}

.modal-overlay.open .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(8, 11, 17, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.modal-hero-wrapper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  height: 380px;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
}

.modal-hero-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.modal-header-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.modal-title-desc {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-title {
  font-size: 2.25rem;
  font-weight: 800;
}

.modal-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.modal-badges {
  display: flex;
  gap: 0.75rem;
}

.modal-badge {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
}

.modal-main-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-sec-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-desc-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.modal-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal-feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--app-color, var(--primary));
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.modal-side-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.modal-tech-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-stats-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-stat-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-stat-val {
  font-weight: 700;
  font-size: 1.1rem;
}

.modal-stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-actions .btn {
  width: 100%;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 7rem;
    min-height: auto;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .stats-section {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
  }
  
  .apps-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide for mobile navigation toggle drawer */
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-container {
    padding: 0 1.5rem;
  }
  
  .section {
    padding: 5rem 1.5rem 3rem 1.5rem;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-search-container {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-input {
    width: 100%;
  }
  
  .search-input:focus {
    width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-form-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .stats-section {
    grid-template-columns: 1fr;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-overlay {
    padding: 1rem;
  }
}
