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

body {
  font-family: 'Segoe UI', sans-serif;
  background: url('https://images.unsplash.com/photo-1635179522738-5bf479518f5c?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  background-color: #1b2a4e;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #ffffff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

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

.nav-links li a:hover {
  color: #3498db;
}

/* Centered Glass Cards */
main {
  flex: 1;
  display: flex;
  flex-direction: column; /* stack sections vertically */
  justify-content: flex-start;
  align-items: center;
  padding: 2rem 1rem;
  gap: 3rem;
}

.card-container {
  display: flex;
  flex-direction: row; /* horizontal layout */
  justify-content: center; /* center cards horizontally */
  align-items: center; /* vertically center cards */
  gap: 1.5rem;
  flex-wrap: wrap; /* wrap to next line if too narrow */
  margin-bottom: 3rem;
  max-width: 100%;
}

.card-container .glass-card:not(:first-child) {
  margin-left: 0.5rem; /* small space to separate shadows */
}


.glass-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  width: 300px;
  max-width: 90%;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #fff;
  text-decoration:none ;
}

.glass-card:hover {
  transform: translateY(-5px);
}

.glass-card i {
  font-size: 2.5rem;
  color: #00bcd4;
  margin-bottom: 1rem;
}

.glass-card p {
  font-size: 1.1rem;
  font-weight: 500;
}

.section-header {
  font-size: 2rem;
  margin: 2rem 2rem 1rem;
  text-align: center;
  color: #fff;
}

/* Card title + subtext layout */
.card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.card-subtext {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7); /* subtle dark shadow */
}


/* Hover effect on glass cards */
.glass-card:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Select first two section headers and card-containers to show instantly */
.section-header:nth-of-type(1),
.section-header:nth-of-type(2),
.card-container:nth-of-type(1),
.card-container:nth-of-type(2) {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none !important;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

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


.section-header {
  font-size: 2rem;
  margin: 3rem 0 1rem;
  text-align: center;
  color: #fff;
}



/* Footer */
footer {
  background-color: #1b2a4e;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #ccc;
}
