/* ============================================
   DESIGN SYSTEM — Anubhav Singh Chauhan Portfolio
   ============================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  /* Colors */
  --bg-primary: #FAF8F5;
  --bg-secondary: #F0EDE8;
  --bg-card: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #5A5A5A;
  --text-muted: #9A9A9A;
  --accent: #6C3CE1;
  --accent-light: #8B5CF6;
  --accent-dark: #5521C5;
  --accent-gradient: linear-gradient(135deg, #6C3CE1 0%, #3B82F6 100%);
  --accent-gradient-soft: linear-gradient(135deg, rgba(108, 60, 225, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  --border: rgba(26, 26, 26, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.10);

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

  /* Spacing */
  --section-padding: 120px;
  --container-width: 1240px;
  --gap: 24px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.6s;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
}

input, textarea {
  font-family: var(--font-body);
  border: none;
  outline: none;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ---------- Section ---------- */
.section {
  padding: var(--section-padding) 0;
}

.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
  padding: 14px 0;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-links a:hover {
  color: var(--text-primary);
}

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

.nav-cta {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: var(--accent-gradient);
  padding: 10px 24px;
  border-radius: 100px;
  transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-fast) ease !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 60, 225, 0.3);
  color: #fff !important;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Decorative shapes */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.hero-shape-1 {
  width: 500px;
  height: 500px;
  background: rgba(108, 60, 225, 0.15);
  top: -10%;
  right: -5%;
  animation: float 8s ease-in-out infinite;
}

.hero-shape-2 {
  width: 350px;
  height: 350px;
  background: rgba(59, 130, 246, 0.12);
  bottom: 5%;
  left: -3%;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: rgba(108, 60, 225, 0.1);
  top: 40%;
  right: 30%;
  animation: float 6s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* Grid lines (decorative) */
.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(108, 60, 225, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 60, 225, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient-soft);
  border: 1px solid rgba(108, 60, 225, 0.12);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 8px;
}

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

.hero-role {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 460px;
}

.hero-tagline em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 100px;
  transition: all var(--duration-normal) var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(108, 60, 225, 0.35);
}

.btn-primary .arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  border-radius: 100px;
  transition: all var(--duration-normal) var(--ease-out);
}

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

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

.hero-visual-wrapper {
  position: relative;
  width: 420px;
  height: 420px;
}

.hero-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(108, 60, 225, 0.15);
  animation: spin 30s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.hero-avatar-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-card-stack {
  position: absolute;
  inset: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-float-card {
  position: absolute;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  animation: float-card 6s ease-in-out infinite;
}

.hero-float-card:nth-child(1) {
  top: 0;
  right: -20px;
  animation-delay: 0s;
}

.hero-float-card:nth-child(2) {
  bottom: 20px;
  left: -30px;
  animation-delay: 2s;
}

.hero-float-card:nth-child(3) {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
  z-index: 2;
}

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

.hero-float-card:nth-child(3) {
  animation-name: float-card-center;
}

@keyframes float-card-center {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-12px); }
}

.float-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 8px;
}

.float-card-icon.purple { background: rgba(108, 60, 225, 0.1); }
.float-card-icon.blue { background: rgba(59, 130, 246, 0.1); }
.float-card-icon.green { background: rgba(34, 197, 94, 0.1); }

.float-card-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
}

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

.hero-stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   WORK / PROJECTS SECTION
   ============================================ */
.work {
  background: var(--bg-secondary);
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 24px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

/* Project Card Base */
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

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

.project-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.project-card:hover .project-card-image img {
  transform: scale(1.08);
}

/* Card overlay */
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 26, 26, 0.85) 100%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  display: flex;
  align-items: flex-end;
  padding: 28px;
}

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

.project-card-overlay-text {
  color: #fff;
}

.project-card-overlay-text h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.project-card-overlay-text p {
  font-size: 14px;
  opacity: 0.8;
}

/* Card info (below image) */
.project-card-info {
  padding: 20px 24px;
}

.project-card-info .card-category {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.project-card-info h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.project-card-info p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- Card Size Variants ---- */

/* Featured / Large — spans 7 columns */
.project-card.card-featured {
  grid-column: span 7;
}

.project-card.card-featured .project-card-image {
  aspect-ratio: 16 / 9;
}

.project-card.card-featured .project-card-info h3 {
  font-size: 22px;
}

/* Medium — spans 5 columns */
.project-card.card-medium {
  grid-column: span 5;
}

/* Standard — spans 4 columns */
.project-card.card-standard {
  grid-column: span 4;
}

/* Tall card — taller aspect ratio */
.project-card.card-tall .project-card-image {
  aspect-ratio: 3 / 4;
}

/* Wide card — wider aspect ratio */
.project-card.card-wide .project-card-image {
  aspect-ratio: 2 / 1;
}

/* ---- Card Style Variants ---- */

/* Glass style */
.project-card.card-glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Bordered style */
.project-card.card-bordered {
  border: 2px solid var(--border);
  background: var(--bg-card);
}

.project-card.card-bordered:hover {
  border-color: var(--accent);
}

/* Dark style — unified to white for consistency */
.project-card.card-dark {
  background: var(--bg-card);
}

.project-card.card-dark .project-card-info .card-category {
  color: var(--accent);
}

.project-card.card-dark .project-card-info h3 {
  color: var(--text-primary);
}

.project-card.card-dark .project-card-info p {
  color: var(--text-muted);
}

/* Accent border top — removed for clean minimal look */
.project-card.card-accent-top {
  border-top: none;
  border-image: none;
}

/* Row 3: full-width banner */
.project-card.card-full {
  grid-column: span 12;
}

.project-card.card-full .project-card-image {
  aspect-ratio: 3 / 1;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-content {
  padding-top: 8px;
}

.about-text {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Skills */
.about-skills-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.skill-tag {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  background: var(--accent-gradient-soft);
  color: var(--accent);
  border: 1px solid rgba(108, 60, 225, 0.1);
  transition: all var(--duration-fast) var(--ease-out);
}

.skill-tag:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* Tools */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
}

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

.tool-card-icon {
  font-size: 36px;
  margin-bottom: 12px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.tool-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.tool-card h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
}

.tool-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* About visual side */
.about-visual {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--accent-gradient-soft);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-wrapper .about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Floating info cards */
.about-float-info {
  position: absolute;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-float-info.top-right {
  top: -16px;
  right: -16px;
}

.about-float-info.bottom-left {
  bottom: 40px;
  left: -24px;
}

.about-float-info .info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.about-float-info .info-text h5 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
}

.about-float-info .info-text p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  background: #FFFFFF;
}

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info {
  padding-top: 8px;
}

.contact-text {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.contact-item-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.contact-item-text h5 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-item-text a,
.contact-item-text p {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
}

.contact-item-text a:hover {
  color: var(--accent);
}

/* Social links */
.contact-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all var(--duration-fast) var(--ease-spring);
}

.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.social-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
}

/* Contact form */
.contact-form-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-primary);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-spring);
  border: none;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(108, 60, 225, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text-primary);
  color: #fff;
  padding: 60px 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.footer-brand .footer-role {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.footer-brand .footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}

.footer-links-group {
  display: flex;
  gap: 80px;
}

.footer-links h5 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--duration-fast) ease;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom .back-to-top {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--duration-fast) ease;
}

.footer-bottom .back-to-top:hover {
  color: var(--accent-light);
}

/* ============================================
   ANIMATIONS (Scroll reveal)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* ---------- Tablet (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-tagline {
    max-width: 100%;
  }

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

  .hero-visual {
    display: none;
  }

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

  /* Work grid */
  .work-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .project-card.card-featured {
    grid-column: span 6;
  }

  .project-card.card-medium {
    grid-column: span 6;
  }

  .project-card.card-standard {
    grid-column: span 3;
  }

  .project-card.card-full {
    grid-column: span 6;
  }

  /* About */
  .about .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }

  /* Contact */
  .contact .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ---------- Mobile (≤ 768px) ---------- */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --gap: 16px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    transition: right var(--duration-normal) var(--ease-out);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    letter-spacing: -1px;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  /* Work grid */
  .work-grid {
    grid-template-columns: 1fr;
  }

  .project-card.card-featured,
  .project-card.card-medium,
  .project-card.card-standard,
  .project-card.card-full {
    grid-column: span 1;
  }

  .project-card.card-full .project-card-image {
    aspect-ratio: 16 / 9;
  }

  /* Contact */
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 28px;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
  }

  .footer-links-group {
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Small Mobile (≤ 480px) ---------- */
@media (max-width: 480px) {
  .hero-badge {
    font-size: 12px;
    padding: 6px 14px;
  }

  .btn-primary {
    padding: 14px 28px;
    font-size: 15px;
  }

  .section-title {
    font-size: 28px;
  }

  .tools-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }

  .tool-card {
    padding: 16px 8px;
  }

  .about-float-info {
    display: none;
  }
}
