/* CSS Reset and Base Styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
    sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #3182ce;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
}

.skip-link:focus {
  top: 6px;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-logo {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #ffffff, #e0f2fe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.loading-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

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

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  color: #1e40af;
}

.brand-icon {
  font-size: 1.5rem;
}

.brand-text {
  background: linear-gradient(to right, #1e40af, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .brand {
    font-size: 1.5rem;
  }
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  text-decoration: none;
  color: #1e40af;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.header.scrolled .nav-link {
  color: #2563eb;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #3b82f6, #60a5fa);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

.nav-link:hover,
.nav-link:focus {
  color: #3b82f6;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

.hamburger {
  width: 1.5rem;
  height: 2px;
  background: #1e40af;
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 1px;
}

.header.scrolled .hamburger {
  background: #2563eb;
}

.menu-toggle.active .hamburger:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

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

.menu-toggle.active .hamburger:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.nav-mobile {
  display: none;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(10px);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-mobile.active {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-mobile nav {
  padding: 1rem 0;
}

.nav-link-mobile {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #1e40af;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-link-mobile:hover,
.nav-link-mobile:focus {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  border-left-color: #3b82f6;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}

.hero-animations {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.floating-circle {
  position: absolute;
  width: 20rem;
  height: 20rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(3rem);
  animation: float 6s ease-in-out infinite;
}

.circle-1 {
  top: -10rem;
  right: -10rem;
  background: rgba(34, 197, 94, 0.1);
}

.circle-2 {
  bottom: -10rem;
  left: -10rem;
  background: rgba(249, 115, 22, 0.1);
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) scale(1.1);
    opacity: 0.6;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  padding: 2rem 1rem;
  max-width: 80rem;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
  line-height: 1.2;
}

.hero-highlight {
  background: linear-gradient(to right, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-slogan {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.3s both;
  font-style: italic;
}

.hero-description {
  font-size: 1.125rem;
  color: #e0f2fe;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.6s both;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  background: linear-gradient(to right, #22c55e, #16a34a);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out 0.9s both;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(to right, #16a34a, #15803d);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 15px 35px rgba(34, 197, 94, 0.4);
}

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

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .hero-slogan {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }

  .hero-slogan {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1.5rem;
  }
}

/* About Section */
.about {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.about-grid {
  display: grid;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-card {
  padding: 2rem;
  border-radius: 1rem;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-one {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.card-two {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.card-three {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: white;
}

.about-card p {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Services Section */
.services {
  padding: 5rem 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #1e40af, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-description {
  font-size: 1.25rem;
  color: #64748b;
  max-width: 32rem;
  margin: 0 auto 1rem;
}

.section-slogan {
  font-size: 1.125rem;
  color: #1e40af;
  font-weight: 600;
  font-style: italic;
}

.services-grid {
  display: grid;
  gap: 2rem;
}

.service-card {
  padding: 2rem;
  border-radius: 1rem;
  background: white;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

/* Colorful service icons */
.service-card:nth-child(1) .service-icon {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
}
.service-card:nth-child(2) .service-icon {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.service-card:nth-child(3) .service-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.service-card:nth-child(4) .service-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.service-card:nth-child(5) .service-icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.service-card:nth-child(6) .service-icon {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}
.service-card:nth-child(7) .service-icon {
  background: linear-gradient(135deg, #ec4899, #db2777);
}
.service-card:nth-child(8) .service-icon {
  background: linear-gradient(135deg, #84cc16, #65a30d);
}
.service-card:nth-child(9) .service-icon {
  background: linear-gradient(135deg, #f97316, #ea580c);
}
.service-card:nth-child(10) .service-icon {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}
.service-card:nth-child(11) .service-icon {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
}
.service-card:nth-child(12) .service-icon {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #3b82f6, transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.service-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.5rem);
  border-color: #cbd5e0;
}

.service-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #1e293b;
}

.service-card p {
  color: #64748b;
  line-height: 1.6;
}

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

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

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
}

.section-title-white {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: white;
}

.section-description-white {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.section-slogan-white {
  font-size: 1.125rem;
  color: #fbbf24;
  font-weight: 600;
  font-style: italic;
}

.contact-grid {
  display: grid;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.contact-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: white;
}

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

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-label {
  font-weight: 600;
  color: #fbbf24;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover,
.contact-item a:focus {
  color: #fbbf24;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

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

.form-group label {
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-group textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
}

.error-message {
  color: #fed7d7;
  font-size: 0.875rem;
  display: none;
}

.error-message.show {
  display: block;
}

.btn-submit {
  background: linear-gradient(to right, #f59e0b, #d97706);
  color: white;
  font-weight: 600;
  padding: 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-submit:hover,
.btn-submit:focus {
  background: linear-gradient(to right, #d97706, #b45309);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  text-align: center;
  font-weight: 600;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  display: none;
}

.form-message.success {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: block;
}

.form-message.error {
  color: #fed7d7;
  background: rgba(254, 215, 215, 0.1);
  border: 1px solid rgba(254, 215, 215, 0.3);
  display: block;
}

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

  .section-title-white {
    font-size: 3rem;
  }
}

/* Footer */
.footer {
  background: #1e293b;
  color: white;
  padding: 2rem 0;
  border-top: 1px solid #334155;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #3b82f6;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.footer-text {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-slogan {
  font-size: 0.875rem;
  color: #3b82f6;
  font-style: italic;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.5rem;
}

.footer-social a:hover,
.footer-social a:focus {
  color: #3b82f6;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-right {
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover,
.back-to-top:focus {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Responsive Design Improvements */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

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

  .hero-slogan {
    font-size: 1rem;
  }

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

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

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

  .service-card,
  .about-card,
  .contact-card {
    padding: 1.5rem;
  }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::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) {
  .hero-background {
    background: #1e40af;
  }

  .about,
  .services,
  .contact {
    background: #ffffff;
  }

  .service-card,
  .about-card,
  .contact-card {
    border-color: #1e40af;
  }
}

/* Print styles */
@media print {
  .header,
  .back-to-top,
  .loading-screen {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero-background,
  .hero-overlay {
    display: none;
  }
}
