/* ---------------------------
   BASE
   --------------------------- */

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

body {
  font-family: 'Poppins', sans-serif;
  color: white;
  background: linear-gradient(270deg, #1c1c1c, #2a2a2a, #1c1c1c);
  background-size: 600% 600%;
  animation: waterflow 20s ease infinite;
  background-attachment: fixed;
  line-height: 1.6;
}

/* Mobile fix: disable fixed background */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

/* Background animation */
@keyframes waterflow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  margin: 2rem 0;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.tagline {
  font-weight: 600;
  color: #ccc;
  margin-bottom: 1rem;
}

/* Project Cards */
.cards {
  margin-top: 2.5rem;
}
.cards h2 {
  margin-bottom: 1rem;
}

.project-list {
  list-style: none;
}

.project-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
  border-color: #ffffff;
}

.project-title {
  font-weight: 600;
  font-size: 1.2rem;
}

.project-desc {
  font-size: 0.9rem;
  color: #aaa;
}

.status {
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

/* Visit Button */
.visit-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  font-size: 0.95rem;
  background: #0078ff;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.25s;
  border: none;
  cursor: pointer;
}
.visit-btn:hover {
  background: #005fcc;
}

/* Footer */
.site-footer {
  text-align: center;
  margin-top: 2.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: #ccc;
}

/* ---------------------------
   SIDEBAR & HAMBURGER
   --------------------------- */

/* Sidebar */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0; left: 0;
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-x: hidden;
  transition: width 0.28s ease;
  padding-top: 60px;
  z-index: 1000;
}

.sidebar a {
  padding: 12px 25px;
  text-decoration: none;
  font-size: 18px;
  color: #ddd;
  display: block;
  transition: 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.sidebar a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.03);
}

.sidebar.open {
  width: 250px;
}

/* Hamburger - span lines */
.hamburger {
  position: fixed;
  top: 20px;
  left: 20px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 6px 0;
  background: white;
  transition: transform 0.35s, opacity 0.25s;
  border-radius: 2px;
}
.hamburger:focus {
  outline: 2px solid rgba(255,255,255,0.12);
}

/* Transform to "X" */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0.6);
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------------------------
   AGE CALCULATOR
   --------------------------- */

.calculator-card {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
}

input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 12px;
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 8px;
  margin-top: 6px;
  font-size: 1rem;
}

/* date icon contrast */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.2);
}

/* hint text */
.hint {
  display: block;
  margin-top: 6px;
  color: #bfc9d6;
  font-size: 0.85rem;
}

/* result area */
.result {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* pills row */
.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* single pill */
.pill {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: #eaf6ff;
  min-width: 90px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25), inset 0 -2px 0 rgba(255,255,255,0.02);
}

/* descriptive line */
.result .msg {
  color: #cde6ff;
  font-weight: 600;
}

/* responsive tweaks */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .container {
    padding: 1rem;
  }
  .hamburger span {
    width: 24px;
    height: 3px;
  }
  .pill {
    min-width: 70px;
    font-size: 0.95rem;
    padding: 8px 10px;
  }
}