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

:root {
  --primary-blue: #2563EB;
  --light-blue: #4A9EFF;
  --dark-blue: #1E40AF;
  --black: #000000;
  --dark-gray: #0F172A;
  --gray: #1E293B;
  --light-gray: #334155;
  --text-light: #E2E8F0;
  --text-gray: #94A3B8;
  --white: #FFFFFF;
  --content-max: 1200px;
  --section-pad-x: clamp(1rem, 4vw, 3rem);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--black);
  color: var(--text-light);
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--light-blue);
}

/* Container */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  width: 100%;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
}

.nav-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

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

.logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Un solo logo en el header (marca completa) */
.logo-image--nav {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(200px, 58vw);
  object-fit: contain;
  object-position: left center;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links button {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  font-family: inherit;
}

.nav-links button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--light-blue), var(--primary-blue));
  transition: width 0.3s ease;
}

.nav-links button:hover {
  color: var(--light-blue);
}

.nav-links button:hover::after {
  width: 80%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--light-blue);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1.5rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links button {
    width: 100%;
    text-align: left;
    padding: 1rem 0;
    font-size: 1.125rem;
    border-bottom: 1px solid rgba(74, 158, 255, 0.1);
    border-radius: 0;
  }
  
  .nav-links button::after {
    display: none;
  }
  
  .nav-links button:hover {
    color: var(--light-blue);
    padding-left: 1rem;
    background: rgba(74, 158, 255, 0.05);
  }
  
}

/* Hero Section */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 5.5rem;
  padding-bottom: 3rem;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(74, 158, 255, 0.12), transparent),
    radial-gradient(ellipse 50% 50% at 0% 80%, rgba(30, 64, 175, 0.2), transparent);
  animation: heroAmbientShift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroAmbientShift {
  0% {
    opacity: 0.85;
    filter: hue-rotate(0deg);
  }
  100% {
    opacity: 1;
    filter: hue-rotate(12deg);
  }
}

.particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.circuit-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(74, 158, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 158, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: circuitMove 20s linear infinite;
  opacity: 0.3;
}

@keyframes circuitMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.hero-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeInUp 0.8s ease;
}

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

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-blue);
  margin: 0;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text-light);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-weight: 600;
  color: var(--light-blue);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-description {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-gray);
  line-height: 1.65;
  max-width: 36rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: fadeInUp 0.8s ease 0.65s both;
}

.hero-trust-list li {
  font-size: 0.9375rem;
  color: #cbd5e1;
  padding-left: 1.35rem;
  position: relative;
}

.hero-trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
  box-shadow: 0 0 10px rgba(74, 158, 255, 0.6);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  animation: fadeInUp 0.8s ease 0.75s both;
}

.cta-button {
  padding: 0.95rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
  color: var(--white);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(74, 158, 255, 0.35);
  width: fit-content;
  font-family: inherit;
}

.cta-button:hover {
  box-shadow: 0 8px 32px rgba(74, 158, 255, 0.45);
  transform: translateY(-3px);
}

.cta-button--ghost {
  background: transparent;
  border: 2px solid rgba(74, 158, 255, 0.55);
  color: var(--light-blue);
  box-shadow: none;
}

.cta-button--ghost:hover {
  background: rgba(74, 158, 255, 0.12);
  border-color: var(--light-blue);
  box-shadow: 0 0 0 1px rgba(74, 158, 255, 0.3);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  animation: fadeInScale 1s ease 0.3s both;
}

.hero-brand-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

/* Isotipo TN + red de partículas (canvas) alrededor */
.hero-logo-halo {
  position: relative;
  width: min(300px, 85vw);
  height: min(300px, 85vw);
  max-width: 340px;
  max-height: 340px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroHaloFloat 5.5s ease-in-out infinite;
}

@keyframes heroHaloFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-halo {
    animation: none;
  }
}

.hero-network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
  /* El tamaño en px lo define solo el layout del padre; el bitmap lo ajusta JS (DPR) */
  box-sizing: border-box;
}

/* Misma caja que el canvas: el TN queda centrado en el halo de partículas */
.hero-tn-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/*
 * clean_logo.png es 600×600 pero el TN no está centrado en el lienzo (bbox ~271,304 vs 300,300).
 * Desplazamiento en % del propio ancho/alto del bloque = (300-cx),(300-cy) en coords fuente.
 */
.hero-tn-nudge {
  display: block;
  width: 46%;
  max-width: 150px;
  transform: translate(calc(100% * 29 / 600), calc(100% * -4 / 600));
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 24px rgba(74, 158, 255, 0.25));
}

.hero-tn-mark {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.hero-brand-caption {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-gray);
  letter-spacing: 0.04em;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Ofertas: franja minimalista bajo el logo (sin cajas) */
.hero-offerings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  max-width: 100%;
  padding: 0.35rem 0;
  animation: fadeInUp 0.85s ease 0.35s both;
}

.hero-offering {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: #cbd5e1;
  transition: color 0.25s ease, background 0.25s ease;
}

.hero-offering:hover {
  color: var(--text-light);
  background: rgba(74, 158, 255, 0.08);
}

.hero-offering-icon {
  display: flex;
  color: var(--light-blue);
  opacity: 0.9;
}

.hero-offering-icon svg {
  width: 18px;
  height: 18px;
}

.hero-offering:hover .hero-offering-icon {
  opacity: 1;
}

.hero-offering-label {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-offering-sep {
  width: 1px;
  height: 1.125rem;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(74, 158, 255, 0.35) 20%,
    rgba(74, 158, 255, 0.35) 80%,
    transparent
  );
  flex-shrink: 0;
}

.hero-offerings-footnote {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-gray);
  text-align: center;
  animation: fadeInUp 0.85s ease 0.5s both;
}

@media (max-width: 480px) {
  .hero-offering-sep {
    display: none;
  }

  .hero-offerings {
    flex-direction: column;
    gap: 0.15rem;
  }

  .hero-offering {
    padding: 0.4rem 1rem;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--light-blue);
  cursor: pointer;
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 1.125rem;
  }
  
  .hero-visual {
    margin-top: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-row .cta-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Trust strip */
.trust-strip {
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(74, 158, 255, 0.15);
  border-bottom: 1px solid rgba(74, 158, 255, 0.12);
  padding: 1.25rem var(--section-pad-x);
}

.trust-strip-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #cbd5e1;
}

.trust-strip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(74, 158, 255, 0.5);
}

@media (min-width: 900px) {
  .trust-strip-inner {
    justify-content: space-between;
  }
}

/* Services Section */
.services {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--black) 0%, var(--dark-gray) 100%);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card.reveal-on-scroll:nth-child(1) { --reveal-delay: 0ms; }
.service-card.reveal-on-scroll:nth-child(2) { --reveal-delay: 80ms; }
.service-card.reveal-on-scroll:nth-child(3) { --reveal-delay: 160ms; }

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--light-blue), var(--primary-blue));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  border-color: rgba(74, 158, 255, 0.5);
  box-shadow: 0 8px 32px rgba(74, 158, 255, 0.2);
  transform: translateY(-10px);
}

.service-icon {
  width: 64px;
  height: 64px;
  color: var(--light-blue);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.service-description {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-features li {
  color: var(--text-light);
  font-size: 0.95rem;
  padding-left: 1.5rem;
  position: relative;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--light-blue);
  font-weight: bold;
}

.services-footer {
  text-align: center;
  margin-top: 4rem;
}

.services-tagline {
  font-size: 1.25rem;
  color: var(--text-gray);
  line-height: 1.8;
}

.services-tagline strong {
  color: var(--light-blue);
  font-weight: 600;
}

@media (max-width: 768px) {
  .services {
    padding: 4rem 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .services-tagline {
    font-size: 1.125rem;
  }
}

/* Projects Section */
.projects {
  padding: 6rem 0;
  background: var(--dark-gray);
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--content-max);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.project-card {
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(74, 158, 255, 0.3);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card.reveal-on-scroll:nth-child(1) { --reveal-delay: 0ms; }
.project-card.reveal-on-scroll:nth-child(2) { --reveal-delay: 90ms; }
.project-card.reveal-on-scroll:nth-child(3) { --reveal-delay: 180ms; }

.project-card-link {
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  border-color: rgba(74, 158, 255, 0.6);
  box-shadow: 0 12px 40px rgba(74, 158, 255, 0.25);
  transform: translateY(-8px);
}

.project-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.15), rgba(37, 99, 235, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(74, 158, 255, 0.2);
}

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(74, 158, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image::before {
  opacity: 1;
}

.project-icon {
  width: 80px;
  height: 80px;
  color: var(--light-blue);
  z-index: 1;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-icon svg {
  width: 100%;
  height: 100%;
}

.project-card:hover .project-icon {
  transform: scale(1.1) rotate(5deg);
}

.project-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-type {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--light-blue);
  background: rgba(74, 158, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.project-description {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(74, 158, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(74, 158, 255, 0.1);
  border-color: rgba(74, 158, 255, 0.5);
}

@media (max-width: 768px) {
  .projects {
    padding: 4rem 0;
  }
  
  .projects-grid {
    gap: 1.5rem;
  }
  
  .project-content {
    padding: 2rem;
  }
  
  .project-image {
    height: 180px;
  }
}

/* Testimonials Section */
.testimonials {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--dark-gray) 0%, var(--black) 100%);
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 2rem;
  max-width: var(--content-max);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

.testimonial-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
}

.testimonial-card.reveal-on-scroll:nth-child(1) { --reveal-delay: 0ms; }
.testimonial-card.reveal-on-scroll:nth-child(2) { --reveal-delay: 100ms; }

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  color: rgba(74, 158, 255, 0.2);
  font-family: serif;
  line-height: 1;
}

.testimonial-card:hover {
  border-color: rgba(74, 158, 255, 0.5);
  box-shadow: 0 8px 32px rgba(74, 158, 255, 0.2);
  transform: translateY(-5px);
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.testimonial-rating .star {
  color: var(--light-blue);
  font-size: 1.25rem;
}

.testimonial-content {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-light);
}

.author-role {
  font-size: 0.875rem;
  color: var(--text-gray);
}

@media (max-width: 768px) {
  .testimonials {
    padding: 4rem 0;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonial-card {
    padding: 2rem;
  }
  
  .testimonial-content {
    font-size: 1rem;
  }
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: var(--black);
  position: relative;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: 3rem;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}

@media (max-width: 968px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-brand {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(74, 158, 255, 0.15);
}

.contact-brand-logo {
  height: auto;
  width: min(220px, 100%);
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
  display: block;
  margin-bottom: 1rem;
}

.contact-brand-tagline {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-gray);
  max-width: 28rem;
}

.contact-info h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.contact-description {
  font-size: 1.125rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.contact-details {
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.125rem;
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(74, 158, 255, 0.2);
}

.contact-item:hover {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(74, 158, 255, 0.4);
  transform: translateX(5px);
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.social-links h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(74, 158, 255, 0.4);
  transform: scale(1.1);
}

.social-icon {
  width: 24px;
  height: 24px;
  color: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

.social-name {
  font-weight: 500;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: 12px;
  color: var(--text-light);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--light-blue);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
  color: var(--white);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(74, 158, 255, 0.3);
  margin-top: 0.5rem;
  font-family: inherit;
}

.submit-button:hover {
  box-shadow: 0 6px 30px rgba(74, 158, 255, 0.5);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .contact-content {
    padding: 0 1rem;
  }
  
  .social-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 4rem 0;
  }
  
  .contact-info h3 {
    font-size: 1.75rem;
  }
  
  .contact-description {
    font-size: 1rem;
  }
}

