/* === RESET + BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #e0f7fa, #f1f9ff);
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* === SCROLL BAR / PROGRESS === */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: #00b4d8;
  width: 0%;
  z-index: 9999;
}

/* === MAIN NAVBAR === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo {
  font-size: 2rem;
  font-weight: 700;
  color: #0077b6;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: #0077b6;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #0077b6;
  transition: width 0.4s ease;
}
.nav-links a:hover::after {
  width: 100%;
}

/* === SUB NAVBAR === */
.sub-navbar {
  height: 40px;
  background: linear-gradient(90deg, #1e1e2f, #293149);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 64px;
  z-index: 999;
}
.sub-nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.sub-nav-links li a {
  position: relative;
  text-decoration: none;
  color: #e0f7fa;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  transition: all 0.4s ease;
}
.sub-nav-links li a:hover {
  background: rgba(0, 119, 255, 0.15);
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0,183,255,0.25);
}
.sub-nav-links li a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 100%;
  background: rgba(255,255,255,0.08);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 10px;
  transition: transform 0.4s ease;
}
.sub-nav-links li a:hover::before {
  transform: translate(-50%, -50%) scale(1);
}
/* Default: Show sub-navbar on big screens */
.sub-navbar {
  display: flex;
}

/* Mobile: Hide sub-navbar below 768px */
@media (max-width: 768px) {
  .sub-navbar {
    display: none !important;
  }
}

/* === HERO SECTION === */
.hero {
  padding: 3rem 2rem 2.5rem;
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  color: #fff;
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  animation: fadeInUp 0.8s ease forwards;
}
.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease forwards;
}
.btn {
  background-color: #fff;
  color: #0077b6;
  padding: 0.9rem 1.8rem;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300%;
  height: 300%;
  background: rgba(0,183,255,0.15);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  transition: transform 0.4s ease;
  z-index: 0;
}
.btn:hover::after {
  transform: translate(-50%, -50%) scale(1);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  color: #0077b6;
}

/* === CALCULATOR CARDS === */
.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}
.calc-card {
  background: rgba(255,255,255,0.85);
  border-radius: 20px;
  padding: 2rem 1.2rem;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}
.calc-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.calc-card .icon {
  font-size: 2.6rem;
  color: #0077b6;
  margin-bottom: 1rem;
}
.calc-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #023e8a;
}
.calc-card button {
  background-color: #0077b6;
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.calc-card button:hover {
  background-color: #005f8a;
  transform: scale(1.05);
}

/* === CLOCK === */
#navbarClockContainer {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  font-size: 16px;
  color: #fff;
  z-index: 999;
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #023e8a;
  color: #fff;
  font-size: 0.95rem;
}
footer .info-button {
  background-color: #ffffff;
  color: #1E90FF;
  padding: 10px 24px;
  border: 2px solid #1E90FF;
  border-radius: 50px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
footer .info-button:hover {
  background-color: #1E90FF;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* === RESPONSIVE FIXES === */
@media (max-width: 768px) {
  .sub-navbar {
    display: none;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }
}
link[rel="icon"] {
  image-rendering: -webkit-optimize-contrast;
}
.site-footer {
  background-color: #0077b6; /* Deep Blue Background */
  color: #ffffff;            /* White Text */
  padding: 2rem 1.5rem;
  border-top: 1px solid #005f99;
  font-size: 0.8rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1.5rem;
}

.footer-column {
  flex: 1 1 200px;
  min-width: 160px;
  text-align: center;
}

.footer-column h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff; /* Heading also white */
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.3rem;
}

.footer-column a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #90e0ef; /* Soft Hover Effect */
}

.footer-column p {
  line-height: 1.5;
  margin: 0;
  font-size: 0.75rem;
}
@media (max-width: 768px) {
  .footer-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .footer-column {
    flex: 1 1 30%;
    min-width: 140px;
    margin-bottom: 1rem;
    text-align: center;
  }

  .site-footer {
    padding: 1.5rem 0.8rem;
  }
}
