/* ========================================
   Blouberg Holdings - Redesigned
   ======================================== */

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

:root {
  --bg: #faf9f7;
  --bg-alt: #f0eeeb;
  --surface: #ffffff;
  --dark: #141414;
  --dark-soft: #1c1c1c;
  --dark-muted: #2a2a2a;
  --accent: #5046e5;
  --accent-end: #0ea5e9;
  --accent-subtle: rgba(80, 70, 229, 0.08);
  --warm: #e8552e;
  --text: #1a1a1a;
  --text-secondary: #64645f;
  --text-tertiary: #9c9c97;
  --border: #e5e3df;
  --border-light: #edebe8;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1180px;
}

::selection {
  background: var(--accent);
  color: white;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-end));
  border-radius: 2px;
}

.section-title {
  margin-bottom: 16px;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
}

.btn-primary {
  background: var(--dark);
  color: white;
}

.btn-primary:hover {
  background: var(--dark-muted);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn-dark {
  background: var(--dark);
  color: white;
}

.btn-dark:hover {
  background: var(--dark-muted);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-end));
  color: white;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(80, 70, 229, 0.3);
}

.btn-arrow::after {
  content: '\2192';
  transition: transform 0.4s var(--ease);
}

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

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s var(--ease);
}

.header.scrolled {
  padding: 10px 0;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 80px;
  padding: 10px 10px 10px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-end));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
}

.logo span {
  font-weight: 400;
  color: var(--text-secondary);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 40px;
  transition: all 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--accent-subtle);
}

.nav-links a.active {
  color: var(--text);
  background: var(--accent-subtle);
}

.nav-cta.btn {
  padding: 10px 22px;
  font-size: 0.85rem;
  margin-left: 4px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s var(--ease);
  border-radius: 4px;
}

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

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

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

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
}

.hero-bg-shape:nth-child(1) {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -20%;
  right: -10%;
  opacity: 0.12;
}

.hero-bg-shape:nth-child(2) {
  width: 400px;
  height: 400px;
  background: var(--accent-end);
  bottom: -10%;
  left: 10%;
  opacity: 0.08;
}

.hero-bg-shape:nth-child(3) {
  width: 300px;
  height: 300px;
  background: var(--warm);
  top: 30%;
  right: 20%;
  opacity: 0.06;
}

.hero .container {
  position: relative;
  z-index: 2;
}

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

.hero-content h1 {
  color: white;
  margin-bottom: 28px;
  line-height: 1.08;
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, #818cf8 0%, #38bdf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content > p {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin-bottom: 44px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 56px;
  margin-top: 80px;
}

.hero-stat {
  position: relative;
  padding-left: 20px;
}

.hero-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-end));
}

.hero-stat h3 {
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
  margin-bottom: 2px;
  font-family: var(--font-heading);
}

.hero-stat p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* --- Sections --- */
.section {
  padding: 110px 0;
}

.section-dark {
  background: var(--dark);
  color: white;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: white;
}

.section-light {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-label::before {
  display: none;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* --- About Preview --- */
.about-preview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.about-preview-text .section-subtitle {
  margin-bottom: 36px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.about-value {
  padding: 24px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  transition: all 0.4s var(--ease);
  position: relative;
}

.about-value::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-end));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.about-value:hover::before {
  opacity: 1;
}

.about-value:hover {
  border-color: transparent;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.about-value-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.about-value h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.about-value p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-preview-visual {
  position: relative;
}

.about-image-block {
  background: var(--dark);
  border-radius: 20px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-image-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(80, 70, 229, 0.15), rgba(14, 165, 233, 0.1));
}

.about-image-block .placeholder-text {
  color: rgba(255,255,255,0.25);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 1;
}

/* --- Portfolio Cards --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.portfolio-card {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  border: 1px solid var(--border-light);
  position: relative;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, var(--accent), var(--accent-end));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

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

.portfolio-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(80, 70, 229, 0.1);
}

.portfolio-card-image {
  height: 220px;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(80, 70, 229, 0.12), rgba(14, 165, 233, 0.08));
}

.portfolio-card-image .placeholder-text {
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 1;
}

.portfolio-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 40px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.1);
}

.portfolio-card-body {
  padding: 28px 28px 32px;
}

.portfolio-card-body h3 {
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.portfolio-card-body .card-sector {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.portfolio-card-body p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s var(--ease);
}

.card-link:hover {
  color: var(--accent);
  gap: 10px;
}

.card-link::after {
  content: '\2192';
  transition: inherit;
}

/* --- Stats --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 48px 28px;
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #818cf8, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* --- CTA --- */
.cta-section {
  text-align: center;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 70, 229, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.5);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Page Hero --- */
.page-hero {
  padding: 160px 0 80px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.page-hero .hero-bg-shape:nth-child(1) {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -30%;
  right: -5%;
  opacity: 0.1;
}

.page-hero .hero-bg-shape:nth-child(2) {
  width: 300px;
  height: 300px;
  background: var(--accent-end);
  bottom: -20%;
  left: 5%;
  opacity: 0.06;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: white;
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  max-width: 560px;
  line-height: 1.75;
}

/* --- Mission --- */
.mission-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: start;
}

.mission-text h2 {
  margin-bottom: 24px;
}

.mission-text p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* --- Values --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  padding: 32px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.value-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-end));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.value-card:hover::after {
  transform: scaleX(1);
}

.value-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  border-color: transparent;
}

.value-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-subtle);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.value-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* --- Timeline --- */
.timeline {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  padding-left: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-end), transparent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -53px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent);
}

.section-light .timeline-item::before {
  box-shadow: 0 0 0 4px var(--bg-alt), 0 0 0 6px var(--accent);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.timeline-item h3 {
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  transition: all 0.4s var(--ease);
}

.team-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  border-color: transparent;
}

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--dark);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(80, 70, 229, 0.2), rgba(14, 165, 233, 0.15));
}

.team-card h3 {
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.team-card .team-role {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Portfolio Detail --- */
.portfolio-detail {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.portfolio-detail:last-child {
  border-bottom: none;
}

.portfolio-detail:nth-child(even) {
  direction: rtl;
}

.portfolio-detail:nth-child(even) > * {
  direction: ltr;
}

.portfolio-detail-image {
  aspect-ratio: 16/10;
  background: var(--dark);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-detail-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(80, 70, 229, 0.12), rgba(14, 165, 233, 0.08));
}

.portfolio-detail-image .placeholder-text {
  color: rgba(255,255,255,0.25);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 1;
}

.portfolio-detail-info .card-sector {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.portfolio-detail-info h2 {
  margin-bottom: 16px;
  font-size: 1.8rem;
}

.portfolio-detail-info p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.portfolio-meta {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.portfolio-meta-item span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-weight: 500;
}

.portfolio-meta-item strong {
  font-size: 0.92rem;
  color: var(--text);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.contact-info-card {
  padding: 28px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
  transition: all 0.3s var(--ease);
}

.contact-info-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.contact-info-card h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
}

.contact-info-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  padding-left: 28px;
}

.contact-form {
  background: var(--surface);
  padding: 36px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  transition: all 0.3s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
  background: var(--surface);
}

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

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

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer .logo {
  color: white;
}

.footer .logo span {
  color: rgba(255,255,255,0.5);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer h4 {
  color: white;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.3s var(--ease);
}

.footer ul a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.fade-in-delay-1 { transition-delay: 0.08s; }
.fade-in-delay-2 { transition-delay: 0.16s; }
.fade-in-delay-3 { transition-delay: 0.24s; }
.fade-in-delay-4 { transition-delay: 0.32s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about-preview { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .header-inner {
    padding: 8px 16px;
    border-radius: 16px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 40px 32px;
    transition: right 0.4s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,0.12);
    border-radius: 0;
  }

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

  .nav-links a {
    font-size: 1.05rem;
    padding: 14px 20px;
    border-radius: 12px;
    color: var(--text);
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--accent-subtle);
  }

  .nav-cta.btn {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    justify-content: center;
  }

  .hero { padding: 120px 0 60px; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat { min-width: 100px; }

  .about-preview { grid-template-columns: 1fr; gap: 40px; }
  .about-values { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:not(:last-child)::after { display: none; }
  .mission-grid { grid-template-columns: 1fr; gap: 40px; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .portfolio-detail { grid-template-columns: 1fr; gap: 32px; }
  .portfolio-detail:nth-child(even) { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-hero { padding: 130px 0 60px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.9rem; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .section { padding: 72px 0; }
  .stats-bar { grid-template-columns: 1fr; }
}
