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

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  align-items: center;
  justify-content: flex-start;    /* start from top instead of centering */
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #EAF3EF 20%, #A8DAD8 80%);
  font-family: 'Fira Sans', sans-serif;
  color: #006373;
  overflow-x: hidden;
  cursor: url('assets/images/cursor-default.png'), default;
  overflow-x: auto;
}

h1, h2, h3 {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 700;
}


/* Main content */
.main-section {
margin-left: 240px; /* space for navbar */
padding: 3rem 5rem;
font-style: italic;
margin-bottom: 150px; /* enough room so text never hides behind waves+footer */
}

.main-section h1 {
margin-left: 5rem;
font-size: 1.8rem;
font-weight: 700;
margin-bottom: 0.5rem;
color: #1e2a38;
}

.main-section h2 {
margin-left: 5rem;
font-size: 1.4rem;
font-weight: 600;
margin-top: 2rem;
margin-bottom: 0.5rem;
color: #2c3e50;
}

.main-section h3 {
margin-left: 5rem;
font-size: 1.2rem;
}

.main-section a {
  cursor: url('assets/images/cursor-tap.png'), pointer;
  color: #0077aa;
  text-decoration: none;
  font-weight: 600;
}

.main-section a:hover {
  text-decoration: underline;
}

.main-section p {
margin-left: 5rem;
}

.main-section ul {
margin-left: 8rem;
}

.main-section h1,
.main-section h2,
.main-section h3 {
  margin-top: 0.5rem;      /* smaller top margin */
  margin-bottom: 0.5rem;   /* consistent spacing */
  line-height: 1.3;        /* keeps it compact */
}


.main-section p {
margin-bottom: 1.5rem;
font-size: 1rem;
text-align: justify;
}

.header-logos {
  display: flex;
  justify-content: center; /* center logos horizontally */
  align-items: center;      /* vertically align logos if sizes differ */
  gap: 1.5rem;              /* space between logos */
  margin-bottom: 2rem;      /* push content below */
}

.header-logos img {
  max-height: 40%;
  width: 40%;              /* keep proportions instead of forcing width */
}

.project-info {
  text-align: center;   /* center text under logos */
  margin: 0 auto;
}

.project-info a {
  color: #0077aa;
  text-decoration: none;
  font-weight: 600;
}

.project-info a:hover {
  text-decoration: underline;
}

/*  text in awsmmm block */
.text-block {
  background: #ffffff;
  border: 2px solid #d0d8df;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-left: 5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.text-block h2,
.text-block h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.text-block p {
  margin-bottom: 0.8rem;
  text-align: justify;
}

/* code block */
.code-block {
  background: #ffffff;          /* white background */
  color: #2d2d2d;               /* default dark text */
  font-family: "Fira Code", monospace;
  font-size: 0.95rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  border: 1px solid #d0d8df;
  overflow-x: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-left: 5rem;
}

.code-block code {
  white-space: pre;
}

/* syntax highlighting */
.code-block .comment { color: #6a9955; font-style: italic; }  /* green */
.code-block .string  { color: #a31515; }                      /* red */
.code-block .number  { color: #098658; }                      /* teal */
.code-block .var     { color: #267f99; }                      /* blue */
.code-block .class   { color: #795e26; font-weight: bold; }   /* brownish */
.code-block .bool    { color: #0000ff; font-weight: bold; }   /* bright blue */

/* deliverrables block */
.deliverables-block {
  margin: 2rem ;
  text-align: center;
}

.media-pair {
  display: flex;
  justify-content: center;
  gap: 1.5rem;          /* spacing between video and image */
  flex-wrap: wrap;      /* allows stacking on small screens */
}

.media-pair video,
.media-pair img {
  max-width: 45%;       /* each takes ~half the width */
  height: auto;
  border: 2px solid #d0d8df;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.caption {
  margin-left: 100%;
  margin-top: 1rem;
  font-style: italic;
  font-size: 0.95rem;
  color: #444;
}

/* code testing , credits , performance block */
.quality-testing-section {
  font-style: italic;
}

/* Section title */
.qt-title {
  margin-left: 5rem;
  font-size: 1.8rem;
  font-weight: 700;
}

/* Subtitles */
.qt-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
}

/* Feature lists */
.qt-list {
  list-style-type: disc;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Performance metrics table */
.qt-metrics-table {
  width: 80%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #1a232c;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  margin-left:7rem;
}

.qt-metrics-table thead {
  background-color: #f0f4f8;
}

.qt-metrics-table th,
.qt-metrics-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #1a232c;
}

.qt-metrics-table tr:last-child td {
  border-bottom: none;
}

/* Alternate row shading for readability */
.qt-metrics-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .quality-testing-section {
    padding: 2rem 1.5rem;
    margin-left: 0;
  }

  .qt-metrics-table th,
  .qt-metrics-table td {
    padding: 0.5rem 0.75rem;
  }
}


/* ----------------
  Wave Layers
------------------- */
.waves-section {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px; /* Increased to accommodate wave height */
  z-index: 1;
  pointer-events: none; /* Allow clicks to pass through */
  /* Add background to hide text behind */
  background: linear-gradient(180deg, transparent 0%, #A8DAD8 30%, #A8DAD8 20%);
}


.wave {
  position: absolute;   /* instead of absolute */
  left: 0;
  width: 200%;
  height: 180px;
  background-repeat: repeat-x;
  bottom: 0;
  z-index: 1;
  opacity: 0.6;
  background-size: contain;
  pointer-events: none; /* so clicks pass through */
}


/* --------------------
   Wave Layers
-------------------- */
.wave1 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='180'><path d='M0 80 Q 60 120, 120 80 T 240 80 T 360 80 T 480 80 T 600 80 T 720 80 T 840 80 T 960 80 T 1200 80' stroke='%23B35A20' stroke-width='4' fill='transparent'/></svg>");
  animation: waveMove 12s linear infinite;
  opacity: 0.7;
  bottom: 0;
}

.wave2 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='180'><path d='M0 100 Q 60 140, 120 100 T 240 100 T 360 100 T 480 100 T 600 100 T 720 100 T 840 100 T 960 100 T 1200 100' stroke='%23E8891D' stroke-width='4' fill='transparent'/></svg>");
  bottom: 25px;
  opacity: 0.5;
  animation: waveMove 18s linear infinite reverse;
}

.wave3 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='180'><path d='M0 120 Q 60 160, 120 120 T 240 120 T 360 120 T 480 120 T 600 120 T 720 120 T 840 120 T 960 120 T 1200 120' stroke='%2305A3A4' stroke-width='4' fill='transparent'/></svg>");
  bottom: 45px;
  opacity: 0.45;
  animation: waveMove 25s linear infinite;
}

/* --------------------
   Animations
-------------------- */
@keyframes waveMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------
Navbar + Music visulizer
------------------- */
.navbar {
  position: fixed;
  height: 60%;  
  top: 40%;
  left: 40px;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* background-color: white; */
}

.navbar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;  /* reduced bottom margin */
}

.navbar li {
  margin: 0.4rem 0;    /* reduced spacing between items */
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  cursor: url('assets/images/cursor-tap.png'), pointer;
}

.navbar li a {
  color: #00454F;
  text-decoration: none; /* remove default underline */
  cursor: url('assets/images/cursor-tap.png'), pointer;
  transition: color 0.3s, text-decoration-color 0.3s;
}

.navbar li a:hover {
  color: #0077aa;       /* change color on hover */
  text-decoration: underline;
  text-decoration-color: #0077aa; /* underline color */
}

.navbar, .mobile-nav {
  max-width: 100%;
  overflow-x: hidden;
}

.mobile-note {
  text-align: center;
  color: #006373;
  font-size: 0.9rem;
  margin: 1.5rem 1rem 0.5rem;
  padding: 0.8rem;
  background: rgba(0, 99, 115, 0.1);
  border-radius: 8px;
  border-left: 3px solid #E8891D;
  line-height: 1.4;
}

/* Visualizer under navbar */
#visualizer {
  position: absolute;
  bottom: 0;   /* small spacing from bottom */
  left: 5px;     /* small spacing from left */
  margin-top: 20px; 
  margin-left: 0;
  width: 120px;
  height: 70px;  /* smaller */
  /* background-color: black; */
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.mobile-nav .music-controls {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}


#playPauseBtn {
  background: #00454F;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: url('assets/images/cursor-tap.png'), pointer;
}

#playPauseBtn svg {
  width: 20px;
  height: 20px;
}

#toggleMusic {
  border: none;
  background: #E8891D;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: url('assets/images/cursor-tap.png'), pointer;
  transition: background 0.3s;
}

#toggleMusic:hover {
  background: #B35A20;
}

/* -------------
Footer styling 
---------*/

.footer {
  position: fixed;          /* keeps it fixed */
  bottom: 0;                /* stick to bottom */
  left: 0;
  width: 100%;              /* full width */
  text-align: center;
  padding: 10px;
  background: transparent;  /* transparent so waves show */
  font-family: "Fira Sans", sans-serif;
  font-size: 15px;
  color: #444;
  z-index: 1  ;              /* ensure it shows above content */
  /* background-color: green; */
}


.footer .crafted a{
  font-style: italic;
  color: #666;
  text-decoration: none;
  color: #0077b6; /* deep ocean blue */
  font-weight: 500;
  cursor: url('assets/images/cursor-tap.png'), pointer;
}

.footer-icons {
  margin: 10px 0;
}

.footer-icons .icon {
  width: 28px;
  height: 28px;
  margin: 0 12px;
  filter: grayscale(40%);
  opacity: 0.8;
  transition: all 0.25s ease;
}

.footer-icons .icon:hover {
  transform: scale(1.15);
  filter: grayscale(0%);
  opacity: 1;
}

.footer .credits {
  font-size: 14px;
  color: #555;
}

.footer .credits a {
  text-decoration: none;
  color: #0077b6; /* deep ocean blue */
  font-weight: 500;
  cursor: url('assets/images/cursor-tap.png'), pointer;
}

.footer .credits a:hover {
  text-decoration: underline;
  color: #0096c7;
}

.footer .music-note {
  color: #9c27b0; /* muted purple, softer than the neon look */
  margin-right: 6px;
}

.credits{
  margin-top: 5px;
}


/* -------------
Timeline container
---------------- *//* Timeline Container */
.timeline-container {
  position: relative;
  margin: 50px auto;
  width: 80%;
  font-family: Arial, sans-serif;
  color: #05A3A4;
}

/* Header stats */
.timeline-header {
  text-align: center;
  margin-bottom: 50px;
}
.timeline-header h1 {
  color: #05A3A4;
  margin-bottom: 10px;
}
.timeline-header p {
  color: #333;
  font-size: 14px;
  margin-bottom: 20px;
}
.timeline-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 24px;
  font-weight: bold;
  color: #05A3A4;
}
.stat-label {
  font-size: 12px;
  color: #666;
}

/* Timeline vertical line */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 2px;
  background: #05A3A4;
}
.timeline-line::before {
  content: "🟥";
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 18px;
  font-style: normal;
}
.timeline-line::after {
  content: "✅";
  position: absolute;
  bottom: -20px;
  left: -10px;
  font-size: 18px;
  font-style: normal;
}

/* Timeline Item */
.timeline-item {
  position: relative;
  margin: 40px 0;
  padding-left: 80px;
}

/* Dot */
.timeline-dot {
  position: absolute;
  left: 15px;
  top: 15px;
  background: #fff;
  border: 2px solid #05A3A4;
  border-radius: 50%;
  padding: 8px;
  font-size: 18px;
  cursor: url('assets/images/cursor-tap.png'), pointer;
  transition: transform 0.3s;
  font-style: normal;
}
.timeline-dot:hover {
  transform: scale(1.1);
}

/* Content wrapper */
.timeline-content {
  cursor: url('assets/images/cursor-tap.png'), pointer;
  border: 2px solid #05A3A4;
  border-radius: 10px;
  padding: 15px;
  background: #fff;
  transition: all 0.3s ease-in-out;
}

/* Header always visible */
.content-header {
  display: flex;
  align-items: center;
  gap: 15px;
  font-style: normal;
}
.content-icon {
  font-size: 22px;
  font-style: normal;
}
.content-title h3 {
  margin: 0;
  font-size: 18px;
  color: #05A3A4;
}
.content-date {
  font-size: 13px;
  color: #555;
}


/* Hidden by default */
.expanded-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, margin 0.5s ease;
  margin-top: 0;
}
.timeline-item.open .expanded-content {
  max-height: 500px; /* enough to show full text */
  margin-top: 15px;
}

/* Tags */
.content-tags {
  margin-top: 10px;
}
.tag {
  display: inline-block;
  background: #e8911d;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  margin: 3px;
  border-radius: 5px;
}

/* ---------
confetti
---------- */

.content-badge {
  font-size: 14px;
  font-weight: bold;
  margin-top: 5px;
  color: #fff;
  background: #b35820;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-block;
  justify-items: center;
  align-items: center;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(7, 5, 70, 0.4);
  animation: pulse 2s infinite;
  min-width: 180px;
  text-align: center;
  cursor: url('assets/images/cursor-tap.png'), pointer;
}

.content-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px ;
  background: #E8891D ;
}

.content-badge:active {
  transform: scale(0.95);
}

@keyframes pulse {
  0%, 100% {
      box-shadow: 0 2px 8px , #E8891D;
  }
  50% {
      box-shadow: 0 2px 20px , #e8911d;
  }
}


/* Confetti styles */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 1000;
}

.confetti-square {
  background: #FFD700;
}

.confetti-circle {
  background: #ed0000;
  border-radius: 50%;
}

.confetti-triangle {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 8px solid #2e026b;
}

.confetti-star {
  background: #03a218;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

@keyframes confetti-fall {
  0% {
      transform: translateY(-100vh) rotate(0deg);
      opacity: 1;
  }
  100% {
      transform: translateY(100vh) rotate(720deg);
      opacity: 0;
  }
}

/* ---------
Blog tiles
---------- */

.section-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: space-between; /* distribute tiles neatly */
  padding: 1rem;
}


.blog-tile {
  cursor: url('assets/images/cursor-tap.png'), pointer;
  position: relative; /* so the circle can be positioned inside */
  background: #ffffff;
  border: 2px solid #05A3A4;   /* Niagara turquoise accent */
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  margin: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex: 1 1 100%; /* makes 2 tiles sit side by side */
  margin-left: 5rem;
}

.blog-image {
  cursor: url('assets/images/cursor-tap.png'), pointer;
  position: absolute;
  right: 1rem;              /* stick to right side */
  top: 50%;                 /* move to middle */
  transform: translateY(-50%); /* perfect vertical centering */
  width: 100px;
  height: 80px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 80%;
  object-fit: cover;
}

.blog-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(5,163,164,0.25);
}

.blog-link {
  cursor: url('assets/images/cursor-tap.png'), pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-title {
  cursor: url('assets/images/cursor-tap.png'), pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: #05A3A4;
  margin-bottom: 0.6rem;
}

.blog-meta {
  cursor: url('assets/images/cursor-tap.png'), pointer;
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
}

.author {
  cursor: url('assets/images/cursor-tap.png'), pointer;
  font-weight: 500;
  color: #333;
}

/* --------------------------
   RESPONSIVE DESIGN
--------------------------- */

/* Mobile (up to 600px) */
@media (max-width: 600px) {
  body {
    font-size: 14px;
    padding: 0 1rem;
  }

  .navbar {
    left: 10px;
    top: 20%;
    transform: none;
    height: auto;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 0.5rem;
  }

  .navbar ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar li {
    font-size: 0.95rem;
  }

  .main-section {
    margin-left: 0;
    padding: 1rem;
  }

  .main-section h1, .main-section h2, .main-section h3, 
  .main-section p, .main-section ul {
    margin-left: 0;
  }

  .media-pair {
    flex-direction: column;
  }

  .media-pair video,
  .media-pair img {
    max-width: 100%;
  }

  .blog-tile {
    flex: 1 1 100%;
    margin: 0.5rem 0;
    margin-left: 0;
    padding: 1rem;
  }

  .blog-image {
    width: 60px;
    height: 60px;
  }

  .qt-metrics-table {
    width: 100%;
    margin-left: 0;
    font-size: 0.85rem;
  }

  .timeline-container {
    width: 95%;
  }
}

/* --------------
   Connect Section
---------------- */
.connect-section {
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1.5rem;
  margin-top: 2rem;
  background-color: white; /* pastel, blends with bg */
  border-radius: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  border: 2px solid #05A3A4;   /* Niagara turquoise accent */
}

.connect-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  margin-left: auto;
  margin-right: auto;
  color: #00454F;
}

.connect-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.connect-icons img {
  width: 38px;   /* uniform size */
  height: 38px;
  object-fit: contain; /* keeps aspect ratio */
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.connect-icons img:hover {
  transform: scale(1.2);
  opacity: 0.85;
}


/* ------
   Responsive 
---------------- */


/* --------------------
   Navbar responsive / Hamburger
-------------------- */

/* Hide navbar on small screens */
@media (max-width: 991px) {
  .navbar {
    display: none; /* full navbar hidden */
  }

  /* Add hamburger button */
  .hamburger {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 50;
    width: 35px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    height: 4px;
    background: #00454F;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  /* When active (menu open) */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Slide-out menu */
  .mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 75%;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    z-index: 40;
    padding: 2rem 1rem;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;

  }

  .mobile-nav.open {
    left: 0;
    display: flex;
  }

  #mobileNav .mobile-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #mobileNav .mobile-links li {
    margin: 0.75rem 0;
    font-size: 1.1rem;
  }
  
  #mobileNav .mobile-controls {
    text-align: center;
  }

  .mobile-nav a {
    color: #00454F;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
  }
  .mobile-nav a:hover {
    color: #0077aa;
  }
}

/* Show navbar normally on desktops */
@media (min-width: 992px) {
  .hamburger,
  .mobile-nav,
  .mobile-note {
    display: none;
  }
}

/* --------------------
   Global typography responsiveness
-------------------- */
h1 { font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem); }
h2 { font-size: clamp(1.2rem, 1.5vw + 0.8rem, 1.6rem); }
h3 { font-size: clamp(1rem, 1vw + 0.6rem, 1.3rem); }
p, li { font-size: clamp(0.9rem, 0.6vw + 0.7rem, 1.1rem); }

/* Adjust margins/paddings responsively */
.main-section {
  margin-left: clamp(10vw, 60vw, 240px);
  padding: clamp(1rem, 2vw + 1rem, 3rem) clamp(1rem, 4vw, 5rem);
}