/* ============ Global Styles ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f7f9fc;
  color: #2f3640;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 600;
}

a {
  text-decoration: none;
}

/* ============ Header ============ */
header {
  background: linear-gradient(135deg, #2f3640, #353b48);
  color: #fff;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  font-size: 28px;
  letter-spacing: 1px;
}

nav {
  margin-top: 10px;
}

nav a {
  color: #f5f6fa;
  margin: 0 14px;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #00a8ff;
}

/* ============ Hero Section ============ */
.hero {
  background: url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  padding: 40px 50px;
  border-radius: 15px;
  animation: fadeIn 1.5s ease;
}

.hero h2 {
  font-size: 38px;
  margin-bottom: 12px;
  color: #fff;
}

.hero p {
  font-size: 18px;
  margin-bottom: 25px;
}

.btn {
  background: linear-gradient(135deg, #00a8ff, #0097e6);
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ============ Section ============ */
.section {
  padding: 70px 20px;
  text-align: center;
}

.section h2 {
  font-size: 30px;
  color: #273c75;
  margin-bottom: 25px;
  position: relative;
}

.section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #00a8ff;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ============ Techniques Grid ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  width: 90%;
  max-width: 1200px;
  margin: 40px auto 0;
}

.card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.4s ease;
  text-align: left;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  margin: 15px;
  color: #192a56;
  font-size: 20px;
}

.card p {
  padding: 0 15px 20px;
  color: #444;
}

/* ============ Quiz Section ============ */
.quiz-box {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  margin: 30px auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  animation: fadeIn 1s ease;
}

.option-btn {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  background: #dcdde1;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.option-btn:hover {
  background: #c8d6e5;
  transform: scale(1.02);
}

.result-box {
  margin-top: 25px;
  font-size: 22px;
  font-weight: bold;
  color: #273c75;
}

/* ============ Tracker Section ============ */
.tracker {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 60px);
  gap: 10px;
}

.day {
  background: #f1f2f6;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
}

.day:hover {
  background: #dcdde1;
}

.day.done {
  background: linear-gradient(135deg, #44bd32, #2ecc71);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* ============ Footer ============ */
footer {
  background: linear-gradient(135deg, #2f3640, #353b48);
  color: #f5f6fa;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  margin-top: 40px;
  letter-spacing: 0.3px;
}

/* ============ Animations ============ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 28px;
  }

  .calendar {
    grid-template-columns: repeat(5, 50px);
  }

  .card img {
    height: 160px;
  }
}
