/* ===== BRAND COLORS ===== */
:root {
  --datil-primary: #546CE2;
  --datil-primary-dark: #1E2A35;
  --datil-primary-light: #88ADFF;
  --datil-secondary: #6F7F8C;
  --datil-secondary-dark: #58626B;
  --datil-secondary-light: #98A1AC;
  
  --color-primary: var(--datil-primary);
  --color-primary-hover: var(--datil-primary-dark);
  --color-secondary: var(--datil-secondary);
  --color-secondary-hover: var(--datil-secondary-dark);
}

/* ===== NAVIGATION COMPONENT ===== */
/* 
 * Apple-style Navigation Bar:
 * - Single bar with solid colors (dark/light)
 * - More padding for better breathing room
 * - Full product names for clarity
 * - Height: var(--size-7) = 28px (more comfortable)
 * - Logo: 120x32px (proportional)
 * - Text: var(--font-size-1) = 12px (readable)
 * - Icons: 14x14px (compact)
 */
.navigation {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--layer-4);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}



.navigation.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}



/* Group logo and menu on left */
.nav-left {
  display: flex;
  align-items: center;
  gap: var(--size-4);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  block-size: var(--size-9);
  padding-inline: var(--size-5);
  position: relative;
  z-index: 1;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-size: var(--font-size-2);
  font-weight: var(--font-weight-7);
  text-decoration: none;
  color: var(--color-text);
  text-shadow: none;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform, color;
}



.navigation.scrolled .nav-logo {
  color: var(--color-text);
  text-shadow: none;
}

/* Scale logo proportionally (previously size-5 in size-8, now size-6 in size-9) */
.nav-logo img {
  block-size: var(--size-6);
  inline-size: calc(var(--size-6) * 3.75);
  transition: transform var(--hover-duration) var(--hover-bounce);
  will-change: transform;
  object-fit: contain;
}

.nav-logo:hover {
  transform: var(--hover-scale);
}

.nav-logo:hover img {
  transform: scale(1.05);
}



/* Move menu inside nav-left */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--size-2);
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-menu li {
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding-block: var(--size-2);
  padding-inline: var(--size-2);
  font-size: var(--font-size-2); /* Slightly larger */
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
  position: relative;
  background-color: transparent;
  border-radius: var(--radius-2);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform, color;
  text-shadow: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}



.navigation.scrolled .nav-link {
  color: var(--color-text-secondary);
  text-shadow: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  inset-block-end: var(--size-1);
  inset-inline-start: var(--size-2);
  inline-size: 0;
  block-size: var(--border-size-1);
  background-color: var(--datil-primary);
  transition: inline-size var(--hover-duration) var(--hover-bounce);
  z-index: 1;
  will-change: inline-size;
}

.nav-link:hover,
.nav-link.active {
  color: var(--datil-primary);
  transform: var(--hover-lift);
}



.navigation.scrolled .nav-link:hover,
.navigation.scrolled .nav-link.active {
  color: var(--datil-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  inline-size: 100%;
}

.nav-link.active {
  font-weight: var(--font-weight-semibold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--size-1);
}

.nav-toggle {
  display: none;
}

/* ===== NAVIGATION ACTION LINKS ===== */
.nav-action-link {
  display: inline-flex;
  align-items: center;
  gap: var(--size-1);
  padding-block: var(--size-2);
  padding-inline: var(--size-2);
  font-size: var(--font-size-1);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: var(--radius-2);
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform, color;
  text-shadow: none;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.nav-action-link::after {
  content: '';
  position: absolute;
  inset-block-end: var(--size-1);
  inset-inline-start: var(--size-2);
  inline-size: 0;
  block-size: var(--border-size-1);
  background-color: var(--datil-primary);
  transition: inline-size var(--hover-duration) var(--hover-bounce);
  z-index: 1;
  will-change: inline-size;
}

.nav-action-link svg {
  inline-size: var(--size-3);
  block-size: var(--size-3);
  transition: transform var(--hover-duration) var(--hover-smooth);
  will-change: transform;
}

.nav-action-link:hover {
  color: var(--datil-primary);
  transform: var(--hover-lift);
}

[data-theme="light"] .nav-action-link:hover {
  color: var(--datil-primary);
}

.nav-action-link:hover::after {
  inline-size: 100%;
}

.nav-action-link:hover svg {
  transform: scale(1.1);
}



/* Scrolled state */
.navigation.scrolled .nav-action-link {
  color: var(--color-text-secondary);
  text-shadow: none;
}

.navigation.scrolled .nav-action-link:hover {
  color: var(--color-text);
}

/* Primary action link */
.nav-action-primary {
  color: var(--datil-primary);
  font-weight: var(--font-weight-semibold);
}

.nav-action-primary:hover {
  color: var(--datil-primary);
}



.navigation.scrolled .nav-action-primary {
  color: var(--datil-primary);
}

.navigation.scrolled .nav-action-primary:hover {
  color: var(--datil-primary);
}

/* ===== COMPACT NAVIGATION ICONS ===== */
.nav-actions .icon-sm {
  inline-size: var(--size-4);
  block-size: var(--size-4);
  color: var(--color-text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.nav-actions .icon-sm svg {
  inline-size: var(--size-3);
  block-size: var(--size-3);
}

.navigation .icon-sm:hover {
  color: var(--color-primary);
  transform: scale(1.05);
}

.navigation.scrolled .icon-sm {
  color: var(--color-text-secondary);
}

.navigation.scrolled .icon-sm:hover {
  color: var(--color-primary);
}

/* ===== NAVIGATION BUTTON STYLES ===== */
.nav-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--size-1);
  font-size: var(--font-size-2); /* Slightly larger */
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform, color, background-color, box-shadow;
  border-radius: var(--radius-2);
  padding-block: var(--size-0); /* Reduced from size-1 */
  padding-inline: var(--size-2); /* Slightly reduced */
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-actions .btn svg {
  inline-size: var(--size-3);
  block-size: var(--size-3);
  transition: transform 0.15s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform;
  flex-shrink: 0;
}

.nav-actions .btn:hover svg {
  transform: translateX(1px) scale(1.05);
}

.nav-actions .btn:active svg {
  transform: translateX(0px) scale(0.98);
  transition-duration: 0.05s;
}

/* Navigation button */
.navigation .btn-secondary {
  background: transparent; /* Remove background */
  color: var(--datil-primary);
  backdrop-filter: none; /* Remove blur since no background */
  box-shadow: none; /* Remove shadows for simplicity */
}

.navigation .btn-secondary::before {
  display: none; /* Remove gradient overlay */
}

.navigation .btn-secondary:hover {
  background: var(--gray-1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(84, 108, 226, 0.15);
}

.navigation .btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(84, 108, 226, 0.1);
}



/* Scrolled state navigation button */
.navigation.scrolled .btn-secondary {
  background: transparent;
  color: var(--datil-primary);
  box-shadow: none;
}

.navigation.scrolled .btn-secondary::before {
  display: none;
}

.navigation.scrolled .btn-secondary:hover {
  background: var(--gray-1);
  color: var(--datil-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(84, 108, 226, 0.15);
}

.navigation.scrolled .btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(84, 108, 226, 0.1);
}



/* ===== HERO COMPONENT ===== */
.hero {
  display: flex;
  align-items: center;
  min-block-size: 80vh;
  padding-block: var(--size-10);
  padding-inline: 0; /* Remove horizontal padding for true full-width */
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: white;
  z-index: -1;
}

/* Square translucent shadows */
.hero-shadow {
  position: absolute;
  width: 200px;
  height: 200px;
  opacity: 0.1;
  border-radius: 0; /* Square, not rounded */
}

.hero-shadow-1 {
  top: 10%;
  left: 5%;
  background: var(--datil-primary);
  transform: rotate(15deg);
}

.hero-shadow-2 {
  top: 60%;
  right: 15%;
  background: #FF6B35; /* Coral from palette */
  transform: rotate(-25deg);
}

.hero-shadow-3 {
  bottom: 20%;
  left: 20%;
  background: #00D4AA; /* Mint from palette */
  transform: rotate(45deg);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--size-8);
  align-items: center;
  max-inline-size: 100%; /* Truly fluid - use full available width */
  margin-inline: auto;
  width: 100%;
}

.hero-left {
  text-align: left;
}

.hero-title {
  font-size: var(--font-size-fluid-3);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--font-lineheight-1);
  margin-block-end: var(--size-4);
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.hero-subtitle {
  font-size: var(--font-size-4);
  font-weight: var(--font-weight-normal);
  color: var(--color-text-secondary);
  margin-block-end: var(--size-8);
  line-height: var(--font-lineheight-3);
}

.hero-actions {
  display: flex;
  gap: var(--size-4);
  flex-wrap: wrap;
}

.section-actions {
  display: flex;
  gap: var(--size-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-block-start: var(--size-4);
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero .btn-secondary {
  background: transparent;
  border: 2px solid var(--datil-primary);
  color: var(--datil-primary);
  backdrop-filter: none;
}

.hero .btn-secondary:hover {
  background: var(--datil-primary);
  border-color: var(--datil-primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(84, 108, 226, 0.25);
}

.section {
  padding-block: var(--size-8);
  padding-inline: 0; /* Remove horizontal padding for true full-width */
  margin-top: var(--size-3);
  margin-bottom: var(--size-3);
}

.section-content {
  max-inline-size: 90%; /* Use 90% of available width for better fluidity */
  margin-inline: auto;
  text-align: center;
  position: relative;
  z-index: 1;
  padding-inline: 0; /* Remove horizontal padding */
}

.section-title {
  font-size: var(--font-size-fluid-2);
  font-weight: var(--font-weight-bold);
  margin-block-end: var(--size-5);
  letter-spacing: -0.02em;
}

.section-description {
  font-size: var(--font-size-3);
  font-weight: var(--font-weight-normal);
  color: var(--color-text-secondary);
  margin-block-end: var(--size-6);
  line-height: var(--font-lineheight-4);
  max-inline-size: 65ch;
  margin-inline: auto;
}

/* ===== BRANDED SECTIONS ===== */
.section-brand-1 {
  position: relative;
  overflow: hidden;
  background: var(--color-background);
}

.section-brand-1::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: 
    radial-gradient(ellipse 150% 100% at 20% 100%, rgba(84, 108, 226, 0.25) 0%, rgba(99, 102, 241, 0.15) 30%, rgba(139, 92, 246, 0.08) 60%, transparent 80%),
    radial-gradient(ellipse 120% 80% at 80% 10%, rgba(67, 56, 202, 0.20) 0%, rgba(124, 58, 237, 0.12) 40%, rgba(168, 85, 247, 0.06) 70%, transparent 85%),
    radial-gradient(circle at 50% 50%, rgba(147, 51, 234, 0.15) 0%, rgba(126, 34, 206, 0.08) 50%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.8;
}



.section-coral {
  position: relative;
  overflow: hidden;
  background: var(--color-background);
}

.section-coral::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: 
    radial-gradient(ellipse 150% 100% at 80% 20%, rgba(255, 107, 53, 0.30) 0%, rgba(255, 154, 0, 0.18) 30%, rgba(255, 193, 7, 0.10) 60%, transparent 80%),
    radial-gradient(ellipse 120% 80% at 20% 80%, rgba(255, 87, 34, 0.25) 0%, rgba(255, 140, 0, 0.15) 40%, rgba(255, 165, 0, 0.08) 70%, transparent 85%),
    radial-gradient(circle at 60% 40%, rgba(255, 152, 0, 0.20) 0%, rgba(255, 183, 77, 0.12) 50%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.8;
}



.section-mint {
  position: relative;
  overflow: hidden;
  background: var(--color-background);
}

.section-mint::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: 
    radial-gradient(ellipse 150% 100% at 30% 90%, rgba(0, 212, 170, 0.32) 0%, rgba(62, 219, 215, 0.20) 30%, rgba(0, 230, 118, 0.12) 60%, transparent 80%),
    radial-gradient(ellipse 120% 80% at 70% 10%, rgba(20, 184, 166, 0.28) 0%, rgba(34, 197, 94, 0.18) 40%, rgba(16, 185, 129, 0.10) 70%, transparent 85%),
    radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.25) 0%, rgba(52, 211, 153, 0.15) 50%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.8;
}



/* ===== BRANDED BUTTONS ===== */
.section .btn-primary {
  color: white;
  border: none;
  font-weight: var(--font-weight-bold);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: transform var(--hover-duration) var(--hover-smooth), 
              box-shadow var(--hover-duration) var(--hover-smooth);
  will-change: transform, box-shadow;
}

.section .btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
}

.section .btn-secondary {
  font-weight: var(--font-weight-semibold);
  transition: transform var(--hover-duration) var(--hover-smooth), 
              box-shadow var(--hover-duration) var(--hover-smooth);
  will-change: transform, box-shadow;
}

.section .btn-secondary:hover {
  transform: translateY(-2px) scale(1.01);
}

.section-brand-1 .btn-primary {
  background: linear-gradient(135deg, #546CE2 0%, #7C3AED 50%, #8B5CF6 100%);
  box-shadow: 0 4px 15px rgba(84, 108, 226, 0.3), 0 2px 8px rgba(124, 58, 237, 0.2);
}

.section-brand-1 .btn-primary:hover {
  background: linear-gradient(135deg, #4338CA 0%, #6D28D9 50%, #7C3AED 100%);
  box-shadow: 0 8px 25px rgba(84, 108, 226, 0.4), 0 4px 15px rgba(124, 58, 237, 0.3);
}

.section-brand-1 .btn-secondary {
  background: linear-gradient(135deg, rgba(84, 108, 226, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
  border: 2px solid #546CE2;
  color: #546CE2;
}

.section-brand-1 .btn-secondary:hover {
  background: linear-gradient(135deg, #546CE2 0%, #7C3AED 100%);
  color: white;
  border-color: #546CE2;
  box-shadow: 0 6px 20px rgba(84, 108, 226, 0.25);
}

.section-coral .btn-primary {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8A65 50%, #FFAB91 100%);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3), 0 2px 8px rgba(255, 138, 101, 0.2);
}

.section-coral .btn-primary:hover {
  background: linear-gradient(135deg, #E55A00 0%, #FF6B35 50%, #FF8A65 100%);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4), 0 4px 15px rgba(255, 138, 101, 0.3);
}

.section-coral .btn-secondary {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 138, 101, 0.05) 100%);
  border: 2px solid #FF6B35;
  color: #FF6B35;
}

.section-coral .btn-secondary:hover {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8A65 100%);
  color: white;
  border-color: #FF6B35;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.25);
}

.section-mint .btn-primary {
  background: linear-gradient(135deg, #00D4AA 0%, #4DD0E1 50%, #81C784 100%);
  box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3), 0 2px 8px rgba(77, 208, 225, 0.2);
}

.section-mint .btn-primary:hover {
  background: linear-gradient(135deg, #00A085 0%, #00D4AA 50%, #4DD0E1 100%);
  box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4), 0 4px 15px rgba(77, 208, 225, 0.3);
}

.section-mint .btn-secondary {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(77, 208, 225, 0.05) 100%);
  border: 2px solid #00D4AA;
  color: #00D4AA;
}

.section-mint .btn-secondary:hover {
  background: linear-gradient(135deg, #00D4AA 0%, #4DD0E1 100%);
  color: white;
  border-color: #00D4AA;
  box-shadow: 0 6px 20px rgba(0, 212, 170, 0.25);
}

/* ===== SQUARE GRID COMPONENT ===== */
.square-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--size-3);
  margin-top: calc(var(--size-3) * -1);
  padding: var(--size-3);
  block-size: 100vh;
  background: transparent;
}

.square-item {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-1);
  padding: var(--size-4);
}

.square-image {
  position: relative;
  inline-size: 100%;
  block-size: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.square-image img {
  inline-size: var(--size-12);
  block-size: var(--size-12);
  object-fit: contain;
  display: block;
}

.square-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--size-3);
  color: var(--color-text);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.square-overlay h3 {
  font-size: var(--font-size-5);
  font-weight: var(--font-weight-bold);
  margin-block-end: var(--size-3);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.square-overlay p {
  font-size: var(--font-size-3);
  line-height: var(--font-lineheight-4);
  color: var(--color-text-secondary);
  margin-block-end: var(--size-4);
}

.square-overlay .btn {
  align-self: center;
  inline-size: fit-content;
}

/* ===== SQUARE ITEM VARIANTS ===== */
.square-item:nth-child(1) {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--orange-1) 100%);
}

.square-item:nth-child(1) .btn {
  background: transparent;
  color: var(--orange-6);
  border: 2px solid var(--orange-6);
}

.square-item:nth-child(1) .btn:hover {
  background: var(--orange-6);
  color: var(--orange-0);
  border-color: var(--orange-6);
}

.square-item:nth-child(2) {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--blue-1) 100%);
}

.square-item:nth-child(2) .btn {
  background: transparent;
  color: var(--blue-6);
  border: 2px solid var(--blue-6);
}

.square-item:nth-child(2) .btn:hover {
  background: var(--blue-6);
  color: var(--blue-0);
  border-color: var(--blue-6);
}

.square-item:nth-child(3) {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--violet-1) 100%);
}

.square-item:nth-child(3) .btn {
  background: transparent;
  color: var(--violet-6);
  border: 2px solid var(--violet-6);
}

.square-item:nth-child(3) .btn:hover {
  background: var(--violet-6);
  color: var(--violet-0);
  border-color: var(--violet-6);
}



/* ===== RESPONSIVE DESIGN ===== */
@media (width <= 1024px) {
  .square-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--size-2);
    padding: var(--size-2);
  }
  
  .square-image img {
    inline-size: var(--size-10);
    block-size: var(--size-10);
  }
}

@media (width <= 768px) {
  .section {
    padding-block: var(--size-6);
  }
  
  .hero {
    min-block-size: 70vh;
    padding-block: var(--size-8);
  }
  
  .hero-title {
    font-size: var(--font-size-fluid-2);
  }
  
  .section-title {
    font-size: var(--font-size-fluid-1);
  }
  
  .nav-content {
    block-size: var(--size-8); /* Increased from size-7 */
    gap: var(--size-3); /* Scaled up */
    padding-inline: var(--size-5); /* Scaled up */
  }
  
  /* Mobile: Golden ratio for smaller navigation */
  .nav-logo img {
    block-size: var(--size-5); /* Scaled proportionally */
    inline-size: calc(var(--size-5) * 3.75);
  }
  
  .nav-menu {
    display: none;
  }
  
  .nav-toggle {
    display: inline-flex;
  }
  
  .nav-action-link {
    display: none;
  }
  
  .square-grid {
    grid-template-columns: 1fr;
    gap: var(--size-1);
    padding: var(--size-1);
    block-size: auto;
  }
  
  .square-item {
    aspect-ratio: 16/9;
  }
  
  .square-overlay {
    padding: var(--size-2);
  }
  
  .square-image img {
    inline-size: var(--size-8);
    block-size: var(--size-8);
  }
}

@media (width >= 1024px) {
  .section {
    padding-block: var(--size-10);
  }
  
  .hero-content {
    max-inline-size: 100%;
  }
  
  .section-content {
    max-inline-size: 85%; /* Slightly more constrained on larger screens for readability */
  }
  
  /* Desktop: Slightly larger logo for better visibility */
  .nav-logo img {
    block-size: var(--size-7);
    inline-size: calc(var(--size-7) * 3.75);
  }
}

/* Update mobile scaling */
@media (width <= 768px) {
  .nav-content {
    block-size: var(--size-8); /* Increased from size-7 */
    gap: var(--size-3); /* Scaled up */
    padding-inline: var(--size-5); /* Scaled up */
  }
  
  .nav-logo img {
    block-size: var(--size-5); /* Scaled proportionally */
    inline-size: calc(var(--size-5) * 3.75);
  }
}

/* Update desktop scaling */
@media (width >= 1024px) {
  .section {
    padding-block: var(--size-10);
  }
  
  .hero-content {
    max-inline-size: 900px;
  }
  
  /* Desktop: Slightly larger logo for better visibility */
  .nav-logo img {
    block-size: var(--size-7);
    inline-size: calc(var(--size-7) * 3.75);
  }
  
  .nav-content {
    block-size: var(--size-10); /* Further increase for larger screens */
    padding-inline: var(--size-6);
    gap: var(--size-6);
  }
}

/* Mobile responsive */
@media (width <= 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--size-6);
    text-align: center;
  }
  
  .hero-left {
    text-align: center;
  }
  
  .hero-title {
    font-size: var(--font-size-fluid-2);
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-shadow {
    width: 120px;
    height: 120px;
  }
}

/* ===== COUNTRY SELECTOR COMPONENT ===== */
.country-selector {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.country-button {
  display: flex;
  align-items: center;
  gap: var(--size-2);
  padding: var(--size-2) var(--size-3);
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: var(--font-size-1);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--radius-2);
  white-space: nowrap;
}

.country-button:hover,
.country-button[aria-expanded="true"] {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.country-button:hover .chevron-icon,
.country-button[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.country-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.country-button .chevron-icon {
  transition: transform 0.2s ease;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}



.country-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 220px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  z-index: 1002;
  overflow: hidden;
}

.country-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.country-option {
  display: flex;
  align-items: center;
  gap: var(--size-3);
  width: 100%;
  padding: var(--size-2) var(--size-4);
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: var(--font-size-1);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  white-space: nowrap;
}

.country-option:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.country-option .country-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.country-option .country-name {
  flex: 1;
}



/* Navigation specific adjustments */
.navigation .country-button {
  color: var(--datil-primary);
  padding: var(--size-1) var(--size-2);
  font-size: var(--font-size-1);
  border-radius: var(--radius-2);
  transition: all 0.2s ease;
}

.navigation .country-button:hover,
.navigation .country-button[aria-expanded="true"] {
  background: var(--gray-1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(84, 108, 226, 0.15);
}

.navigation .country-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(84, 108, 226, 0.1);
}



.navigation.scrolled .country-button {
  color: var(--datil-primary);
}

.navigation.scrolled .country-button:hover,
.navigation.scrolled .country-button[aria-expanded="true"] {
  background: var(--gray-1);
  color: var(--datil-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(84, 108, 226, 0.15);
}

.navigation.scrolled .country-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(84, 108, 226, 0.1);
}

/* Mobile responsive */
@media (width <= 768px) {
  .country-selector {
    display: none;
  }
}

/* ===== MOBILE MENU COMPONENT ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 90vw;
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  padding: var(--size-4);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--size-6);
  height: var(--size-6);
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-2);
  transition: background 0.2s ease;
}

.mobile-menu-close:hover {
  background: var(--color-surface-hover);
}

.mobile-menu-close::before,
.mobile-menu-close::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s ease;
}

.mobile-menu-close::before {
  transform: rotate(45deg);
}

.mobile-menu-close::after {
  transform: rotate(-45deg);
}

.mobile-menu-links {
  padding: var(--size-4);
  display: flex;
  flex-direction: column;
  gap: var(--size-2);
}

.mobile-menu-links a,
.mobile-menu-links button {
  display: flex;
  align-items: center;
  gap: var(--size-3);
  padding: var(--size-3) var(--size-4);
  border: none;
  background: transparent;
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--font-size-2);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-2);
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: left;
}

.mobile-menu-links a:hover,
.mobile-menu-links button:hover {
  background: var(--color-surface-hover);
  color: var(--color-primary);
}

.menu-separator {
  height: 1px;
  background: var(--color-border);
  margin: var(--size-4) 0;
}

.menu-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--size-6);
  height: var(--size-6);
  flex-shrink: 0;
}

.menu-icon {
  width: 22px;
  height: 22px;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

.menu-link:hover .menu-icon {
  color: var(--color-primary);
}

.menu-link-text {
  flex: 1;
  font-weight: var(--font-weight-medium);
}

/* Mobile Country Selector */
.menu-country-selector {
  position: relative;
}

.mobile-country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  z-index: 1001;
  overflow: hidden;
  margin-top: var(--size-1);
}

.mobile-country-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-country-option {
  display: flex;
  align-items: center;
  gap: var(--size-3);
  width: 100%;
  padding: var(--size-2) var(--size-4);
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: var(--font-size-1);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  white-space: nowrap;
}

.mobile-country-option:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.mobile-country-option .country-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.mobile-country-option .country-name {
  flex: 1;
}



/* Mobile responsive adjustments */
@media (width <= 768px) {
  .mobile-menu-content {
    width: 100%;
    max-width: 100%;
  }
}