body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #f5f7fa;
  color: #222;
  /* Content visible by default — no opacity:0 — progressive enhancement only */
}

body.loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Animation classes — motion enabled by default, disabled under prefers-reduced-motion */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in {
  animation: slideInUp 0.6s ease forwards;
}

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

/* Enhanced card animations */
.card {
  animation: fadeInCard 0.8s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

@keyframes fadeInCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  body, body.loaded {
    transition: none !important;
  }
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .fade-in.visible {
    opacity: 1;
    transform: none;
  }
  .animate-in {
    animation: none !important;
    opacity: 1;
  }
  .card {
    animation: none !important;
    opacity: 1 !important;
  }
}

header.hero {
  background: linear-gradient(135deg, #1a237e 60%, #00bcd4 100%);
  color: #fff;
  text-align: center;
  padding: 80px 20px 60px 20px;
  position: relative;
  min-height: 420px;
  overflow: hidden;
}
.logo {
  width: 120px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 16px #00bcd4aa);
}
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.2rem;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
  font-weight: 700;
  text-shadow: 0 2px 16px #1a237e44;
}
.tagline {
  font-size: 1.5rem;
  margin-bottom: 32px;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #00bcd444;
}
.cta-btn, .glow-btn {
  background: linear-gradient(90deg, #00bcd4 60%, #1a237e 100%);
  color: #fff;
  padding: 16px 40px;
  border: none;
  border-radius: 30px;
  font-size: 1.15rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 4px 24px #00bcd455, 0 1.5px 8px #1a237e22;
  cursor: pointer;
  margin-top: 10px;
}
.cta-btn:hover, .glow-btn:hover {
  background: linear-gradient(90deg, #1a237e 60%, #00bcd4 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 32px #00bcd488, 0 2px 16px #1a237e33;
}
.cta-btn:focus-visible, .glow-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #00bcd4;
}

.main-nav {
  background: #fff8;
  box-shadow: 0 2px 16px #1a237e11;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}
.main-nav li {
  margin: 0 22px;
}
.main-nav a {
  color: #1a237e;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  padding: 20px 0;
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: #00bcd4;
  border-bottom: 2px solid #00bcd4;
}

section {
  padding: 70px 20px 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  color: #1a237e;
  margin-bottom: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}

.about p {
  font-size: 1.18rem;
  max-width: 700px;
  margin: 0 auto;
  color: #e0e0e0;
}

.services .service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: center;
  margin-top: 24px;
}
.card {
  background: rgba(255,255,255,0.65);
  border-radius: 22px;
  box-shadow: 0 4px 32px #1a237e18, 0 1.5px 8px #00bcd422;
  padding: 38px 28px 30px 28px;
  width: 240px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  backdrop-filter: blur(8px);
  border: 1.5px solid #e0e7efcc;
  position: relative;
}
.card:hover {
  transform: translateY(-10px) scale(1.045);
  box-shadow: 0 12px 48px #00bcd455, 0 4px 24px #1a237e22;
  background: rgba(255,255,255,0.85);
}
.card img {
  width: 64px;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 8px #00bcd433);
}
.card h3 {
  font-size: 1.22rem;
  color: #00bcd4;
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
.card p {
  font-size: 1.05rem;
  color: #444b;
}

.infinite-connection {
  position: relative;
  background: rgba(224,231,239,0.7);
  border-radius: 22px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 24px #1a237e11;
  backdrop-filter: blur(6px);
  margin-top: 40px;
}
.fractal-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-radial-gradient(circle at 50% 50%, #00bcd4 0, #1a237e 10%, transparent 12%, transparent 100%);
  opacity: 0.06;
  z-index: 0;
}
.infinite-connection h2, .infinite-connection p {
  position: relative;
  z-index: 1;
}
.infinite-connection p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: #222b;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 420px;
  margin: 0 auto 28px auto;
  background: rgba(255,255,255,0.7);
  border-radius: 16px;
  box-shadow: 0 2px 16px #00bcd411;
  padding: 28px 20px 18px 20px;
  backdrop-filter: blur(4px);
}
.contact input, .contact textarea, .contact select {
  padding: 14px;
  border-radius: 8px;
  border: 1.5px solid #b0bec5;
  font-size: 1.05rem;
  font-family: inherit;
  background: #f5f7faee;
  transition: border 0.2s;
}

.contact select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300bcd4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}
.contact input:focus, .contact textarea:focus, .contact select:focus {
  border: 1.5px solid #00bcd4;
  outline: none;
}
.contact button {
  background: linear-gradient(90deg, #1a237e 60%, #00bcd4 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 1.08rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px #00bcd422;
}
.contact button:hover {
  background: linear-gradient(90deg, #00bcd4 60%, #1a237e 100%);
  box-shadow: 0 4px 24px #00bcd444;
}
.contact-info {
  text-align: center;
  color: #1a237e;
  font-size: 1.05rem;
  background: rgba(255,255,255,0.5);
  border-radius: 10px;
  padding: 10px 0;
  margin-top: 8px;
}

footer {
  background: linear-gradient(90deg, #1a237e 60%, #00bcd4 100%);
  color: #fff;
  text-align: center;
  padding: 22px 0 18px 0;
  font-size: 1.08rem;
  letter-spacing: 1px;
  margin-top: 50px;
  box-shadow: 0 -2px 16px #1a237e22;
}

@media (max-width: 1100px) {
  .services .service-cards {
    gap: 24px;
  }
  .card {
    width: 44vw;
    min-width: 220px;
    max-width: 320px;
  }
}
@media (max-width: 900px) {
  .services .service-cards {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .card {
    width: 90%;
    margin-bottom: 18px;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav li {
    margin: 0 0 0 0;
  }
  section {
    padding: 48px 8px 32px 8px;
  }
}
@media (max-width: 600px) {
  .logo {
    width: 80px;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .tagline {
    font-size: 1.05rem;
  }
  .card {
    padding: 22px 8px 18px 8px;
  }
  .main-nav a {
    font-size: 1rem;
    padding: 12px 0;
  }
  section h2 {
    font-size: 1.3rem;
  }
} 