/* ==========================================================================
   CSS Variables / Tokens (Ultra Premium Setup)
   ========================================================================== */
:root {
  /* Core Deep Dark Theme */
  --bg-app: #050505;
  --bg-base: #0a0a0a;
  --bg-surface: rgba(18, 18, 18, 0.7);
  --bg-card: rgba(26, 26, 26, 0.6);
  --bg-card-hover: rgba(36, 36, 36, 0.8);

  /* Vibrant Accents */
  --accent-primary: #38bdf8;
  /* Vibrant Sky */
  --accent-secondary: #c084fc;
  /* Vibrant Purple */
  --accent-tertiary: #f472b6;
  /* Vibrant Pink */

  --accent-glow: rgba(56, 189, 248, 0.15);
  --gradient-main: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  --gradient-text: linear-gradient(to right, #f8fafc, #94a3b8);

  /* Text */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #020617;

  /* Lines/Borders */
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.4);

  /* FX & Geometry */
  --blur-md: blur(12px);
  --blur-lg: blur(24px);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Fonts */
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, monospace;

  /* Transitions */
  --trans-fast: 0.2s ease;
  --trans-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme Overrides */
:root[data-theme="light"] {
  --bg-app: #f8fafc;
  --bg-base: #ffffff;
  --bg-surface: rgba(255, 255, 255, 0.8);
  --bg-card: rgba(241, 245, 249, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 1);

  --accent-primary: #0ea5e9;
  --accent-secondary: #9333ea;
  --accent-glow: rgba(14, 165, 233, 0.1);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-inverse: #ffffff;

  --border-light: rgba(15, 23, 42, 0.08);
  --border-glow: rgba(14, 165, 233, 0.4);

  --gradient-text: linear-gradient(to right, #0f172a, #475569);
}

/* ==========================================================================
   Base Reset & Global Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-app);
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-main);
}

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

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.dot {
  color: var(--accent-primary);
}

/* Scroll Progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-main);
  z-index: 1000;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   Ambient Background Effects
   ========================================================================== */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.5;
  animation: orb-float 20s infinite alternate linear;
}

.orb-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
}

.orb-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
  animation-delay: -5s;
}

.orb-3 {
  top: 40%;
  left: 60%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--accent-tertiary) 0%, transparent 70%);
  animation-delay: -10s;
  opacity: 0.3;
}

@keyframes orb-float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(5%, 5%) scale(1.1);
  }

  100% {
    transform: translate(-5%, 10%) scale(0.9);
  }
}

/* ==========================================================================
   Layout & Utilities
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section-offset {
  margin-top: -4rem;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: 600;
}

/* Magic Hover Effect for Cards */
.magic-hover {
  position: relative;
}

.magic-hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
      rgba(255, 255, 255, 0.06),
      transparent 40%);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.magic-hover:hover::before {
  opacity: 1;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-in-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible,
.fade-in-scale.visible,
.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1200px;
  z-index: 50;
  background: var(--bg-surface);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 1px solid var(--border-light);
  border-radius: 99px;
  transition: var(--trans-smooth);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 2rem;
}

.brand h1 {
  font-size: 1.4rem;
}

.brand .subtitle {
  display: none;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--trans-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--trans-bounce);
}

.theme-toggle:hover {
  background: var(--accent-glow);
  border-color: var(--accent-primary);
  transform: scale(1.1);
}

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

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

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

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


/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-grid>* {
  min-width: 0;
}

.badge-intro {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  backdrop-filter: var(--blur-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--trans-bounce);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-large {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--text-main);
  color: var(--text-inverse);
  box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px -10px rgba(255, 255, 255, 0.4);
}

.btn-primary .arrow {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
  transform: translateX(5px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  backdrop-filter: var(--blur-md);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-light);
}

/* Hero Visual shapes */
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creative-shape {
  position: relative;
  width: 400px;
  height: 400px;
}

.shape-inner {
  width: 100%;
  height: 100%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: var(--gradient-main);
  animation: morph 8s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(56, 189, 248, 0.3);
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  /* You can add a background-image here like url('images/profile.jpg') */
  background-size: cover;
  background-position: center;
}

@keyframes morph {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  100% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
}

.floating-badge {
  position: absolute;
  padding: 0.8rem 1.5rem;
  background: var(--bg-surface);
  backdrop-filter: var(--blur-lg);
  border: 1px solid var(--border-light);
  border-radius: 99px;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: float 6s ease-in-out infinite;
  z-index: 10;
}

.badge-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 20%;
  right: -5%;
  animation-delay: -2s;
  border-color: var(--accent-secondary);
}

.badge-3 {
  bottom: 0%;
  left: 15%;
  animation-delay: -4s;
  border-color: var(--accent-primary);
}

.badge-4 {
  bottom: 30%;
  left: 10%;
  animation-delay: -4s;
  border-color: var(--accent-primary);
}

.badge-5 {
  bottom: 50%;
  right: -15%;
  animation-delay: 1s;
  border-color: var(--accent-primary);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  padding: 4rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-grid>* {
  min-width: 0;
}

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

.about-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.code-window {
  background: #020617;
  /* Dark slate */
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.window-header {
  background: #0f172a;
  padding: 0.8rem 1rem;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot-red,
.dot-yellow,
.dot-green {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red {
  background: #ef4444;
}

.dot-yellow {
  background: #eab308;
}

.dot-green {
  background: #22c55e;
}

.window-body {
  padding: 1.5rem;
  overflow-x: auto;
}

.window-body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #38bdf8;
  /* Syntax highlighting color */
  line-height: 1.5;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--trans-smooth);
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px -10px rgba(56, 189, 248, 0.1);
}

.glow-wrap {
  padding: 2.5rem;
  position: relative;
  z-index: 5;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.skill-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.skill-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

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

.tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  transition: var(--trans-fast);
}

.tag.highlight {
  background: var(--accent-glow);
  color: var(--accent-primary);
  border-color: rgba(56, 189, 248, 0.3);
}

.skill-card:hover .tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: -0.5rem;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--trans-fast);
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.filter-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.filter-btn.is-active {
  background: var(--gradient-main);
  border-color: transparent;
  color: var(--text-inverse);
  box-shadow: 0 8px 20px -8px var(--accent-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
}

.project-card.is-hidden {
  display: none;
}

.projects-cta {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--trans-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.project-card-featured {
  grid-column: 1 / -1;
  border-color: var(--border-glow);
  background: linear-gradient(160deg, var(--bg-card-hover), var(--bg-card));
}

.project-card-featured .project-image {
  height: 180px;
}

.featured-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--gradient-main);
  color: var(--text-inverse);
  vertical-align: middle;
  margin-left: 0.6rem;
}

.project-image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mockup-icon {
  font-size: 5rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  transition: var(--trans-smooth);
}

.project-card:hover .mockup-icon {
  transform: scale(1.1) translateY(-10px);
}

.project-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 5;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-link {
  color: var(--text-muted);
  transition: var(--trans-fast);
}

.icon-link:hover {
  color: var(--text-main);
  transform: scale(1.1);
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-panel {
  text-align: center;
  position: relative;
  overflow: hidden;
  border-color: var(--border-glow);
}

.contact-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.contact-content {
  position: relative;
  z-index: 5;
  max-width: 600px;
  margin: 0 auto;
}

.contact-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.contact-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  transition: var(--trans-bounce);
}

.social-icon:hover {
  background: var(--text-main);
  color: var(--text-inverse);
  transform: translateY(-5px);
  border-color: var(--text-main);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 3rem 0;
  background: rgba(0, 0, 0, 0.3);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand h3 {
  font-size: 1.2rem;
}

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

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

/* ==========================================================================
   Responsive Logic
   ========================================================================== */
@media (max-width: 1024px) {
  .nav {
    gap: 1.2rem;
  }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    text-align: center;
    order: 1;
  }

  .hero-visual {
    order: 0;
    height: 400px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 1rem;
  }

  .about-grid {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .site-header {
    top: auto;
    bottom: 1rem;
    width: calc(100% - 2rem);
  }

  .header-content {
    padding: 0 1rem;
    justify-content: center;
  }

  .brand {
    display: none;
  }

  .nav {
    gap: 0.8rem;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
  }

  .section {
    padding: 5rem 0;
  }

  .hero-section {
    padding-top: 2rem;
  }

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

  .hero-desc {
    max-width: none;
  }

  .hero-visual {
    height: 300px;
  }

  .creative-shape {
    width: 280px;
    height: 280px;
  }

  .floating-badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .badge-1 {
    left: 0;
  }

  .badge-2 {
    right: 0;
  }

  .badge-5 {
    right: 0;
    display: none;
  }

  .glass-panel {
    padding: 2rem 1.5rem;
  }

  .about-text h2,
  .section-header h2 {
    font-size: 1.9rem;
  }

  .code-window {
    max-width: 100%;
  }

  .window-body pre {
    font-size: 0.8rem;
  }

  .project-filters {
    gap: 0.5rem;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card-featured {
    grid-column: 1 / -1;
  }

  .contact-panel {
    padding: 2rem 1.5rem;
  }

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

  .footer-content {
    flex-direction: column;
    text-align: center;
    padding-bottom: 5rem;
    gap: 1rem;
  }
}

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

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

  .badge-intro {
    font-size: 0.8rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .stat-num {
    font-size: 1.4rem;
  }

  .nav {
    gap: 0.5rem;
  }

  .nav-link {
    font-size: 0.78rem;
  }

  .tags-container {
    gap: 0.4rem;
  }

  .social-links {
    gap: 1rem;
  }
}