/* <------ FONTS ------> */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Signika+Negative:wght@300..700&display=swap');

/* <------ COLORS ------> */
:root {
  /* Background Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #13131a;
  --bg-tertiary: #1a1a24;
  --bg-elevated: #20212e;
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-border: rgba(255, 255, 255, 0.12);

  /* Text Colors */
  --text-primary: #e8e8f0;
  --text-secondary: #a8a8b8;
  --text-tertiary: #70707a;
  --text-inverse: #0a0a0f;

  /* Accent Colors */
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-muted: rgba(99, 102, 241, 0.1);

  /* Border Colors */
  --border-primary: #2a2a38;
  --border-secondary: #3a3a48;
  --border-accent: #6366f1;

  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7);

  /* Glow Effects */
  --glow-primary: 0 0 20px rgba(99, 102, 241, 0.3);
  --glow-secondary: 0 0 30px rgba(139, 92, 246, 0.3);

  /* Real colors — medium tone, not eye-killing */
  --profile-bg-1: #3b82f6; /* blue */
  --profile-bg-2: #22c55e; /* green */
  --profile-bg-3: #f97316; /* orange */
  --profile-bg-4: #ef4444; /* red */
  --profile-bg-5: #14b8a6; /* teal */
  --profile-bg-6: #8b5cf6; /* purple */
  --profile-bg-7: #0ea5e9; /* sky blue */
  --profile-bg-8: #f43f5e; /* rose */
  --profile-bg-9: #10b981; /* emerald */
  --profile-bg-10: #eab308; /* amber */
}

* {
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  box-sizing: border-box;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  color: var(--text-primary);
}

nav {
  padding: 2em;
}

nav ul {
  list-style-type: none;
  display: flex;
  align-items: center;
}

nav ul li a,
.hamburger-menu li a {
  text-decoration: none;
  color: var(--text-primary);
}

nav ul li:first-child {
  margin-right: auto;
  font-size: 24px;
  font-weight: 500;
}

.nav-tabs {
  font-size: 18px;
  margin-right: 24px;
}

.avatar-circle {
  font-size: 18px;
  background-color: var(--profile-bg-8);
  color: var(--text-primary);
  font-weight: bold;
  width: 40px;
  height: 40px;
  text-align: center;
  align-content: center;
  border-radius: 50%;
  cursor: pointer;
}

.signup-btn {
  background-color: var(--info);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 18px;
  padding: 4px 24px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: 300ms all ease-in-out;
}

.signup-btn:hover {
  opacity: 0.9;
}

.profile-menu {
  background-color: rgba(32, 33, 46, 0.6);
  backdrop-filter: blur(10px);
  height: 70vh;
  width: min(50vh, 80%);
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 85;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: min(16px, 4vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 300ms all ease-in-out;
}

.profile-menu.active {
  opacity: 1;
  pointer-events: all;
  animation: scale-up 0.4s 1;
}

.profile-menu.close {
  animation: scale-down 0.4s 1;
}

.profile-close-icon {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  padding: 14px;
  height: 30px;
  width: 30px;
}

.user-info {
  margin-top: 28px;
  margin-bottom: auto;
}

.user-info div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.username-edit-icon {
  cursor: pointer;
}

.username-change-input {
  background-color: transparent;
  border: 2px solid var(--accent-primary);
  outline: none;
  padding: 8px 24px 8px 35px;
  font-size: 16px;
  color: var(--text-primary);
  border-radius: 40px;
}

.input-change-box {
  position: relative;
}

.input-change-box img {
  position: absolute;
  left: 10px;
  color: var(--text-secondary);
}

.logout-btn,
.save-btn {
  margin-bottom: 28px;
  font-size: 16px;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  background-color: transparent;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px 24px;
  border-radius: 6px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logout-btn {
  border: 2px solid var(--error);
}

.save-btn {
  border: 2px solid var(--border-accent);
}

.logout-btn::before,
.save-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 0;
  z-index: -1;
  transition: 300ms all ease-in-out;
}

.logout-btn::before {
  background-color: var(--error);
}

.save-btn::before {
  background-color: var(--accent-hover);
  box-shadow: var(--glow-primary);
}

.logout-btn:hover::before,
.save-btn:hover::before {
  width: 100%;
}

.overlay {
  background-color: rgba(20, 24, 30, 0.6);
  backdrop-filter: blur(100px);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: 300ms all ease-in-out;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

body.active {
  overflow: hidden;
}

.hamburger-menu {
  background-color: var(--bg-secondary);
  width: 300px;
  height: 100%;
  position: fixed;
  top: 0;
  right: -500px;
  z-index: 100;
  transition: 500ms all ease;
}

.hamburger-menu.active {
  right: 0;
}

.hamburger-menu ul {
  list-style-type: none;
  margin-top: 80px;
  align-items: center;
  display: flex;
  flex-direction: column;

  gap: 16px;
  font-weight: 500;
  font-size: 18px;
}

.hamburger-menu .cta-btn {
  margin: 0;
}

.avatar-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hamburger-menu img {
  position: absolute;
  padding: 10px;
  cursor: pointer;
}

.hamburger-icon {
  display: none;
}

.hero {
  height: 100vh;
}

.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 50vh;
  position: relative;
}

.hero-msg-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  font-size: 35px;
  font-weight: bold;
  background: linear-gradient(
    20deg,
    var(--text-secondary),
    var(--text-primary)
  );
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 30px;
  animation: show-up 0.8s 1;
}

.hero-info {
  margin-top: 16px;
  font-size: 16px;
  max-width: 400px;
  text-align: center;
  color: var(--text-primary);
}

.cta-btn {
  background-color: var(--accent-primary);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 16px;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  border: none;
  width: 208px;
  padding: 4px 24px;
  border-radius: 24px;
  margin-right: 18px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 300ms all ease;
  animation: show-up 1s 1;
}

.get-started-cta {
  border: none;
}

.get-started-cta:hover {
  background-color: var(--accent-hover);
}

.cta-container button:last-child {
  background-color: transparent;
  border: 2px solid var(--accent-hover);
}

.cta-container button:first-child:hover {
  background-color: transparent;
  border: 2px solid var(--accent-hover);
}

.cta-container button:last-child:hover {
  background-color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.hero-stats {
  position: absolute;
  bottom: -100px;
  display: flex;
  align-items: center;
  gap: 56px;
  text-align: center;
}

.hero-stats-container {
  cursor: pointer;
  transition: 300ms all ease;
  animation: show-up 1.2s 1;
}

.hero-stats-container:hover {
  transform: translateY(-5px);
}

.hero-stats-container p:first-child {
  background: linear-gradient(
    350deg,
    var(--accent-secondary),
    var(--accent-hover)
  );
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  font-size: 32px;
}

.hero-stats-container p:last-child {
  font-weight: 500;
}

.features {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 48px;
}

.features h2 {
  font-size: 32px;
  margin-bottom: 48px;
}

.features-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  padding: 0 2rem;
  box-sizing: border-box;
}

.feature-card {
  background-color: var(--bg-secondary);
  height: 200px;
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  gap: 16px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  border: 2px solid transparent;
  transition: 300ms all ease;
}

.feature-card:hover {
  box-shadow: 0 2px 24px 4px var(--accent-hover);
  border: 2px solid var(--accent-secondary);
  transform: translateY(-10px);
}

.feature-icon {
  height: 56px;
  width: 56px;
}

.feature-name {
  margin-top: 18px;
}

.feature-info-msg {
  color: var(--text-secondary);
  max-width: 540px;
}

/* FOR HIDING AND SHOWING ELEMENTS  */
.hidden {
  display: none;
}

.visible {
  display: block;
}

@keyframes show-up {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-up {
  0% {
    scale: 0.5;
  }
  100% {
    scale: 1;
  }
}

@keyframes scale-down {
  0% {
    scale: 1;
  }
  100% {
    scale: 0.5;
  }
}

@media (max-width: 868px) {
  .nav-tabs {
    display: none;
  }

  .hamburger-icon {
    display: block;
  }

  nav .avatar-circle {
    display: none;
  }

  nav .signup-btn {
    display: none;
  }
}

@media (max-width: 536px) {
  .hero-msg-container {
    font-size: 28px;
  }
}

@media (max-width: 488px) {
  .hero-msg-container {
    font-size: 24px;
  }

  .hero-info {
    font-size: 14px;
  }

  .cta-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .cta-btn {
    width: 300px;
  }

  .hero-stats {
    gap: 32px;
  }

  .hero-stats-container p:first-child {
    font-size: 28px;
  }

  .hero-stats-container p:last-child {
    font-size: 14px;
  }

  .features-info {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .feature-card {
    padding-bottom: 16px;
  }
}

@media (max-width: 400px) {
  nav {
    padding: 1.5em;
  }

  nav ul li:first-child {
    font-size: 20px;
  }

  .hamburger-icon {
    height: 40px;
    width: 40px;
  }

  .hamburger-menu {
    width: 100%;
    transition: 500ms all ease;
  }

  .hero-msg-container {
    font-size: 20px;
  }

  .hero-msg-container p:last-child {
    width: 350px;
  }

  .hero-stats-container p:first-child {
    font-size: 22px;
  }

  .hero-stats-container p:last-child {
    font-size: 12px;
  }

  .cta-container {
    margin-left: 18px;
  }

  .feature-card {
    height: 220px;
  }
}

@media (max-width: 364px) {
  nav {
    padding: 1em;
  }

  .hero-msg-container {
    font-size: 20px;
  }

  .hero-msg-container p:last-child {
    width: 300px;
  }

  .hero-stats-container p:first-child {
    font-size: 24px;
  }

  .hero-stats-container p:last-child {
    font-size: 12px;
  }

  .cta-container {
    margin-left: 24px;
  }

  .features h2 {
    font-size: 28px;
  }

  .feature-card {
    margin-left: 10px;
  }
}

@media (max-width: 320px) {
  .hero-stats-container p:first-child {
    font-size: 20px;
  }

  .hero-stats-container p:last-child {
    font-size: 10px;
  }
}
