:root {
  --bg-color: #121212;
  --text-color: #f0f0f0;
  --accent-color: #0078d7;
  --card-bg: #1e1e1e;
  --border-color: #333;
  --header-bg: #0a0a0a;
  --footer-bg: #0a0a0a;
  
  /* Consistent type ramp */
  --font-xl: 2.5rem;   /* h1 */
  --font-lg: 2rem;     /* h2 */
  --font-md: 1.5rem;   /* h3 */
  --font-base: 1.1rem; /* normal text */
  --font-sm: 0.9rem;   /* small text */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Diagonal blue-purple gradient background effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 50%; /* Increased width for smoother transition */
  height: 65%; /* Increased height for smoother transition */
  background: radial-gradient(
    circle at top left,
    rgba(153, 51, 255, 0.25) 0%,
    rgba(138, 43, 226, 0.2) 25%,
    rgba(0, 120, 215, 0.15) 50%,
    rgba(0, 120, 215, 0.05) 75%,
    rgba(18, 18, 18, 0) 100%
  );
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
  filter: blur(60px); /* Increased blur for softer edges */
}

.header {
  background-color: var(--header-bg);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title {
  font-size: var(--font-md);
  font-weight: 500;
  display: flex;
  align-items: center;
}

.header-icon {
  height: 32px;
  width: auto;
}

.github-container {
  display: flex;
  align-items: center;
}

.main {
  margin: 0 auto;
  padding: 2rem 0;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 1rem;
}

h1 {
  font-size: var(--font-xl);
  margin-bottom: 0.25rem; /* Reduced from 0.5rem for even tighter spacing */
  font-weight: 800; /* Changed from 500 to 600 for bolder text */
  text-align: center;
  font-family: 'Inter', sans-serif;
}

h2 {
  font-size: var(--font-lg);
  margin: 2.5rem 0 1.5rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

h3 {
  font-size: var(--font-md);
  margin: 2rem 0 1rem;
  font-weight: 500;
  color: var(--accent-color);
  font-family: 'Inter', sans-serif;
}

.para {
  font-weight: 300;
  margin-bottom: 1.5rem;
  font-size: var(--font-base);
  font-family: 'Inter', sans-serif;
}

.hero-description {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: var(--font-md);
}

.powertoys-suite {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 1rem; /* Reduced from 1.2rem */
  color: #e0e0e0;
}

.powertoys-logo {
  width: 24px; /* Reduced from 32px */
  height: 24px; /* Reduced from 32px */
  vertical-align: middle;
  margin: 0 5px;
}

/* Add consistent width constraint for all hero paragraphs */
.hero .para {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.heroimage {
  max-width: 80%;
  height: auto;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Adding floating animation keyframes */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Purple to blue glow effect for hero image with floating animation */
.hero img.heroimage {
  box-shadow: 0 0 25px 5px rgba(138, 43, 226, 0.6), 0 0 35px 10px rgba(0, 120, 215, 0.4);
  transition: box-shadow 0.5s ease;
  animation: float 4s ease-in-out infinite;
}

.hero img.heroimage:hover {
  box-shadow: 0 0 30px 8px rgba(138, 43, 226, 0.7), 0 0 40px 15px rgba(0, 120, 215, 0.5);
}

/* Purple to blue glow for the GIF without floating animation */
.image-container img.heroimage {
  box-shadow: 0 0 25px 5px rgba(138, 43, 226, 0.6), 0 0 35px 10px rgba(0, 120, 215, 0.4);
  transition: box-shadow 0.5s ease;
}

.image-container img.heroimage:hover {
  box-shadow: 0 0 30px 8px rgba(138, 43, 226, 0.7), 0 0 40px 15px rgba(0, 120, 215, 0.5);
}

.video-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 5rem; /* Consistent spacing */
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Adding max-height constraints to maintain proper proportions */
@media (min-width: 768px) {
  .video-container {
    max-height: 450px; /* Approx. height for 800px width at 16:9 ratio */
    padding-bottom: min(56.25%, 450px);
  }
}

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

.image-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto 5rem; /* Consistent spacing */
}

.download-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.download-image {
  width: 220px;
  transition: transform 0.3s ease, box-shadow 0.5s ease;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.download-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px 5px rgba(138, 43, 226, 0.6), 0 0 35px 10px rgba(0, 120, 215, 0.4);
}

.faq-section {
  margin: 0 0 2rem; /* Reduced from 5rem to 2rem */
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%; /* Full width instead of max-width */
}

.faq-box {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2); /* Thin white outline */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: box-shadow 0.3s ease; /* Removed transform from transition */
}

.faq-box:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px 5px rgba(138, 43, 226, 0.2);
}

.faq-box h3 {
  color: var(--text-color); /* Using text color instead of accent */
  margin-top: 0; /* Remove top margin to eliminate extra space */
  margin-bottom: 0.75rem;
  font-weight: 500;
  font-size: calc(var(--font-md) * 0.9); /* Slightly smaller than regular h3 */
  align-self: flex-start;
  width: 100%;
}

.faq-box .para {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.faq-section h2 {
  text-align: center; /* Center-aligned title */
  margin-bottom: 2rem;
  margin-top: 0; /* Ensure no top margin on the heading */
}

.faq-item {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-left: -2rem; /* Extend to the left edge */
  margin-right: -2rem; /* Extend to the right edge */
  padding-left: 2rem; /* Restore padding */
  padding-right: 2rem; /* Restore padding */
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Update FAQ question styling */
.faq-item h3 {
  font-size: calc(var(--font-md) * 0.9); /* Slightly smaller than regular h3 */
  color: #e0e0e0; /* Light neutral color instead of accent blue */
  font-weight: 500;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
  border-bottom: 2px dotted var(--accent-color); /* Increased width from 1px to 2px and made dots more prominent */
}

a:hover {
  text-decoration: none; /* Removed default underline */
  border-bottom: 2px dotted var(--text-color); /* Increased width from 1px to 2px */
}

/* Exceptions for special links that shouldn't have the dotted underline */
.github-button, 
.download-container a,
.header-title a {
  border-bottom: none;
}

kbd {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  color: var(--text-color);
  display: inline-block;
  font-size: var(--font-sm);
  font-family: monospace;
  line-height: 1;
  padding: 2px 5px;
}

footer {
  background-color: var(--footer-bg);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: 0; /* Removed margin completely */
}

@media (max-width: 768px) {
  :root {
    /* Adjusted type ramp for mobile */
    --font-xl: 2rem;
    --font-lg: 1.75rem;
    --font-md: 1.25rem;
    --font-base: 1rem;
    --font-sm: 0.85rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .heroimage {
    max-width: 100%;
  }
}

/* Adding floating animation keyframes */
@keyframes float-small {
  0% {
    transform: translateY(0px) rotate(var(--rotation));
  }
  50% {
    transform: translateY(-5px) rotate(var(--rotation));
  }
  100% {
    transform: translateY(0px) rotate(var(--rotation));
  }
}

/* Purple to blue glow effect for hero image with floating animation */
.hero-image-container .heroimage {
  box-shadow: 0 0 25px 5px rgba(138, 43, 226, 0.6), 0 0 35px 10px rgba(0, 120, 215, 0.4);
  transition: box-shadow 0.5s ease;
  animation: float 4s ease-in-out infinite;
}

/* Steam icon with animation */
.steam-icon-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 1rem auto;
}

.steam-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.7));
  position: relative;
  z-index: 1;
}

/* Steam animations - purely vertical, smooth continuous motion */
@keyframes verticalSteam {
  0% {
    opacity: 0;
    transform: translateY(0) scaleY(0.8);
  }
  15% {
    opacity: 0.3;
    transform: translateY(-8px) scaleY(1);
  }
  30% {
    opacity: 0.5;
    transform: translateY(-15px) scaleY(1.1);
  }
  60% {
    opacity: 0.4;
    transform: translateY(-22px) scaleY(1.2);
  }
  85% {
    opacity: 0.2;
    transform: translateY(-28px) scaleY(1.3);
  }
  100% {
    opacity: 0;
    transform: translateY(-35px) scaleY(1.4);
  }
}

.steam {
  position: absolute;
  width: 6px;
  height: 18px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  top: 0;
  z-index: 0;
  filter: blur(6px);
  pointer-events: none;
  animation: verticalSteam 3s ease-in-out infinite;
  transform-origin: bottom center;
}

/* Staggered steam columns for continuous vertical flow */
.steam1 {
  left: 40px;
  height: 18px;
  animation-delay: 0s;
  animation-duration: 3s;
}

.steam2 {
  left: 40px;
  height: 16px;
  animation-delay: 1s;
  animation-duration: 3.2s;
}

.steam3 {
  left: 40px;
  height: 19px;
  animation-delay: 2s;
  animation-duration: 3.1s;
}

.steam4 {
  left: 35px;
  height: 17px;
  animation-delay: 0.5s;
  animation-duration: 2.9s;
}

.steam5 {
  left: 35px;
  height: 20px;
  animation-delay: 1.5s;
  animation-duration: 3.3s;
}

/* Left side steam elements */
.steam-left1 {
  position: absolute;
  width: 6px;
  height: 18px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  top: 0;
  left: 20px; /* Moved further left */
  filter: blur(6px);
  z-index: 0;
  animation: verticalSteam 3s ease-in-out infinite;
  animation-delay: 0.3s;
  animation-duration: 3s;
}

.steam-left2 {
  position: absolute;
  width: 6px;
  height: 16px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  top: 0;
  left: 15px; /* Moved further left */
  filter: blur(6px);
  z-index: 0;
  animation: verticalSteam 3.2s ease-in-out infinite;
  animation-delay: 0.7s; /* Adjusted for better flow */
}

.steam-left3 {
  position: absolute;
  width: 6px;
  height: 17px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  top: 0;
  left: 10px; /* Positioned at far left */
  filter: blur(6px);
  z-index: 0;
  animation: verticalSteam 3.4s ease-in-out infinite;
  animation-delay: 1.4s; /* Adjusted for better flow */
}

/* Additional left side steam elements for better balance */
.steam-left4 {
  position: absolute;
  width: 6px;
  height: 19px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  top: 0;
  left: 30px; /* Center-left position */
  filter: blur(6px);
  z-index: 0;
  animation: verticalSteam 3.2s ease-in-out infinite;
  animation-delay: 0s; /* Start immediately for continuous effect */
}

.steam-left5 {
  position: absolute;
  width: 6px;
  height: 17px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  top: 0;
  left: 30px; /* Center-left position */
  filter: blur(6px);
  z-index: 0;
  animation: verticalSteam 2.9s ease-in-out infinite;
  animation-delay: 1s; /* Staggered for continuous flow */
}

/* Continuous steam effect using pseudo-elements */
.steam-icon-container::before,
.steam-icon-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 25px;
  width: 35px;
  height: 8px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  border-radius: 50%;
  filter: blur(8px);
  animation: smoothSteamWave 4s ease-in-out infinite;
  z-index: 0;
}

.steam-icon-container::after {
  top: 0;
  width: 25px;
  left: 35px;
  animation-delay: 2s;
  animation-duration: 3.5s;
}

.steam-wave-left {
  position: absolute;
  top: 0;
  left: 15px;
  width: 28px;
  height: 6px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  border-radius: 50%;
  filter: blur(8px);
  animation: smoothSteamWave 3.8s ease-in-out infinite;
  animation-delay: 1s;
  z-index: 0;
}

.awake-states-section {
  margin: 0 0 5rem; /* Consistent spacing */
}

.awake-states-section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.awake-states-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.awake-state-box {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2); /* Thin white outline like FAQ */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.3s ease; /* Removed transform from transition */
}

.awake-state-box:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px 5px rgba(138, 43, 226, 0.2);
}

.state-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5));
}

.awake-state-box h3 {
  color: var(--text-color); /* Using text color instead of accent */
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.awake-state-box .para {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Media queries for responsive layout */
@media (max-width: 991px) {
  .awake-states-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .awake-states-container {
    grid-template-columns: 1fr;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
