/* Color Scheme & Variables (Based on specified Tech Aesthetic) */
:root {
  /* Colors */
  --bg-dark: #0a0f1d;
  --bg-card: rgba(16, 24, 48, 0.65);
  --primary-blue: #0072ff;
  --light-blue: #00c6ff;
  --orange: #ffa500;
  --silver-main: #c0c9d6;
  --silver-light: #e2e8f0;
  
  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  
  /* Accents */
  --border-glow: rgba(0, 198, 255, 0.25);
  
  /* Typography & Effects */
  --font-family: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes section-enter {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes visual-enter {
    from {
      opacity: 0;
      transform: translateX(20px) scale(0.98);
    }

    to {
      opacity: 1;
      transform: translateX(0) scale(1);
    }
  }

  @keyframes central-node-pulse {
    0%,
    100% {
      transform: scale(0.6);
    }

    50% {
      transform: scale(1);
    }
  }

  @keyframes cta-orange-pulse {
    0%,
    100% {
      box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3), 0 0 0 0 transparent;
      transform: scale(1);
    }

    50% {
      box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3), 0 0 0 6px rgb(255 255 255 / 35%);
      transform: scale(1.03);
    }
  }

  /* Only opacity and transforms animate, avoiding layout and paint-heavy properties. */
  .hero-content,
  .contact-intro,
  .contact-form,
  .service-card,
  .example-card {
    animation: section-enter 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .connection-icon {
    animation: connection-icon-rotate 24s linear infinite;
  }

  .central-node img {
    animation: central-node-pulse 12s ease-in-out infinite;
    transform-origin: center;
    will-change: transform;
  }

  .hero-content,
  .contact-intro {
    animation-delay: 80ms;
  }

  .hero-visual {
    animation: visual-enter 650ms cubic-bezier(0.22, 1, 0.36, 1) 160ms both;
  }

  .contact-form {
    animation-delay: 160ms;
  }

  .service-card:nth-child(1),
  .example-card:nth-child(1) {
    animation-delay: 180ms;
  }

  .service-card:nth-child(2),
  .example-card:nth-child(2) {
    animation-delay: 240ms;
  }

  .service-card:nth-child(3),
  .example-card:nth-child(3) {
    animation-delay: 300ms;
  }

  .cta-start:hover,
  .cta-start:focus-visible {
    background: var(--orange);
    color: var(--bg-dark);
    animation: cta-orange-pulse 900ms ease-in-out infinite;
    will-change: transform, box-shadow;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .central-node img {
    width: 60%;
    animation: none;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Glassmorphism Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 15, 29, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(192, 201, 214, 0.1);
  padding: 15px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 35px;
  filter: drop-shadow(0 0 10px rgba(0, 198, 255, 0.5));
  background-color: transparent;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--silver-light);
  letter-spacing: 1px;
}

.accent-text {
  color: var(--light-blue);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--light-blue);
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 198, 255, 0.5);
}

.cta-start:active {
  background: #fff;
  color: var(--bg-dark);
  box-shadow: 0 0 0 4px rgb(255 255 255 / 45%);
}

.btn-secondary {
  border: 1px solid var(--silver-main);
  color: var(--silver-light);
}

.btn-secondary:hover {
  background: rgba(192, 201, 214, 0.1);
  border-color: var(--light-blue);
  color: var(--light-blue);
}

/* Hero Section with Glowing Effects */
.hero-section {
  position: relative;
  padding: 150px 0 100px;
}

.hero-bg-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.1) 0%, rgba(10, 15, 29, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  background: rgba(0, 198, 255, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--light-blue);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.badge-orange {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  background: rgba(255, 165, 0, 0.1);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--silver-light) 0%, var(--light-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  gap: 15px;
}

/* Connection Graphic (Visual representation) */
.hero-visual {
  display: flex;
  justify-content: center;
}

.connection-graphic {
  position: relative;
  width: 300px;
  height: 300px;
}

.connection-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  object-fit: contain;
  pointer-events: none;
  will-change: transform;
}

@keyframes connection-icon-rotate {
  to {
    transform: rotate(360deg);
  }
}

.node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--border-glow);
  z-index: 5;
}

.central-node img {
  width: 100%;
}

.node-label {
  position: absolute;
  padding: 5px 10px;
  background: rgba(255, 165, 0, 0.9);
  border: 1px solid var(--light-blue);
  border-radius: 5px;
  color: var(--text-primary);
  font-size: 0.8rem;
  box-shadow: 0 0 20px var(--border-glow);
  z-index: 6;
}

.label-web { top: 0; left: 50%; transform: translateX(-50%); }
.label-apps { bottom: 0; left: 0; }
.label-media { bottom: 0; right: 0; }

.line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
  box-shadow: 0 0 8px var(--border-glow);
  opacity: 0.75;
  transform-origin: left center;
  z-index: 1;
}

.line-1 {
  width: 64px;
  top: 36px;
  left: 150px;
  transform: rotate(90deg);
}

.line-2 {
  width: 83px;
  top: 264px;
  left: 90px;
  transform: rotate(-72deg);
}

.line-3 {
  width: 82px;
  top: 264px;
  left: 206px;
  transform: rotate(-105deg);
}

/* Services Grid with Tech Aesthetics */
.services-section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(192, 201, 214, 0.1);
  border-radius: 10px;
  padding: 40px;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--light-blue);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 198, 255, 0.1);
}

.card-icon {
  color: var(--light-blue);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.card-link {
  color: var(--light-blue);
  text-decoration: none;
  font-weight: 600;
}

.example-card .card-icon {
  margin: 0;
}

.example-card h3 {
  padding-top: 5px;
}

.examples-grid .card-link {
  display: inline-block;
  padding: 12px 0;
}

.case-study-divider {
  height: 1px;
  border: 0;
  background: var(--light-blue);
  opacity: 0.45;
  margin-bottom: 15px;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(192, 201, 214, 0.1);
  min-height: 100px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
}

.footer .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-links a {
  display: inline-flex;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--light-blue);
  transform: translateY(-2px);
}

.social-links a:focus-visible {
  outline: 2px solid var(--light-blue);
  outline-offset: 4px;
  border-radius: 2px;
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.social-links a:first-child svg {
  fill: currentColor;
  stroke: none;
}

/* Contact Page */
.contact-page {
  min-height: calc(100vh - 92px);
}

.error-page {
  min-height: calc(100vh - 192px);
  display: flex;
  align-items: center;
}

.error-section {
  width: 100%;
  padding: 100px 0;
  text-align: center;
}

.error-content {
  max-width: 760px;
  margin: 0 auto;
}

.error-code {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
  text-shadow: 0 0 30px rgba(255, 165, 0, 0.3);
}

.error-content .badge {
  margin-bottom: 15px;
}

.error-content .hero-title {
  margin-bottom: 20px;
}

.error-content .hero-cta {
  justify-content: center;
}

.contact-section {
  padding: 150px 0 100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 70px;
  align-items: start;
}

.contact-intro .hero-title {
  margin-bottom: 20px;
}

.contact-details {
  display: grid;
  gap: 20px;
  margin-top: 35px;
  color: var(--text-secondary);
}

.contact-details strong {
  color: var(--silver-light);
}

.contact-form {
  display: grid;
  gap: 20px;
  padding: 35px;
  background: var(--bg-card);
  border: 1px solid rgba(192, 201, 214, 0.1);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 198, 255, 0.08);
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: var(--silver-light);
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(192, 201, 214, 0.25);
  border-radius: 5px;
  background: rgba(10, 15, 29, 0.75);
  color: var(--text-primary);
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--light-blue);
  outline-offset: 2px;
  border-color: var(--light-blue);
}

.form-submit {
  border: 0;
  cursor: pointer;
  justify-self: start;
}

.contact-form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.thank-you-page {
  min-height: calc(100vh - 92px);
}

.thank-you-section {
  min-height: calc(100vh - 192px);
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  text-align: center;
}

.thank-you-content {
  max-width: 760px;
}

.thank-you-content .badge {
  margin-bottom: 20px;
}

.thank-you-content .hero-subtitle {
  margin: 0 auto 30px;
  max-width: 540px;
}

/* Responsive Styles */
.nav-toggle {
  display: none;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title { font-size: 2.8rem; }
  .hero-cta { justify-content: center; }
  .hero-bg-glow { width: 400px; height: 400px; }
  .contact-grid { gap: 40px; }
}

@media (max-width: 768px) {
  .contact-section { padding-top: 120px; }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer .container {
    flex-direction: column;
    justify-content: center;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid rgba(192, 201, 214, 0.1);
  }
  
  .nav-toggle {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
  }
  
  .nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--silver-light);
  }
  
  .nav-menu.open {
    display: flex;
  }
}