/* --------------------------------------
   Global Styles and Typography
----------------------------------------- */
@import url('../css/tokens.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@200..700&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&display=swap');

:root {
  --primary:      var(--color-accent);
  --primary-dark: var(--color-accent-hover);
  --accent:       var(--color-success);
  --bg-light:     var(--color-surface);
  --bg-dark:      var(--color-bg);
  --text-light:   var(--color-text-primary);
  --text-dark:    var(--color-text-primary);
  --text-muted:   var(--color-text-muted);
  --font-main:    var(--font-ui);
  --font-heading: "Oswald", serif;
}

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

body {
  font-family: var(--font-main);
  background-color: white;
  color: var(--text-dark);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

p {
  color: var(--text-dark);
}

/* --------------------------------------
   Navbar
----------------------------------------- */
.navbar-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  background: var(--bg-dark);
  backdrop-filter: blur(8px);
}

.navbar-transparent {
  background-color: rgba(57, 61, 62, 0.4);
  backdrop-filter: blur(5px);
}

.logo {
  font-size: 1.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-light);
}

.menu-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.menu-links li a {
  text-decoration: none;
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.menu-links li a:hover {
  color: #f0f0f0;
}

.menu-links li .dropdown {
  margin-left: 0.5rem;
}

@media (max-width: 768px) {
  .navbar-bg {
    padding: 0 1rem;
  }

  .menu-links {
    gap: 1rem;
  }
}

/* --------------------------------------
   Project Section
----------------------------------------- */
.project-section {
  padding: 3rem 2rem;
  background-color: var(--bg-light);
}

.project-hero {
  text-align: center;
  margin: 2rem 0;
}

.fade-in {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  background: #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: white;
}

.project-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 2rem;
}

.stat-card {
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.project-card.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 1rem;
}

.progress-bar {
  background: #eee;
  border-radius: 3px;
  height: 8px;
  margin: 0.5rem 0;
}

.progress-bar > div {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

/* --------------------------------------
   Testimonials
----------------------------------------- */
.testimonial-section {
  background: white;
  padding: 2rem;
  text-align: center;
}

.testimonial-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.testimonial-card {
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 5px;
  max-width: 300px;
  margin: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.testimonial-card h4 {
  font-size: 1rem;
  color: var(--text-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------
   Call-to-Action (CTA)
----------------------------------------- */
.cta {
  background-color: #f0f0f0;
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

.cta-content {
  max-width: 450px;
  width: 100%;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.cta a {
  background-color: white;
  color: var(--primary);
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta a:hover {
  background-color: var(--primary-dark);
  color: white;
}

/* --------------------------------------
   Project Add Form
----------------------------------------- */
.project-add {
  background-color: #f9f9f9;
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-add h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-dark);
}

#new-project-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#new-project-form input,
#new-project-form select {
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  transition: border 0.3s;
}

#new-project-form input:focus,
#new-project-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#new-project-form button {
  background-color: var(--primary);
  color: #fff;
  padding: 0.9rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#new-project-form button:hover {
  background-color: var(--primary-dark);
}


/* --------------------------------------
   Footer
----------------------------------------- */
.site-footer {
  background: linear-gradient(to right, rgba(104, 122, 120, 0.8), rgba(108, 129, 138, 0.8));
  color: var(--text-light);
  padding: 2rem 1rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.footer-content h3 {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.footer-content p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  margin: 0 12px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  margin-top: 25px;
}

@media (max-width: 600px) {
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .project-stats {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}
