/* Global resets and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Rajdhani', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

:root {
  --card-surface: #e3f2ff;
  --card-border: #c6ddff;
  --card-heading: #4d7cfe;
  --card-text: #333333;
  --contact-link: #0a192f;
  --contact-link-hover: #4d7cfe;
}

.cards-page {
  --card-surface: #0b1f3a;
  --card-border: #07162a;
  --card-heading: #ffffff;
  --card-text: #f1f5ff;
  --contact-link: #ffffff;
  --contact-link-hover: #c9d9ff;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Header and navigation styles */
header {
  position: relative;
  height: 70vh;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: rgba(255, 255, 255, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .logo img {
  height: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: #0a192f;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #4d7cfe;
}

/* Hero section styles */
.hero {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.cta-button {
  background-color: #4d7cfe;
  color: #ffffff;
  padding: 10px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #375fd7;
}

/* Main content styles */
main {
  padding: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

main h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0a192f;
  text-align: center;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--card-surface);
  color: var(--card-text);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.service-card h3,
.about-card h3,
.contact-card h3 {
  color: var(--card-heading);
}

.service-card h3,
.about-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
}

#about, #contact {
  margin-top: 60px;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.about-card {
  background-color: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: var(--card-text);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  text-align: center;
}

.contact-card {
  background-color: var(--card-surface);
  color: var(--card-text);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
  margin-bottom: 8px;
}

.contact-card p {
  margin-bottom: 12px;
}

.contact-link {
  color: var(--contact-link);
  font-weight: 700;
  text-decoration: none;
}

.contact-link:hover {
  color: var(--contact-link-hover);
}

/* Footer styles */
footer {
  background-color: #0a192f;
  color: #ffffff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* Responsive design */
@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .navbar {
    flex-direction: column;
    gap: 10px;
  }
}
