/*Github Pages CSS*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #0066ff;
  --dark-blue: #003380;
  --light-blue: #e6f0ff;
  --accent-blue: #0099ff;
  --text-dark: #333;
  --text-light: #fff;
  --bg-light: #f8f9fa;
  --shadow: 0 5px 15px rgba(0, 102, 255, 0.2);
  --accent-purple: #8a2be2;
  --accent-pink: #ff1493;
  --accent-orange: #ff8c00;
  --accent-green: #32cd32;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  scroll-behavior: smooth;
}

header {
  background: url('../img/search.png');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  text-align: center;
  padding: 120px 20px 140px;
  position: relative;
  overflow: hidden;
  height: 80vh;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(138, 43, 226, 0.8) 0%,
    rgba(0, 102, 255, 0.7) 50%,
    rgba(255, 20, 147, 0.6) 100%
  );
  z-index: 1;
}

header .container {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out;
}

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

/* Add animation delays for staggered entry */
header .logo {
  animation: fadeInUp 0.8s ease-out;
}

header .tagline {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

header .badge-container {
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

header .cta-button,
header .github-link {
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  opacity: 0;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom right, transparent 49%, var(--bg-light) 50%);
}

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

.logo {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.tagline {
  font-size: 1.5rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.badge-container {
  margin-bottom: 30px;
}

.badge {
  margin: 0 5px;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.github-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.github-link:hover {
  text-decoration: underline;
}

.features {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-light), white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-box {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-bottom: 5px solid transparent;
  position: relative;
  overflow: hidden;
}

.feature-box:nth-child(1) {
  border-bottom-color: var(--accent-blue);
}

.feature-box:nth-child(2) {
  border-bottom-color: var(--accent-purple);
}

.feature-box:nth-child(3) {
  border-bottom-color: var(--accent-pink);
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
  opacity: 0;
}

.feature-box:hover {
  transform: none;
}

.feature-box:hover::before {
  opacity: 0;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--dark-blue);
}

.section-subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #666;
}

/* Screenshots section */
.screenshots-section {
  background: linear-gradient(135deg, var(--light-blue), #f0e6ff, #ffe6f0);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.screenshots-section::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.2) 0%, rgba(138, 43, 226, 0) 70%);
  border-radius: 50%;
}

.screenshots-section::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 20, 147, 0.2) 0%, rgba(255, 20, 147, 0) 70%);
  border-radius: 50%;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  perspective: 1000px;
}

.screenshot-box {
  background-color: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform-style: preserve-3d;
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
  position: relative;
}

.screenshot-box:nth-child(1) {
  border-left: 5px solid var(--accent-blue);
}

.screenshot-box:nth-child(2) {
  border-left: 5px solid var(--accent-purple);
}

.screenshot-box:nth-child(3) {
  border-left: 5px solid var(--accent-pink);
}

.screenshot-box:hover {
  transform: translateY(-15px) rotateY(5deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.screenshot-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: 2px solid transparent;
}

.screenshot-img:hover {
  transform: scale(1.05);
  border: 2px solid rgba(138, 43, 226, 0.3);
  cursor: zoom-in;
}

.screenshot-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-blue);
  position: relative;
  display: inline-block;
}

.screenshot-desc {
  color: #666;
  line-height: 1.6;
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 1.2rem;
}

/* How it works section */
.how-it-works {
  padding: 80px 0;
  background-color: white;
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(0, 102, 255, 0.05) 0%, transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(138, 43, 226, 0.05) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(255, 20, 147, 0.05) 0%, transparent 60%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.step {
  text-align: center;
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background-color: rgba(255, 255, 255, 1);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.step:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 25px;
  position: relative;
  z-index: 1;
}

.step:nth-child(2) .step-number {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
}

.step:nth-child(3) .step-number {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-orange));
}

@media (max-width: 768px) {
  .step::after {
    display: none;
  }
}

.step::after {
  content: '';
  position: absolute;
  top: 60px;
  right: -50%;
  width: 50%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--accent-purple) 0px,
    var(--accent-purple) 5px,
    transparent 5px,
    transparent 10px
  );
  z-index: 0;
}

.step:last-child::after {
  display: none;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--accent-purple), var(--primary-blue), var(--accent-pink));
  color: white;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(255, 255, 255, 0.1) 0%, transparent 30%);
  z-index: 1;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section .section-title,
.cta-section .section-subtitle {
  color: white;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #222, #111);
  color: white;
  padding: 60px 0 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--accent-blue),
    var(--accent-purple),
    var(--accent-pink),
    var(--accent-orange),
    var(--accent-green)
  );
}

footer .logo {
  font-size: 2rem;
  margin-bottom: 30px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-blue);
}

/* System requirements */
.system-requirements {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

.system-requirements h3 {
  text-align: center;
  margin-bottom: 20px;
}

.system-requirements ul.requirements-list {
  list-style-type: none;
  padding-left: 0;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
  display: inline-block;
}

.system-requirements li {
  margin-bottom: 12px;
  text-align: left;
  display: flex;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.system-requirements li:last-child {
  border-bottom: none;
}

.req-label {
  font-weight: bold;
  min-width: 80px;
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
}

/* OS-specific download buttons */
.download-options {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  opacity: 0;
}

.os-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.os-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.os-button:hover::before {
  left: 100%;
}

.os-button i {
  font-size: 1.4rem;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.os-button:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.os-button:hover i {
  transform: scale(1.2);
}

.os-button.active {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 153, 255, 0.5);
  border: 2px solid var(--text-light);
}

.windows-button.active {
  background-color: #0078d7;
}

.mac-button.active {
  background-color: #999999;
}

.linux-button.active {
  background-color: #f57900;
}

.download-options-footer .os-button {
  background-color: rgba(255, 255, 255, 0.1);
}

.github-link {
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
  opacity: 0;
}

/* GitHub Corner */
.github-corner {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: 80px;
  height: 80px;
}

.github-corner svg {
  fill: var(--text-dark);
  color: var(--text-light);
  position: absolute;
  top: 0;
  border: 0;
  right: 0;
  transition: all 0.3s ease;
}

.github-corner:hover svg {
  fill: #555555;
}

.github-corner .octo-arm {
  transform-origin: 130px 106px;
}

.github-corner:hover .octo-arm {
  animation: octocat-wave 560ms ease-in-out;
}

@keyframes octocat-wave {
  0%,
  100% {
    transform: rotate(0);
  }
  20%,
  60% {
    transform: rotate(-25deg);
  }
  40%,
  80% {
    transform: rotate(10deg);
  }
}

@media (max-width: 500px) {
  .github-corner:hover .octo-arm {
    animation: none;
  }

  .github-corner .octo-arm {
    animation: octocat-wave 560ms ease-in-out;
  }

  .github-corner {
    width: 60px;
    height: 60px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .steps,
  .feature-grid,
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
}
