
/* Fonts and Base Settings */
:root {
  /* Primary Colors */
  --dark-blue: hsl(233, 26%, 24%);
  --lime-green: hsl(136, 65%, 51%);
  --bright-cyan: hsl(192, 70%, 51%);

  /* Neutral Colors */
  --grayish-blue: hsl(233, 8%, 62%);
  --light-grayish-blue: hsl(220, 16%, 96%);
  --very-light-gray: hsl(0, 0%, 98%);
  --white: hsl(0, 0%, 100%);
}

body {
  font-family: 'Public Sans', sans-serif;
  font-size: 18px;
  color: var(--dark-blue);
  background-color: var(--very-light-gray);
  line-height: 1.6;
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header */
.header {
  background-color: white;
  padding: 1rem 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #ffffff;
  color: var(--lime-green);
}
.logo-name{
    font-weight: bold;
    font-size: 1.5rem;
    color: #ffffff;
    margin-left: -110px;
}

.hero-text p,
.features p,
.feature-item p,
.article-content p {
  color: var(--grayish-blue);
}

.header,
.mobile-nav,
.footer {
  background-color: var(--white);
}


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

.main-nav a {
  text-decoration: none;
  color: #9698a6;
  font-size: 0.95rem;
}

.invite-btn {
  background: linear-gradient(to right, #31d35c, #2bb7da);
  border: none;
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 80px; /* height of your header */
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  z-index: 999;
}


.mobile-nav.open {
  display: flex;
}

.mobile-nav ul {
  list-style: none;
  padding: 1rem;
}

.mobile-nav li {
  margin: 0.5rem 0;
}

.mobile-nav a {
  text-decoration: none;
  color: #2d314d;
  font-weight: bold;
}

/* Hero Section */
.hero {
  background-color: #f3f4f6;
  padding: 4rem 1rem;
}

.hero-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  margin-bottom: 1.5rem;
  color: #9698a6;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* Features */
.features {
  background-color: #f9f9f9;
  padding: 4rem 1rem;
  text-align: center;
}

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

.features p {
  max-width: 600px;
  margin: 0 auto 3rem;
  color: #9698a6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.feature-item img {
  margin-bottom: 1rem;
}

.feature-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.feature-item p {
  color: #9698a6;
}

/* Articles */
.articles {
  padding: 4rem 1rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.article-item {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.article-item img {
  width: 100%;
  display: block;
}

.article-content {
  padding: 1rem;
}

.article-content .author {
  font-size: 0.75rem;
  color: #9698a6;
  margin-bottom: 0.5rem;
}

.article-content h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.article-content p {
  font-size: 0.9rem;
  color: #9698a6;
}

/* Footer */
.footer {
  background-color: #2d314d;
  color: white;
  padding: 2rem 1rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-logo-social {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-icons img {
  width: 24px;
  margin-right: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  display: block;
  color: white;
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-cta {
  text-align: right;
}

.footer-cta p {
  font-size: 0.8rem;
  color: #d3d3d3;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .footer-cta {
    text-align: left;
  }
}
@media (max-width: 375px) {
  html {
    font-size: 16px;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1440px;
  }
}
