/* ===========================
   Portfolio Design System
   Redesigned — Slate/Blue/Amber
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

/* -- CSS Variables -- */
:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  --blue-950: #172554;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --indigo-600: #4f46e5;
  --indigo-50:  #eef2ff;

  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;

  --cyan-400: #22d3ee;
  --green-400: #4ade80;

  --font-main: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --container-max: 1152px;
  --section-py: 96px;
}

/* -- Reset -- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--slate-950);
  color: var(--slate-600);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--blue-600); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-700); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* -- Layout -- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-py) 0; position: relative; }
.section-white { background: #fff; }
.section-slate { background: var(--slate-50); }

.section-header { text-align: center; margin-bottom: 64px; }
.section-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 8px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--slate-500);
  max-width: 560px;
  margin: 0 auto;
}

/* ====== NAVIGATION ====== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  background: transparent;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255,255,255,0.05);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nav-logo img { height: 28px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.85rem;
  color: var(--slate-400);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--amber-500) !important;
  color: var(--slate-900) !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 100px !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  background: var(--amber-600) !important;
  transform: scale(1.03);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px; height: 28px;
  position: relative;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====== HERO ====== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-950) 0%, var(--slate-900) 50%, var(--blue-950) 100%);
}
.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.orb-1 {
  top: -120px; right: -100px;
  width: 500px; height: 500px;
  background: rgba(59,130,246,0.1);
  animation: float 8s ease-in-out infinite;
}
.orb-2 {
  bottom: -150px; left: -120px;
  width: 600px; height: 600px;
  background: rgba(99,102,241,0.07);
  animation: float 12s ease-in-out infinite reverse;
}
.orb-3 {
  top: 25%; right: 25%;
  width: 260px; height: 260px;
  background: rgba(34,211,238,0.07);
  animation: float 6s ease-in-out infinite;
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 8px 20px;
  margin-bottom: 32px;
  font-size: 0.85rem;
  color: var(--slate-300);
  animation: fadeInUp 0.6s ease-out both;
}
.hero-badge .badge-dot {
  width: 8px; height: 8px;
  background: var(--amber-400);
  border-radius: 50%;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}
.gradient-text {
  background: linear-gradient(90deg, var(--blue-400), var(--cyan-400), var(--blue-400));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--slate-300);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.45s both;
}

/* -- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 100px;
  padding: 14px 32px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--amber-500);
  color: var(--slate-900);
  animation: glowPulse 3s ease-in-out infinite;
}
.btn-primary:hover {
  background: var(--amber-600);
  color: var(--slate-900);
  transform: scale(1.05);
}
.btn-outline {
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  background: transparent;
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  color: #fff;
}
.btn-blue {
  background: var(--blue-600);
  color: #fff;
}
.btn-blue:hover { background: var(--blue-700); color: #fff; transform: scale(1.05); }
.btn-blue-outline {
  border: 1px solid var(--blue-600);
  color: var(--blue-600);
  background: transparent;
}
.btn-blue-outline:hover { background: var(--blue-50); }

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.2);
  animation: bounce 2s infinite;
  font-size: 1.5rem;
}

/* ====== SERVICES ====== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.service-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
}
.service-card:hover {
  background: #fff;
  border-color: var(--blue-100);
  box-shadow: 0 20px 50px rgba(59,130,246,0.06);
  transform: translateY(-4px);
}
.service-icon {
  width: 56px; height: 56px;
  background: var(--blue-100);
  color: var(--blue-600);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  transition: background 0.3s, color 0.3s;
}
.service-card:hover .service-icon {
  background: var(--blue-600);
  color: #fff;
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 12px;
}
.service-card > p {
  color: var(--slate-600);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.75;
}
.service-list { display: flex; flex-direction: column; gap: 8px; }
.service-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--slate-500);
}
.service-list .check { color: var(--blue-500); font-size: 1rem; flex-shrink: 0; }

/* ====== PROJECTS / WORKS ====== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.work-card {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.work-card:hover {
  border-color: var(--blue-100);
  box-shadow: 0 20px 50px rgba(59,130,246,0.06);
  transform: translateY(-4px);
}
.work-thumb {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-thumb-gradient {
  background: linear-gradient(135deg, var(--blue-500), var(--indigo-600));
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
}
.work-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.7rem;
  color: #fff;
  font-weight: 600;
}
.work-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.work-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
}
.work-body p {
  font-size: 0.85rem;
  color: var(--slate-600);
  line-height: 1.75;
  margin-bottom: 16px;
  flex: 1;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.work-tags span {
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 6px;
}
.work-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.work-link:hover { color: var(--blue-700); }

/* ====== CTA BANNER ====== */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.cta-banner p {
  color: rgba(191,219,254,0.9);
  font-size: 1.05rem;
  margin-bottom: 32px;
}
.cta-banner .btn {
  background: #fff;
  color: var(--blue-600);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cta-banner .btn:hover {
  background: var(--blue-50);
  color: var(--blue-600);
  transform: scale(1.05);
}

/* ====== PROCESS ====== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.process-line {
  display: none;
  position: absolute;
  top: 56px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-100), var(--blue-400), var(--blue-100));
}
.process-step { text-align: center; position: relative; }
.process-icon {
  width: 112px; height: 112px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--blue-50), var(--indigo-50));
  border: 1px solid var(--blue-100);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--blue-600);
  position: relative;
  z-index: 1;
}
.step-badge {
  display: inline-block;
  background: var(--blue-600);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.process-step h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.85rem;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ====== PROFILE / ABOUT ====== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.about-avatar-wrapper { text-align: center; }
.about-avatar-ring {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
}
.about-avatar-ring::before {
  content: '';
  position: absolute;
  inset: -12px;
  background: linear-gradient(135deg, var(--blue-400), var(--indigo-600));
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(16px);
}
.about-avatar {
  position: relative;
  width: 200px; height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 20px 50px rgba(59,130,246,0.2);
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }

.about-info .about-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
}
.about-title {
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.about-info p {
  color: var(--slate-600);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.about-skills { margin-bottom: 24px; }
.about-skills-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate-900);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skills-chips span {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 100px;
}
.about-quote {
  border-left: 4px solid var(--blue-500);
  padding-left: 16px;
  font-style: italic;
  color: var(--slate-500);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ====== FAQ ====== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-900);
  transition: background 0.2s;
}
.faq-question:hover { background: var(--slate-50); }
.faq-chevron {
  font-size: 1.2rem;
  color: var(--slate-400);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.active .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--slate-600);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* ====== CONTACT ====== */
.contact-section {
  padding: var(--section-py) 0;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}
.contact-section .section-eyebrow { color: var(--blue-400); }
.contact-section .section-header h2 { color: #fff; }
.contact-section .section-header p { color: var(--slate-400); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item-icon {
  width: 48px; height: 48px;
  background: rgba(59,130,246,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--blue-400);
  flex-shrink: 0;
}
.contact-item-label { color: #fff; font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.contact-item-value { color: var(--slate-400); font-size: 0.88rem; }

.contact-box {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 16px;
  padding: 24px;
}
.contact-box-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.contact-box-icon {
  width: 40px; height: 40px;
  background: rgba(245,158,11,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--amber-400);
}
.contact-box-title { color: #fff; font-weight: 600; font-size: 0.95rem; }
.contact-box p { color: var(--slate-400); font-size: 0.85rem; line-height: 1.7; margin-bottom: 14px; }
.contact-box .benefit-list { display: flex; flex-direction: column; gap: 8px; }
.contact-box .benefit-list li {
  display: flex; align-items: center; gap: 8px;
  color: var(--slate-300); font-size: 0.85rem;
}
.contact-box .benefit-list .check { color: var(--green-400); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-300);
  margin-bottom: 8px;
}
.form-group label .required { color: #ef4444; font-size: 0.75rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(30,41,59,0.5);
  border: 1px solid var(--slate-700);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--slate-500); }
.form-group select { color: var(--slate-400); }
.form-group select option { background: var(--slate-800); color: #fff; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
.form-group textarea { resize: none; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--amber-500);
  color: var(--slate-900);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-submit:hover {
  background: var(--amber-600);
  box-shadow: 0 8px 24px rgba(245,158,11,0.2);
  transform: scale(1.02);
}

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.form-success .success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.form-success p { color: var(--slate-400); }

/* ====== QUOTE ====== */
.quote-section {
  padding: 80px 0;
  background: var(--slate-950);
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.quote-block {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.quote-mark {
  font-size: 5rem;
  line-height: 0.8;
  background: linear-gradient(135deg, var(--blue-400), var(--indigo-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: Georgia, serif;
  opacity: 0.5;
  margin-bottom: 16px;
  display: block;
}
.quote-text {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 2;
  color: #fff;
  margin-bottom: 24px;
}
.quote-author {
  font-size: 0.85rem;
  color: var(--slate-500);
  font-style: italic;
}

/* ====== FOOTER ====== */
.footer {
  background: var(--slate-950);
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer p { color: var(--slate-500); font-size: 0.82rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--slate-500); font-size: 0.82rem; }
.footer-links a:hover { color: var(--slate-300); }

/* ====== BACK TO TOP ====== */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 40;
  width: 48px; height: 48px;
  background: rgba(37,99,235,0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
  ring: 2px solid rgba(255,255,255,0.2);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.3s;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--blue-700); }

/* ====== SCROLL ANIMATIONS ====== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== KEYFRAMES ====== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-24px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 200% center; }
  50% { background-position: 0% center; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(245,158,11,0); }
  50% { box-shadow: 0 0 24px rgba(245,158,11,0.35); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ====== RESPONSIVE ====== */
@media (min-width: 769px) {
  .process-line { display: block; }
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999;
  }
  .nav-links.active { display: flex; }
  .nav-links a { font-size: 1.15rem; color: #fff; }
  .nav-toggle { display: block; }

  .hero h1 { font-size: 2.2rem; }
  .hero-desc { font-size: 1rem; }

  .services-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .about-avatar { width: 160px; height: 160px; }
  .skills-chips { justify-content: center; }
  .about-quote { text-align: left; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .section-header h2 { font-size: 1.7rem; }
  .cta-banner h2 { font-size: 1.6rem; }
  .quote-text { font-size: 1.05rem; }

  .footer .container { flex-direction: column; gap: 12px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 576px) {
  .hero h1 { font-size: 1.9rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .process-grid { grid-template-columns: 1fr; gap: 16px; }
  .process-step {
    display: grid;
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "icon badge"
      "icon title"
      "icon desc";
    gap: 4px 16px;
    align-items: start;
    text-align: left;
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
    padding: 20px;
    border-radius: 16px;
  }
  .process-icon {
    grid-area: icon;
    width: 64px; height: 64px; font-size: 1.6rem;
    margin: 0;
  }
  .step-badge { grid-area: badge; justify-self: start; margin-bottom: 2px; }
  .process-step h4 { grid-area: title; margin-bottom: 4px; font-size: 0.95rem; }
  .process-step p { grid-area: desc; font-size: 0.85rem; margin-bottom: 0; }
}
