/* ============================================
   RANDOMNESS VENTURES — Main Stylesheet
   ============================================ */

/* --- Custom Properties --- */
:root {
  --navy: #0E2A5C;
  --navy-light: #163470;
  --navy-dark: #091d42;
  --coral: #FF5A4A;
  --coral-light: #ff7a6d;
  --coral-dark: #e04438;
  --amber: #FBB02D;
  --amber-light: #fcc35a;
  --teal: #0FA3A3;
  --teal-light: #14c4c4;
  --bg: #FCF8F0;
  --bg-warm: #f7f0e3;
  --white: #FFFFFF;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-500: #888;
  --gray-700: #555;

  --font-heading: 'Nunito', 'Quicksand', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --radius-full: 999px;

  --shadow: 0 4px 24px rgba(14, 42, 92, 0.07);
  --shadow-lg: 0 8px 40px rgba(14, 42, 92, 0.10);
  --shadow-card: 0 2px 16px rgba(14, 42, 92, 0.06);

  --max-width: 1160px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.18s ease;
}

/* --- Dark Mode Overrides --- */
[data-theme="dark"] {
  --navy: #E8EDF4;
  --navy-light: #c8d3e2;
  --navy-dark: #f0f4f8;
  --bg: #0B1929;
  --bg-warm: #0f2135;
  --white: #142338;
  --gray-100: #1a2d45;
  --gray-200: #1e3550;
  --gray-500: #8899aa;
  --gray-700: #a0b3c6;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .site-header {
  background: rgba(11, 25, 41, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .hamburger,
[data-theme="dark"] .hamburger::before,
[data-theme="dark"] .hamburger::after {
  background: #E8EDF4;
}

[data-theme="dark"] .nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

[data-theme="dark"] .main-nav {
  background: var(--white);
}

[data-theme="dark"] .nav-link {
  color: #E8EDF4;
}

[data-theme="dark"] .nav-link:hover {
  color: var(--coral);
  background: rgba(255, 90, 74, 0.1);
}

[data-theme="dark"] .nav-link.active {
  color: var(--coral);
  background: rgba(255, 90, 74, 0.12);
}

[data-theme="dark"] .btn--secondary {
  color: #E8EDF4;
  border-color: #E8EDF4;
}

[data-theme="dark"] .btn--secondary:hover {
  background: #E8EDF4;
  color: #0B1929;
}

[data-theme="dark"] .section--navy {
  background: #060e1a;
}

[data-theme="dark"] .page-header {
  background: #060e1a;
}

[data-theme="dark"] .site-footer {
  background: #060e1a;
}

[data-theme="dark"] .project-card-color {
  opacity: 0.8;
}

[data-theme="dark"] .feature-card::before {
  opacity: 0.8;
}

[data-theme="dark"] .tag {
  background: var(--bg);
  color: #E8EDF4;
}

[data-theme="dark"] .legal-content h2 {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .project-card--soon {
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .project-card--soon:hover {
  border-color: var(--teal);
}

[data-theme="dark"] .nav-overlay {
  background: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .hero-logo {
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

[data-theme="dark"] .footer-logo {
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

[data-theme="dark"] .logo-img {
  border-radius: 6px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

/* --- Theme Toggle Button --- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(14, 42, 92, 0.12);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  margin-left: 8px;
  color: var(--amber);
  font-size: 1.2rem;
  line-height: 1;
}

.theme-toggle:hover {
  background: rgba(251, 176, 45, 0.1);
  border-color: var(--amber);
  transform: rotate(20deg);
}

[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--amber);
}

[data-theme="dark"] .theme-toggle:hover {
  background: rgba(251, 176, 45, 0.15);
  border-color: var(--amber);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }

.theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--navy);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--coral);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
  color: var(--navy);
}

p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

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

.section--navy h2,
.section--navy h3,
.section--navy p {
  color: var(--white);
}

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

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

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-700);
  max-width: 600px;
  margin: 12px auto 0;
}

.section--navy .section-header p {
  color: rgba(255,255,255,0.8);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 90, 74, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 42, 92, 0.2);
}

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

.btn--white:hover {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

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

.btn--teal:hover {
  background: #0d8f8f;
  border-color: #0d8f8f;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15,163,163,0.3);
}

.btn--amber {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}

.btn--amber:hover {
  background: #e9a020;
  border-color: #e9a020;
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251,176,45,0.3);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.btn--sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(252, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14, 42, 92, 0.06);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(14, 42, 92, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link:hover { color: inherit; }

.logo-img {
  height: 48px;
  width: auto;
  border-radius: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--coral);
  background: rgba(255, 90, 74, 0.06);
}

.nav-link.active {
  color: var(--coral);
  background: rgba(255, 90, 74, 0.08);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

/* --- Hero Badge --- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(14, 42, 92, 0.05);
  border: 1px solid rgba(14, 42, 92, 0.1);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(14, 42, 92, 0.04);
}

[data-theme="dark"] .hero-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #E8EDF4;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 10px var(--coral);
  animation: pulse-dot 2s infinite;
}

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

/* Gradient Headline Accent */
.gradient-text {
  background: linear-gradient(135deg, #FF5A4A 0%, #FBB02D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Hero Background Ambient Aurora */
.hero-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  will-change: transform;
}

[data-theme="dark"] .aurora-orb {
  opacity: 0.18;
}

.aurora-orb--coral {
  width: 380px;
  height: 380px;
  background: var(--coral);
  top: -60px;
  right: 10%;
  animation: float 14s ease-in-out infinite alternate;
}

.aurora-orb--teal {
  width: 320px;
  height: 320px;
  background: var(--teal);
  bottom: 0;
  left: 5%;
  animation: float 18s ease-in-out 2s infinite alternate;
}

.aurora-orb--amber {
  width: 260px;
  height: 260px;
  background: var(--amber);
  top: 40%;
  right: 35%;
  animation: float 12s ease-in-out 4s infinite alternate;
}

.hero-logo {
  width: 140px;
  margin-bottom: 32px;
  border-radius: var(--radius);
  animation: float 6s ease-in-out infinite;
}

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

.hero h1 .text-coral { color: var(--coral); }
.hero h1 .text-teal { color: var(--teal); }
.hero h1 .text-amber { color: var(--amber); }

.hero-sub {
  font-size: 1.2rem;
  color: var(--gray-700);
  margin-bottom: 36px;
  max-width: 540px;
}

/* --- Hero Layout Grid --- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

/* --- Interactive 3D Dice --- */
.dice-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  perspective-origin: 50% 45%;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
  min-height: 380px;
  padding: 20px 0;
}

.dice-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(15, 163, 163, 0.22) 0%, rgba(255, 90, 74, 0.15) 50%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  transform: translateZ(-50px);
}

[data-theme="dark"] .dice-glow {
  background: radial-gradient(circle, rgba(15, 163, 163, 0.35) 0%, rgba(255, 90, 74, 0.25) 45%, rgba(251, 176, 45, 0.1) 70%, transparent 80%);
  filter: blur(50px);
}

.dice-cube {
  width: 240px;
  height: 240px;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 2;
}

.dice-cube.auto-spin {
  animation: dice-tumble 18s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes dice-tumble {
  0% {
    transform: translateY(0px) rotateX(-22deg) rotateY(0deg) rotateZ(2deg);
  }
  25% {
    transform: translateY(-16px) rotateX(-14deg) rotateY(90deg) rotateZ(-3deg);
  }
  50% {
    transform: translateY(0px) rotateX(-28deg) rotateY(180deg) rotateZ(4deg);
  }
  75% {
    transform: translateY(-16px) rotateX(-16deg) rotateY(270deg) rotateZ(-2deg);
  }
  100% {
    transform: translateY(0px) rotateX(-22deg) rotateY(360deg) rotateZ(2deg);
  }
}

.dice-shadow {
  width: 200px;
  height: 32px;
  background: radial-gradient(ellipse at center, rgba(14, 42, 92, 0.28) 0%, rgba(14, 42, 92, 0.08) 50%, transparent 75%);
  border-radius: 50%;
  margin-top: 36px;
  filter: blur(8px);
  animation: dice-shadow-pulse 18s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  z-index: 1;
}

[data-theme="dark"] .dice-shadow {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 75%);
}

@keyframes dice-shadow-pulse {
  0%, 50%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  25%, 75% {
    transform: scale(0.82);
    opacity: 0.45;
  }
}

.dice-face {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 16px;
  border: 3px solid var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: visible;
  overflow: hidden;
}

[data-theme="dark"] .dice-face {
  border-color: rgba(255, 255, 255, 0.15);
}

.dice-face-art {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.dice-face--top {
  background: #FF5A4A;
  transform: rotateX(90deg) translateZ(120px);
}

.dice-face--bottom {
  background: #FF5A4A;
  transform: rotateX(-90deg) translateZ(120px);
}

.dice-face--front {
  background: #0FA3A3;
  transform: translateZ(120px);
}

.dice-face--back {
  background: #0FA3A3;
  transform: rotateY(180deg) translateZ(120px);
}

.dice-face--right {
  background: #FBB02D;
  transform: rotateY(90deg) translateZ(120px);
}

.dice-face--left {
  background: #FBB02D;
  transform: rotateY(-90deg) translateZ(120px);
}

.dice-hint {
  margin-top: 24px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.dice-scene:active .dice-hint,
.dice-scene.dragging .dice-hint {
  opacity: 0;
}

/* --- Decorative Shapes --- */
.deco-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.deco {
  position: absolute;
  opacity: 0.12;
}

.deco--star {
  color: var(--amber);
  font-size: 32px;
  top: 15%;
  right: 12%;
  animation: float 7s ease-in-out infinite;
}

.deco--spiral {
  width: 60px;
  height: 60px;
  border: 4px solid var(--teal);
  border-radius: 50%;
  border-top-color: transparent;
  border-right-color: transparent;
  bottom: 20%;
  right: 8%;
  animation: spin-slow 12s linear infinite;
}

.deco--circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--coral);
  top: 30%;
  right: 25%;
  animation: float 5s ease-in-out 1s infinite;
}

.deco--triangle {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 35px solid var(--amber);
  bottom: 25%;
  right: 30%;
  animation: float 8s ease-in-out 2s infinite;
}

.deco--dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
  top: 55%;
  right: 15%;
  animation: float 6s ease-in-out 0.5s infinite;
}

.deco--square {
  width: 24px;
  height: 24px;
  background: var(--coral);
  border-radius: 4px;
  top: 12%;
  right: 40%;
  transform: rotate(30deg);
  animation: float 9s ease-in-out 3s infinite;
}

.deco--star-2 {
  color: var(--coral);
  font-size: 24px;
  bottom: 15%;
  right: 45%;
  animation: float 7s ease-in-out 1.5s infinite;
}

.deco--ring {
  width: 50px;
  height: 50px;
  border: 3px solid var(--amber);
  border-radius: 50%;
  top: 60%;
  right: 35%;
  animation: float 10s ease-in-out 2.5s infinite;
}

/* --- What We Do / Feature Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(14, 42, 92, 0.06);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .feature-card {
  border-color: rgba(255, 255, 255, 0.08);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: height var(--transition);
}

.feature-card:nth-child(1)::before { background: var(--coral); }
.feature-card:nth-child(2)::before { background: var(--teal); }
.feature-card:nth-child(3)::before { background: var(--amber); }

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(14, 42, 92, 0.12);
  border-color: rgba(14, 42, 92, 0.14);
}

[data-theme="dark"] .feature-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border-color: rgba(15, 163, 163, 0.35);
}

.feature-card:hover::before {
  height: 6px;
}

/* Feature Icon Badges */
.feature-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  margin-bottom: 20px;
  transition: transform var(--transition);
}

.feature-card:hover .feature-icon-badge {
  transform: scale(1.08) rotate(3deg);
}

.feature-icon-badge svg {
  width: 30px;
  height: 30px;
}

.feature-icon-badge--coral {
  background: rgba(255, 90, 74, 0.12);
  color: var(--coral);
}

.feature-icon-badge--teal {
  background: rgba(15, 163, 163, 0.12);
  color: var(--teal);
}

.feature-icon-badge--amber {
  background: rgba(251, 176, 45, 0.16);
  color: #d18d09;
}

[data-theme="dark"] .feature-icon-badge--amber {
  color: var(--amber);
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--gray-700);
  font-size: 0.95rem;
}

/* --- Project Cards --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(14, 42, 92, 0.06);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .project-card {
  border-color: rgba(255, 255, 255, 0.08);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(14, 42, 92, 0.12);
  border-color: rgba(15, 163, 163, 0.25);
}

[data-theme="dark"] .project-card:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  border-color: rgba(15, 163, 163, 0.4);
}

.project-card-color {
  height: 8px;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--teal));
}

.project-card-body {
  padding: 32px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Status Live Pulse Badge */
.project-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(15, 163, 163, 0.08);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border: 1px solid rgba(15, 163, 163, 0.2);
}

[data-theme="dark"] .project-card-badge {
  background: rgba(15, 163, 163, 0.15);
  border-color: rgba(15, 163, 163, 0.3);
}

.status-ping-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
}

.status-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #10B981;
  opacity: 0.75;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.project-card p {
  color: var(--gray-700);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex: 1;
}

.project-card .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  padding: 4px 12px;
  background: var(--bg);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.project-card .btn {
  align-self: flex-start;
}

/* Projects Category Filter */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-pill {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(14, 42, 92, 0.12);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.filter-pill.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

[data-theme="dark"] .filter-pill {
  background: var(--white);
  border-color: rgba(255, 255, 255, 0.12);
  color: #E8EDF4;
}

[data-theme="dark"] .filter-pill.active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* Project Card Visual Banner */
.project-card-visual-banner {
  background: linear-gradient(135deg, #091a33 0%, #163470 100%);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.visual-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.visual-banner-tags {
  display: flex;
  gap: 6px;
}

.mini-tag {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* Coming soon card */
.project-card--soon {
  border: 2px dashed rgba(14, 42, 92, 0.2);
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
  transition: all var(--transition);
}

.project-card--soon:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 163, 163, 0.1);
}

.project-card--soon .soon-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.7;
  display: inline-block;
  animation: float 5s ease-in-out infinite;
}

.project-card--soon h3 {
  color: var(--navy);
  font-size: 1.25rem;
}

.project-card--soon p {
  color: var(--gray-700);
  font-size: 0.9rem;
}

/* --- Featured Project (Home) --- */
.featured-project {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(14, 42, 92, 0.08);
  border-radius: calc(var(--radius) * 1.3);
  padding: 48px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

[data-theme="dark"] .featured-project {
  background: var(--white);
  border-color: rgba(255, 255, 255, 0.08);
}

.featured-project:hover {
  box-shadow: 0 24px 50px rgba(14, 42, 92, 0.12);
  border-color: rgba(15, 163, 163, 0.25);
}

[data-theme="dark"] .featured-project:hover {
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  border-color: rgba(15, 163, 163, 0.4);
}

.featured-project-info h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.featured-project-info p {
  color: var(--gray-700);
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* --- Browser Mockup --- */
.browser-mockup {
  background: #091a33;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(14, 42, 92, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}

.featured-project:hover .browser-mockup {
  transform: translateY(-4px) scale(1.01);
}

.browser-bar {
  background: #0d2242;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot--red { background: #FF5F56; }
.dot--yellow { background: #FFBD2E; }
.dot--green { background: #27C93F; }

.browser-url {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
}

.browser-url .url-lock {
  font-size: 0.7rem;
  opacity: 0.7;
}

.browser-content {
  padding: 24px;
  background: linear-gradient(180deg, #091a33 0%, #061122 100%);
  color: #fff;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-tag {
  background: rgba(15, 163, 163, 0.2);
  color: #14c4c4;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mockup-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
}

.mockup-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(15, 163, 163, 0.4);
}

.mockup-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.mockup-item strong {
  display: block;
  font-size: 0.82rem;
  color: #fff;
  line-height: 1.2;
}

.mockup-item small {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 80px 0;
}

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

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.section--navy .cta-section p {
  color: rgba(255,255,255,0.8);
}

/* --- About Page --- */
.about-intro {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.about-intro p {
  font-size: 1.1rem;
  color: var(--gray-700);
}

.how-we-work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(14, 42, 92, 0.06);
  position: relative;
  counter-increment: step;
  transition: all var(--transition);
}

[data-theme="dark"] .step-card {
  border-color: rgba(255, 255, 255, 0.08);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(14, 42, 92, 0.12);
  border-color: rgba(15, 163, 163, 0.3);
}

[data-theme="dark"] .step-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border-color: rgba(15, 163, 163, 0.4);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 16px;
}

.step-card:nth-child(1) .step-number { background: var(--coral); }
.step-card:nth-child(2) .step-number { background: var(--teal); }
.step-card:nth-child(3) .step-number { background: var(--amber); color: var(--navy); }

.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--gray-700); font-size: 0.95rem; }

/* --- About Page Manifesto Card --- */
.about-intro {
  max-width: 860px;
  margin: 0 auto 48px;
  text-align: center;
}

.manifesto-card {
  background: var(--white);
  border-radius: calc(var(--radius) * 1.3);
  padding: 48px 44px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(14, 42, 92, 0.08);
  position: relative;
  overflow: hidden;
  text-align: left;
}

[data-theme="dark"] .manifesto-card {
  border-color: rgba(255, 255, 255, 0.08);
}

.manifesto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--teal));
}

.manifesto-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 90, 74, 0.1);
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 20px;
}

.manifesto-lead {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--navy);
  margin-bottom: 20px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(14, 42, 92, 0.08);
}

[data-theme="dark"] .pillars-grid {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.pillar-item {
  text-align: left;
}

.pillar-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  display: block;
}

.pillar-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.pillar-item span {
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.4;
  display: block;
}

.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* --- Contact Page --- */
.contact-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.contact-content > p {
  font-size: 1.15rem;
  color: var(--gray-700);
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Social Hub Grid */
.social-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

.social-hub-card {
  background: var(--white);
  border-radius: calc(var(--radius) * 1.2);
  padding: 36px 30px;
  border: 1px solid rgba(14, 42, 92, 0.08);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .social-hub-card {
  border-color: rgba(255, 255, 255, 0.08);
}

.social-hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(14, 42, 92, 0.12);
}

.social-hub-card--linkedin:hover {
  border-color: #0A66C2;
}

.social-hub-card--facebook:hover {
  border-color: #1877F2;
}

[data-theme="dark"] .social-hub-card:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.social-hub-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.social-hub-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.social-hub-icon-wrap svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.social-hub-icon-wrap--linkedin {
  background: #0A66C2;
  box-shadow: 0 6px 16px rgba(10, 102, 194, 0.3);
}

.social-hub-icon-wrap--facebook {
  background: #1877F2;
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.3);
}

.social-hub-title h3 {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.social-hub-handle {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 600;
}

.social-hub-card p {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.social-hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-hub-btn--linkedin {
  background: #0A66C2;
  color: #fff;
}

.social-hub-btn--linkedin:hover {
  background: #004182;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 102, 194, 0.3);
}

.social-hub-btn--facebook {
  background: #1877F2;
  color: #fff;
}

.social-hub-btn--facebook:hover {
  background: #0d5fc7;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.3);
}

.contact-notice {
  max-width: 620px;
  margin: 0 auto;
  padding: 16px 24px;
  background: rgba(14, 42, 92, 0.04);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(14, 42, 92, 0.08);
}

[data-theme="dark"] .contact-notice {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #a0b3c6;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  transition: all var(--transition);
  text-decoration: none;
  min-width: 220px;
  justify-content: center;
}

.social-btn:hover {
  transform: translateY(-3px);
  color: var(--white);
}

.social-btn--linkedin {
  background: #0A66C2;
  box-shadow: 0 4px 16px rgba(10, 102, 194, 0.25);
}

.social-btn--linkedin:hover {
  background: #004182;
  box-shadow: 0 6px 24px rgba(10, 102, 194, 0.35);
}

.social-btn--facebook {
  background: #1877F2;
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.25);
}

.social-btn--facebook:hover {
  background: #0d5fc7;
  box-shadow: 0 6px 24px rgba(24, 119, 242, 0.35);
}

.social-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

/* --- Legal Pages (Privacy & Terms) --- */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 8px;
}

.legal-date {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-warm);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  color: var(--gray-700);
  margin-bottom: 14px;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 14px;
  padding-left: 24px;
}

.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }

.legal-content li {
  color: var(--gray-700);
  margin-bottom: 6px;
  line-height: 1.6;
}

.legal-content a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--coral);
}

/* --- Page Header Banner --- */
.page-header {
  background: var(--navy);
  padding: 56px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: var(--coral);
  border-radius: 50%;
  opacity: 0.07;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -30px;
  width: 140px;
  height: 140px;
  background: var(--teal);
  border-radius: 50%;
  opacity: 0.07;
}

.page-header h1 {
  color: var(--white);
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

.page-header p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}

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

.footer-logo {
  height: 56px;
  width: auto;
  border-radius: 6px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

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

.footer-social-icons {
  display: flex;
  gap: 16px;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transition: all var(--transition-fast);
}

.footer-social-icon:hover {
  background: var(--coral);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-project {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.footer-project a {
  color: var(--amber);
  font-weight: 600;
}

.footer-project a:hover {
  color: var(--amber-light);
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

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

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

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for grids */
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }

/* --- Utilities --- */
.text-center { text-align: center; }
.text-coral { color: var(--coral); }
.text-teal { color: var(--teal); }
.text-amber { color: var(--amber); }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

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

/* Tablet */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .dice-scene {
    min-height: 260px;
    order: -1;
  }

  .dice-cube {
    width: 180px;
    height: 180px;
  }

  .dice-face {
    width: 180px;
    height: 180px;
    border-radius: 12px;
  }

  .dice-face--top    { transform: rotateX(90deg) translateZ(90px); }
  .dice-face--bottom { transform: rotateX(-90deg) translateZ(90px); }
  .dice-face--front  { transform: translateZ(90px); }
  .dice-face--back   { transform: rotateY(180deg) translateZ(90px); }
  .dice-face--right  { transform: rotateY(90deg) translateZ(90px); }
  .dice-face--left   { transform: rotateY(-90deg) translateZ(90px); }

  .features-grid,
  .how-we-work {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .featured-project {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero {
    min-height: auto;
    padding: 60px 0 48px;
  }

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

  .pillars-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .social-hub-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 28px 40px;
    gap: 4px;
    box-shadow: -4px 0 24px rgba(14, 42, 92, 0.12);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 42, 92, 0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav-overlay.visible {
    opacity: 1;
    visibility: visible;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .hero-logo {
    width: 100px;
    margin-bottom: 24px;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .featured-project {
    padding: 28px 20px;
    gap: 28px;
  }

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

  .dice-shadow {
    width: 140px;
    height: 20px;
    margin-top: 24px;
  }

  .btn-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn--lg {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-header {
    padding: 40px 0 36px;
  }

  .manifesto-card {
    padding: 32px 20px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .social-hub-card {
    padding: 28px 20px;
  }

  .contact-notice {
    border-radius: var(--radius-sm);
    text-align: left;
    align-items: flex-start;
  }

  .social-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .social-btn {
    min-width: 0;
  }

  .deco { display: none; }

  /* Show only a couple shapes on larger mobile */
  @media (min-width: 480px) {
    .deco--star,
    .deco--circle { display: block; opacity: 0.08; }
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .hero {
    padding: 100px 0 80px;
  }
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  z-index: 10000;
  font-size: 0.9rem;
  border-radius: 0 0 var(--radius-xs) 0;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* --- Page Load Fade-In --- */
@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: page-fade-in 0.5s ease-out;
}

/* --- Hero Logo Hover Animation --- */
.hero-logo {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  cursor: pointer;
}

.hero-logo:hover {
  transform: rotate(-8deg) scale(1.08) translateY(-6px);
  box-shadow: 0 12px 32px rgba(14, 42, 92, 0.15);
}

[data-theme="dark"] .hero-logo:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(14, 42, 92, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--coral);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(255, 90, 74, 0.3);
}

[data-theme="dark"] .back-to-top {
  background: #1e3550;
  color: #E8EDF4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .back-to-top:hover {
  background: var(--coral);
  color: #fff;
}

@media (max-width: 640px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .deco-shapes,
  .nav-toggle,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
}
