:root {
  /* Apple-inspired color palette with enhanced vibrancy */
  --bg: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-gradient: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
  --text: #1d1d1f;
  --text-secondary: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-light: rgba(0, 113, 227, 0.1);
  --border: rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 40px rgba(0, 113, 227, 0.15);
  --shadow-accent: 0 8px 30px rgba(0, 113, 227, 0.25);
  --radius: 20px;
  --radius-small: 14px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Animated Background Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 113, 227, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 168, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Intro Overlay - Enhanced */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #000000 0%, #1a1a2e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #ffffff;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

.intro-image {
  max-width: 90%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: intro-fade-in 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards, intro-float 2.4s ease-in-out infinite 1.5s;
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.3));
  opacity: 0;
}

@keyframes intro-fade-in {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes intro-float {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) scale(1.02) rotate(1deg);
  }
  50% {
    transform: translateY(-8px) scale(1.01) rotate(0deg);
  }
  75% {
    transform: translateY(-10px) scale(1.02) rotate(-1deg);
  }
}

.intro-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

.intro-logo-mark {
  width: auto;
  min-width: 180px;
  height: 180px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow: 0 20px 60px rgba(0, 113, 227, 0.5), 0 0 40px rgba(0, 113, 227, 0.3);
  animation: intro-float 2.4s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  padding: 20px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 0;
}

.intro-logo-mark img {
  height: 100%;
  width: auto;
  max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
  animation: logo-glow 3s ease-in-out infinite;
  display: block;
  vertical-align: top;
  margin: 0;
  padding: 0;
  line-height: 0;
}

@keyframes logo-glow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(0, 113, 227, 0.6));
  }
}

.intro-logo-mark::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.intro-title {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.01em;
  animation: intro-fade-up 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  text-shadow: 0 2px 20px rgba(0, 113, 227, 0.3);
}

.intro-tagline-main {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  animation: intro-fade-up 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
  margin-top: 8px;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, rgba(0, 168, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 20px rgba(0, 113, 227, 0.3);
}

.intro-tagline {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  opacity: 0;
  animation: intro-fade-up 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
  margin-top: 12px;
}

@keyframes intro-float {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) scale(1.03) rotate(1deg);
  }
  50% {
    transform: translateY(-8px) scale(1.02) rotate(0deg);
  }
  75% {
    transform: translateY(-10px) scale(1.03) rotate(-1deg);
  }
}

@keyframes intro-fade-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Header - Enhanced with Animation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--border);
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.03);
}

/* Create positioning context for absolute tagline */
.topbar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

/* Shrunken state - reduce menu bar size */
.topbar.shrunk {
  padding: 12px 22px;
}

.topbar:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.topbar-tagline {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
  transition: opacity 0.3s ease, font-size 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
  margin: 0;
  padding: 0;
  width: auto;
}

.topbar.shrunk .topbar-tagline {
  opacity: 0;
  font-size: 0;
  overflow: hidden;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
  position: relative;
  text-decoration: none;
  height: 60px;
  line-height: 0;
  z-index: 3;
}

/* Shrunken state - reduce logo size */
.topbar.shrunk .logo {
  height: 40px;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  animation: logo-entrance 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  vertical-align: top;
  margin: 0;
  padding: 0;
  mix-blend-mode: multiply;
  background: transparent;
}

/* Shrunken state - reduce logo image size */
.topbar.shrunk .logo img {
  height: 40px;
}

.logo .logo-part {
  display: inline-block;
  height: 60px;
  width: auto;
  vertical-align: top;
  margin: 0;
  padding: 0;
  line-height: 0;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, transform 0.3s ease, width 0.3s ease, margin 0.3s ease;
  mix-blend-mode: multiply;
  background: transparent;
}

/* Shrunken state - reduce logo part size */
.topbar.shrunk .logo .logo-part {
  height: 40px;
}

.logo .logo-part:first-child {
  margin-right: 0;
}

.logo .logo-part:last-child {
  margin-left: -1px;
  transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease, margin 0.3s ease;
}

/* Shrunken state - hide EXIM.png */
.topbar.shrunk .logo .logo-part:last-child {
  opacity: 0;
  width: 0;
  margin: 0;
  overflow: hidden;
}

@keyframes logo-entrance {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.logo:hover img {
  transform: scale(1.05) translateY(-2px);
  filter: drop-shadow(0 6px 16px rgba(0, 113, 227, 0.4));
}

.logo:hover .logo-part {
  transform: scale(1.05) translateY(-2px);
}

.logo::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.logo:hover::after {
  width: 100%;
}

.nav {
  display: flex;
  gap: 4px;
  font-size: 12px;
  font-weight: 400;
  transition: gap 0.3s ease;
  position: relative;
  z-index: 3;
}

/* Shrunken state - reduce nav gap slightly */
.topbar.shrunk .nav {
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-item.dropdown {
  /* Ensure dropdown stays open when hovering over the item or menu */
}

.nav-link {
  padding: 12px 20px;
  border-radius: 22px;
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
  position: relative;
  overflow: hidden;
}

.nav-link-text {
  transition: opacity 0.3s ease, width 0.3s ease, margin 0.3s ease;
  white-space: nowrap;
}

/* Shrunken state - hide text, show only icons, reduce padding */
.topbar.shrunk .nav-link {
  padding: 8px 10px;
  gap: 0;
}

.topbar.shrunk .nav-link-text {
  opacity: 0;
  width: 0;
  margin: 0;
  overflow: hidden;
}

.topbar.shrunk .nav-link-chevron {
  opacity: 0;
  width: 0;
  margin: 0;
  overflow: hidden;
  display: none;
}

/* Add tooltips for shrunken state */
.topbar.shrunk .nav-link {
  position: relative;
}

.topbar.shrunk .nav-link::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.topbar.shrunk .nav-link:hover::after {
  opacity: 1;
}

.nav-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: var(--transition-fast);
  flex-shrink: 0;
  position: relative;
}

.nav-link:hover .nav-icon {
  opacity: 1;
  transform: scale(1.15) translateY(-1px);
  color: var(--accent);
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  transition: var(--transition-fast);
}

.nav-link:hover .nav-icon svg {
  filter: drop-shadow(0 2px 4px rgba(0, 113, 227, 0.3));
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--accent-light);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.nav-link:hover::before {
  width: 200px;
  height: 200px;
}

.nav-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-link-chevron {
  font-size: 9px;
  opacity: 0.6;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, width 0.3s ease, margin 0.3s ease;
}

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

.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: 14px;
  border: 0.5px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  z-index: 200;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1) 0.05s, 
              transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) 0.05s, 
              visibility 0s linear 0.3s;
  transform: translateY(-5px);
}

/* Create an invisible bridge area between nav-link and dropdown to prevent gap */
.dropdown-menu::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: -20px;
  right: -20px;
  height: 10px;
  background: transparent;
  pointer-events: auto;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-menu a {
  display: block;
  padding: 12px 24px;
  font-weight: 400;
  font-size: 13px;
  white-space: nowrap;
  color: var(--text);
  transition: var(--transition-fast);
  position: relative;
}

.dropdown-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--accent-light);
  padding-left: 28px;
}

.dropdown-menu a:hover::before {
  height: 60%;
}

/* Show dropdown when hovering over nav-item - immediate show */
.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1) 0s, 
              transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) 0s, 
              visibility 0s linear 0s;
}

/* Keep dropdown visible when hovering directly over the dropdown menu */
.nav-item.dropdown .dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1) 0s, 
              transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) 0s, 
              visibility 0s linear 0s;
}

/* Main Content */
main {
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Hero Section - Enhanced with Animations */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  padding: 140px 22px 120px;
  align-items: center;
  position: relative;
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-light);
  border-radius: 20px;
  animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-tagline {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 8px 0 16px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.1s both;
  position: relative;
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.1) 0%, rgba(0, 168, 255, 0.1) 100%);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}

.hero-tagline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, #00a8ff 100%);
  border-radius: 3px 0 0 3px;
  animation: tagline-glow 2s ease-in-out infinite;
}

@keyframes tagline-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(0, 113, 227, 0.5);
  }
  50% {
    box-shadow: 0 0 16px rgba(0, 113, 227, 0.8);
  }
}

.hero-text h1 {
  margin: 12px 0 24px;
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  animation: fadeInUp 1s ease 0.2s both;
  background: linear-gradient(135deg, #1d1d1f 0%, #0071e3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text .lede {
  font-size: 22px;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-card {
  background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
  border-radius: var(--radius);
  padding: 48px 40px;
  display: grid;
  gap: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  animation: fadeInRight 1s ease 0.3s both;
  border: 1px solid rgba(0, 113, 227, 0.1);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #00a8ff, var(--accent));
  background-size: 200% 100%;
  animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.stat {
  padding: 0;
  border: none;
  background: transparent;
  position: relative;
  transition: var(--transition);
}

.stat:hover {
  transform: translateY(-4px);
}

.stat-number {
  display: block;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 10px;
  line-height: 1;
  background: linear-gradient(135deg, #0071e3 0%, #00a8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: countUp 1s ease;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.stat-label {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.4;
}

/* Sections - Enhanced */
.section {
  margin-top: 160px;
  padding: 0 22px;
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  scroll-margin-top: 100px;
}

/* Remove top margin from first section on pages without hero */
main > .section:first-child {
  margin-top: 40px;
}

/* Sections fade in on scroll */
.section.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
}

/* Company Profile section - fade only, no translateY movement */
main > .section:first-of-type.fade-in-element {
  transform: translateY(0);
}

main > .section:first-of-type .section-header.fade-in-element {
  transform: translateY(0);
}

main > .section:first-of-type .card.fade-in-element {
  transform: translateY(0);
}

.section-header.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 100px;
  position: relative;
  padding-bottom: 40px;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
}

.section-header h2 {
  margin: 12px 0 24px;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  position: relative;
}

.section-header .lede {
  font-size: 22px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 20px;
}

.section.shaded {
  background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 50%, #f5f5f7 100%);
  background-size: 200% 100%;
  border-radius: var(--radius);
  padding: 100px 50px;
  margin: 160px 22px;
  border: none;
  position: relative;
  overflow: hidden;
  animation: backgroundSlide 10s ease infinite;
}

@keyframes backgroundSlide {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.section.shaded::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-30px) translateX(20px);
  }
}

/* Grid */
.grid {
  display: grid;
  gap: 28px;
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Scroll-triggered Fade-in Animations */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Cards - Enhanced with More Animations */
.card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Initial state for cards that will fade in on scroll */
.card.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 113, 227, 0.1), transparent);
  transition: left 0.5s ease;
}

.card:hover::before {
  left: 100%;
}

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

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 113, 227, 0.3);
}

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

.card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.card p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.products .product-card {
  text-align: left;
}

.product-icon {
  font-size: 36px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent-light), rgba(0, 168, 255, 0.1));
  border-radius: 16px;
  width: 72px;
  height: 72px;
  font-weight: 700;
  color: var(--accent);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.product-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 113, 227, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.card:hover .product-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.2);
}

.card:hover .product-icon::before {
  width: 120px;
  height: 120px;
}

/* Contact Layout */
.contact-layout {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
}

.contact-form {
  display: grid;
  gap: 24px;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #00a8ff);
}

.contact-form label {
  display: grid;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-small);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  font-family: inherit;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
  transform: translateY(-2px);
}

.contact-info {
  background: linear-gradient(135deg, var(--bg-secondary), #ffffff);
  border: 0.5px solid var(--border);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #00a8ff);
}

.contact-info h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.contact-info p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.contact-info strong {
  color: var(--text);
  font-weight: 600;
}

/* Buttons - Enhanced */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 24px;
  font-weight: 500;
  font-size: 17px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #0077ed 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.35);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #0077ed 0%, var(--accent) 100%);
  box-shadow: 0 10px 30px rgba(0, 113, 227, 0.45);
  transform: translateY(-2px) scale(1.02);
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn.ghost:hover {
  background: var(--accent-light);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.2);
}

.btn.full {
  width: 100%;
}

/* Premium site footer */
.site-footer {
  margin-top: 100px;
  position: relative;
  z-index: 2;
}

.footer-shape {
  position: relative;
  line-height: 0;
  z-index: 1;
}

.footer-shape-svg {
  display: block;
  width: 100%;
  height: 88px;
}

.footer-main {
  position: relative;
  background: #0c1929;
  margin-top: -52px;
  padding: 58px 24px 28px;
  z-index: 2;
}

.footer-feature {
  position: absolute;
  left: 50%;
  top: -44px;
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: none;
}

.footer-feature-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #0c1929;
  border: 3px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 5px #0c1929,
    0 10px 32px rgba(0, 0, 0, 0.4);
}

.footer-container-scene {
  width: 64px;
  height: 64px;
  perspective: 380px;
  perspective-origin: 50% 50%;
}

.footer-container-spin {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.shipping-box {
  --box-w: 52px;
  --box-h: 28px;
  --box-d: 22px;
  position: relative;
  width: var(--box-w);
  height: var(--box-h);
  transform-style: preserve-3d;
  animation: containerRotateY 12s linear infinite;
}

@keyframes containerRotateY {
  from {
    transform: rotateX(-14deg) rotateY(0deg);
  }
  to {
    transform: rotateX(-14deg) rotateY(360deg);
  }
}

.box-face {
  position: absolute;
  left: 0;
  top: 0;
  backface-visibility: hidden;
  box-sizing: border-box;
}

.box-front,
.box-back {
  width: var(--box-w);
  height: var(--box-h);
}

.box-front {
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 4px,
      rgba(0, 0, 0, 0.09) 4px,
      rgba(0, 0, 0, 0.09) 5px
    ),
    linear-gradient(180deg, #fb8500 0%, #e85d04 50%, #dc2f02 100%);
  transform: rotateY(0deg) translateZ(calc(var(--box-d) / 2));
}

.box-back {
  background: linear-gradient(180deg, #9d0208 0%, #6a040f 100%);
  transform: rotateY(180deg) translateZ(calc(var(--box-d) / 2));
}

.box-left,
.box-right {
  width: var(--box-d);
  height: var(--box-h);
  left: calc((var(--box-w) - var(--box-d)) / 2);
  background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 100%);
}

.box-left {
  transform: rotateY(-90deg) translateZ(calc(var(--box-w) / 2));
}

.box-right {
  transform: rotateY(90deg) translateZ(calc(var(--box-w) / 2));
}

.box-top,
.box-bottom {
  width: var(--box-w);
  height: var(--box-d);
  top: calc((var(--box-h) - var(--box-d)) / 2);
}

.box-top {
  background: linear-gradient(180deg, #4a1515 0%, #6a040f 100%);
  transform: rotateX(90deg) translateZ(calc(var(--box-h) / 2));
}

.box-bottom {
  background: #370617;
  transform: rotateX(-90deg) translateZ(calc(var(--box-h) / 2));
}

.box-front::after {
  content: "SAMS";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.3fr;
  gap: 36px 28px;
}

.footer-heading {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  margin: -8px 0 18px;
  font-style: italic;
}

.footer-social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.footer-social-btn svg {
  width: 18px;
  height: 18px;
}

.footer-social-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-social-btn--wa:hover {
  background: #25d366;
}

.footer-cta {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #005bb5 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.footer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.35);
  color: #fff;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-list a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.footer-link-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.footer-link-list a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  gap: 14px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

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

.footer-contact-item--address .footer-contact-icon {
  margin-top: 2px;
}

.footer-contact-text {
  flex: 1;
  min-width: 0;
  line-height: 1.55;
  padding-top: 1px;
}

.footer-contact-item--address .footer-contact-text {
  padding-top: 10px;
}

.footer-contact-list a {
  color: rgba(255, 255, 255, 0.92);
  transition: var(--transition-fast);
}

.footer-contact-item:not(.footer-contact-item--address) .footer-contact-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.footer-contact-list a:hover {
  color: #38bdf8;
}

.footer-contact-sep {
  color: rgba(255, 255, 255, 0.45);
  white-space: pre;
}

.footer-contact-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  line-height: 0;
}

.footer-contact-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-copyright {
  background: linear-gradient(90deg, #0071e3 0%, #0056b3 100%);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
}

.footer-copyright-tagline {
  opacity: 0.85;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: auto;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  touch-action: manipulation;
}

.whatsapp-float:hover {
  transform: translateZ(0) scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  color: #fff;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo {
    gap: 0;
    height: 50px;
  }

  .logo img,
  .logo .logo-part {
    height: 50px;
  }

  .topbar.shrunk .logo {
    height: 35px;
  }

  .topbar.shrunk .logo img,
  .topbar.shrunk .logo .logo-part {
    height: 35px;
  }

  .intro-logo-mark {
    width: 140px;
    height: 140px;
    padding: 15px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
  }

  .nav {
    flex-wrap: wrap;
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 80px 20px 100px;
  }

  .hero::before {
    display: none;
  }

  .hero-text h1 {
    font-size: 40px;
  }

  .hero-text .lede {
    font-size: 19px;
  }

  .section {
    margin-top: 120px;
    padding: 0 20px;
    scroll-margin-top: 80px;
  }

  .section.shaded {
    padding: 70px 28px;
    margin: 120px 20px;
  }
  
  .section-header {
    margin: 0 auto 60px;
    padding-bottom: 30px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 36px 28px;
  }

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

  .site-footer {
    margin-top: 72px;
  }

  .footer-shape-svg {
    height: 64px;
  }

  .footer-main {
    margin-top: -40px;
    padding: 52px 20px 24px;
  }

  .footer-feature {
    top: -36px;
  }

  .footer-feature-ring {
    width: 72px;
    height: 72px;
  }

  .footer-container-scene {
    width: 56px;
    height: 56px;
  }

  .shipping-box {
    --box-w: 44px;
    --box-h: 24px;
    --box-d: 18px;
  }

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

  .footer-col--social {
    grid-column: 1 / -1;
  }

  .footer-copyright {
    flex-direction: column;
    text-align: center;
    padding: 14px 20px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    left: auto;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .logo {
    gap: 0;
    height: 45px;
  }

  .logo img,
  .logo .logo-part {
    height: 45px;
  }

  .topbar.shrunk .logo {
    height: 30px;
  }

  .topbar.shrunk .logo img,
  .topbar.shrunk .logo .logo-part {
    height: 30px;
  }

  .intro-logo-mark {
    width: 120px;
    height: 120px;
    padding: 12px;
  }

  .hero {
    padding: 60px 16px 80px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .card {
    padding: 32px 24px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .shipping-box {
    animation: none;
    transform: rotateX(-12deg) rotateY(-24deg);
  }
}
