/* ============================================
   CONSORTIUM INVESTMENT NETWORK - Main Styles
   ============================================ */

/* CSS Variables - Brand Colors */
:root {
  --brand-950: #1e3a5f;
  --brand-900: #2d4a6f;
  --brand-800: #3d5a7f;
  --brand-700: #4d6a8f;
  --brand-600: #5d7a9f;
  --brand-500: #4a90d9;
  --brand-400: #6ba8e8;
  --brand-300: #8ec4f5;
  --brand-accent: #22d3ee;

  --white: #ffffff;
  --gray-100: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 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-sans);
  background-color: var(--brand-950);
  color: var(--gray-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* Hide broken images */
img[src=""],
img:not([src]) {
  visibility: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
}

.font-display {
  font-family: var(--font-display);
}

.font-light {
  font-weight: 300;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(to right, var(--brand-300), var(--brand-400), var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.min-h-screen {
  min-height: 100vh;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-grow {
  flex-grow: 1;
}

.items-center {
  align-items: center;
}

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

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.grid {
  display: grid;
}

.text-center {
  text-align: center;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  display: none;
  background: var(--brand-950);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0.625rem 0;
}

@media (min-width: 768px) {
  .top-bar {
    display: block;
  }
}

.top-bar-content {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--gray-500);
}

.top-bar a {
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.top-bar a:hover {
  color: var(--brand-400);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.top-bar-icon {
  width: 12px;
  height: 12px;
  margin-right: 0.5rem;
  color: var(--brand-500);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: relative;
  z-index: 50;
}

.navbar-container {
  position: fixed;
  width: 100%;
  z-index: 50;
  transition: all 0.5s;
  top: 0;
  padding: 1rem 0;
}

@media (min-width: 768px) {
  .navbar-container {
    position: relative;
    padding: 1.5rem 0;
  }
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  transition: all 0.5s;
  background: rgba(30, 58, 95, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
}

@media (min-width: 768px) {
  .navbar-inner {
    border-radius: 9999px;
    padding: 0 1.5rem;
  }
}

.navbar-inner.scrolled {
  background: rgba(30, 58, 95, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

@media (min-width: 768px) {
  .navbar-content {
    height: 90px;
  }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(to bottom right, var(--brand-500), var(--brand-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
  transition: box-shadow 0.3s;
}

.logo:hover .logo-icon {
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.8);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: white;
  transition: color 0.2s;
}

.logo:hover .logo-text {
  color: var(--gray-200);
}

/* Logo Image - Navbar */
.logo-img {
  height: 70px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.logo:hover .logo-img {
  opacity: 0.85;
}

/* Footer logo - larger and left-aligned with text */
.footer-brand .logo {
  display: block;
  margin-bottom: 1.5rem;
}

.footer-brand .logo-img {
  height: 120px;
  max-width: 200px;
  margin-left: 0;
  display: block;
}

@media (min-width: 768px) {
  .logo-img {
    height: 80px;
    max-width: 220px;
  }

  .footer-brand .logo-img {
    height: 140px;
    max-width: 240px;
  }
}

/* Desktop Nav */
.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-left: 1rem;
  }
}

@media (min-width: 1024px) {
  .nav-links {
    gap: 1.5rem;
    margin-left: 2.5rem;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-300);
  transition: all 0.2s;
}

@media (min-width: 1024px) {
  .nav-link {
    padding: 0.5rem 0.875rem;
  }
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link .chevron {
  width: 12px;
  height: 12px;
  margin-left: 4px;
  opacity: 0.7;
  transition: transform 0.2s;
}

.nav-item:hover .chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 1rem;
  width: 14rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-menu {
  background: var(--brand-950);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  padding: 4px;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--gray-300);
  border-radius: 8px;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background: rgba(74, 144, 217, 0.1);
  color: var(--brand-400);
}

/* CTA Button */
.nav-cta {
  display: none;
  margin-left: 1rem;
}

@media (min-width: 768px) {
  .nav-cta {
    display: flex;
    align-items: center;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 1rem;
  background: var(--brand-500);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 9999px;
  transition: all 0.3s;
  box-shadow: 0 10px 15px -3px rgba(74, 144, 217, 0.2);
}

@media (min-width: 1024px) {
  .btn-primary {
    padding: 0 1.5rem;
  }
}

.btn-primary:hover {
  background: var(--brand-400);
}

.btn-primary .arrow {
  width: 16px;
  height: 16px;
  margin-left: 0.5rem;
  transition: transform 0.2s;
}

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

/* Mobile Menu Toggle */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--gray-400);
  border-radius: 6px;
  transition: all 0.2s;
  margin-right: -0.5rem;
}

.mobile-toggle:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(30, 58, 95, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 50;
}

.mobile-menu.open {
  display: block;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu-content {
  padding: 0.5rem 1rem 1.5rem;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gray-300);
}

.mobile-nav-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.5rem;
}

.mobile-nav-button .chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.mobile-nav-button.expanded .chevron {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  padding-left: 1rem;
  margin-left: 0.75rem;
  border-left: 2px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1rem;
}

.mobile-submenu.open {
  display: block;
}

.mobile-submenu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-400);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 8rem;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 5rem;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(45, 74, 111, 0.4), var(--brand-950), var(--brand-950));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
  margin-top: 1rem;
  animation: fadeInUp 0.5s ease-out forwards;
}

@media (min-width: 768px) {
  .hero-badge {
    margin-top: 0;
  }
}

.hero-badge span {
  color: var(--gray-300);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 2rem;
  animation: fadeInUp 0.5s ease-out forwards;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 6rem;
  }
}

.hero-title-gradient {
  background: linear-gradient(to right, white, var(--gray-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-400);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.5s ease-out 0.15s forwards;
  opacity: 0;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 0.5s ease-out 0.3s forwards;
  opacity: 0;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn-hero-primary {
  width: 100%;
  padding: 1rem 2.5rem;
  background: var(--brand-500);
  color: white;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.2s;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
  .btn-hero-primary {
    width: auto;
  }
}

.btn-hero-primary:hover {
  background: var(--brand-400);
}

.btn-hero-primary:active {
  transform: scale(0.95);
}

.btn-hero-secondary {
  width: 100%;
  padding: 1rem 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.125rem;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}

@media (min-width: 640px) {
  .btn-hero-secondary {
    width: auto;
  }
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   TAX-EFFICIENT INVESTING SECTION
   ============================================ */
.tax-benefits-section {
  padding: 6rem 0;
  background: var(--brand-950);
  position: relative;
  overflow: hidden;
}

.tax-benefits-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(74, 144, 217, 0.3), transparent);
}

.tax-benefits-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tax-benefits-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(74, 144, 217, 0.1);
  border: 1px solid rgba(74, 144, 217, 0.3);
  border-radius: 9999px;
  color: var(--brand-400);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.tax-benefits-badge:hover {
  background: rgba(74, 144, 217, 0.2);
  border-color: var(--brand-400);
  transform: translateY(-2px);
}

.tax-benefits-badge svg {
  flex-shrink: 0;
}

.tax-benefits-content {
  max-width: 1000px;
  margin: 0 auto;
}

.tax-benefits-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.tax-benefits-intro p {
  color: var(--gray-400);
  font-size: 1.125rem;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.tax-benefits-intro p:last-child {
  margin-bottom: 0;
}

.tax-benefits-intro strong {
  color: white;
  font-weight: 600;
}

.tax-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .tax-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tax-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tax-benefit-card {
  background: rgba(45, 74, 111, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.tax-benefit-card:hover {
  background: rgba(45, 74, 111, 0.5);
  border-color: rgba(74, 144, 217, 0.2);
  transform: translateY(-4px);
}

.tax-benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(74, 144, 217, 0.2), rgba(34, 211, 238, 0.1));
  border: 1px solid rgba(74, 144, 217, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.tax-benefit-icon svg {
  width: 24px;
  height: 24px;
  color: var(--brand-400);
}

.tax-benefit-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.tax-benefit-card p {
  color: var(--gray-400);
  font-size: 0.9375rem;
  line-height: 1.6;
  font-weight: 300;
}

.tax-benefit-card .highlight {
  color: var(--brand-accent);
  font-weight: 600;
}

.tax-benefits-footer {
  text-align: center;
  padding-top: 3rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tax-benefits-footer p {
  color: var(--gray-300);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
}

.btn-tax-benefits {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-tax-benefits:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(74, 144, 217, 0.3);
  transform: translateY(-2px);
}

.btn-tax-benefits svg {
  flex-shrink: 0;
}

/* Make 5 cards work nicely - last 2 centered on larger screens */
@media (min-width: 1024px) {
  .tax-benefits-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
  }

  .tax-benefit-card:nth-child(1),
  .tax-benefit-card:nth-child(2),
  .tax-benefit-card:nth-child(3) {
    grid-column: span 2;
  }

  .tax-benefit-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .tax-benefit-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

/* ============================================
   BENTO GRID SECTION
   ============================================ */
.bento-section {
  padding: 5rem 0;
  background: rgba(30, 58, 95, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section-header {
    text-align: left;
  }
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  color: var(--gray-400);
  font-size: 1.125rem;
  font-weight: 300;
  max-width: 42rem;
}

@media (min-width: 768px) {
  .section-subtitle {
    margin: 0;
  }
}

@media (max-width: 767px) {
  .section-subtitle {
    margin: 0 auto;
  }
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.bento-item {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: linear-gradient(to bottom right, rgba(45, 74, 111, 0.4), rgba(30, 58, 95, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem;
  display: block;
  transition: all 0.5s;
  min-height: 300px;
}

@media (min-width: 768px) {
  .bento-item {
    min-height: 400px;
  }
}

.bento-item:active {
  transform: scale(0.98);
}

@media (min-width: 1024px) {
  .bento-item:hover {
    border-color: rgba(74, 144, 217, 0.3);
    box-shadow: 0 25px 50px -12px rgba(74, 144, 217, 0.1);
    transform: translateY(-4px);
  }
}

.bento-item.featured {
  min-height: 400px;
}

@media (min-width: 768px) {
  .bento-item.span-4 {
    grid-column: span 4;
    grid-row: span 2;
  }

  .bento-item.span-2 {
    grid-column: span 2;
    grid-row: span 2;
  }

  .bento-item.span-6 {
    grid-column: span 6;
    min-height: 200px;
  }
}

.bento-orb {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.15) 0%, rgba(74, 144, 217, 0.05) 50%, transparent 80%);
  border-radius: 50%;
  transition: all 0.5s;
}

@media (min-width: 1024px) {
  .bento-orb {
    display: block;
  }

  .bento-item:hover .bento-orb {
    background: rgba(74, 144, 217, 0.2);
    transform: scale(1.5);
  }
}

.bento-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: linear-gradient(to bottom right, rgba(74, 144, 217, 0.2), rgba(34, 211, 238, 0.2));
  border: 1px solid rgba(74, 144, 217, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(74, 144, 217, 0.2);
  transition: transform 0.3s;
}

.bento-item.featured .bento-icon {
  width: 64px;
  height: 64px;
}

@media (min-width: 1024px) {
  .bento-item:hover .bento-icon {
    transform: scale(1.1);
  }
}

.bento-icon svg {
  width: 28px;
  height: 28px;
  color: var(--brand-400);
  transition: color 0.3s;
}

.bento-item.featured .bento-icon svg {
  width: 32px;
  height: 32px;
}

@media (min-width: 1024px) {
  .bento-item:hover .bento-icon svg {
    color: var(--brand-300);
  }
}

.bento-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

@media (min-width: 768px) {
  .bento-title {
    font-size: 1.875rem;
  }
}

.bento-item.featured .bento-title {
  font-size: 1.875rem;
}

@media (min-width: 768px) {
  .bento-item.featured .bento-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .bento-item:hover .bento-title {
    color: var(--brand-300);
  }
}

.bento-desc {
  color: var(--gray-400);
  line-height: 1.7;
  font-size: 0.875rem;
  font-weight: 300;
  transition: color 0.3s;
}

.bento-item.featured .bento-desc {
  font-size: 1rem;
}

@media (min-width: 1024px) {
  .bento-item:hover .bento-desc {
    color: var(--gray-300);
  }
}

.bento-arrow {
  display: none;
  margin-top: 1.5rem;
  align-items: center;
  color: var(--brand-400);
  font-weight: 500;
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 0.3s;
}

@media (min-width: 1024px) {
  .bento-arrow {
    display: flex;
  }

  .bento-item:hover .bento-arrow {
    opacity: 1;
  }
}

.bento-arrow svg {
  width: 16px;
  height: 16px;
  margin-left: 0.5rem;
  transition: transform 0.2s;
}

.bento-item:hover .bento-arrow svg {
  transform: translateX(4px);
}

/* ============================================
   LOGO CAROUSEL
   ============================================ */
.logo-section {
  padding: 4rem 0;
  overflow: hidden;
}

.logo-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.logo-section .section-subtitle {
  text-align: center;
  margin: 0 auto;
}

.logo-carousel-container {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  overflow: hidden;
}

.logo-carousel-fade-left,
.logo-carousel-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8rem;
  z-index: 10;
  pointer-events: none;
}

.logo-carousel-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--brand-950), transparent);
}

.logo-carousel-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--brand-950), transparent);
}

.logo-carousel {
  display: flex;
  gap: 3rem;
  padding: 2rem 0;
  animation: scroll 30s linear infinite;
}

.logo-carousel:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
  padding: 0 1.5rem;
  transition: opacity 0.2s;
}

.logo-item:hover {
  opacity: 0.8;
}

.logo-item img {
  height: 3rem;
  width: auto;
  object-fit: contain;
}

.view-portfolio-btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.2s;
  margin-top: 2.5rem;
}

.view-portfolio-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(74, 144, 217, 0.3);
}

.view-portfolio-btn svg {
  width: 20px;
  height: 20px;
  margin-left: 0.5rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg,
    var(--brand-950) 0%,
    rgba(45, 74, 111, 0.3) 50%,
    var(--brand-950) 100%);
}

/* Top gradient line */
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(74, 144, 217, 0.5) 50%,
    transparent 100%);
}

/* Bottom gradient line */
.cta-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(34, 211, 238, 0.4) 50%,
    transparent 100%);
}

.cta-bg {
  display: none;
}

.cta-glow {
  display: none;
}

.cta-content {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 3.75rem;
  }
}

.cta-subtitle {
  color: var(--gray-400);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.btn-cta-primary {
  padding: 1rem 2rem;
  background: white;
  color: var(--brand-950);
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-cta-primary:hover {
  background: var(--gray-100);
  transform: scale(1.05);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.2s;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-cta-secondary svg {
  width: 20px;
  height: 20px;
  margin-left: 0.5rem;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  position: relative;
  padding: 10rem 0 5rem;
  background: var(--brand-950);
  overflow: hidden;
}

@media (min-width: 768px) {
  .page-header {
    padding: 12rem 0 8rem;
  }
}

.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-header-orb-1 {
  position: absolute;
  top: -200px;
  left: 10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.15) 0%, rgba(74, 144, 217, 0.05) 40%, transparent 70%);
  border-radius: 50%;
  animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.page-header-orb-2 {
  position: absolute;
  bottom: -150px;
  right: 10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, rgba(34, 211, 238, 0.03) 40%, transparent 70%);
  border-radius: 50%;
}

.page-header-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(74, 144, 217, 0.3);
  background: rgba(74, 144, 217, 0.1);
  color: var(--brand-400);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: white;
  margin-bottom: 2rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 4.5rem;
  }
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--gray-400);
  max-width: 48rem;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .page-subtitle {
    font-size: 1.5rem;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--brand-950);
  padding: 6rem 0 3rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-orb {
  position: absolute;
  top: -100px;
  left: 15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.08) 0%, rgba(74, 144, 217, 0.02) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.footer-brand {
  max-width: 28rem;
}

/* Align footer column headings with logo area */
@media (min-width: 1024px) {
  .footer-column {
    padding-top: 50px;
  }
}

.footer-brand .logo {
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--gray-400);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all 0.2s;
}

.social-link:hover {
  color: var(--brand-400);
  border-color: var(--brand-400);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-column h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--brand-400);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  color: var(--gray-400);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  margin-right: 0.75rem;
  flex-shrink: 0;
  color: var(--brand-500);
  margin-top: 2px;
}

.footer-contact-item a:hover {
  color: var(--brand-400);
}

.footer-disclaimer {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.footer-disclaimer p {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--gray-400);
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.footer-registered-office {
  color: var(--gray-600);
  font-size: 0.6875rem;
  margin-bottom: 1rem;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-legal a {
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--gray-300);
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  animation: fadeInUp 0.5s ease-out forwards;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

@media (min-width: 768px) {
  .cookie-banner {
    left: auto;
    right: 2rem;
    max-width: 28rem;
  }
}

.cookie-content {
  background: rgba(45, 74, 111, 0.9);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cookie-content {
    padding: 2rem;
  }
}

.cookie-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--brand-500), var(--brand-accent));
}

.cookie-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.cookie-icon {
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  background: rgba(74, 144, 217, 0.1);
  border: 1px solid rgba(74, 144, 217, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-icon svg {
  width: 24px;
  height: 24px;
  color: var(--brand-400);
}

.cookie-text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.cookie-text p {
  color: var(--gray-400);
  font-size: 0.75rem;
  line-height: 1.6;
  font-weight: 300;
}

.cookie-text strong {
  color: white;
  font-weight: 500;
}

.cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cookie-buttons {
    flex-direction: row;
  }
}

.cookie-accept {
  flex: 1;
  background: white;
  color: var(--brand-950);
  font-weight: 700;
  padding: 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  transition: all 0.2s;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.cookie-accept:hover {
  background: var(--gray-100);
}

.cookie-decline {
  flex: 1;
  background: var(--brand-950);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-400);
  font-weight: 700;
  padding: 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.cookie-decline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.cookie-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--gray-500);
  padding: 0.25rem;
  transition: color 0.2s;
}

.cookie-close:hover {
  color: white;
}

.cookie-close svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   GLASS CARD
   ============================================ */
.glass-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(45, 74, 111, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.glass-card:hover {
  background: rgba(45, 74, 111, 0.6);
}

.glass-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(to bottom right, rgba(74, 144, 217, 0.1), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.5s;
  box-shadow: 0 10px 15px -3px rgba(74, 144, 217, 0.1);
}

.glass-card:hover .glass-card-icon {
  transform: scale(1.1);
}

.glass-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--brand-400);
}

.glass-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.glass-card p {
  color: var(--gray-400);
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================
   FORMS
   ============================================ */
.form-section {
  padding: 6rem 0;
  background: var(--brand-950);
  position: relative;
  overflow: hidden;
}

.form-orb {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.08) 0%, rgba(74, 144, 217, 0.02) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
}

@media (min-width: 1024px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

.contact-info > p {
  color: var(--gray-400);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 3rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
}

.contact-item-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--brand-900);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s;
}

@media (min-width: 1024px) {
  .contact-item:hover .contact-item-icon {
    border-color: rgba(74, 144, 217, 0.5);
  }
}

.contact-item-icon svg {
  width: 24px;
  height: 24px;
  color: var(--brand-400);
}

.contact-item-text {
  margin-left: 1.5rem;
}

.contact-item-text h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.contact-item-text p {
  color: var(--gray-400);
  font-weight: 300;
}

.form-container {
  background: rgba(45, 74, 111, 0.3);
  backdrop-filter: blur(4px);
  padding: 2.5rem;
  border-radius: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .form-container {
    backdrop-filter: blur(24px);
  }
}

.form-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--brand-500), var(--brand-accent), #a855f7);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-300);
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.form-label .required {
  color: var(--brand-400);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(30, 58, 95, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: white;
  font-size: 1rem;
  transition: all 0.2s;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-600);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--brand-500);
}

.form-select {
  appearance: none;
  cursor: pointer;
  padding-right: 3rem;
}

.select-wrapper {
  position: relative;
}

.select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gray-500);
}

.select-arrow svg {
  width: 16px;
  height: 16px;
}

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

.form-submit {
  width: 100%;
  background: linear-gradient(to right, var(--brand-500), var(--brand-400));
  color: white;
  font-weight: 700;
  padding: 1.25rem;
  border-radius: 12px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
  margin-top: 1.5rem;
}

.form-submit:hover {
  background: linear-gradient(to right, var(--brand-400), var(--brand-300));
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.6);
  transform: translateY(-2px);
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-submit svg {
  width: 20px;
  height: 20px;
  margin-left: 0.5rem;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  text-align: center;
}

.form-success-icon {
  width: 80px;
  height: 80px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.form-success-icon svg {
  width: 40px;
  height: 40px;
  color: #4ade80;
}

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.form-success p {
  color: var(--gray-400);
  font-size: 1.125rem;
  max-width: 24rem;
}

.form-success button {
  margin-top: 2rem;
  color: var(--brand-400);
  font-weight: 500;
  transition: color 0.2s;
}

.form-success button:hover {
  color: var(--brand-300);
}

.form-error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.form-error svg {
  width: 20px;
  height: 20px;
  color: #f87171;
  flex-shrink: 0;
}

.form-error p {
  color: #f87171;
  font-size: 0.875rem;
}

/* Hidden honeypot field */
.honeypot {
  display: none;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  padding: 6rem 0;
  background: var(--brand-950);
}

.faq-container {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--brand-400);
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--brand-400);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding-bottom: 1.5rem;
  color: var(--gray-400);
  line-height: 1.7;
  font-weight: 300;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
  padding: 6rem 0;
  background: var(--brand-950);
}

.content-section.alt {
  background: rgba(45, 74, 111, 0.2);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .content-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 1024px) {
  .content-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Process Steps */
.process-step {
  position: relative;
  padding: 2rem;
  background: rgba(45, 74, 111, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
}

.process-number {
  position: absolute;
  top: -1rem;
  left: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(to bottom right, var(--brand-500), var(--brand-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1rem;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.process-step p {
  color: var(--gray-400);
  font-weight: 300;
  line-height: 1.7;
}

/* Team Cards */
.team-card {
  text-align: center;
  padding: 2rem;
  background: rgba(45, 74, 111, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  transition: all 0.3s;
}

.team-card:hover {
  background: rgba(45, 74, 111, 0.5);
  border-color: rgba(74, 144, 217, 0.3);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 3px solid rgba(74, 144, 217, 0.3);
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--brand-400);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-card p {
  color: var(--gray-400);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Service Cards */
.service-card {
  display: block;
  padding: 2rem;
  background: rgba(45, 74, 111, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  transition: all 0.3s;
}

.service-card:hover {
  background: rgba(45, 74, 111, 0.5);
  border-color: rgba(74, 144, 217, 0.3);
  transform: translateY(-4px);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: linear-gradient(to bottom right, rgba(74, 144, 217, 0.2), rgba(34, 211, 238, 0.2));
  border: 1px solid rgba(74, 144, 217, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--brand-400);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--gray-400);
  line-height: 1.7;
  font-weight: 300;
}

/* Opportunity Cards */
.opportunity-card {
  background: rgba(45, 74, 111, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.3s;
}

.opportunity-card:hover {
  border-color: rgba(74, 144, 217, 0.3);
  transform: translateY(-4px);
}

.opportunity-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.opportunity-content {
  padding: 1.5rem;
}

.opportunity-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(74, 144, 217, 0.2);
  border: 1px solid rgba(74, 144, 217, 0.3);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-400);
  margin-bottom: 1rem;
}

.opportunity-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.opportunity-card p {
  color: var(--gray-400);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.opportunity-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.opportunity-stat {
  text-align: center;
}

.opportunity-stat-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-400);
}

.opportunity-stat-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Portfolio Case Studies */
.case-study {
  background: rgba(45, 74, 111, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  overflow: hidden;
}

.case-study-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.case-study-content {
  padding: 1.5rem;
}

.case-study h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.case-study-sector {
  color: var(--brand-400);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.case-study p {
  color: var(--gray-400);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Legal Pages */
.legal-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  color: var(--gray-400);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  color: var(--gray-400);
  line-height: 1.8;
  margin-bottom: 0.5rem;
  list-style: disc;
}

.legal-content a {
  color: var(--brand-400);
  text-decoration: underline;
}

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

/* ============================================
   SKIP TO CONTENT
   ============================================ */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand-500);
  color: white;
  padding: 1rem 1.5rem;
  font-weight: 600;
}

.skip-to-content:focus {
  left: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hidden {
  display: none;
}

/* Ensure placeholder divs don't show anything */
#navbar-placeholder,
#footer-placeholder,
#cookie-placeholder,
#cta-placeholder {
  display: contents;
}

/* ============================================
   PORTFOLIO PAGE
   ============================================ */

.portfolio-header {
  text-align: center;
  margin-bottom: 4rem;
}

.portfolio-section-title {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
}

.portfolio-section-subtitle {
  color: var(--gray-400);
  font-size: 1.125rem;
  max-width: 40rem;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.portfolio-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--brand-500-rgb), 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--brand-500-rgb), 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(var(--brand-500-rgb), 0.1);
}

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

.portfolio-card-image {
  height: 160px;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-950));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.portfolio-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.8), transparent);
}

.portfolio-card-image img {
  max-width: 140px;
  max-height: 80px;
  object-fit: contain;
  filter: brightness(1.1);
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.05);
}

.portfolio-card-fallback {
  font-size: 1.25rem;
  color: white;
  opacity: 0.4;
  display: none;
}

.portfolio-card-content {
  padding: 1.5rem;
}

.portfolio-card-sector {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-400);
  margin-bottom: 0.5rem;
}

.portfolio-card-title {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 0.5rem;
}

.portfolio-card-excerpt {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.portfolio-card-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-400);
  transition: all 0.2s ease;
}

.portfolio-card-cta svg {
  width: 16px;
  height: 16px;
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.portfolio-card:hover .portfolio-card-cta {
  color: var(--brand-300);
}

.portfolio-card:hover .portfolio-card-cta svg {
  transform: translateX(4px);
}

.portfolio-cta {
  text-align: center;
}

.portfolio-cta-text {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.btn-portfolio-contact {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-portfolio-contact:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-portfolio-contact svg {
  width: 20px;
  height: 20px;
  margin-left: 0.5rem;
}

/* Portfolio Modal */
.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.portfolio-modal.active {
  opacity: 1;
  visibility: visible;
}

.portfolio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.portfolio-modal-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
}

.portfolio-modal.active .portfolio-modal-container {
  transform: scale(1) translateY(0);
}

.portfolio-modal-content {
  background: linear-gradient(135deg, rgba(30, 30, 35, 0.98), rgba(20, 20, 25, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  position: relative;
}

.portfolio-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--gray-400);
  cursor: pointer;
  transition: all 0.2s ease;
}

.portfolio-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.portfolio-modal-close svg {
  width: 20px;
  height: 20px;
}

.portfolio-modal-header {
  margin-bottom: 1.5rem;
  padding-right: 3rem;
}

.portfolio-modal-sector {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-400);
  background: rgba(var(--brand-500-rgb), 0.1);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.portfolio-modal-title {
  font-size: 1.75rem;
  color: white;
}

.portfolio-modal-body {
  margin-bottom: 2rem;
}

.portfolio-modal-description {
  color: var(--gray-300);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.portfolio-modal-highlights {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 1.5rem;
}

.portfolio-modal-highlights h4 {
  font-size: 0.875rem;
  color: white;
  margin-bottom: 1rem;
}

.portfolio-modal-highlights ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.portfolio-modal-highlights li {
  display: flex;
  align-items: center;
  font-size: 0.9375rem;
  color: var(--gray-300);
}

.portfolio-modal-highlights li svg {
  width: 18px;
  height: 18px;
  color: var(--brand-400);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.portfolio-modal-footer {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-visit-website {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--brand-500-rgb), 0.3);
}

.btn-visit-website:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--brand-500-rgb), 0.4);
}

.btn-visit-website svg {
  width: 18px;
  height: 18px;
  margin-left: 0.5rem;
}

/* ============================================
   TIMELINE / PROCESS PAGE
   ============================================ */
.timeline-section {
  padding: 6rem 0 8rem;
}

.timeline-container {
  position: relative;
  padding-left: 60px;
}

@media (min-width: 768px) {
  .timeline-container {
    padding-left: 100px;
  }
}

/* The vertical track (background line) */
.timeline-track {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

@media (min-width: 768px) {
  .timeline-track {
    left: 36px;
    width: 4px;
  }
}

/* The animated progress line */
.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-accent));
  border-radius: 3px;
  transition: height 0.1s ease-out;
  box-shadow: 0 0 20px rgba(74, 144, 217, 0.5);
}

/* Individual timeline items */
.timeline-item {
  position: relative;
  padding-bottom: 4rem;
  opacity: 0.4;
  transform: translateX(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.timeline-item.active {
  opacity: 1;
  transform: translateX(0);
}

/* The marker (circle with icon) */
.timeline-marker {
  position: absolute;
  left: -60px;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .timeline-marker {
    left: -100px;
  }
}

.timeline-marker-inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-950);
  border: 3px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .timeline-marker-inner {
    width: 56px;
    height: 56px;
  }
}

.timeline-marker-inner svg {
  width: 20px;
  height: 20px;
  color: var(--gray-500);
  transition: all 0.4s ease;
}

@media (min-width: 768px) {
  .timeline-marker-inner svg {
    width: 24px;
    height: 24px;
  }
}

.timeline-item.active .timeline-marker-inner {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-accent));
  border-color: var(--brand-400);
  box-shadow: 0 0 30px rgba(74, 144, 217, 0.5);
}

.timeline-item.active .timeline-marker-inner svg {
  color: white;
}

/* Step number below the circle */
.timeline-step-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-600);
  letter-spacing: 0.05em;
  transition: color 0.4s ease;
}

.timeline-item.active .timeline-step-number {
  color: var(--brand-400);
}

/* Content area */
.timeline-content {
  background: rgba(45, 74, 111, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: all 0.4s ease;
}

@media (min-width: 768px) {
  .timeline-content {
    padding: 2rem;
    border-radius: 1.5rem;
  }
}

.timeline-item.active .timeline-content {
  background: rgba(45, 74, 111, 0.5);
  border-color: rgba(74, 144, 217, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
  transition: color 0.4s ease;
}

@media (min-width: 768px) {
  .timeline-title {
    font-size: 1.75rem;
  }
}

.timeline-item.active .timeline-title {
  color: white;
}

.timeline-description {
  color: var(--gray-500);
  line-height: 1.7;
  font-weight: 300;
  font-size: 0.9375rem;
  transition: color 0.4s ease;
}

@media (min-width: 768px) {
  .timeline-description {
    font-size: 1rem;
  }
}

.timeline-item.active .timeline-description {
  color: var(--gray-300);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ============================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Disable expensive effects on mobile for blazing fast performance */
@media (max-width: 1023px) {
  /* Disable all backdrop-filter (very expensive on mobile GPUs) */
  .navbar,
  .cookie-content,
  .glass-card,
  .portfolio-modal-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Simplify backgrounds for better performance */
  .navbar {
    background: rgba(30, 58, 95, 0.98) !important;
  }

  .cookie-content {
    background: rgba(45, 74, 111, 0.98) !important;
  }

  .glass-card {
    background: rgba(255, 255, 255, 0.08) !important;
  }

  /* Disable complex animations */
  .animate-fade-in-up {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-subtitle,
  .hero-buttons {
    opacity: 1;
  }

  /* Disable decorative orbs and blurs (heavy on mobile) */
  .hero-orb-1,
  .hero-orb-2,
  .hero-orb-3,
  .footer-orb,
  .page-header-orb-1,
  .page-header-orb-2,
  .cta-glow {
    display: none !important;
  }

  /* Simplify box shadows */
  .portfolio-card:hover,
  .glass-card:hover,
  .bento-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
  }

  /* Reduce transform animations to simple opacity */
  .portfolio-card,
  .glass-card,
  .bento-card {
    transition: opacity 0.2s ease !important;
  }

  .portfolio-card:hover,
  .glass-card:hover,
  .bento-card:hover {
    transform: none !important;
  }

  /* Disable logo carousel animation on very small screens */
  @media (max-width: 480px) {
    .logo-carousel {
      animation: none !important;
      flex-wrap: wrap;
      justify-content: center;
      gap: 1.5rem;
    }

    .logo-carousel-fade-left,
    .logo-carousel-fade-right {
      display: none;
    }
  }

  /* Optimize touch targets (minimum 44px) */
  .nav-link,
  .mobile-nav-link,
  .mobile-nav-button,
  .dropdown-item,
  .btn-primary,
  .footer-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Reduce paint areas */
  .navbar,
  .footer,
  .content-section {
    contain: layout style;
  }

  /* Disable hover effects on touch devices */
  @media (hover: none) {
    .portfolio-card:hover,
    .glass-card:hover,
    .bento-card:hover,
    .nav-link:hover,
    .btn-primary:hover {
      transform: none !important;
      box-shadow: inherit !important;
    }
  }
}

/* Extra optimizations for small phones */
@media (max-width: 480px) {
  /* Reduce font sizes for better fit */
  .hero-title {
    font-size: 2rem !important;
  }

  .section-title,
  .page-title {
    font-size: 1.75rem !important;
  }

  /* Simplify grid layouts */
  .bento-grid,
  .content-grid,
  .portfolio-grid {
    gap: 1rem !important;
  }

  /* Reduce padding for more content space */
  .content-section {
    padding: 3rem 0 !important;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Reduced Motion - Respect user preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .logo-carousel {
    animation: none !important;
  }
}

/* GPU acceleration hints for smooth scrolling */
.navbar,
.mobile-menu,
.portfolio-modal {
  will-change: transform;
}

/* Content visibility for off-screen optimization */
.content-section,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}
