* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Arial', sans-serif;
}

/* CSS Custom Properties */
:root {
  --vh: 1vh;
  --header-height: 80px;
}

body {
  line-height: 1.7;
  color: #4a4a4a;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.9;
}

.logo svg {
  margin-right: 12px;
  flex-shrink: 0;
}

.logo-text-container {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2.5rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #e0e0e0;
}

.hero {
  /* Hero background with overlay and responsive height */
  background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)),
    url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NXx8dGVjaG5vbG9neXxlbnwwfHwwfHx8MA%3D%3D&auto=format&fit=crop&w=1400&q=80')
      no-repeat center center/cover;
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  padding-top: var(--header-height);
  padding-bottom: 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-logo {
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  text-wrap: balance;
}

.btn {
  display: inline-block;
  background: #52a8f0;
  color: white;
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0 4px 10px rgba(82, 168, 240, 0.3);
}

.btn:hover {
  background: #3e91e0;
  transform: translateY(-2px);
}

section {
  padding: 6rem 0;
}

/* Alternating section backgrounds */
section:nth-child(even) {
  background-color: #f8f9fa;
}

section h2 {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: #34495e;
  position: relative;
  padding-bottom: 1rem;
}

/* Decorative underline for section titles */
section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #52a8f0;
  border-radius: 2px;
}

.about-content,
.contact-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.about-text,
.contact-form {
  flex: 1;
  min-width: 300px;
  padding: 1rem;
}

.about-image,
.contact-info {
  flex: 1;
  min-width: 300px;
  padding: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 15px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(82, 168, 240, 0.15);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #52a8f0, #85c1e9, #bdc3c7);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  border: 2px solid #52a8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #52a8f0;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: rotate(360deg);
}

.service-card h3 {
  font-size: 1.5rem;
  color: #34495e;
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-card p {
  font-size: 1rem;
  color: #555;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.team-member {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(82, 168, 240, 0.15);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.team-member::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  transform: scale(0);
  transition: transform 0.6s ease;
}

.team-member:hover::before {
  transform: scale(1);
}

.team-member:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(82, 168, 240, 0.3);
}

.team-member-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 2px solid #52a8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #52a8f0;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.team-member h3 {
  font-size: 1.4rem;
  color: #34495e;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.team-member .role {
  font-size: 1rem;
  color: #52a8f0;
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-member .description {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-wrap: balance;
}

form {
  display: grid;
  gap: 1.5rem;
}

input,
textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #52a8f0;
  box-shadow: 0 0 0 0.2rem rgba(82, 168, 240, 0.25);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

#contact .contact-info p {
  font-size: 1.2rem;
  font-weight: 500;
  color: #34495e;
}

#contact .contact-info a {
  color: #52a8f0;
  text-decoration: none;
  transition: color 0.3s;
}

#contact .contact-info a:hover {
  color: #3e91e0;
}

footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  text-align: center;
  padding: 3rem 0;
}

footer p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
footer p:last-child {
  margin-bottom: 0;
}

/* Mobile Layout Adjustments */
@media (max-width: 768px) {
  :root {
    --header-height: 100px;
  }

  .header-content {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0;
  }
  .logo {
    margin-bottom: 0.5rem;
  }

  nav ul {
    margin-top: 0.5rem;
    justify-content: center;
  }

  nav ul li {
    margin: 0 1rem;
  }

  .hero {
    min-height: calc(var(--vh, 1vh) * 100);
    padding-top: var(--header-height);
    padding-bottom: 3rem;
  }
  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  section {
    padding: 4rem 0;
  }
  section h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
  }
  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Larger touch targets for mobile */
  .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .service-card,
  .team-member {
    padding: 2rem;
  }
}

/* Small Screen Optimizations */
@media (max-width: 480px) {
  :root {
    --header-height: 110px;
  }

  .container {
    width: 95%;
  }

  .logo-text-container {
    font-size: 1.6rem;
  }

  nav ul li {
    margin: 0 0.5rem;
  }

  nav ul li a {
    font-size: 0.9rem;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  section {
    padding: 3rem 0;
  }

  section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .service-card,
  .team-member {
    padding: 1.5rem;
  }
}

/* Tablet Landscape Optimization */
@media (max-width: 1024px) and (orientation: landscape) {
  .hero {
    min-height: calc(var(--vh, 1vh) * 100);
    padding-top: var(--header-height);
    padding-bottom: 2rem;
  }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero {
    background-image: linear-gradient(
        rgba(44, 62, 80, 0.8),
        rgba(44, 62, 80, 0.8)
      ),
      url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NXx8dGVjaG5vbG9neXxlbnwwfHwwfHx8MA%3D%3D&auto=format&fit=crop&w=2400&q=80');
  }
}
