@import url('https://fonts.googleapis.com/css2?family=Nova+Square&family=Roboto:wght@300;400;700&display=swap');

:root {
  /* Dark mode (default in your current design) */
  --primary-color: #1fc397;
  --primary-light: #bdffe4;
  --bg-color: #222222;
  --text-color: #f1f1f1;
  --header-bg: rgba(29, 29, 29, 0.9);
  --feature-bg: rgba(255, 255, 255, 0.05);
  --feature-hover-bg: rgba(255, 255, 255, 0.1);
  --accent-color: #ff6b6b;
}

/* Light mode class */
:root.light-mode {
  --primary-color: #1fc397;
  --primary-light: #178a6b;
  --bg-color: #f7f7f7;
  --text-color: #333333;
  --header-bg: rgba(240, 240, 240, 0.95);
  --feature-bg: rgba(0, 0, 0, 0.05);
  --feature-hover-bg: rgba(0, 0, 0, 0.1);
}

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

html { 
  font-size: 62.5%; 
}

body {
  background-color: var(--bg-color);
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 { 
  font-family: "Nova Square", cursive; 
}

h1 {
  font-size: 8rem;
  margin-bottom: 1rem;
  text-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.4);
}

h2 {
  font-size: 4rem;
  margin-bottom: 2rem;
  color: var(--primary-light);
}

p {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.tagline {
  font-size: 2.4rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Header */
.main-header {
  background-color: var(--header-bg);
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2);
  padding: 2rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease;
}

.header-container {
  max-width: 120rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo a {
  font-family: "Nova Square", cursive;
  font-size: 2.8rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.main-nav li { 
  margin-left: 2rem; 
}

.nav-link {
  font-size: 1.8rem;
  color: var(--text-color);
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-light);
  background-color: rgba(255, 255, 255, 0.1);
}

:root.light-mode .nav-link:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.logout { 
  color: var(--accent-color); 
}

.logout:hover {
  background-color: var(--accent-color);
  color: var(--text-light);
}

.user-info {
  display: flex;
  align-items: center;
}

.user-info span {
  font-size: 1.6rem;
  margin-right: 1.5rem;
  color: var(--primary-light);
}

/* Container */
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

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

/* Layout */
.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-center {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hidden { 
  display: none; 
}
select {
  border: none;
  outline: none;
  background-color: var(--primary-color);
  color: white;
  font-family: "Nova Square", cursive;
  font-size: 1.3rem;
  border-radius: 15px;
  padding: 10px 20px;
}

/* Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 4rem;
}

.btn {
  font-family: "Nova Square", cursive;
  font-size: 2rem;
  padding: 2rem 0;
  width: 300px;
  text-align: center;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: var(--text-light);
  background: var(--primary-color);
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn i { 
  margin-right: 1rem; 
}

.btn:hover {
  box-shadow: 0 0.4rem 1.4rem 0 rgba(29, 195, 151, 0.5);
  transform: translateY(-0.2rem);
}

/* Results */
.results-popup {
  background-color: var(--feature-bg);
  padding: 4rem;
  border-radius: 2rem;
  max-width: 60rem;
  text-align: center;
  margin: 0 auto; /* center horizontally */
}

/* Title */
.results-title {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

/* Score */
.score-summary {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Feedback */
.feedback {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  color: var(--text-color);
}

/* Buttons wrapper inside popup */
.results-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Individual buttons */
.results-buttons button {
  padding: 1rem 2rem;
  font-size: 1.6rem;
  border-radius: 1rem;
  border: none;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.results-buttons button:hover {
  background-color: var(--primary-dark);
}

.results-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem;
  font-size: 2rem;
  border-radius: 1rem;
  text-decoration: none;
  background-color: var(--primary-color);
  color: white; /* THIS sets the text color */
  transition: background-color 0.3s;
}

.results-buttons a:hover {
  background-color: var(--primary-dark);
}


/* Features */
.features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 90rem;
  margin: 0 auto;
}

.feature {
  flex: 1;
  min-width: 25rem;
  text-align: center;
  padding: 2rem;
  margin: 1rem;
  background-color: var(--feature-bg);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-0.5rem);
  background-color: var(--feature-hover-bg);
}

.feature i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.feature p {
  font-size: 1.6rem;
  margin-bottom: 0;
}

/* Theme toggle styles */
.theme-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-left: 2rem;
}

.theme-toggle i {
  font-size: 2rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.theme-toggle:hover i {
  color: var(--primary-color);
}

/* User nav specific styles */
.user-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-link i {
  margin-right: 0.5rem;
}

.logo i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

/* Media Queries */
@media screen and (max-width: 1024px) {
  .container {
    padding: 0 20px;
    margin-top: 200px;
  }
  
  .home-container h1 {
    font-size: 7rem;
  }
  
  .tagline {
    font-size: 2.2rem;
  }
  
  .action-buttons {
    gap: 15px;
  }
  
  .btn {
    width: 260px;
  }
}

@media screen and (max-width: 768px) {
  html { 
    font-size: 55%; 
  }
  
  .header-container {
    flex-direction: column;
    padding: 1rem;
  }
  
  .logo { 
    margin-bottom: 1rem; 
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  
  .main-nav li { 
    margin: 0.5rem; 
  }
  
  .user-nav {
    margin: 1rem 0;
    justify-content: center;
    width: 100%;
  }
  
  .features { 
    flex-direction: column;
  }
  
  .feature { 
    min-width: auto;
  }
  
  .container {
    padding: 0 2rem;
  }
  
  h1 { 
    font-size: 6rem; 
  }
  
  h2 { 
    font-size: 3rem; 
  }
  
  .tagline { 
    font-size: 2rem; 
  }
  
  .action-buttons { 
    flex-direction: column;
    gap: 10px; 
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 80px 15px;
  }
  
  .home-container h1 {
    font-size: 4rem;
  }
  
  .tagline {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }
  
  .btn {
    font-size: 1.8rem;
    padding: 1.5rem 0;
  }
}
