@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --primary: #1a1a2e;
  /* Footer Deep Blue */
  --primary-bright: #1a1a2e;
  /* Same blue for all highlights */
  --secondary: #00d2ff;
  --text: #1a1a2e;
  --text-light: #444466;
  --bg: #fdfdfd;
  --card-bg: #ffffff;
  --glass: rgba(26, 26, 46, 0.9);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 5%;
  background: var(--primary);
  /* Deep Blue like Footer */
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.logo-container {
  background: transparent;
  /* Removed white background box */
  padding: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  box-shadow: none;
  /* Removed white shadow */
  transition: transform 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo img {
  height: 60px;
  /* Big enough but no white box */
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: white;
  /* White links on blue bg */
  font-weight: 600;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.7;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, rgba(0, 21, 219, 0.8), rgba(0, 210, 255, 0.6)), url('./elearning_hero_bg.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 10%;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.6rem;
  max-width: 900px;
  margin-bottom: 3rem;
  font-weight: 300;
  opacity: 0.95;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-primary {
  padding: 1.2rem 3rem;
  background-color: var(--primary-bright);
  /* Brand Blue highlight */
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: scale(1.05) translateY(-5px);
  background-color: white;
  color: var(--primary-bright);
  border: 2px solid var(--primary-bright);
  box-shadow: 0 20px 50px rgba(0, 21, 219, 0.3);
}

/* Sections */
section {
  padding: 100px 10%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-bright);
  /* More visible blue */
  border-radius: 2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Distributed by pairs */
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: white;
  padding: 0;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(26, 26, 46, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  border: 2px solid var(--primary);
  /* Blue border as requested */
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 21, 219, 0.15);
}

.card-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.card-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(26, 26, 46, 0.4));
}

/* Logo badge removed */

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img img {
  transform: scale(1.1);
}

.card-content {
  padding: 2rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* About Section */
.about {
  background-color: #fff;
}

.about-row {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-content {
  flex: 1;
}

.about-img {
  flex: 1;
}

.about-img img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: var(--primary);
  /* Deep Blue matching header */
  color: white;
  padding: 80px 10% 40px;
  text-align: center;
  position: relative;
}

.footer-logo {
  display: inline-block;
  background: transparent;
  padding: 0;
  margin-bottom: 2.5rem;
}

.footer-logo img {
  height: 60px;
  display: block;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--secondary);
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .about-row {
    flex-direction: column;
  }

  nav ul {
    gap: 1rem;
    display: none;
    /* Hide for mobile if we dont have burger, or keep simple */
  }
}