/* 
  Ethan Sienes — Portfolio Stylesheet
  Mobile-First Architecture (Apple & Linear Grayscale Aesthetics)
*/

/* --- 1. Design System & Variables --- */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  
  --text-primary: #000000;
  --text-secondary: #6e6e73;
  --text-tertiary: #a1a1a6;
  
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-border-hover: rgba(0, 0, 0, 0.12);
  --glass-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.03);
  --glass-shadow-hover: 0 20px 40px 0 rgba(0, 0, 0, 0.08);
  --glass-blur: blur(24px) saturate(190%);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Outfit", "Inter", "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-full: 9999px;
  
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s ease;
}

/* Dark Mode Override Variables */
[data-theme="dark"] {
  --bg-primary: #09090b;
  --bg-secondary: #18181b;
  
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1a6;
  --text-tertiary: #52525b;
  
  --glass-bg: rgba(9, 9, 11, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.3);
  --glass-shadow-hover: 0 20px 40px 0 rgba(0, 0, 0, 0.5);
}

/* --- 2. Base Reset & Defaults --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Base mobile container padding */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #d2d2d7;
  border-radius: var(--radius-full);
  border: 3px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: #86868b;
}

/* --- 3. Background Liquid Glass Blobs --- */
.background-glass-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.glass-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #eaeaea 0%, rgba(255,255,255,0) 70%);
  top: -80px;
  left: -80px;
  animation: float-blob-1 25s infinite alternate ease-in-out;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #f0f0f2 0%, rgba(255,255,255,0) 70%);
  top: 35%;
  right: -150px;
  animation: float-blob-2 30s infinite alternate ease-in-out;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #e5e5e5 0%, rgba(255,255,255,0) 70%);
  bottom: -100px;
  left: 10%;
  animation: float-blob-3 20s infinite alternate ease-in-out;
}

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

@keyframes float-blob-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(0.85); }
  100% { transform: translate(25px, 20px) scale(1.05); }
}

@keyframes float-blob-3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, 50px) scale(1.15); }
  100% { transform: translate(30px, -25px) scale(0.95); }
}

/* --- 4. Navigation Bar (Mobile First) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

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

.nav-logo {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
  z-index: 110;
}

.nav-logo:hover {
  opacity: 0.75;
}

/* Status pill in the navigation bar */
.nav-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
  white-space: nowrap;
  transition: var(--transition-fast);
}

.nav-status-pill:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--glass-border-hover);
  transform: scale(1.02);
}

/* --- 5. Hero Section (Mobile First) --- */
.hero-section {
  position: relative;
  min-height: 70vh; /* Reduced height on mobile to prevent excessive empty space */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 80px;
  background-color: var(--bg-primary);
  width: 100%;
}

/* Smooth gradient fade at the bottom of hero cover (disabled for white bg) */
.hero-section::after {
  display: none;
}

/* --- 5a. Partner Logos Marquee Section --- */
.logos-section {
  width: 100%;
  background: var(--bg-primary);
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.logos-container {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.logos-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.logo-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 45px;
  width: 220px;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-tertiary);
  transition: color 0.3s ease, transform 0.3s ease;
}

.logo-svg {
  height: 30px;
  width: auto;
  opacity: 0.35;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.logo-link:hover .logo-svg {
  opacity: 0.9;
  color: var(--text-primary);
}

.logo-link:hover {
  transform: scale(1.02);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- 5b. Hero Grid & HUD Elements --- */
.hero-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--glass-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55; /* Very subtle grid lines */
}

.hero-badge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}


.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #34c759;
  border-radius: 50%;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid rgba(52, 199, 89, 0.4);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.scroll-hud {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
}

.scroll-hud-text {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.scroll-hud-icon {
  width: 14px;
  height: 24px;
  border: 1px solid var(--glass-border);
  border-radius: 7px;
  position: relative;
}

.scroll-hud-dot {
  width: 4px;
  height: 4px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-dot 2s infinite ease-in-out;
}

/* Staggered Delay Classes */
.reveal-delay-1 { animation-delay: 150ms; }
.reveal-delay-2 { animation-delay: 350ms; }
.reveal-delay-3 { animation-delay: 550ms; }
.reveal-delay-4 { animation-delay: 750ms; }
.reveal-delay-5 { animation-delay: 950ms; }

@keyframes pulse-dot {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes scroll-dot {
  0% {
    transform: translate(-50%, 0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  80% {
    transform: translate(-50%, 10px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.hero-content {
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 10;
}

.hero-headline {
  font-family: var(--font-sans);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-subheadline {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 32px auto;
}

.hero-cta-btn {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--glass-border);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
  box-shadow: var(--glass-shadow);
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: var(--glass-shadow-hover);
  background: rgba(255, 255, 255, 0.95);
}

/* --- 6. Section Titles --- */
.works-section {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* --- 7. Works Grid (Mobile First) --- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.bento-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 380px;
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glass label overlay */
.card-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.visit-label {
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  transform: translateY(15px) scale(0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

/* Hover effects */
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-hover);
}

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

.bento-card:hover .card-hover-overlay {
  opacity: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bento-card:hover .visit-label {
  transform: translateY(0) scale(1);
}

.card-info {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.card-category {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.card-year {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* --- 8. About Section (Mobile First) --- */
.about-section {
  padding: 80px 0;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-paragraph {
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

.metric-num {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.metric-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Profile Photo Wrap */
.about-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 12px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
}

.about-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: var(--transition-smooth);
}

.about-image-wrapper:hover {
  transform: scale(1.01) translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

.about-image-wrapper:hover .about-img {
  filter: grayscale(0%);
}

.about-profile-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  z-index: 10;
  transition: var(--transition-smooth);
}

.profile-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.profile-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

/* Hover shifts overlay slightly up */
.about-image-wrapper:hover .about-profile-overlay {
  transform: translateY(-4px);
  background: var(--glass-bg);
  border-color: var(--glass-border-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* --- 9. Tech Stack Section (Mobile First) --- */
.stack-section {
  padding: 80px 0;
}

.stack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

.stack-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.stack-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

.stack-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  flex-shrink: 0;
}

.stack-icon {
  width: 20px;
  height: 20px;
}

.stack-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.stack-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 2px;
}

.stack-role {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --- 10. Contact Footer (Mobile First) --- */
.contact-footer {
  padding: 100px 0 40px 0;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-headline {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.footer-email {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1.5px solid var(--text-primary);
  padding-bottom: 4px;
  margin-bottom: 36px;
  transition: var(--transition-fast);
}

.footer-email:hover {
  opacity: 0.6;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.footer-link-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-link-item:hover {
  color: var(--text-primary);
}

.link-divider {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.messenger-btn:hover {
  transform: translateY(-2px);
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  box-shadow: var(--glass-shadow-hover);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* --- 11. Scroll Animations --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  animation: fade-in-keyframes 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* --- 12. Responsive Breakpoints (Mobile First min-width Queries) --- */

/* Tablets Landscape & Portrait (min-width: 768px) */
@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
  
  .nav-container {
    padding: 0 32px;
  }
  
  .hero-section {
    min-height: 75vh;
    padding-top: 140px;
    padding-bottom: 100px;
  }
  
  .hero-headline {
    font-size: 3.25rem;
    line-height: 1.12;
  }
  
  .hero-subheadline {
    font-size: 1.2rem;
    margin-bottom: 36px;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  /* Expand works grid to 2 columns */
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  
  .bento-card {
    height: 440px;
  }
  
  .card-image-wrapper {
    height: 320px;
  }
  
  .about-paragraph {
    font-size: 1.65rem;
    margin-bottom: 40px;
  }
  
  .about-metrics {
    gap: 20px;
  }
  
  .metric-card {
    padding: 24px 16px;
  }
  
  .metric-num {
    font-size: 2.25rem;
  }
  
  .metric-label {
    font-size: 0.8rem;
  }
  
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stack-section, .about-section, .works-section {
    padding: 100px 0;
  }
  
  .footer-headline {
    font-size: 3rem;
  }
  
  .footer-email {
    font-size: 2rem;
  }
}

/* Laptops & Desktop Monitors (min-width: 1024px) */
@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }
  
  .nav-container {
    padding: 0 40px;
  }
  

  
  .navbar {
    padding: 28px 0;
  }
  
  .navbar.scrolled {
    padding: 16px 0;
  }
  
  .hero-section {
    min-height: 80vh;
    padding-top: 160px;
    padding-bottom: 120px;
  }
  
  .hero-headline {
    font-size: 4.5rem;
    line-height: 1.1;
  }
  
  .hero-subheadline {
    font-size: 1.35rem;
    margin-bottom: 40px;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .bento-grid {
    gap: 32px;
  }
  
  .bento-card {
    height: 480px;
  }
  
  .card-image-wrapper {
    height: 360px;
  }
  
  /* Horizontal split for About grid */
  .about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: start;
  }
  
  .about-paragraph {
    font-size: 1.85rem;
    line-height: 1.45;
  }
  
  .stack-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .stack-section, .about-section, .works-section {
    padding: 120px 0;
  }
  
  .contact-footer {
    padding: 160px 0 60px 0;
  }
  
  .footer-headline {
    font-size: 3.5rem;
    line-height: 1.15;
  }
  
  .footer-email {
    font-size: 2.25rem;
    margin-bottom: 48px;
  }
}

/* --- 12. Floating Theme Toggle Widget --- */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  transform: scale(1.08) translateY(-2px);
  border-color: var(--glass-border-hover);
  background: var(--bg-primary);
}

.theme-icon {
  width: 18px;
  height: 18px;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Light mode defaults: show moon, hide sun */
.theme-toggle .sun-icon {
  position: absolute;
  opacity: 0;
  transform: rotate(45deg);
}

.theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0);
}

/* Dark mode overrides: show sun, hide moon */
[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0);
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(-45deg);
}

/* Dark Mode Background Blob adjustments */
[data-theme="dark"] .glass-blob {
  mix-blend-mode: screen;
  opacity: 0.12;
}

[data-theme="dark"] .blob-1 {
  background: radial-gradient(circle, #2d2d30 0%, rgba(9,9,11,0) 70%);
}

[data-theme="dark"] .blob-2 {
  background: radial-gradient(circle, #242427 0%, rgba(9,9,11,0) 70%);
}

[data-theme="dark"] .blob-3 {
  background: radial-gradient(circle, #2d2d30 0%, rgba(9,9,11,0) 70%);
}

/* Dark Mode Scrollbar override */
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #3f3f46;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #09090b;
}

/* Scroll status pill highlight on dark scroll */
[data-theme="dark"] .navbar.scrolled {
  background: rgba(9, 9, 11, 0.75);
}
