/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #333;
    width: 100%;
    min-height: 100vh;
    
    background-image: url("../images/blueGradient.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  
  /* Layout helpers */
  .container {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 10px 10%;
  }
  
  /* Your main hero section: <section class="main container"> */
  .main.container {
    padding-top: clamp(40px, 10vh, 140px);
    padding-bottom: 96px; /* space for footer */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
  }
  
  .sectionOne {
    flex: 1 1;
    text-align: left;
  }
  
  /* Animation */
  .animation {
    opacity: 0;
    transform: translateY(30px);
    animation: moveup 0.5s linear forwards;
  }
  
  @keyframes moveup {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Typography */
  h1.animation {
    font-size: clamp(40px, 8vw, 100px);
    line-height: 1.05;
  }
  
  p.animation {
    max-width: 600px;
    font-weight: 200;
    margin-top: 12px;
  }
  
  
  /* Header nav */
  .navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  
  .primary-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 200;
  }
  
  .nav-link.active {
    /* font-weight: 600; */
    text-decoration: underline;
  }
  
  /* Footer */
  .site-footer {
    padding: 5px 0;
    text-align: center;
    font-weight: 200;
  
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  
    /* Helps readability on top of background image */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
  }
  
  /* Mobile tweaks */
  @media (max-width: 800px) {
    .main.container {
      display: block;
      padding-top: 72px;
    }
  

  }

  /* projects */
  /* ===== Projects page ===== */
body.projects .projects {
    width: 100%;
    margin-top: 40px;
  }
  
  .button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
  }

  .popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
  
    pointer-events: none; 
    visibility: hidden;
}

.popup.openPopup {
    display: flex;
    pointer-events: auto;
    visibility: visible;
}
  
  .popup-content {
    background: #ffffff;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  }
  
  .popup h3 {
    margin-bottom: 12px;
  }
  
  .popup p {
    margin-bottom: 12px;
    font-weight: 300;
    line-height: 1.6;
  }
  
  .popup ul {
    margin: 12px 0 16px;
    padding-left: 20px;
  }

  .btn {
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle border */
    background: rgba(255, 255, 255, 0.9); /* Slight transparency */
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    color: #333;
    
    /* Smooth transition for multiple properties */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .btn:hover {
    background: #ffffff; /* Brighter white on hover */
    border-color: #0077cc; /* Highlights the border with your theme color */
    color: #0077cc; /* Changes text color to blue */
    transform: translateY(-5px) scale(1.02); /* Lifts and slightly grows the button */
    box-shadow: 0 12px 24px rgba(0, 119, 204, 0.15); /* Adds a soft blue glow */
  }
  
  /* Active state (when you actually click the button) */
  .btn:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 4px 10px rgba(0, 119, 204, 0.1);
  }
  
  .no-bullets {
    list-style: none;
    padding-left: 0;
  }
  
  .popup li {
    margin-bottom: 8px;
  }
  .popup a {
    color: #0077cc;
    text-decoration: none;
    font-weight: 500;
  }
  
  .popup a:hover {
    text-decoration: underline;
  }
  
  .popup button {
    margin-top: 16px;
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    background: #333;
    color: #fff;
    cursor: pointer;
    
  }
  
  .popup button:hover {
    background: #000;
  }


  .popup-content .logo {
    display: block;
    max-width: 220px;
    height: auto;
    margin: 10px 0 16px;
  }
  .popup-actions {
    display: flex;
    justify-content: center;
  }
    
  /* Video */
.video-container video {
    width: 100%;
    border-radius: 8px;
    margin-top: 12px;
  }
  
  /* Slideshow iframe */
  .slideshow-container {
    margin: 16px 0;
  }
  
  .slideshow-iframe {
    width: 100%;
    height: 420px;
    border: none;
    border-radius: 8px;
  }


  
  /* Resume image preview */
  .website_overview {
    width: 100%;
    margin-top: 12px;
    border-radius: 8px;
  }
  @media (max-width: 600px) {
    .popup > * {
      padding: 18px;
      max-height: 90vh;
    }
  
    .slideshow-iframe {
      height: 280px;
    }
  }
  
  
  
  
  
  
  

  .character-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 12px 0;
  }
  
  .character-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px;
  }
  
  .character-btn img {
    width: 110px;
    height: auto;
    border-radius: 10px;
  }

  .preview-window {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

/* Position the canvas so it covers the whole screen */
#trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allows you to click links/buttons underneath the sparks */
  z-index: 1; /* Keeps them visible over the background */
}

/* Ensure your text stays on top of the sparks */
.sectionOne {
  position: relative;
  z-index: 10; 
}

/* weather stylings */
.weather-popup-body {
  display: flex;
  align-items: center; /* Vertically centers the icon and text */
  margin: 20px 0;
  gap: 15px;
  text-align: left; 
}

.weather-link {
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  color: #333;
  width: 80%;
}

.weather-link:hover {
  font-weight: bold; 
  /* color: #fff; */

}
.weather-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.weather-popup.hidden {
  display: none;
}

.weather-popup .popup-content {
  border-radius: 15px;
  text-align: center;
  position: relative;
  width: 40%;
}

.weather-icon-box  {
  flex: 0 0 40%;
  display: flex;
  justify-content: center;

}
.weather-icon-box img {
  width: 100%;

}

.weather-stats {
  flex: 0 0 60%;     
}

.temp-display {
  font-size: 4rem;      
  margin: 10px 0;      /* Space above and below */
  line-height: 1;
}