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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #f8fafc;
  --accent: #0ea5e9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.15);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Header */
.header {
  background: var(--gradient);
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

/* Particles Animation */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float var(--duration) infinite linear;
  filter: blur(1px);
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Floating shapes */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: floatShape 20s infinite ease-in-out;
}

.shape:nth-child(odd) {
  animation-direction: reverse;
}

@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) translateX(20px) rotate(120deg);
  }
  66% {
    transform: translateY(30px) translateX(-20px) rotate(240deg);
  }
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.header .subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.header .description {
  font-size: 1.2rem;
  opacity: 0.8;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Logo */
.logo-container {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.company-logo {
  max-height: 220px;
  max-width: 480px;
  height: auto;
  width: auto;
  transition: all 0.4s ease;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6))
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.company-logo:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7))
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 20px rgba(0, 255, 150, 0.8))
    drop-shadow(0 0 40px rgba(0, 255, 150, 0.5))
    drop-shadow(0 0 60px rgba(0, 255, 150, 0.3));
  animation: neonPulse 1.5s ease-in-out infinite alternate;
}

@keyframes neonPulse {
  0% {
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7))
      drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5))
      drop-shadow(0 0 20px rgba(0, 255, 150, 0.8))
      drop-shadow(0 0 40px rgba(0, 255, 150, 0.5))
      drop-shadow(0 0 60px rgba(0, 255, 150, 0.3));
  }
  100% {
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7))
      drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5))
      drop-shadow(0 0 25px rgba(0, 255, 150, 1))
      drop-shadow(0 0 50px rgba(0, 255, 150, 0.7))
      drop-shadow(0 0 75px rgba(0, 255, 150, 0.5));
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--secondary);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transition: height 0.3s ease;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(37, 99, 235, 0.03),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  height: 6px;
}

.card:hover::after {
  opacity: 1;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 20px;
  color: white;
  animation: iconPulse 2s ease-in-out infinite;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.card-icon svg {
  width: 40px;
  height: 40px;
  fill: white;
  stroke: white;
  transition: all 0.3s ease;
}

.card:hover .card-icon svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.5);
  }
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card ul {
  list-style: none;
  padding-left: 0;
}

.card li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Tech Stack */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tech-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border-left: 5px solid var(--primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.tech-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(37, 99, 235, 0.05),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-card:hover {
  transform: translateX(12px) translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-left-width: 8px;
}

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

.tech-card h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: var(--secondary);
  color: var(--text-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.tech-tag:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-card {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: scale(1.05);
}

.benefit-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
}

.benefit-icon svg {
  width: 45px;
  height: 45px;
  fill: white;
  stroke: white;
  transition: all 0.4s ease;
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.5);
}

.benefit-card:hover .benefit-icon svg {
  transform: rotate(10deg) scale(1.1);
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

.benefit-card h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.benefit-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Methodology */
.methodology {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.methodology-step {
  position: relative;
  text-align: center;
  padding: 2rem 1rem;
}

.methodology-step::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.methodology {
  counter-reset: step-counter;
}

.methodology-step h4 {
  margin: 3rem 0 1rem;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.methodology-step p {
  color: var(--text-secondary);
}

/* CTA Section */
.cta {
  background: var(--gradient);
  color: white;
  text-align: center;
  padding: 5rem 2rem;
  margin-top: 5rem;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: white;
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Contact Info */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.contact-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-icon {
  width: 24px;
  height: 24px;
  fill: white;
  stroke: white;
}

/* Responsive */
@media (max-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
  }

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

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .header {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .logo-container {
    margin-bottom: 1.5rem;
  }

  .company-logo {
    max-height: 150px;
    max-width: 350px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .header .subtitle {
    font-size: 1.2rem;
  }

  .header .description {
    font-size: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .tech-card {
    padding: 1.5rem;
  }

  .benefit-card {
    padding: 1.5rem;
  }

  .particles {
    display: none; /* Hide particles on mobile for performance */
  }

  .floating-shapes {
    display: none; /* Hide floating shapes on mobile */
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .header-content {
    padding: 0 1rem;
  }

  .logo-container {
    margin-bottom: 1rem;
  }

  .company-logo {
    max-height: 120px;
    max-width: 280px;
  }

  .header h1 {
    font-size: 1.8rem;
  }

  .header .subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .card {
    padding: 1.2rem;
  }

  .card h3 {
    font-size: 1.3rem;
  }

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

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

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card,
  .tech-card,
  .benefit-card {
    border: 0.5px solid var(--border);
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .particles,
  .floating-shapes {
    display: none;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

.scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

/* Staggered animations */
.card:nth-child(1) {
  animation-delay: 0.1s;
}
.card:nth-child(2) {
  animation-delay: 0.2s;
}
.card:nth-child(3) {
  animation-delay: 0.3s;
}
.card:nth-child(4) {
  animation-delay: 0.4s;
}
.card:nth-child(5) {
  animation-delay: 0.5s;
}
.card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}
