@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&family=Open+Sans:wght@300;400;600;700&family=Lato:wght@300;400;700;900&family=Montserrat:wght@300;400;500;600;700;800&family=Raleway:wght@300;400;500;600;700&family=Merriweather:wght@300;400;700;900&family=Playfair+Display:wght@400;500;600;700;800&family=Source+Sans+3:wght@300;400;600;700&family=Oswald:wght@300;400;500;600;700&family=Be+Vietnam+Pro:wght@300;400;500;600;700&family=Noto+Sans:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Pacifico&display=swap');

:root {
  /* Design Tokens */
  --font-primary: 'Outfit', sans-serif;
  
  /* Color Palette - Premium Tech Light theme */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-hover: rgba(241, 245, 249, 0.95);
  
  --primary: #10b981; /* Emerald Green */
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.2);
  --primary-glow-subtle: rgba(16, 185, 129, 0.05);
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --accent: #059669; /* Emerald Green */
  --border-color: rgba(15, 23, 42, 0.08);
  --border-highlight: rgba(16, 185, 129, 0.3);
  
  /* Spacing & Sizing */
  --container-max-width: 1280px;
  --header-height: 100px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Reusable Components & Layout utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

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

.section-title span {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary);
  color: #051610;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  border: 1px solid var(--border-highlight);
  background-color: rgba(16, 185, 129, 0.05);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--primary-glow-subtle);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.header.scrolled {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-right: 2rem;
}

.logo svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo img {
  height: 84px;
  width: 84px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 8px var(--primary-glow));
  background: transparent;
  transition: all var(--transition-normal);
}

.header.scrolled .logo img {
  height: 56px;
  width: 56px;
}

.logo-text {
  white-space: nowrap;
}

.logo-text span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
}

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

.nav-cta {
  margin-left: 1rem;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--bg-primary) 35%, rgba(248, 250, 252, 0.95) 50%, rgba(248, 250, 252, 0.2) 75%, rgba(248, 250, 252, 0) 100%), url('web_images/nền.jpg') no-repeat right center;
  background-size: cover;
}

/* Background grid effect */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
}

.hero-glow-1 {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-glow-subtle);
  border: 1px solid var(--border-highlight);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-tag span {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Interactive dashboard/networking visual container */
.tech-visual-container {
  width: 100%;
  max-width: 450px;
  height: 450px;
  position: relative;
  margin: 0 auto;
}

.tech-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(16, 185, 129, 0.12);
}

.tech-ring-1 {
  width: 90%;
  height: 90%;
  animation: rotate 80s linear infinite;
}

.tech-ring-2 {
  width: 73%;
  height: 73%;
  border: 1.5px dashed rgba(16, 185, 129, 0.25);
  animation: rotate-reverse 50s linear infinite;
}

.tech-ring-3 {
  width: 40%;
  height: 40%;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

/* Central Core Smart Building styling */
.tech-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background-color: #0f172a;
  border: 3px solid var(--primary);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 35px var(--primary-glow);
  z-index: 10;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.tech-core:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.45);
}

.tech-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.25) contrast(1.05);
}

/* Orbit Rotation and Node Alignments */
.tech-orbit-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: orbit-rotation 50s linear infinite;
  transform-origin: 225px 225px;
  z-index: 5;
}

.tech-orbit-wrapper:hover {
  animation-play-state: paused;
}

.tech-orbit-wrapper:hover .tech-node img {
  animation-play-state: paused;
}

.tech-node {
  position: absolute;
  width: 80px;
  height: 80px;
  background-color: #ffffff;
  border: 2.5px solid var(--primary);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15), 0 0 12px var(--primary-glow);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  z-index: 6;
}

.tech-node img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background-color: #ffffff;
  padding: 6px;
  animation: counter-rotation 50s linear infinite;
}

.tech-node:hover {
  border-color: var(--primary-hover);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
  transform: scale(1.15) !important;
}

/* Precise positioning of 6 Orbit Nodes around 225px,225px at radius 165px */
.node-bms { left: 350px; top: 185px; }
.node-cctv { left: 267.5px; top: 327.9px; }
.node-network { left: 102.5px; top: 327.9px; }
.node-sound { left: 20px; top: 185px; }
.node-firealarm { left: 102.5px; top: 42.1px; }
.node-carparking { left: 267.5px; top: 42.1px; }

/* Connections SVG overlay inside rotating parent */
.tech-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.tech-connections line {
  stroke: rgba(16, 185, 129, 0.35);
  stroke-width: 2;
  stroke-dasharray: 6;
  animation: dash 2.5s linear infinite;
}

/* Floating energy icons around orbit */
.energy-floating-icon {
  position: absolute;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(16, 185, 129, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.18), inset 0 0 10px rgba(16, 185, 129, 0.08);
  backdrop-filter: blur(8px);
  z-index: 8;
  animation: float-slow 6s ease-in-out infinite;
  transition: all var(--transition-normal);
}

.energy-floating-icon:hover {
  transform: scale(1.1);
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  color: var(--primary-hover);
  background: rgba(255, 255, 255, 0.98);
}

.energy-floating-icon svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 3px var(--primary-glow));
}

@keyframes float-slow {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.energy-icon-1 { left: -25px; top: 110px; animation-delay: 0s; }
.energy-icon-2 { right: -25px; top: 160px; animation-delay: 1.5s; animation-duration: 7s; }
.energy-icon-3 { left: 30px; bottom: -15px; animation-delay: 3s; animation-duration: 8s; }
.energy-icon-4 { right: 70px; top: -15px; animation-delay: 4.5s; animation-duration: 6.5s; }

/* Sparkling Dots and Stars style */
.sparkle-dot {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 15%, rgba(16, 185, 129, 0.8) 60%, transparent 100%);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8), 0 0 16px rgba(16, 185, 129, 0.6);
  pointer-events: none;
  z-index: 7;
  animation: sparkle-glow-fade 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.sparkle-star {
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  background: #ffffff !important;
  box-shadow: 0 0 10px #ffffff, 0 0 20px var(--primary) !important;
}

@keyframes sparkle-glow-fade {
  0% {
    transform: translate(0, 0) scale(0) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(1.2) rotate(180deg);
    opacity: 0;
  }
}

/* Keyframe Orbit Animations */
@keyframes orbit-rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes counter-rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

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

.about-card-stat {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-card-stat:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
}

.about-card-stat:nth-child(even) {
  transform: translateY(2rem);
}

.about-card-stat:nth-child(even):hover {
  transform: translateY(1.5rem);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
}

.about-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-feature-icon {
  background-color: var(--primary-glow-subtle);
  color: var(--primary);
  border-radius: 50%;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature-icon svg {
  width: 18px;
  height: 18px;
}

.about-feature-text h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.about-feature-text p {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Solutions Filtering Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 4rem;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--border-highlight);
  color: var(--text-primary);
}

.filter-btn.active {
  background-color: var(--primary);
  color: #051610;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Solutions Section Grid */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.solution-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.solution-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-highlight);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(16, 185, 129, 0.05);
}

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

.solution-card.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.9);
}

.solution-icon {
  width: 64px;
  height: 64px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 2rem;
  transition: all var(--transition-normal);
}

.solution-card:hover .solution-icon {
  background-color: var(--primary);
  color: #051610;
  box-shadow: 0 0 20px var(--primary-glow);
  transform: scale(1.05);
}

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

.solution-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.solution-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.solution-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.solution-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.solution-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
  font-size: 0.9rem;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.project-img-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  background-color: var(--bg-tertiary);
  overflow: hidden;
}

.project-img-wrapper svg {
  width: 100%;
  height: 100%;
  opacity: 0.15;
  transition: all var(--transition-slow);
}

.project-card:hover .project-img-wrapper svg {
  transform: scale(1.05);
  opacity: 0.25;
}

.project-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(4px);
  color: var(--accent);
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-highlight);
}

.project-info {
  padding: 2rem;
}

.project-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition-fast);
}

.project-link:hover {
  color: var(--accent);
  gap: 0.75rem;
}

.project-link svg {
  width: 16px;
  height: 16px;
}

/* Portfolio Table Styling */
.portfolio-container {
  margin-top: 5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
}

.portfolio-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.portfolio-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

.portfolio-table th, .portfolio-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.portfolio-table th {
  background-color: var(--bg-tertiary);
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.portfolio-table tbody tr:last-child td {
  border-bottom: none;
}

.portfolio-table tbody tr {
  transition: background-color var(--transition-fast);
}

.portfolio-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.portfolio-table td:first-child {
  font-weight: 700;
  color: var(--text-muted);
  width: 50px;
}

/* Partners Section */
.partners-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 5rem 0;
  overflow: hidden;
}

.partners-title {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 3rem;
}

.partners-slider {
  display: flex;
  width: max-content;
  align-items: center;
  animation: scroll-partners 30s linear infinite;
  gap: 4rem;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  opacity: 0.5;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.partner-logo:hover {
  opacity: 1;
  color: var(--text-primary);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-intro h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-intro p {
  color: var(--text-secondary);
}

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

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

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all var(--transition-fast);
}

.contact-item:hover .contact-icon {
  background-color: var(--primary);
  color: #051610;
  box-shadow: 0 0 15px var(--primary-glow);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-text h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Form Container Styling */
.contact-form-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
}

.contact-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

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

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

textarea.form-input {
  resize: vertical;
  min-height: 150px;
}

/* Form Message (Success/Error Alerts) */
.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  display: none;
  font-size: 0.9rem;
  font-weight: 500;
  animation: fadeIn var(--transition-fast) forwards;
}

.form-message.success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent);
  display: block;
}

/* Footer Section */
.footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 3rem 0;
  position: relative;
  overflow: hidden;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary);
  color: #051610;
  border-color: var(--primary);
  transform: translateY(-2px);
}

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

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.925rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-newsletter p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form .form-input {
  border-radius: 50px 0 0 50px;
  border-right: none;
  font-size: 0.9rem;
}

.newsletter-form .btn {
  border-radius: 0 50px 50px 0;
  padding: 0.875rem 1.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes rotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotate-reverse {
  0% { transform: translate(-50%, -50%) rotate(360deg); }
  100% { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes dash {
  to { stroke-dashoffset: -40; }
}

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

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

/* Responsive Styles */
@media (max-width: 1366px) {
  .nav-menu {
    gap: 1rem;
  }
  .logo img {
    height: 64px;
    width: 64px;
  }
}

@media (max-width: 1200px) {
  :root {
    --header-height: 70px;
  }
  .section {
    padding: 6rem 0;
  }
  .hero {
    background: var(--bg-primary); /* Remove image background on mobile/tablet to ensure text readability */
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .about-content {
    text-align: center;
  }
  .about-feature-item {
    text-align: left;
  }
  .about-features {
    align-items: center;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  /* Hamburger & Mobile Navigation Menu at 1024px */
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right var(--transition-normal);
    z-index: 100;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .nav-cta {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
  }
  
  .nav-menu .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 2rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-container {
    padding: 1.5rem;
  }
  
  .portfolio-table th, .portfolio-table td {
    padding: 0.75rem 1rem;
    font-size: 0.825rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Scroll reveal helper classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Image ratio wrappers for light theme */
.product-img-wrapper, .service-img-wrapper, .solution-img-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  background-color: var(--bg-tertiary);
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.product-img-wrapper img, .service-img-wrapper img, .solution-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-img-wrapper img,
.service-card:hover .service-img-wrapper img,
.solution-card:hover .solution-img-wrapper img {
  transform: scale(1.05);
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.05);
}

/* Card hover shadow additions */
.product-card, .service-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover, .service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-highlight);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

/* Background Media utilities */
.nav-container {
  position: relative;
  z-index: 5;
}

.video-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

/* Light overlay on body videos for prominent watermark background */
.video-bg-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(248, 250, 252, 0.55); /* Reduced opacity for prominent watermark */
  z-index: 1;
}

/* Footer video overlay must remain dark but be more prominent */
.footer .video-bg-container::after {
  background: rgba(11, 15, 25, 0.45) !important;
}

.video-bg-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.image-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Added light overlay to static background images for text legibility */
.image-bg-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.50) 0%,
    rgba(241, 245, 249, 0.42) 40%,
    rgba(248, 250, 252, 0.50) 100%
  );
  z-index: 1;
}

/* Footer image overlay must remain dark */
.footer .image-bg-container::after {
  background: rgba(11, 15, 25, 0.45) !important;
}

/* --- Dynamic Tech Theme Integration Styles --- */

/* Header Dynamic Background Override (Gradient from Light to Dark) */
.header.has-bg {
  overflow: hidden;
  background: transparent !important;
  border-bottom-color: var(--border-color) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03) !important;
}

.header.has-bg:not(.scrolled) {
  background: transparent !important;
  border-bottom-color: var(--border-color) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03) !important;
}

.header.has-bg:not(.scrolled) .logo-text {
  color: var(--text-primary);
}

.header.has-bg:not(.scrolled) .hamburger span {
  background-color: var(--text-primary) !important;
}

/* Make header video overlay act as the gradient between the video and the content */
.header.has-bg .video-bg-container::after,
.header.has-bg .image-bg-container::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 30%, rgba(15, 23, 42, 0.45) 65%, rgba(15, 23, 42, 0.88) 100%) !important;
  z-index: 1 !important;
}

.header.scrolled .video-bg-container {
  display: none !important; /* Hide header video background when scrolled and solid white */
}

/* SOLID DARK FOOTER FOR CLEAR LAYOUT GROUNDING & DEMARCATION */
.footer {
  background-color: #0b0f19 !important;
  border-top: 2.5px solid var(--primary) !important;
  padding: 5rem 0 3rem 0;
  position: relative;
  overflow: hidden;
}

.footer,
.footer .footer-brand p,
.footer .footer-col h4,
.footer .footer-links a,
.footer .footer-col p,
.footer .footer-col ul,
.footer .footer-bottom {
  color: rgba(255, 255, 255, 0.75) !important;
}

.footer .footer-col h4 {
  color: #ffffff !important;
}

.footer .footer-col h4::after {
  background-color: var(--primary) !important;
}

.footer .footer-links a:hover {
  color: var(--primary) !important;
  padding-left: 4px;
}

.footer .social-link {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer .social-link:hover {
  background-color: var(--primary) !important;
  color: #051610 !important;
  border-color: var(--primary) !important;
}

.footer .form-input {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.footer .form-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2) !important;
}

/* Body Dynamic Tech-Light Theme Overrides */
body.has-content-bg {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  --text-primary: #0f172a !important;
  --text-secondary: #334155 !important;
  --text-muted: #64748b !important;
  --border-color: rgba(15, 23, 42, 0.08) !important;
}

/* Premium Light Tech Glassmorphism components for cards and containers */
body.has-content-bg .solution-card,
body.has-content-bg .service-card,
body.has-content-bg .product-card,
body.has-content-bg .project-card,
body.has-content-bg .about-card-stat,
body.has-content-bg .contact-form-container,
body.has-content-bg .portfolio-container {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(18px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
  border: 1px solid rgba(16, 185, 129, 0.10) !important;
  box-shadow:
    0 8px 32px 0 rgba(15, 23, 42, 0.06),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.5) !important;
  color: var(--text-primary) !important;
}

body.has-content-bg .solution-card:hover,
body.has-content-bg .service-card:hover,
body.has-content-bg .product-card:hover,
body.has-content-bg .project-card:hover,
body.has-content-bg .about-card-stat:hover {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: var(--primary) !important;
  box-shadow:
    0 16px 48px 0 rgba(16, 185, 129, 0.12),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.7) !important;
}

/* Light content inputs */
body.has-content-bg .form-input,
body.has-content-bg .contact-item .contact-icon {
  background-color: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: var(--text-primary) !important;
}

body.has-content-bg .form-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15) !important;
}

body.has-content-bg .filter-btn {
  background-color: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(15, 23, 42, 0.06) !important;
  color: var(--text-secondary) !important;
}

body.has-content-bg .filter-btn:hover {
  color: var(--text-primary) !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}

body.has-content-bg .filter-btn.active {
  background-color: var(--primary) !important;
  color: #051610 !important;
  border-color: var(--primary) !important;
}

body.has-content-bg .btn-secondary {
  color: var(--text-primary) !important;
}

/* Hero Stats Grid under CTA buttons */
.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 3.5rem;
  width: 100%;
}

.hero-stat-card {
  flex: 1;
  padding: 1.25rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all var(--transition-fast);
}

.hero-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.08);
}

.stat-card-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.stat-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

body.has-content-bg .hero-stat-card {
  background-color: rgba(255, 255, 255, 0.55) !important;
  border-color: rgba(15, 23, 42, 0.05) !important;
}

/* Adjust stats grid on smaller screens */
@media (max-width: 768px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
  }
  .hero-stat-card {
    flex: calc(50% - 0.5rem) 0 0;
    padding: 1rem;
  }
  .stat-card-number {
    font-size: 1.5rem;
  }
  .stat-card-label {
    font-size: 0.7rem;
  }
}

/* ======================== */
/* Background Image Harmony */
/* ======================== */

/* Section titles get subtle text shadow for legibility on background */
body.has-content-bg .section-title h2 {
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

body.has-content-bg .section-title span {
  text-shadow: none;
}

/* Contact info block gets glassmorphism too */
body.has-content-bg .contact-info {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(16, 185, 129, 0.08);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow:
    0 8px 32px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Section with bg-secondary gets subtle transparent background */
body.has-content-bg .section[style*="background-color"] {
  background-color: rgba(241, 245, 249, 0.35) !important;
}

/* Table gets glassmorphism */
body.has-content-bg .table-wrapper {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.has-content-bg .portfolio-table th {
  background-color: rgba(241, 245, 249, 0.7) !important;
}

body.has-content-bg .portfolio-table tbody tr:hover {
  background-color: rgba(16, 185, 129, 0.04) !important;
}

/* Partners section glassmorphism */
body.has-content-bg .partners-section {
  background-color: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(16, 185, 129, 0.08) !important;
}

/* Hero stat card on background */
body.has-content-bg .hero-stat-card {
  background-color: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(14px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.2) !important;
  border-color: rgba(16, 185, 129, 0.08) !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

/* Filter buttons enhanced */
body.has-content-bg .filter-btn {
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* About card stat stagger with glassmorphism */
body.has-content-bg .about-card-stat {
  backdrop-filter: blur(16px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.3) !important;
}

/* Image background fixed positioning for parallax feel */
body > .image-bg-container {
  position: fixed !important;
  z-index: -3 !important;
}

.subpage-header {
  padding-top: 10rem;
  padding-bottom: 4rem;
  background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
}

body.has-content-bg .subpage-header {
  background: transparent !important;
}

/* Ensure other solid sections become transparent on background image */
body.has-content-bg .section {
  background: transparent !important;
}

/* Background video and image containers inside header */
.header.has-bg {
  background: transparent !important;
  border-bottom-color: var(--border-color) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03) !important;
}

.header.has-bg.scrolled {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 30%, rgba(15, 23, 42, 0.75) 65%, rgba(15, 23, 42, 0.95) 100%) !important;
}

.header.has-bg .logo-text {
  color: var(--text-primary);
}

/* Adjust nav link colors for the gradient layout - make all header links white and 0.95rem on desktop */
@media (min-width: 1201px) {
  body .header.has-bg .nav-menu .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
  }
}

body .header .nav-menu .nav-link {
  font-size: 0.95rem !important;
}

body .header .nav-menu .nav-link:hover, 
body .header .nav-menu .nav-link.active {
  color: var(--primary) !important;
  font-size: 0.95rem !important; /* Prevent size increase on hover/active */
}

.header.has-bg .hamburger span {
  background-color: var(--text-primary) !important;
}

.video-bg-container, .image-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.video-bg-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-bg-container {
  background-size: cover;
  background-position: center;
}
