:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --secondary: #7209b7;
  --success: #06d6a0;
  --warning: #ffd166;
  --danger: #ef476f;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --dark-bg: #0f172a;
  --card-bg: #1e293b;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--dark-bg), #1a2a3a);
  color: var(--light);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar .logo-img {
    height: 36px;
}

.footer-logo .logo-img {
    height: 42px;
    margin-bottom: 15px;
}

.logo-img:hover {
    transform: scale(1.05);
}

header {
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  font-family: 'Montserrat', sans-serif;
}

.logo i {
  color: var(--primary);
  margin-right: 10px;
  font-size: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.auth-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

.btn-auth {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 600;
}

.btn-auth:hover {
  background: linear-gradient(45deg, var(--primary-dark), var(--secondary));
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero {
  padding: 150px 0 80px;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8)), url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(to right, #fff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #d0d0d0;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid var(--primary);
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-family: 'Montserrat', sans-serif;
  color: white;
}

.section-title p {
  font-size: 1.1rem;
  color: #d0d0d0;
  max-width: 600px;
  margin: 0 auto;
}

.features-section {
    padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.features-grid a {
  text-decoration: none;
  color: inherit;
}
.feature-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--primary);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 25px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: white;
}

.feature-card p {
  font-size: 1rem;
  color: #d0d0d0;
  flex-grow: 1;
}

.forum-section, .downloads-section, .contact-section {
  padding: 100px 0;
  background: var(--dark-bg);
}
.download-grid a {
  text-decoration: none;
  color: inherit;
}
.categories-grid, .download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-decoration: none;
  color: inherit;  
}

.category-card, .download-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
    text-decoration: none;
  color: inherit;  
}

.category-card:hover, .download-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.category-icon, .download-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.category-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: white;
}

.category-description, .download-card p {
  font-size: 0.95rem;
  color: #d0d0d0;
  margin-bottom: 20px;
}

.topic-count {
  font-size: 0.9rem;
  color: var(--gray);
}

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

.contact-form, .contact-info {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #d0d0d0;
}

.form-control {
  width: 100%;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-control::placeholder {
  color: #aaa;
}

.form-group textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.submit-btn {
  background: var(--primary);
  color: white;
  font-weight: 600;
  padding: 12px 20px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.info-list {
  list-style: none;
  margin-top: 20px;
}

.info-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.info-list li i {
  color: var(--primary);
  margin-right: 10px;
  font-size: 1.2rem;
}

.map-placeholder {
  margin-top: 30px;
  height: 300px;
  background: #1e293b;
  border-radius: 15px;
  overflow: hidden;
}

footer {
  background: rgba(15, 23, 42, 0.95);
  padding: 60px 0 20px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: white;
}

.footer-column p {
  color: #d0d0d0;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #d0d0d0;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

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

.footer-links i {
  margin-right: 10px;
  width: 20px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #d0d0d0;
  font-size: 0.9rem;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: linear-gradient(135deg, #1a2a3a, #0f1c28);
  border-radius: 15px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalAppear {
  from { opacity: 0; transform: translateY(50px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--danger);
}

.modal-header {
  padding: 30px 30px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: white;
}

.modal-header p {
  color: #d0d0d0;
  font-size: 1rem;
}

.modal-body {
  padding: 20px 30px 30px;
}

.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  color: #d0d0d0;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  font-size: 1rem;
  border-radius: 8px;
}

.auth-tab.active {
  color: white;
  background: var(--primary);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

.btn-modal {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-modal:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Consider a mobile menu implementation */
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .features-grid, .download-grid, .categories-grid, .contact-grid, .footer-content {
    grid-template-columns: 1fr;
  }
}
