/* ============================================================
   Alessandro Soriente — Portfolio
   Design System & Styles
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Colors */
  --bg-primary: #050505;
  --bg-secondary: #0A0A0A;
  --bg-card: #0C0C0C;
  --bg-card-hover: #111111;
  --bg-elevated: #141414;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(139, 92, 246, 0.3);

  --text-primary: #FFFFFF;
  --text-secondary: #9CA3AF;
  --text-tertiary: #6B7280;

  --accent-violet: #8B5CF6;
  --accent-cyan: #06B6D4;
  --accent-gradient: linear-gradient(135deg, #8B5CF6, #06B6D4);
  --accent-gradient-hover: linear-gradient(135deg, #A78BFA, #22D3EE);
  --accent-glow: rgba(139, 92, 246, 0.15);
  --accent-glow-strong: rgba(139, 92, 246, 0.3);
  --cyan-glow: rgba(6, 182, 212, 0.15);

  --success: #10B981;
  --success-glow: rgba(16, 185, 129, 0.2);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --fs-hero: clamp(3rem, 8vw, 6rem);
  --fs-h1: clamp(2rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 2.5vw, 1.5rem);
  --fs-body: clamp(0.95rem, 1.2vw, 1.1rem);
  --fs-small: clamp(0.8rem, 1vw, 0.9rem);
  --fs-xs: 0.75rem;

  /* Spacing */
  --section-padding: clamp(60px, 10vw, 140px);
  --container-max: 1200px;
  --container-padding: clamp(16px, 4vw, 40px);
  --gap-sm: 12px;
  --gap-md: 24px;
  --gap-lg: 40px;
  --gap-xl: 60px;

  /* Borders */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 600ms;

  /* Shadows */
  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 8px 40px rgba(139, 92, 246, 0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-violet) var(--bg-primary);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::-webkit-scrollbar {
  width: 6px;
}
body::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
body::-webkit-scrollbar-thumb {
  background: var(--accent-violet);
  border-radius: 3px;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.15;
  font-weight: 700;
}

/* ============================================================
   3. UTILITY CLASSES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-violet);
  margin-bottom: var(--gap-md);
  font-family: var(--font-heading);
}

.section-label::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-violet);
  animation: pulse-dot 2s ease-in-out infinite;
}

.section-title {
  font-size: var(--fs-h1);
  margin-bottom: var(--gap-md);
}

.section-desc {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

/* ============================================================
   4. ANIMATIONS (Keyframes)
   ============================================================ */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes scroll-indicator {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 40px var(--accent-glow-strong); }
}

@keyframes blob-move-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(80px, -60px) scale(1.1); }
  50% { transform: translate(-40px, 80px) scale(0.95); }
  75% { transform: translate(60px, 40px) scale(1.05); }
}

@keyframes blob-move-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-60px, 80px) scale(1.05); }
  50% { transform: translate(80px, -40px) scale(0.9); }
  75% { transform: translate(-80px, -60px) scale(1.1); }
}

@keyframes blob-move-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(100px, 60px) scale(1.08); }
  66% { transform: translate(-60px, -80px) scale(0.92); }
}

@keyframes navbar-enter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Element visibility for scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ============================================================
   5. MESH GRADIENT BACKGROUND
   ============================================================ */
.mesh-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mesh-gradient .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}

.mesh-gradient .blob-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-violet);
  top: -10%;
  right: -5%;
  animation: blob-move-1 20s ease-in-out infinite;
}

.mesh-gradient .blob-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-cyan);
  bottom: -15%;
  left: -10%;
  animation: blob-move-2 25s ease-in-out infinite;
}

.mesh-gradient .blob-3 {
  width: 400px;
  height: 400px;
  background: #6D28D9;
  top: 40%;
  left: 30%;
  animation: blob-move-3 18s ease-in-out infinite;
}

/* ============================================================
   6. NAVBAR (Floating glassmorphism - bottom)
   ============================================================ */
.navbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  animation: navbar-enter 0.8s var(--ease-out) 0.5s both;
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.navbar__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-tertiary);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  position: relative;
}

.navbar__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.navbar__link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.navbar__link.active {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.navbar__link.active svg {
  color: var(--accent-violet);
}

.navbar__link-label {
  display: inline;
}

/* Navbar hidden state */
.navbar.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
}

.navbar:not(.hidden) {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition: all 0.3s var(--ease-out);
}

/* ============================================================
   7. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--container-padding);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(16, 185, 129, 0.06);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--success);
  margin-bottom: var(--gap-lg);
  animation: fade-in-up 0.8s var(--ease-out) 0.2s both;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--success-glow);
}

.hero__avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--gap-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 0 40px var(--accent-glow);
  animation: fade-in-up 0.8s var(--ease-out) 0.25s both;
}

.hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__name {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  animation: fade-in-up 0.8s var(--ease-out) 0.35s both;
  line-height: 1.05;
}

.hero__title {
  font-size: var(--fs-h2);
  font-weight: 500;
  margin-bottom: var(--gap-md);
  animation: fade-in-up 0.8s var(--ease-out) 0.5s both;
}

.hero__subtitle {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--gap-lg);
  animation: fade-in-up 0.8s var(--ease-out) 0.65s both;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--duration-normal) var(--ease-out);
  animation: fade-in-up 0.8s var(--ease-out) 0.8s both;
  position: relative;
  overflow: hidden;
}

.hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient-hover);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35);
}

.hero__cta:hover::before {
  opacity: 1;
}

.hero__cta span {
  position: relative;
  z-index: 1;
}

.hero__cta-icon {
  position: relative;
  z-index: 1;
  transition: transform var(--duration-fast) var(--ease-out);
}

.hero__cta:hover .hero__cta-icon {
  transform: translateY(3px);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fade-in 1s var(--ease-out) 1.2s both;
}

.hero__scroll-indicator span {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--font-heading);
}

.hero__scroll-arrow {
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  animation: scroll-indicator 2s ease-in-out infinite;
}

/* ============================================================
   8. CHI SONO (About) SECTION
   ============================================================ */
.about {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
}

.about__text p {
  margin-bottom: var(--gap-md);
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
}

.stat-card {
  padding: var(--gap-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: all var(--duration-normal) var(--ease-out);
}

.stat-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-card__label {
  font-size: var(--fs-small);
  color: var(--text-tertiary);
}

/* Skills Tags */
.about__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--gap-lg);
}

.skill-tag {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
}

.skill-tag:hover {
  border-color: var(--accent-violet);
  color: var(--accent-violet);
  background: var(--accent-glow);
}

/* ============================================================
   9. SERVIZI (Services) SECTION
   ============================================================ */
.services {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-md);
}

.service-card {
  padding: var(--gap-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--duration-normal);
  z-index: 10;
}

.service-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--gap-md);
  transition: all var(--duration-normal) var(--ease-out);
}

.service-card__icon {
  width: 24px;
  height: 24px;
  color: var(--accent-cyan);
}

.service-card:hover .service-card__icon-wrapper {
  background: var(--accent-glow-strong);
  transform: scale(1.05);
}

.service-card__content {
  flex-grow: 1;
}

.service-card__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--gap-sm);
}

.service-card__desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   10. PROGETTI (Projects) SECTION
   ============================================================ */
.projects {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-md);
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  group: project;
}

.project-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.project-card__mockup-container {
  position: relative;
  width: 100%;
  padding: 32px 32px 0 32px;
  background: radial-gradient(circle at top, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.macbook-mockup {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  z-index: 1;
}

.macbook-body {
  background: #111;
  border-radius: 12px 12px 0 0;
  padding: 3% 3% 4% 3%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  box-shadow: inset 0 0 0 2px #000;
  position: relative;
}

.macbook-body::after {
  content: '';
  position: absolute;
  top: 1.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #333;
  border: 1px solid #111;
}

.macbook-screen {
  background: #000;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 2px;
  border: 1px solid #222;
}

.macbook-screen::-webkit-scrollbar {
  display: none;
}

.macbook-screen img.project-screenshot {
  width: 100%;
  height: auto;
  min-height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
  transition: transform 3s ease-out;
}

.project-card:hover img.project-screenshot {
  transform: scale(1.02);
}

.macbook-base {
  height: 12px;
  background: linear-gradient(to right, #444 0%, #888 10%, #888 90%, #444 100%);
  border-radius: 0 0 10px 10px;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.2), 0 8px 16px rgba(0,0,0,0.6);
  z-index: 2;
  margin: 0 -4%;
}

.macbook-notch {
  width: 15%;
  height: 4px;
  background: #222;
  margin: 0 auto;
  border-radius: 0 0 4px 4px;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.95) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--gap-lg);
  z-index: 10;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: white;
  font-size: var(--fs-xs);
  font-weight: 600;
  font-family: var(--font-heading);
  transition: transform var(--duration-fast) var(--ease-out);
}

.project-card__visit:hover {
  transform: scale(1.05);
}

.project-card__info {
  padding: var(--gap-md);
}

.project-card__name {
  font-size: var(--fs-h3);
  margin-bottom: 6px;
}

.project-card__desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-bottom: var(--gap-sm);
  line-height: 1.6;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.02);
}

/* ============================================================
   11. CONTATTI (Contact) SECTION
   ============================================================ */
.contact {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  font-family: var(--font-heading);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  transition: all var(--duration-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: white;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  width: fit-content;
}

.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient-hover);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35);
}

.form-submit:hover::before {
  opacity: 1;
}

.form-submit span,
.form-submit svg {
  position: relative;
  z-index: 1;
}

.form-submit.loading {
  opacity: 0.7;
  pointer-events: none;
}

.form-submit.success {
  background: var(--success);
}

/* Contact Info */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.contact__info-text {
  margin-bottom: var(--gap-md);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: all var(--duration-normal) var(--ease-out);
}

.contact-link:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.contact-link__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-link__icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-violet);
}

.contact-link__label {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-heading);
}

.contact-link__value {
  color: var(--text-primary);
  font-weight: 500;
  font-size: var(--fs-small);
}

/* Form Success Message */
.form-message {
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 500;
  display: none;
}

.form-message.show {
  display: block;
}

.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #EF4444;
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  padding: var(--gap-lg) 0 100px;
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--gap-md);
}

.footer__copyright {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.footer__social {
  display: flex;
  gap: var(--gap-sm);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-out);
}

.footer__social-link:hover {
  border-color: var(--accent-violet);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  transition: color var(--duration-fast);
}

.footer__social-link:hover svg {
  color: var(--accent-violet);
}

/* ============================================================
   13. RESPONSIVE STYLES
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .navbar__link-label {
    display: none;
  }
  
  .navbar__link {
    padding: 12px;
  }
  
  .navbar__link svg {
    width: 20px;
    height: 20px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }

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

  .hero__name {
    font-size: clamp(2.5rem, 7vw, 4rem);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
  
  .projects__grid {
    grid-template-columns: 1fr;
  }

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

  .hero__scroll-indicator {
    display: none;
  }

  .mesh-gradient .blob {
    filter: blur(80px);
    opacity: 0.2;
  }

  .mesh-gradient .blob-1 {
    width: 300px;
    height: 300px;
  }

  .mesh-gradient .blob-2 {
    width: 250px;
    height: 250px;
  }

  .mesh-gradient .blob-3 {
    width: 200px;
    height: 200px;
  }

  .project-card__overlay {
    opacity: 1;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .about__stats {
    grid-template-columns: 1fr;
  }

  .hero__badge {
    font-size: 0.65rem;
    padding: 6px 14px;
  }

  .service-card {
    padding: var(--gap-md);
  }

  .navbar__inner {
    padding: 6px 8px;
    gap: 2px;
  }

  .navbar__link {
    padding: 10px;
  }
}
