/* ================================================
   styles.css — Personal Portfolio Stylesheet
   Author: Alex Carter
   Structure:
   1.  CSS Custom Properties (Design Tokens)
   2.  Reset & Base Styles
   3.  Reusable / Utility Classes
   4.  Navbar
   5.  Hero Section
   6.  About Section
   7.  Skills Section
   8.  Projects Section
   9.  Contact Section
   10. Footer
   11. Animations & Keyframes
   12. Responsive Media Queries
================================================ */


/* ================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   — All colors, spacing, fonts defined here.
   — Light theme vars override dark theme vars.
================================================ */
:root {
  /* Dark theme (default) */
  --clr-bg:           #0d0d14;
  --clr-bg-2:         #13131e;
  --clr-bg-card:      #1a1a2e;
  --clr-border:       rgba(255, 255, 255, 0.07);
  --clr-text:         #e2e2f0;
  --clr-text-muted:   #8888aa;
  --clr-heading:      #ffffff;

  /* Brand / Accent */
  --clr-primary:      #7c6fff;
  --clr-primary-rgb:  124, 111, 255;
  --clr-secondary:    #ff6fd8;
  --clr-accent:       #43e97b;

  /* Gradient */
  --gradient-brand: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  --gradient-hero:  radial-gradient(ellipse at 60% 40%, rgba(124,111,255,0.25) 0%, transparent 70%);

  /* Navbar */
  --navbar-bg: rgba(13, 13, 20, 0.85);

  /* Shadows */
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 24px rgba(124, 111, 255, 0.35);

  /* Typography */
  --font-sans:  'Outfit', system-ui, sans-serif;
  --font-code:  'Fira Code', monospace;

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Section padding */
  --section-py: 6rem;
}

/* Light theme overrides — applied when <html data-theme="light"> */
[data-theme="light"] {
  --clr-bg:         #f5f4ff;
  --clr-bg-2:       #ede9ff;
  --clr-bg-card:    #ffffff;
  --clr-border:     rgba(0, 0, 0, 0.08);
  --clr-text:       #2d2d3a;
  --clr-text-muted: #666680;
  --clr-heading:    #0d0d14;
  --navbar-bg:      rgba(245, 244, 255, 0.9);
  --shadow-sm:      0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:      0 4px 24px rgba(0,0,0,0.12);
  --shadow-glow:    0 0 24px rgba(124, 111, 255, 0.2);
  --gradient-hero:  radial-gradient(ellipse at 60% 40%, rgba(124,111,255,0.12) 0%, transparent 70%);
}


/* ================================================
   2. RESET & BASE STYLES
================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Smooth scrolling for anchor links */
  scroll-behavior: smooth;
  /* Offset for fixed navbar */
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  min-height: 100vh;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4 {
  color: var(--clr-heading);
  line-height: 1.2;
  font-weight: 700;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

/* Lists */
ul {
  list-style: none;
}

/* Images */
img {
  display: block;
  max-width: 100%;
}

/* Focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ================================================
   3. REUSABLE / UTILITY CLASSES
================================================ */

/* ── Centered max-width wrapper ── */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Section base ── */
.section {
  padding-block: var(--section-py);
}

/* ── Section header (tag + title) ── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: rgba(var(--clr-primary-rgb), 0.1);
  padding: 0.3em 1em;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
}

/* ── Gradient text ── */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* fallback */
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

/* Primary button: filled gradient */
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(var(--clr-primary-rgb), 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(var(--clr-primary-rgb), 0.55);
}

/* Outline button */
.btn-outline {
  background: transparent;
  color: var(--clr-heading);
  border-color: var(--clr-border);
}

.btn-outline:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-2px);
}

/* Full-width button variant */
.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── Fade-in animation class (triggered by JS IntersectionObserver) ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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


/* ================================================
   4. NAVBAR
================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--transition), box-shadow var(--transition);
}

/* Add shadow when user scrolls (class toggled by JS) */
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.nav-logo {
  font-family: var(--font-code);
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  position: relative;
  padding-bottom: 2px;
}

/* Animated underline on hover */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-heading);
}

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

/* Nav right-side actions wrapper */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Theme toggle button ── */
.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-card);
  cursor: pointer;
  color: var(--clr-text);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.theme-btn:hover {
  background: rgba(var(--clr-primary-rgb), 0.15);
  transform: rotate(20deg) scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* SVG icons inside theme button */
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Show sun in dark mode, moon in light mode */
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ── Hamburger (mobile) ── */
.hamburger {
  display: none;           /* Hidden on desktop */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  background: var(--clr-bg-card);
  cursor: pointer;
  padding: 0 9px;
}

.ham-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--clr-text);
  border-radius: var(--radius-full);
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger → X animation when open */
.hamburger.open .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .ham-bar:nth-child(2) { opacity: 0; }
.hamburger.open .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile dropdown menu ── */
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-slow), padding var(--transition);
}

.mobile-menu.open {
  max-height: 320px;
  padding-block: 1rem;
}

.mobile-link {
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: color var(--transition), background var(--transition);
}

.mobile-link:hover {
  color: var(--clr-heading);
  background: rgba(var(--clr-primary-rgb), 0.08);
}


/* ================================================
   5. HERO SECTION
================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--clr-bg);
  overflow: hidden;
}

/* Radial glow overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

/* ── Decorative animated blobs ── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.blob-1 {
  width: 480px;
  height: 480px;
  background: var(--clr-primary);
  top: -100px;
  right: -100px;
  animation-duration: 10s;
}

.blob-2 {
  width: 360px;
  height: 360px;
  background: var(--clr-secondary);
  bottom: -80px;
  left: -80px;
  animation-duration: 13s;
  animation-delay: -4s;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px; /* Navbar height offset */
  max-width: 700px;
}

/* Available badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-accent);
  background: rgba(67, 233, 123, 0.12);
  border: 1px solid rgba(67, 233, 123, 0.3);
  padding: 0.4em 1em;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

/* Pulsing green dot */
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-accent);
  animation: pulse 2s infinite;
}

/* Main title */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* Typed subtitle */
.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--clr-text-muted);
  margin-bottom: 1.25rem;
  font-family: var(--font-code);
}

.typed-word {
  color: var(--clr-primary);
}

/* Blinking cursor for typing effect */
.typed-cursor {
  color: var(--clr-primary);
  animation: blink 0.75s step-end infinite;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 520px;
  margin-bottom: 2.25rem;
}

/* CTA buttons row */
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Social links */
.hero-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-card);
  color: var(--clr-text-muted);
  transition: color var(--transition), border-color var(--transition),
              transform var(--transition), box-shadow var(--transition);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  color: var(--clr-primary);
  border-color: var(--clr-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* ── Scroll indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: bounce 2s infinite;
  z-index: 2;
}

.scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--clr-text-muted);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--clr-primary);
  border-radius: var(--radius-full);
  animation: scrollWheel 1.8s ease-in-out infinite;
}


/* ================================================
   6. ABOUT SECTION
================================================ */
.about {
  background: var(--clr-bg-2);
}

/* Two-column grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}

/* Image card wrapper */
.about-image-wrapper {
  display: flex;
  justify-content: center;
}

.about-image-card {
  position: relative;
  width: 280px;
  height: 320px;
  border-radius: var(--radius-lg);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

/* Avatar initials placeholder */
.avatar-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  border: 3px solid rgba(255,255,255,0.3);
}

/* Floating badge overlay */
.about-badge {
  position: absolute;
  bottom: -14px;
  right: -14px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  color: var(--clr-heading);
}

/* About text */
.about-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-bio {
  font-size: 1rem;
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
}

/* Stats row */
.about-stats {
  display: flex;
  gap: 2rem;
  margin-block: 2rem 1.5rem;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}

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


/* ================================================
   7. SKILLS SECTION
================================================ */
.skills {
  background: var(--clr-bg);
}

/* 4-column grid (responsive via media queries) */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ── Reusable .skill-card ── */
.skill-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(var(--clr-primary-rgb), 0.4);
}

.skill-card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.skill-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Skill list items */
.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  transition: color var(--transition);
}

.skill-item:hover {
  color: var(--clr-text);
}

/* Colored dot before each skill */
.skill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
  flex-shrink: 0;
}


/* ================================================
   8. PROJECTS SECTION
================================================ */
.projects {
  background: var(--clr-bg-2);
}

/* Filter buttons row */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-card);
  color: var(--clr-text-muted);
  transition: all var(--transition);
}

.filter-btn:hover {
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}

/* Active filter state */
.filter-btn.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(var(--clr-primary-rgb), 0.35);
}

/* 3-column grid for project cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* ── Reusable .project-card ── */
.project-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

/* Card image placeholder */
.project-img {
  height: 180px;
  background: var(--card-color, var(--clr-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Gradient overlay on image */
.project-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
}

.project-img-label {
  font-size: 3rem;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

/* Card body */
.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: 1.1rem;
  flex: 1;
}

/* Tag pills */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tag {
  padding: 0.25em 0.8em;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(var(--clr-primary-rgb), 0.12);
  color: var(--clr-primary);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.2);
}

/* Card links row */
.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-link {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  background: var(--gradient-brand);
  color: #fff;
  transition: opacity var(--transition), transform var(--transition);
}

.project-link:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Ghost variant (outline) */
.project-link-ghost {
  background: transparent;
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
}

.project-link-ghost:hover {
  color: var(--clr-heading);
  border-color: var(--clr-text-muted);
}

/* Hidden card (filter) */
.project-card.hidden {
  display: none;
}


/* ================================================
   9. CONTACT SECTION
================================================ */
.contact {
  background: var(--clr-bg);
}

/* Two-column layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-intro {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Info cards stack */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition);
}

.contact-card:hover {
  border-color: rgba(var(--clr-primary-rgb), 0.4);
  transform: translateX(4px);
}

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

.contact-card div {
  display: flex;
  flex-direction: column;
}

.contact-card strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-heading);
  margin-bottom: 0.1rem;
}

.contact-card span {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
}

/* ── Contact Form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Individual form field wrapper */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

/* Shared styles for input + textarea */
.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-card);
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input::placeholder {
  color: var(--clr-text-muted);
  opacity: 0.6;
}

.form-input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(var(--clr-primary-rgb), 0.15);
}

/* Error state */
.form-input.input-error {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

/* Textarea specific */
.form-textarea {
  resize: vertical;
  min-height: 130px;
}

/* Error message text */
.form-error {
  font-size: 0.8rem;
  color: #ff6b6b;
  height: 1em;   /* reserve space to prevent layout shift */
}

/* Success banner */
.form-success {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(67, 233, 123, 0.12);
  border: 1px solid rgba(67, 233, 123, 0.3);
  color: var(--clr-accent);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}


/* ================================================
   10. FOOTER
================================================ */
.footer {
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
  padding-block: 2rem;
}

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

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

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

.footer-link {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  transition: color var(--transition);
}

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


/* ================================================
   11. ANIMATIONS & KEYFRAMES
================================================ */

/* Floating animation for hero blobs */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* Badge pulsing dot */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(67, 233, 123, 0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(67, 233, 123, 0); }
}

/* Blinking cursor */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Scroll indicator bounce */
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Scroll wheel internal animation */
@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}


/* ================================================
   12. RESPONSIVE MEDIA QUERIES
================================================ */

/* ── Large tablets ── */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Tablets ── */
@media (max-width: 768px) {

  :root {
    --section-py: 4rem;
  }

  /* Show hamburger, hide desktop nav */
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  /* About: stack columns */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image-wrapper {
    order: -1;
  }

  /* Contact: stack columns */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Footer: center */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ── Mobile ── */
@media (max-width: 600px) {

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

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

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

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .about-stats {
    gap: 1.25rem;
  }

  .project-filters {
    gap: 0.5rem;
  }
}

/* ── Very small phones ── */
@media (max-width: 360px) {
  .about-image-card {
    width: 230px;
    height: 270px;
  }

  .about-stats {
    flex-direction: column;
    gap: 1rem;
  }
}
