:root {
  --primary: #0d47a1;
  --secondary: #1976d2;
  --accent: #1565c0;
  --bg: #f8f9fa;
  --text: #333333;
  --light: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

/* Navbar */
.navbar {
  background: var(--light);
  box-shadow: 0 4px 10px var(--shadow);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar--hidden {
  transform: translateY(-100%);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo {
  width: 70px;
  height: 70px;
}

.brand-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

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

.nav-links li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 90vh;
  background: linear-gradient(135deg, var(--primary), var(--secondary)),
    url('assets/banner.png') center center / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--light);
  text-align: center;
  padding: 2rem;
}

.hero-content {
  max-width: 800px;
  background: rgba(0, 0, 0, 0.7);
  padding: 2.5rem;
  border-radius: 14px;
  box-shadow: 0 10px 30px var(--shadow);
  animation: fadeIn 1.5s ease;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-buttons a {
  background: var(--accent);
  color: var(--light);
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

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

/* Section Base */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.section h2 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 2.5rem;
}

.section:nth-of-type(even) {
  background-color: var(--light);
}

/* About Section */
.about-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-logo img {
  max-width: 220px;
  border-radius: 14px;
  box-shadow: 0 8px 24px var(--shadow);
}

.about-text {
  flex: 1;
  font-size: 1.15rem;
  line-height: 1.9;
  text-align: left;
}

/* Founder Section */
.founder-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.founder-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--accent);
  box-shadow: 0 8px 24px var(--shadow);
}

.founder-info {
  max-width: 550px;
  text-align: left;
}

.founder-info h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.founder-link {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 600;
}

.founder-link:hover {
  text-decoration: underline;
}

/* Projects Section */
.project-scroll-wrapper {
  overflow-x: auto;
  padding: 1.5rem 0;
}

.project-scroll {
  display: flex;
  gap: 2rem;
  animation: scrollProjects 13s ease-in infinite;
}

@keyframes scrollProjects {
  0% { transform: translateX(0%); }
  50% { transform: translateX(-100%); }
  100% { transform: translateX(0%); }
}

.project-card {
  min-width: 300px;
  background: var(--light);
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 6px 24px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 12px 30px var(--shadow);
}

.project-card h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.project-card p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.project-card a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

.project-card a:hover {
  text-decoration: underline;
}

/* Join Section */
.join .dm-text {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.join .dm-text a {
  color: var(--primary);
  text-decoration: underline;
}

/* Add space between Join section and Footer */
.section.join {
  margin-bottom: 80px;
}

@media (max-width: 768px) {
  .section.join {
    margin-bottom: 40px;
  }
}

/* Footer */
footer {
  background-color: var(--primary);
  padding: 2.5rem;
  color: var(--light);
  text-align: center;
}

.footer-container {
  max-width: 1000px;
  margin: auto;
}

.footer-container p {
  font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 1rem;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .founder-section {
    flex-direction: column;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}
