/* ============================================
   Flamingo — Premium Portfolio Platform
   ============================================ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-tertiary: #1a1a24;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;
  --accent: #0066ff;
  --accent-light: #3388ff;
  --accent-glow: rgba(0, 102, 255, 0.4);
  --flamingo: #ff4d8d;
  --flamingo-light: #ff7eb3;
  --flamingo-glow: rgba(255, 77, 141, 0.35);
  --gradient-primary: linear-gradient(135deg, #0066ff 0%, #00ccff 100%);
  --gradient-brand: linear-gradient(135deg, #0066ff 0%, #ff4d8d 100%);
  --gradient-hero: radial-gradient(ellipse at 30% 20%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
                   radial-gradient(ellipse at 70% 80%, rgba(255, 77, 141, 0.12) 0%, transparent 50%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --header-height: 80px;
  --container-width: 1200px;
}

[data-theme="light"] {
  --bg-primary: #f8f9fc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f2f5;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-hover: rgba(255, 255, 255, 0.9);
  --border-glass: rgba(0, 0, 0, 0.08);
  --text-primary: #0a0a0f;
  --text-secondary: #4a4a5a;
  --text-muted: #8a8a9a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.12);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

body.loading {
  overflow: hidden;
}

body.custom-cursor {
  cursor: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.glass:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(0, 102, 255, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 102, 255, 0.05);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
}

.loader-logo {
  margin-bottom: 0;
  animation: none;
  background: none;
  -webkit-text-fill-color: unset;
  font-size: unset;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto 16px;
}

.loader-progress {
  height: 100%;
  width: 0;
  background: var(--gradient-primary);
  border-radius: 3px;
  animation: loadProgress 1.8s ease-in-out forwards;
}

.loader-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  letter-spacing: 2px;
}

@keyframes loadProgress {
  0% { width: 0; }
  50% { width: 70%; }
  100% { width: 100%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Custom Cursor */
.cursor,
.cursor-follower {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.custom-cursor .cursor,
body.custom-cursor .cursor-follower {
  opacity: 1;
}

.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  z-index: 10001;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 102, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-follower.hover {
  width: 60px;
  height: 60px;
  border-color: var(--accent);
  background: rgba(0, 102, 255, 0.1);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: all var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .header.scrolled {
  background: rgba(248, 249, 252, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--transition), filter var(--transition);
}

[data-theme="dark"] .brand-logo-img,
[data-theme="dark"] .loader-logo-img,
html:not([data-theme="light"]) .brand-logo-img,
html:not([data-theme="light"]) .loader-logo-img {
  mix-blend-mode: lighten;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.brand-logo-img--footer {
  height: 58px;
}

.loader-logo-img {
  height: 110px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 24px;
  animation: pulse 1.5s ease-in-out infinite;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  z-index: 1001;
}

.logo-accent {
  color: var(--flamingo);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.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 */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(0, 102, 255, 0.15);
  top: 10%;
  right: 10%;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(255, 77, 141, 0.12);
  bottom: 20%;
  left: 5%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-greeting {
  display: block;
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.hero-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-role {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin: 16px 0 24px;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-glass);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.hero-image-glow {
  position: absolute;
  inset: -20px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  opacity: 0.2;
  filter: blur(40px);
  z-index: 0;
}

.hero-image-wrapper img {
  position: relative;
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  z-index: 1;
}

.hero-image-border {
  position: absolute;
  inset: -3px;
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 2;
  pointer-events: none;
}

.hero-floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 3;
  animation: floatCard 4s ease-in-out infinite;
}

.hero-floating-card svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.floating-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.floating-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}

.card-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.card-2 {
  bottom: 15%;
  right: -10%;
  animation-delay: -2s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Hero Flamingo — Home page */
.hero-home {
  min-height: 100vh;
  padding-bottom: 48px;
}

.hero-flamingo-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-flamingo-img--ambient {
  position: absolute;
  right: -12%;
  bottom: -18%;
  width: min(62vw, 780px);
  height: auto;
  opacity: 0.1;
  filter: saturate(1.2) blur(2px);
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 70%);
  animation: float 14s ease-in-out infinite;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  min-height: 480px;
}

.hero-visual-glow {
  position: absolute;
  inset: 8% 0 8% 0;
  background: var(--gradient-brand);
  border-radius: var(--radius-xl);
  opacity: 0.28;
  filter: blur(48px);
  z-index: 0;
}

.hero-visual-frame {
  position: relative;
  z-index: 1;
  padding: 3px;
  border-radius: var(--radius-xl);
  background: var(--gradient-brand);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(255, 77, 141, 0.15);
}

.hero-visual-inner {
  border-radius: calc(var(--radius-xl) - 3px);
  overflow: hidden;
  background: var(--bg-primary);
  line-height: 0;
}

.hero-visual-img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 420px;
  max-height: 540px;
  object-fit: cover;
  object-position: center 35%;
  aspect-ratio: 4 / 5;
}

.hero-visual-img--brand {
  object-fit: contain;
  object-position: center;
  min-height: 380px;
  max-height: 500px;
  aspect-ratio: auto;
  padding: 28px 24px;
  background: radial-gradient(ellipse at center, rgba(255, 77, 141, 0.06) 0%, transparent 70%);
}

.hero-home .hero-floating-card {
  z-index: 2;
}

.hero-home .card-1 {
  top: 8%;
  left: -6%;
}

.hero-home .card-2 {
  bottom: 12%;
  right: -6%;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}

.about-text {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-text strong {
  color: var(--text-primary);
}

.about-stats {
  display: grid;
  gap: 20px;
}

.stat-card {
  padding: 28px;
  text-align: center;
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 102, 255, 0.1);
  border-radius: var(--radius-md);
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-top: 4px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 40px;
  text-align: center;
}

.timeline-track {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline-track::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 32px;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 24px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.timeline-content {
  padding: 24px 28px;
}

.timeline-date {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Skills */
.skills {
  background: var(--bg-secondary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.skill-card {
  padding: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 102, 255, 0.08);
  border-radius: var(--radius-md);
}

.skill-icon svg {
  width: 32px;
  height: 32px;
  color: var(--skill-color, var(--accent));
}

.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.skill-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.skill-progress {
  height: 100%;
  width: 0;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-percent {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

/* Projects */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-card {
  overflow: hidden;
  transition: all var(--transition);
}

.project-card.hidden {
  display: none;
}

.project-card--featured {
  position: relative;
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12), 0 12px 40px rgba(59, 130, 246, 0.1);
}

.project-card--featured .project-image::before {
  content: '✦ Site live';
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  padding: 6px 14px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  pointer-events: none;
}

.project-card--featured:hover {
  box-shadow: var(--shadow-lg), 0 0 48px rgba(59, 130, 246, 0.18);
}

[data-theme="light"] .project-card--featured {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 24px rgba(37, 99, 235, 0.1);
}

/* Emara Store — visuels premium (screenshots & photos) */
.project-card--emara .project-image {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.4), rgba(30, 41, 59, 0.2));
}

.project-card--emara .project-image--screenshot {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.project-card--emara .project-image img {
  object-fit: cover;
  object-position: center center;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.45s ease;
  will-change: transform;
}

.project-card--emara .project-image--screenshot img {
  object-fit: contain;
  object-position: center top;
  padding: 6px 6px 0;
}

.project-card.project-card--emara:hover .project-image img {
  transform: scale(1.06);
  filter: brightness(1.03);
}

.project-card.project-card--emara:hover .project-image--screenshot img {
  transform: scale(1.03);
  filter: none;
}

[data-theme="light"] .project-card--emara .project-image {
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
}

[data-theme="light"] .project-card--emara .project-image--screenshot {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .project-card--emara .project-image img {
  filter: saturate(1.02);
}

[data-theme="light"] .project-card.project-card--emara:hover .project-image img {
  filter: saturate(1.06) brightness(1.02);
}

[data-theme="light"] .project-card.project-card--emara:hover .project-image--screenshot img {
  filter: none;
}

/* Raja Store — screenshots (dark catalogue & light dashboard) */
.project-card--raja .project-image {
  background: linear-gradient(145deg, #0f172a, #1e293b);
}

.project-card--raja .project-image--screenshot {
  background: linear-gradient(180deg, #0a0f1a 0%, #1a2332 100%);
}

.project-card--raja .project-image--screenshot-light {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.project-card--raja .project-image--screenshot-dark {
  background: linear-gradient(180deg, #0a0f1a 0%, #1a2332 100%);
}

.project-card--raja .project-image img {
  object-fit: cover;
  object-position: center center;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.45s ease;
  will-change: transform;
}

.project-card--raja .project-image--screenshot img {
  object-fit: contain;
  object-position: center top;
  padding: 6px 6px 0;
}

.project-card.project-card--raja:hover .project-image img {
  transform: scale(1.06);
  filter: brightness(1.04);
}

.project-card.project-card--raja:hover .project-image--screenshot img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.project-card.project-card--raja:hover .project-image--screenshot-light img {
  transform: scale(1.03);
  filter: none;
}

.project-card.project-card--raja:hover .project-image--screenshot-dark img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.project-card--raja:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(34, 197, 94, 0.14);
}

[data-theme="light"] .project-card--raja .project-image {
  background: linear-gradient(145deg, #1e293b, #0f172a);
}

[data-theme="light"] .project-card--raja .project-image--screenshot {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .project-card--raja .project-image--screenshot-dark {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .project-card--raja .project-image--screenshot-light {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .project-card.project-card--raja:hover .project-image--screenshot img {
  filter: brightness(1.06);
}

[data-theme="light"] .project-card.project-card--raja:hover .project-image--screenshot-dark img {
  filter: brightness(1.06);
}

[data-theme="light"] .project-card.project-card--raja:hover .project-image--screenshot-light img {
  filter: none;
}

/* Luxura Shop — e-commerce premium (or) */
.project-card--luxura .project-image img {
  object-fit: cover;
  object-position: center center;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.45s ease;
}

.project-card.project-card--luxura:hover .project-image img {
  transform: scale(1.06);
  filter: brightness(1.04) saturate(1.05);
}

.project-card--luxura:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(212, 175, 55, 0.18);
}

/* Location de Voitures — gestion automobile (bleu) */
.project-card--location-voitures .project-image img {
  object-fit: cover;
  object-position: center center;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.45s ease;
}

.project-card.project-card--location-voitures:hover .project-image img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.project-card--location-voitures:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(59, 130, 246, 0.18);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  transform: scale(0.8);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s ease,
              background 0.3s ease;
  z-index: 3;
}

.project-card:hover .project-link {
  transform: scale(1);
}

.project-link:hover {
  transform: scale(1.12);
  box-shadow: 0 0 32px rgba(0, 102, 255, 0.55);
  background: var(--accent-light);
}

.project-link svg {
  width: 24px;
  height: 24px;
}

.project-content {
  padding: 24px;
}

.project-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.project-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.project-content p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tech span {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(0, 102, 255, 0.1);
  color: var(--accent);
  border-radius: 50px;
}

.project-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              background 0.3s ease;
}

.project-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.project-btn--demo:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 102, 255, 0.45);
}

.project-btn--demo:hover svg {
  transform: translate(2px, -2px);
}

.project-btn--github:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: rgba(0, 102, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.2);
  color: var(--accent-light);
}

.project-btn--github:hover svg {
  transform: rotate(-8deg) scale(1.1);
}

.project-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.project-btn--disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

@media (hover: none) {
  .project-overlay {
    opacity: 0;
    pointer-events: none;
  }

  .project-image {
    cursor: pointer;
  }

  .project-image::after {
    content: 'Appuyer pour la démo';
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 102, 255, 0.85);
    border-radius: 50px;
    pointer-events: none;
    z-index: 2;
  }
}

[data-theme="light"] .project-btn--github:hover {
  color: var(--accent);
}

/* Services */
.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 102, 255, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--accent);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  transition: color var(--transition);
}

.service-card:hover .service-icon svg {
  color: #fff;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Stats Section */
.stats-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-bg {
  position: absolute;
  inset: 0;
}

.stats-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0.08;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.stats-item {
  text-align: center;
  padding: 32px;
}

.stats-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
}

.stats-suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stats-item p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 8px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 102, 255, 0.1);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.contact-icon.whatsapp svg {
  color: #25d366;
}

.contact-card h4 {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-card a,
.contact-card span {
  font-size: 0.9375rem;
  font-weight: 500;
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-form {
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 12px;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9375rem;
}

.form-success.show {
  display: block;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 80px 0 32px;
  border-top: 1px solid var(--border-glass);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a,
.footer-links li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-glass);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-visual {
    max-width: 360px;
  }

  .hero-flamingo-img--ambient {
    right: -20%;
    opacity: 0.08;
  }

  .hero-image-wrapper {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-image-wrapper img {
    height: 380px;
  }

  .hero-floating-card {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .hero-flamingo-img--ambient {
    display: none;
  }

  .hero-visual {
    max-width: 320px;
    min-height: auto;
    order: -1;
  }

  .hero-visual-img--brand {
    min-height: 280px;
    max-height: 360px;
    padding: 20px 16px;
  }

  .hero-home .hero-floating-card {
    display: none;
  }

  .brand-logo-img {
    height: 40px;
  }

  .loader-logo-img {
    height: 88px;
  }

  .section {
    padding: 80px 0;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-glass);
    transition: right var(--transition);
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stats-item {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .contact-form {
    padding: 28px;
  }

  body.custom-cursor {
    cursor: auto;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-stat-divider {
    width: 40px;
    height: 1px;
  }

  .project-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8125rem;
  }
}

/* ============================================
   Page Hero (inner pages)
   ============================================ */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + 80px) 0 80px;
  overflow: hidden;
  text-align: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.page-hero .section-tag {
  margin-bottom: 20px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.page-hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--flamingo);
}

.breadcrumb span {
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--accent);
  font-weight: 500;
}

/* Home preview sections */
.preview-section {
  padding: 100px 0;
}

.preview-section.alt-bg {
  background: var(--bg-secondary);
}

.preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.preview-header .section-header {
  text-align: left;
  margin: 0;
  max-width: 500px;
}

.preview-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cta-banner {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.cta-banner-inner {
  position: relative;
  padding: 64px 48px;
  text-align: center;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cta-banner-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0.06;
}

.cta-banner-inner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.flamingo-watermark {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.6;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.value-card {
  padding: 32px 28px;
  text-align: center;
}

.value-card .value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 77, 141, 0.1);
  border-radius: var(--radius-md);
}

.value-card .value-icon svg {
  width: 26px;
  height: 26px;
  color: var(--flamingo);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.page-content {
  padding-bottom: 100px;
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-glass);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 141, 0.2);
}

.footer-brand .brand-name {
  font-size: 1.75rem;
}

@media (max-width: 1024px) {
  .preview-grid-3,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: calc(var(--header-height) + 60px) 0 60px;
  }

  .preview-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-grid-3,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner-inner {
    padding: 48px 28px;
  }
}
