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

body {
  font-family: 'Poppins', sans-serif;
  background: #f5f7fa;
  color: #333;
}

/* HEADER */
header {
  background: #004080;
  padding: 20px 0;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.container {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.container h1 {
  font-size: 28px;
}

nav {
  display: flex;
  align-items: center;
}

/* Navigation Links */
nav a {
  color: #fff;
  margin-left: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffdd57;
}
/* Login button background only */
.login-btn {
  background-color: white; /* white background */
  color: #000000;
  border-radius: 5px;
 padding: 10px;
}

.login-btn:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 150px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 5px;
  overflow: hidden;
}

.dropdown-content a {
  display: block;
  padding: 10px;
  color: #000;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
  display: block;
}














/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.burger div {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: all 0.3s ease;
}

/* Responsive Nav */
@media screen and (max-width: 768px) {
  header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 10px;
  }

  .container {
    flex-direction: row;
    justify-content: space-between;
    /* logo left, burger right */
    align-items: center;
  }

  header nav.active {
    display: flex;
  }

  .burger {
    display: flex;
    margin-left: auto;
    /* pushes burger to the far right */

  }

  header nav a {
    margin: 10px 0;
  }
}

/* Burger Animation */
.burger.toggle div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.toggle div:nth-child(2) {
  opacity: 0;
}

.burger.toggle div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* HERO */
.hero {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(145deg, #e6f0ff, #f8fbff);
  box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid #ddd;
}

.hero h2 {
  font-size: 30px;
  margin-bottom: 15px;
  color: #004080;
}

.hero p {
  font-size: 18px;
  color: #333;
}

/* SCORE SECTION (optional full center) */
.score-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 10vh;
  /* adjust vertical height */
  background: #f5f7fa;
  /* optional */
  padding: 20px 20px;
}

/* SCORE BOX */
.score-box {
  background-color: #2f353b;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  color: #f1f1f1;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  position: relative;
  /* for new-badge */
}

.score-box h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

/* Badge */
.new-badge {
  position: absolute;
  top: -18px;
  left: -18px;
  width: 85px;
  height: auto;
  z-index: 5;
  pointer-events: none;
}

/* CALCULATOR BOX */
.calculator-box {
  background-color: #ffffff;
  padding: 20px;
  border: 2px solid #ff4d4d;
  border-radius: 8px;
  color: #000;
  font-size: 22px;
  font-weight: 600;
  display: inline-block;
  transition: 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.calculator-box:hover {
  background-color: #fef6f6;
  transform: scale(1.02);
  cursor: pointer;
}

.calculator-box span {
  margin: 0 10px;
}

@media (max-width: 480px) {
  .calculator-box {
    font-size: 1.2rem;
    /* smaller font for mobile */
    display: inline-flex;
    /* keep items inline */
    align-items: center;
    /* vertically center spans and text */
    gap: 1px;
    /* small space between icons and text */
    white-space: nowrap;
    /* prevent wrapping to next line */
    padding: 8px 10px;
    /* adjust padding */
  }

  .calculator-box span {
    font-size: 1.1rem;
    /* optional – size badges slightly */
    line-height: 1;
    /* keep consistent vertical alignment */
    padding: 8px 10px;
    /* adjust padding */

  }

  .score-section h3 {
    font-size: 1rem;
    /* heading smaller if needed */
  }
}


/* TOOLS */
.tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 20px;
  gap: 30px;
}

.tool-card {
  background: #fff;
  border: 2px solid #1a1919;
  width: 300px;
  padding: 25px 20px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  /* remove underline */

}

.tool-card h3 {
  font-size: 20px;
  color: #004080;
  margin-bottom: 10px;
}

.tool-card p {
  font-size: 15px;
  color: #555;
}

.tool-card::before {
  content: "✨";
  font-size: 24px;
  position: absolute;
  top: -10px;
  right: -10px;
  transform: rotate(15deg);
  opacity: 0.3;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: #0073e6;
}

@media screen and (max-width: 768px) {

  /* Make tools container use grid for 2 columns */
  .tools {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 cards per row */
    gap: 10px;
    justify-items: center;
    /* center the cards */
  }

  .tools h3 {
    font-size: 1rem;
    text-align: center;
  }

  /* Adjust tool-card width so they fit nicely */
  .tool-card {
    width: 100%;
     transform: translateY(1px); /* start slightly down */
  transition: all 0.6s ease-out;
}

.tool-card.animate {
  opacity: 1;
  transform: translateY(0);
}
}


/* VIDEO SECTION */
.video-section {
  margin-top: 50px;
  text-align: center;
  color: #f1f1f1;
}

.video-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #ffcc00;
}

.video-container {
  position: relative;
  height: 400px;
  overflow: hidden;
  max-width: 800px;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

/* Make video responsive */
@media screen and (max-width: 768px) {
  .video-section {
    margin-left: 15px;
    margin-right: 15px;
  }
}


/* CALCULATOR FORM */
.calculator-form {
  background-color: #1e2329;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  margin: 30px auto;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.calculator-form input {
  width: 100%;
  padding: 8px;
  margin: 6px 0 12px;
  border-radius: 4px;
  border: none;
}

.calculator-form button {
  padding: 10px 20px;
  background-color: #ffcc00;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 25px;
  background: #004080;
  color: white;
  font-size: 14px;
  margin-top: 50px;
  border-top: 4px solid #ffdd57;
}