/* CSS Custom Properties */
:root {
  --deep-coral: #ff5a5fff;
  --coral-light: #ffb5a7ff;
  --aqua-blue: #007f9cff;
  --midnight-navy: #102542ff;
  --cloud-white: #f8f9faff;

  /* Additional color variations */
  --coral-rgba: rgba(255, 90, 95, 0.1);
  --aqua-rgba: rgba(0, 127, 156, 0.1);
  --navy-rgba: rgba(16, 37, 66, 0.8);

  /* Typography */
  --font-primary: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);

  /* Border radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 2rem;
  --radius-full: 50px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--midnight-navy);
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-bottom: var(--spacing-sm);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(16, 37, 66, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: var(--transition-medium);
}

.navbar.scrolled {
  background: rgba(16, 37, 66, 0.95);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo-svg {
  height: 40px;
  width: auto;
  max-width: 180px;
  transition: all 0.3s ease;
}

.logo-svg:hover {
  transform: scale(1.05);
}

.logo-circle {
  animation: logo-pulse 3s ease-in-out infinite;
}

.logo-letter {
  animation: letter-glow 3s ease-in-out infinite;
}

.accent-dot {
  animation: dot-twinkle 2s ease-in-out infinite;
}

.dot-1 {
  animation-delay: 0s;
}
.dot-2 {
  animation-delay: 0.5s;
}
.dot-3 {
  animation-delay: 1s;
}
.dot-4 {
  animation-delay: 1.5s;
}

.company-name {
  animation: text-gradient-shift 4s ease-in-out infinite;
}

.company-subtitle {
  animation: text-gradient-shift-alt 4s ease-in-out infinite;
}

.connection-line {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: flow-connection 3s ease-in-out infinite;
}

.line-1 {
  animation-delay: 0s;
}
.line-2 {
  animation-delay: 1.5s;
}

/* Logo animations */
@keyframes logo-pulse {
  0%,
  100% {
    fill: url(#logo-gradient);
    filter: url(#logo-glow);
  }
  50% {
    fill: url(#logo-gradient-alt);
    filter: url(#logo-glow) brightness(1.2);
  }
}

@keyframes letter-glow {
  0%,
  100% {
    fill: #fff;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
  }
  50% {
    fill: #f8f9fa;
    filter: drop-shadow(0 0 8px rgba(255, 90, 95, 0.8));
  }
}

@keyframes dot-twinkle {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

@keyframes text-gradient-shift {
  0%,
  100% {
    fill: url(#logo-gradient);
  }
  50% {
    fill: url(#logo-gradient-alt);
  }
}

@keyframes text-gradient-shift-alt {
  0%,
  100% {
    fill: url(#logo-gradient-alt);
  }
  50% {
    fill: url(#logo-gradient);
  }
}

@keyframes flow-connection {
  0% {
    stroke-dashoffset: 20;
    opacity: 0.3;
  }
  50% {
    stroke-dashoffset: 0;
    opacity: 0.8;
  }
  100% {
    stroke-dashoffset: -20;
    opacity: 0.3;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
}

.nav-link {
  text-decoration: none;
  color: var(--cloud-white);
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--deep-coral), var(--aqua-blue));
  transition: var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--coral-light);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--cloud-white);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--midnight-navy) 0%,
    var(--aqua-blue) 50%,
    var(--deep-coral) 100%
  );
  background-size: 400% 400%;
  animation: gradientMesh 15s ease infinite;
}

@keyframes gradientMesh {
  0%,
  100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 50% 100%;
  }
  75% {
    background-position: 50% 0%;
  }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  padding: 0;
  animation: contentSlideUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(50px);
}

@keyframes contentSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--cloud-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
  animation: eyebrowFadeIn 1s ease-out 0.3s forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes eyebrowFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  color: var(--cloud-white);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px) rotateX(90deg);
  animation: wordReveal 0.8s ease-out forwards;
}

.hero-title .word:nth-child(1) {
  animation-delay: 0.5s;
}
.hero-title .word:nth-child(2) {
  animation-delay: 0.7s;
}
.hero-title .word:nth-child(3) {
  animation-delay: 0.9s;
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

.hero-subtitle {
  color: var(--cloud-white);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
  line-height: 1.6;
  animation: subtitleFadeIn 1s ease-out 1.1s forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes subtitleFadeIn {
  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  animation: buttonsFadeIn 1s ease-out 1.3s forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes buttonsFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all var(--transition-medium);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: var(--transition-medium);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--deep-coral), var(--aqua-blue));
  color: var(--cloud-white);
  box-shadow: 0 4px 20px rgba(255, 90, 95, 0.3);
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 90, 95, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--cloud-white);
  border: 2px solid var(--cloud-white);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--cloud-white);
  color: var(--midnight-navy);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(3px) translateY(-3px);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: visualSlideIn 1s ease-out 0.5s forwards;
  opacity: 0;
  transform: translateX(50px) scale(0.9);
}

@keyframes visualSlideIn {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.svg-frame {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: var(--transition-medium);
}

.svg-frame:hover {
  transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tech-hero-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

/* Tech SVG Animations */
.tech-blob {
  animation: techBlobPulse 6s ease-in-out infinite;
}

@keyframes techBlobPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Laptop Animation */
.laptop-container {
  animation: laptopFloat 8s ease-in-out infinite;
}

@keyframes laptopFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Code Lines Typing Animation */
.code-line {
  animation: typeWriter 2s ease-out forwards;
}

.code-line:nth-child(1) {
  animation-delay: 0.5s;
}
.code-line:nth-child(2) {
  animation-delay: 1s;
}
.code-line:nth-child(3) {
  animation-delay: 1.5s;
}
.code-line:nth-child(4) {
  animation-delay: 2s;
}
.code-line:nth-child(5) {
  animation-delay: 2.5s;
}
.code-line:nth-child(6) {
  animation-delay: 3s;
}

@keyframes typeWriter {
  0% {
    width: 0;
  }
  100% {
    width: 160px;
  }
}

/* Gear Rotations */
.gear {
  animation: gearRotate 10s linear infinite;
}

.gear-1 {
  animation: gearRotate 8s linear infinite;
}

.gear-2 {
  animation: gearRotate 12s linear infinite reverse;
}

.gear-3 {
  animation: gearRotate 10s linear infinite;
}

@keyframes gearRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Circuit Path Pulse Animation */
.circuit-path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: circuitPulse 3s ease-in-out forwards;
}

.circuit-path:nth-child(1) {
  animation-delay: 1s;
}
.circuit-path:nth-child(2) {
  animation-delay: 1.5s;
}
.circuit-path:nth-child(3) {
  animation-delay: 2s;
}

@keyframes circuitPulse {
  0% {
    stroke-dashoffset: 300;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Binary Digits Orbit Animation */
.binary-digit {
  animation: binaryOrbit 20s linear infinite;
  transform-origin: 300px 300px;
}

.digit-1 {
  animation: binaryOrbit1 18s linear infinite;
}

.digit-2 {
  animation: binaryOrbit2 22s linear infinite;
}

.digit-3 {
  animation: binaryOrbit3 16s linear infinite;
}

.digit-4 {
  animation: binaryOrbit4 24s linear infinite;
}

.digit-5 {
  animation: binaryOrbit5 20s linear infinite;
}

.digit-6 {
  animation: binaryOrbit6 14s linear infinite;
}

@keyframes binaryOrbit1 {
  from {
    transform: rotate(0deg) translateX(200px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(200px) rotate(-360deg);
  }
}

@keyframes binaryOrbit2 {
  from {
    transform: rotate(60deg) translateX(180px) rotate(-60deg);
  }
  to {
    transform: rotate(420deg) translateX(180px) rotate(-420deg);
  }
}

@keyframes binaryOrbit3 {
  from {
    transform: rotate(120deg) translateX(220px) rotate(-120deg);
  }
  to {
    transform: rotate(480deg) translateX(220px) rotate(-480deg);
  }
}

@keyframes binaryOrbit4 {
  from {
    transform: rotate(180deg) translateX(160px) rotate(-180deg);
  }
  to {
    transform: rotate(540deg) translateX(160px) rotate(-540deg);
  }
}

@keyframes binaryOrbit5 {
  from {
    transform: rotate(240deg) translateX(240px) rotate(-240deg);
  }
  to {
    transform: rotate(600deg) translateX(240px) rotate(-600deg);
  }
}

@keyframes binaryOrbit6 {
  from {
    transform: rotate(300deg) translateX(140px) rotate(-300deg);
  }
  to {
    transform: rotate(660deg) translateX(140px) rotate(-660deg);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .tech-blob,
  .laptop-container,
  .gear,
  .circuit-path,
  .binary-digit,
  .code-line {
    animation: none !important;
  }

  .static-fallback {
    display: block !important;
  }

  .tech-blob,
  .gears-container,
  .circuit-lines,
  .binary-digits,
  .code-lines {
    display: none !important;
  }

  .hero-title .word,
  .hero-eyebrow,
  .hero-subtitle,
  .hero-buttons,
  .hero-content,
  .hero-visual {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* About Section Reduced Motion */
  .about-svg,
  .network-node,
  .pulse-line,
  .code-block,
  .gear,
  .person,
  .lightbulb-glow,
  .lightbulb-bulb,
  .light-rays {
    animation: none !important;
  }

  .about-illustration,
  .about-text {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Section Styles */
section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  margin-bottom: var(--spacing-lg);
  color: var(--midnight-navy);
}

.section-title.centered {
  text-align: center;
}

/* About Section */
.about {
  background: var(--cloud-white);
  padding: calc(var(--spacing-xl) * 1.5) 0;
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-illustration {
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.about-illustration.animate {
  opacity: 1;
  transform: translateX(0);
}

.about-svg {
  width: 100%;
  max-width: 500px;
  height: auto;
  animation: aboutFloat 6s ease-in-out infinite;
}

@keyframes aboutFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.about-text {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out 0.2s;
}

.about-text.animate {
  opacity: 1;
  transform: translateX(0);
}

.about-eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, var(--deep-coral), var(--aqua-blue));
  color: var(--cloud-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
}

.about-text .section-title {
  margin-bottom: var(--spacing-md);
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.about-text p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
  color: var(--midnight-navy);
  opacity: 0.9;
}

.about-cta {
  margin-top: var(--spacing-md);
  display: inline-flex;
}

/* About SVG Animations */
.network-node {
  animation: nodeGlow 3s ease-in-out infinite;
}

.network-node:nth-child(1) {
  animation-delay: 0s;
}
.network-node:nth-child(2) {
  animation-delay: 0.6s;
}
.network-node:nth-child(3) {
  animation-delay: 1.2s;
}
.network-node:nth-child(4) {
  animation-delay: 1.8s;
}
.network-node:nth-child(5) {
  animation-delay: 2.4s;
}

@keyframes nodeGlow {
  0%,
  100% {
    opacity: 0.6;
    r: 4;
  }
  50% {
    opacity: 1;
    r: 6;
  }
}

.pulse-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: linePulse 3s ease-in-out infinite;
}

.pulse-line:nth-child(1) {
  animation-delay: 0.5s;
}
.pulse-line:nth-child(2) {
  animation-delay: 1s;
}
.pulse-line:nth-child(3) {
  animation-delay: 1.5s;
}
.pulse-line:nth-child(4) {
  animation-delay: 2s;
}

@keyframes linePulse {
  0%,
  100% {
    stroke-dashoffset: 100;
  }
  50% {
    stroke-dashoffset: 0;
  }
}

.code-block {
  animation: codeType 2s ease-out forwards;
}

.code-block:nth-child(1) {
  animation-delay: 1s;
}
.code-block:nth-child(2) {
  animation-delay: 1.5s;
}
.code-block:nth-child(3) {
  animation-delay: 2s;
}
.code-block:nth-child(4) {
  animation-delay: 2.5s;
}
.code-block:nth-child(5) {
  animation-delay: 3s;
}

@keyframes codeType {
  0% {
    width: 0;
  }
  100% {
    width: 120px;
  }
}

.gear {
  animation: aboutGearRotate 12s linear infinite;
}

.gear-about-1 {
  animation: aboutGearRotate 10s linear infinite;
}

.gear-about-2 {
  animation: aboutGearRotate 15s linear infinite reverse;
}

@keyframes aboutGearRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.person {
  animation: personBob 4s ease-in-out infinite;
}

.person-1 {
  animation-delay: 0s;
}
.person-2 {
  animation-delay: 0.5s;
}
.person-3 {
  animation-delay: 1s;
}
.person-4 {
  animation-delay: 1.5s;
}

@keyframes personBob {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

.lightbulb-glow {
  animation: bulbGlow 3s ease-in-out infinite;
}

.lightbulb-bulb {
  animation: bulbPulse 3s ease-in-out infinite;
}

@keyframes bulbGlow {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

@keyframes bulbPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.light-rays {
  animation: raysGlow 3s ease-in-out infinite;
}

@keyframes raysGlow {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}

/* Hover Effects */
.about-svg:hover .network-node {
  animation-duration: 1.5s;
}

.about-svg:hover .lightbulb-glow {
  animation-duration: 2s;
  filter: url(#about-glow);
}

.about-svg:hover .light-rays {
  opacity: 1;
}

/* Solutions Section */
.solutions {
  background: linear-gradient(
    135deg,
    var(--aqua-blue) 0%,
    var(--deep-coral) 100%
  );
  color: var(--cloud-white);
}

.solutions .section-title {
  color: var(--cloud-white);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.solution-card {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  text-align: center;
  transition: var(--transition-medium);
}

.solution-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-heavy);
}

.solution-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-sm);
  color: var(--cloud-white);
}

.solution-icon svg {
  width: 100%;
  height: 100%;
}

.solution-card h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--cloud-white);
}

.solution-card p {
  opacity: 0.9;
  margin-bottom: 0;
}

/* Portfolio Section */
.portfolio {
  background: var(--cloud-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.portfolio-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
}

.portfolio-card:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: var(--shadow-heavy);
}

.portfolio-image {
  height: 200px;
  overflow: hidden;
}

.placeholder-image {
  width: 100%;
  height: 100%;
}

.placeholder-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-content {
  padding: var(--spacing-md);
}

.portfolio-content h3 {
  margin-bottom: var(--spacing-xs);
  color: var(--midnight-navy);
}

.portfolio-content p {
  margin-bottom: 0;
  color: #666;
}

/* Contact Section */
.contact {
  padding: 8rem 0;
  background: linear-gradient(135deg, #007f9c 0%, #102542 50%, #ff5a5f 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 90, 95, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(0, 127, 156, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.contact-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.contact-glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  overflow: hidden;
  position: relative;
}

.contact-glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  position: relative;
}

.contact-illustration {
  background: linear-gradient(
    135deg,
    rgba(255, 90, 95, 0.1) 0%,
    rgba(0, 127, 156, 0.1) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
}

.contact-illustration::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 90, 95, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: pulse-glow 4s ease-in-out infinite;
}

.contact-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.contact-form-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.contact-form-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

.contact-header {
  margin-bottom: 3rem;
  text-align: center;
}

.contact-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #ff5a5f, #ffb5a7, #007f9c);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-subtitle {
  color: rgba(248, 249, 250, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1.2rem 1.5rem;
  color: var(--color-light);
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: rgba(248, 249, 250, 0.6);
  font-weight: 400;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-coral);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.2),
    0 10px 30px rgba(255, 90, 95, 0.1);
  transform: translateY(-2px);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.contact-submit-btn {
  background: linear-gradient(135deg, #ff5a5f, #007f9c);
  border: none;
  border-radius: 15px;
  padding: 1.2rem 2rem;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.contact-submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(255, 90, 95, 0.4);
}

.contact-submit-btn:hover::before {
  left: 100%;
}

.contact-submit-btn:active {
  transform: translateY(0);
}

.btn-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.contact-submit-btn:hover .btn-icon {
  transform: translateX(3px);
}

/* Contact Details */
.contact-details {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.contact-detail-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff5a5f, #007f9c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: white;
}

.contact-detail-text h4 {
  color: #ff5a5f;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-detail-text p {
  color: rgba(248, 249, 250, 0.9);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.contact-detail-text p:last-child {
  margin-bottom: 0;
}

.contact-email {
  color: #ffb5a7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-email:hover {
  color: #ff5a5f;
  text-decoration: underline;
}

/* SVG Animations */
.wave-circle {
  animation: expand-wave 3s ease-in-out infinite;
}

.wave-1 {
  animation-delay: 0s;
}
.wave-2 {
  animation-delay: 1s;
}
.wave-3 {
  animation-delay: 2s;
}

.contact-node {
  animation: pulse-node 2s ease-in-out infinite;
}

.contact-connection {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw-connection 2s ease-in-out infinite;
}

.envelope-body {
  animation: float-envelope 3s ease-in-out infinite;
}

.envelope-flap-open {
  animation: open-envelope 4s ease-in-out infinite;
}

.message-line {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: send-message 3s ease-in-out infinite;
  opacity: 0;
}

.chat-bubble {
  animation: float-bubble 2s ease-in-out infinite;
}

.bubble-1 {
  animation-delay: 0s;
}
.bubble-2 {
  animation-delay: 0.7s;
}
.bubble-3 {
  animation-delay: 1.4s;
}

/* Keyframes */
@keyframes expand-wave {
  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.2;
  }
}

@keyframes pulse-node {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

@keyframes draw-connection {
  0% {
    stroke-dashoffset: 100;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -100;
    opacity: 0;
  }
}

@keyframes float-envelope {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(1deg);
  }
}

@keyframes open-envelope {
  0%,
  60% {
    opacity: 0;
  }
  70%,
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes send-message {
  0% {
    stroke-dashoffset: 50;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  70% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -50;
    opacity: 0;
  }
}

@keyframes float-bubble {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-8px) scale(1.05);
    opacity: 1;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.1;
  }
}

/* Contact Responsive Design */
@media (max-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-illustration {
    order: 1;
    padding: 2rem;
  }

  .contact-form-section {
    order: 2;
    padding: 3rem 2rem;
  }

  .contact-form-section::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 4rem 0;
  }

  .contact-container {
    padding: 0 1rem;
  }

  .contact-glass-card {
    border-radius: 20px;
  }

  .contact-illustration,
  .contact-form-section {
    padding: 2rem 1.5rem;
  }

  .contact-svg {
    max-width: 300px;
  }

  .contact-header {
    margin-bottom: 2rem;
  }

  .form-input {
    padding: 1rem 1.2rem;
  }

  .contact-details {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .contact-detail-item {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .contact-icon {
    width: 35px;
    height: 35px;
  }

  .contact-icon svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .contact-title {
    font-size: 1.8rem;
  }

  .contact-subtitle {
    font-size: 1rem;
  }

  .contact-svg {
    max-width: 250px;
  }

  .contact-illustration,
  .contact-form-section {
    padding: 1.5rem 1rem;
  }

  .contact-detail-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    padding: 1rem;
  }

  .contact-detail-text h4 {
    font-size: 1rem;
  }
}

/* Animation utilities */
.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Footer */
.footer {
  background: var(--midnight-navy);
  color: var(--cloud-white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: var(--spacing-sm);
}

.footer-logo h3 {
  background: linear-gradient(135deg, var(--deep-coral), var(--aqua-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xs);
}

.footer-logo p {
  opacity: 0.8;
  margin-bottom: 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--cloud-white);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--coral-light);
}

/* Footer Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item h5 {
  color: var(--deep-coral);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-item p {
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.contact-item p:last-child {
  margin-bottom: 0;
}

.contact-item a {
  color: var(--coral-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-item a:hover {
  color: var(--deep-coral);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-medium);
}

.social-link:hover {
  background: var(--deep-coral);
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--cloud-white);
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  opacity: 0.8;
  margin-bottom: 0;
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .hero-visual {
    order: -1;
    margin-bottom: var(--spacing-md);
  }

  .svg-frame {
    max-width: 350px;
    padding: 1.5rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Hide complex animations on mobile for performance */
  .binary-digits,
  .circuit-lines {
    display: none;
  }

  .gear {
    animation-duration: 20s; /* Slower animations on mobile */
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(16, 37, 66, 0.95);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    width: 100%;
    text-align: center;
    transition: var(--transition-medium);
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-lg);
  }

  .about-illustration {
    order: -1;
    margin-bottom: var(--spacing-md);
  }

  .about-svg {
    max-width: 400px;
  }

  .about-text {
    padding: 0 var(--spacing-sm);
  }

  /* Simplify animations on mobile */
  .floating-gears,
  .light-rays {
    display: none;
  }

  .network-node,
  .pulse-line,
  .code-block {
    animation-duration: 4s; /* Slower animations */
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-sm: 0.75rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
  }

  .hero {
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  }

  .hero-container {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-eyebrow {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .svg-frame {
    max-width: 280px;
    padding: 1rem;
    border-radius: 16px;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .nav-container {
    padding: 0 var(--spacing-sm);
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .solution-card {
    margin-bottom: var(--spacing-sm);
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .koral-static-fallback {
    display: block !important;
  }

  .koral-morph-blob,
  .koral-particle,
  .koral-connection-line,
  .koral-node {
    display: none !important;
  }

  .hero {
    background: linear-gradient(
      135deg,
      var(--midnight-navy) 0%,
      var(--aqua-blue) 100%
    );
    animation: none;
  }

  .hero-content,
  .hero-visual,
  .hero-eyebrow,
  .hero-title .word,
  .hero-subtitle,
  .hero-buttons {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .svg-frame:hover {
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
} /* High contrast mode support */
@media (prefers-contrast: high) {
  .navbar {
    background: rgba(0, 0, 0, 0.95);
  }

  .solution-card {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hamburger,
  .social-links {
    display: none;
  }

  .hero {
    background: white;
    color: black;
  }

  .solutions {
    background: white;
    color: black;
  }
}
