@import url("https://fonts.googleapis.com/css2?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");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #f5f5f5;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #1e293b;
  color: white;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  text-decoration: none;
  font-size: 15px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.close-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  align-self: flex-end;
  margin-bottom: 20px;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -260px;
    width: 250px;
    height: 100vh;
    background: #1e293b;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .close-btn {
    display: block;
  }
}

.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 10%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  gap: 40px;
}

.hero-content {
  max-width: 500px;
}

.hero-content h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn.primary {
  background: #38bdf8;
  color: #0f172a;
}

.btn.secondary {
  border: 1px solid white;
  color: white;
}

.btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.hero-image img {
  max-width: 420px;
  width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 40px 20px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-buttons {
    justify-content: center;
  }
}

.hero {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.hero.show {
  opacity: 1;
  transform: translateY(0);
}

.features {
  padding: 80px 10%;
  background: #f8fafc;
  text-align: center;
}

.features h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #0f172a;
}

.features p {
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 50px;
  color: #475569;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.feature-item {
  background: white;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);
}

.feature-item i {
  width: 36px;
  height: 36px;
  color: #38bdf8;
  margin-bottom: 15px;
}

.feature-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0f172a;
}

.feature-item p {
  font-size: 15px;
  color: #64748b;
}

/* Mobile */
@media (max-width: 768px) {
  .features {
    padding: 60px 20px;
  }

  .features-list {
    grid-template-columns: 1fr;
  }
}

.footer {
  background: #0f172a;
  color: #cbd5f5;
  padding-top: 60px;
  margin-top: 80px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 0 10% 40px;
}

.footer h3,
.footer h4 {
  color: white;
  margin-bottom: 15px;
}

.footer-about p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 300px;
}

.footer-links a {
  display: block;
  color: #cbd5f5;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 15px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #38bdf8;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  color: #cbd5f5;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: #38bdf8;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #94a3b8;
}

/* Mobile */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-about p {
    margin: 0 auto;
  }

  .social-icons {
    justify-content: center;
  }
}

.latest-articles {
  padding: 80px 10%;
  background: #ffffff;
}

.latest-articles h2 {
  text-align: center;
  font-size: 32px;
  color: #0f172a;
  margin-bottom: 10px;
}

.section-desc {
  text-align: center;
  color: #64748b;
  margin-bottom: 50px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.article-card {
  background: #f8fafc;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-card h3 {
  font-size: 20px;
  padding: 15px 18px 8px;
  color: #0f172a;
}

.article-card p {
  padding: 0 18px;
  font-size: 15px;
  color: #64748b;
  flex-grow: 1;
}

.article-card a {
  padding: 15px 18px;
  text-decoration: none;
  color: #38bdf8;
  font-weight: 500;
}

.article-card a:hover {
  text-decoration: underline;
}

/* Tablet */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

.home-about {
  padding: 80px 10%;
  background: #f8fafc;
}

.home-about-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.home-about-text {
  flex: 1;
}

.home-about-text h2 {
  font-size: 30px;
  color: #0f172a;
  margin-bottom: 15px;
}

.home-about-text p {
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 15px;
}

.home-about-image {
  flex: 1;
  text-align: center;
}

.home-about-image img {
  max-width: 420px;
  width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
  .home-about-content {
    flex-direction: column-reverse;
    text-align: center;
  }
}

.about-page {
  padding-top: 40px;
}

.about-hero {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
}

.about-hero h1 {
  font-size: 40px;
  margin-bottom: 15px;
}

.about-hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
  opacity: 0.9;
}

.about-content {
  display: flex;
  gap: 60px;
  padding: 80px 10%;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 26px;
  margin: 25px 0 10px;
  color: #0f172a;
}

.about-text p,
.about-text li {
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
}

.about-text ul {
  padding-left: 20px;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 420px;
  width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column-reverse;
    padding: 60px 20px;
  }

  .about-hero h1 {
    font-size: 32px;
  }
}

.contact-section {
  padding: 80px 10%;
  background: #ffffff;
}

.contact-section h2 {
  text-align: center;
  font-size: 32px;
  color: #0f172a;
  margin-bottom: 10px;
}

.contact-container {
  display: flex;
  gap: 60px;
  margin-top: 40px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #0f172a;
}

.contact-info p {
  font-size: 16px;
  color: #475569;
  margin-bottom: 10px;
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #cbd5f5;
  font-size: 15px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #38bdf8;
}

.form-status {
  font-size: 14px;
  margin-top: 5px;
}

/* Mobile */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
}
