/* index.css - Modern Dark Theme with Green Frosted Glass Effects */

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

html {
  height: 100%;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  color: #e0e0e0;
  min-height: 100vh;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Background pattern overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(0, 255, 213, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 255, 213, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(0, 255, 213, 0.02) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: -1;
}
/* #region Navigation */
.index-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(45, 45, 45, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 255, 213, 0.1);
  padding: 1rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1000;
}

.index-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 255, 213, 0.05) 0%,
    rgba(0, 255, 213, 0.02) 50%,
    rgba(0, 255, 213, 0.05) 100%
  );
  z-index: -1;
}

.index-nav img {
  height: 60px;
  transition: filter 0.3s ease;
}

.index-nav img:hover {
  filter: brightness(1.1);
}

.index-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.index-nav li {
  display: inline-block;
}

.index-nav a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 213, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.index-nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(123, 226, 204, 0.39),
    rgba(0, 255, 213, 0.1)
  );
  transition: width 0.3s ease;
  border-radius: 12px;
}

.index-nav a:hover::before {
  width: 100%;
}

.index-nav a.active,
.index-nav a:hover {
  background: rgba(0, 255, 213, 0.1);
  border-color: rgba(0, 255, 213, 0.3);
  color: #00ffd5;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 213, 0.2);
  border-radius: 10px;
  cursor: pointer;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  transition: all 0.3s ease;
}

.hamburger:hover {
  background: rgba(0, 255, 213, 0.1);
  border-color: rgba(0, 255, 213, 0.4);
}

.hamburger .bar {
  width: 24px;
  height: 3px;
  background: #00ffd5;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}
/* #endregion Navigation */

/* #region Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}

.main-content::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(0, 255, 213, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: -1;
}

.main-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  letter-spacing: 2px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #00ffd5 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  overflow: visible;
}

/* #region Snow Effect */

/* Snow Effect Container */
.snow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  max-height: 100vh;
}

/* Individual Snowflakes */
.snowflake {
  position: absolute;
  color: rgba(255, 255, 255, 0.8);
  font-size: 2em;
  animation-name: snowfall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: var(--fall-duration);
  animation-delay: var(--fall-delay);
  left: var(--left-position);
  top: -2rem; /* Start from above the h1 */
}

/* Cyan-tinted snowflakes for theme consistency */
.snowflake:nth-child(even) {
  color: rgba(0, 255, 213, 0.6);
  filter: drop-shadow(0 0 3px rgba(0, 255, 213, 0.3));
}

.snowflake:nth-child(odd) {
  color: rgba(255, 255, 255, 0.7);
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

@keyframes snowfall {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg) scale(0.5);
    opacity: 0;
  }
}

/* Snow Effect Variants for Different Sizes and Speeds */
.snowflake:nth-child(1) {
  --fall-duration: 8s;
  --fall-delay: 0s;
  --left-position: 10%;
  font-size: 0.8em;
}
.snowflake:nth-child(2) {
  --fall-duration: 12s;
  --fall-delay: 1s;
  --left-position: 20%;
  font-size: 1.2em;
}
.snowflake:nth-child(3) {
  --fall-duration: 10s;
  --fall-delay: 2s;
  --left-position: 30%;
  font-size: 0.9em;
}
.snowflake:nth-child(4) {
  --fall-duration: 14s;
  --fall-delay: 0.5s;
  --left-position: 40%;
  font-size: 1.1em;
}
.snowflake:nth-child(5) {
  --fall-duration: 9s;
  --fall-delay: 1.5s;
  --left-position: 50%;
  font-size: 0.7em;
}
.snowflake:nth-child(6) {
  --fall-duration: 11s;
  --fall-delay: 3s;
  --left-position: 60%;
  font-size: 1.3em;
}
.snowflake:nth-child(7) {
  --fall-duration: 13s;
  --fall-delay: 2.5s;
  --left-position: 70%;
  font-size: 0.8em;
}
.snowflake:nth-child(8) {
  --fall-duration: 7s;
  --fall-delay: 1.2s;
  --left-position: 80%;
  font-size: 1em;
}
.snowflake:nth-child(9) {
  --fall-duration: 15s;
  --fall-delay: 3.5s;
  --left-position: 90%;
  font-size: 0.9em;
}
.snowflake:nth-child(10) {
  --fall-duration: 8.5s;
  --fall-delay: 0.8s;
  --left-position: 15%;
  font-size: 1.1em;
}
.snowflake:nth-child(11) {
  --fall-duration: 12.5s;
  --fall-delay: 2.8s;
  --left-position: 25%;
  font-size: 0.6em;
}
.snowflake:nth-child(12) {
  --fall-duration: 9.5s;
  --fall-delay: 1.8s;
  --left-position: 35%;
  font-size: 1.4em;
}
.snowflake:nth-child(13) {
  --fall-duration: 11.5s;
  --fall-delay: 0.3s;
  --left-position: 45%;
  font-size: 0.8em;
}
.snowflake:nth-child(14) {
  --fall-duration: 10.5s;
  --fall-delay: 2.2s;
  --left-position: 55%;
  font-size: 1.2em;
}
.snowflake:nth-child(15) {
  --fall-duration: 13.5s;
  --fall-delay: 1.7s;
  --left-position: 65%;
  font-size: 0.7em;
}
.snowflake:nth-child(16) {
  --fall-duration: 8.2s;
  --fall-delay: 3.2s;
  --left-position: 75%;
  font-size: 1em;
}
.snowflake:nth-child(17) {
  --fall-duration: 14.5s;
  --fall-delay: 0.7s;
  --left-position: 85%;
  font-size: 0.9em;
}
.snowflake:nth-child(18) {
  --fall-duration: 7.5s;
  --fall-delay: 2.7s;
  --left-position: 95%;
  font-size: 1.3em;
}
.snowflake:nth-child(19) {
  --fall-duration: 12.2s;
  --fall-delay: 1.3s;
  --left-position: 5%;
  font-size: 0.8em;
}
.snowflake:nth-child(20) {
  --fall-duration: 9.8s;
  --fall-delay: 3.8s;
  --left-position: 22%;
  font-size: 1.1em;
}

/* #endregion Snow Effect */

.main-content p {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  color: #ffffff;
  line-height: 1.6;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.096);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 255, 213, 0.1);
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #dafffb 0%, #00cca8 100%);
  color: #1a1a1a;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1rem 3rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.5),
    rgba(218, 255, 251, 0.2)
  );
  transition: width 0.4s ease;
  border-radius: 50px;
}

.cta-btn:hover::before {
  width: 100%;
}

.cta-btn:hover {
  background: linear-gradient(135deg, #00cca8 100%, #dafffb 0%);
  transform: translateY(-2px);
}

.cta-btn:active {
  transform: translateY(0);
}

/* #endregion Main Content */

footer {
  background: transparent;
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 255, 213, 0.1);
  color: #b0b0b0;
  text-align: center;
  padding: 2rem 0;
  font-size: 1rem;
  margin-top: auto;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 255, 213, 0.02) 0%,
    rgba(0, 255, 213, 0.05) 50%,
    rgba(0, 255, 213, 0.02) 100%
  );
  z-index: -1;
}

/* #region Responsive Design */
@media (max-width: 768px) {
  .index-nav {
    flex-direction: row;
    align-items: center;
    padding: 1rem;
  }

  .hamburger {
    display: flex;
    right: 1rem;
  }

  .index-nav ul {
    flex-direction: column;
    gap: 1rem;
    position: fixed;
    top: 0;
    right: -100vw;
    width: 280px;
    height: 100vh;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 255, 213, 0.2);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    padding: 6rem 2rem 2rem;
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .index-nav ul.open {
    right: 0;
  }

  .index-nav img {
    height: 50px;
  }

  .main-content h1 {
    font-size: 2.8rem;
  }

  .main-content p {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
  }

  .cta-btn {
    font-size: 1rem;
    padding: 0.9rem 2.5rem;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 3rem 1rem;
  }

  .main-content h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }

  .main-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
  }
}

.index-nav .nav-overlay {
  display: none;
}

@media (max-width: 768px) {
  .index-nav .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    transition: opacity 0.3s ease;
  }

  .index-nav .nav-overlay.active {
    display: block;
  }
}

/* #endregion Responsive Design */
