/* =========================
FILE: style.css
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #111827;
  line-height: 1.7;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section {
  padding: 80px 0;
}

.bg-light {
  background: #f8fafc;
}

.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading h2 {
  font-size: 40px;
  margin-bottom: 15px;
}

/* HEADER */

.header {
  width: 100%;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e5e7eb;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo a {
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
  color: #111827;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #111827;
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  border: 1px solid #d1d5db;
  color: #111827;
}

.btn-small {
  padding: 10px 20px;
  background: #2563eb;
  color: white;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* HERO */

.hero {
  padding: 100px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  align-items: center;
}

.hero-image img{
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.tag {
  display: inline-block;
  background: #dbeafe;
  color: #2563eb;
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 60px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.image-placeholder {
  height: 400px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}

/* CARDS */

.card-grid,
.tutorial-grid {
  display: grid;
  gap: 30px;
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.link-card,
.tutorial-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  border: 1px solid #e5e7eb;
  transition: 0.3s ease;
}

.card:hover,
.link-card:hover,
.tutorial-card:hover {
  transform: translateY(-5px);
}


/* ADVANCED CONTENT */

.advanced-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.advanced-card{
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 30px;
  border: 1px solid #e5e7eb;
  transition: 0.3s ease;
  text-align: center;
}

.advanced-card:hover{
  transform: translateY(-5px);
}

.advanced-card a{
  text-decoration: none;
  font-weight: 600;
  color: #2563eb;
}

/* INTERNAL LINKS */

.links-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.link-card{
  text-decoration: none;
  color: #111827;
  text-align: center;
  font-weight: 600;
  padding: 18px 30px;
}

.link-card:hover{
  background: #2563eb;
  color: #ffffff;
}

/* TUTORIAL GRID */

.tutorial-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* TUTORIAL IMAGE */

.tutorial-image img{
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 20px;
}

/* TUTORIAL IMAGES */

.tutorial-image img{
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* FAQ */

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  font-size: 20px;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
}

.faq-answer {
  display: none;
  padding-top: 15px;
}

/* NEWSLETTER */

.newsletter {
  padding: 80px 0;
  background: #2563eb;
  color: white;
  text-align: center;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.newsletter-form input {
  padding: 14px;
  width: 350px;
  border: none;
  border-radius: 8px;
}

/* FOOTER */

.footer {
  background: #111827;
  color: white;
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer a {
  color: #d1d5db;
  text-decoration: none;
}

.footer ul {
  list-style: none;
}

.footer-bottom {
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
  border-top: 1px solid #374151;
}

/* MOBILE */

@media(max-width: 992px) {

  .hero-grid,
  .card-grid,
  .tutorial-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    width: 100%;
  }

}



/* =========================
ABOUT PAGE CSS
========================= */




/* =========================
CONTENT SECTION
========================= */

.content-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 15px;
  color: #111827;
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
  color: #6b7280;
  line-height: 1.7;
}

/* =========================
GRID
========================= */

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* =========================
CARD
========================= */

.content-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  transition: 0.3s ease;
}

.content-card:hover {
  transform: translateY(-5px);
}

.content-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #111827;
}

.content-card p {
  color: #6b7280;
  line-height: 1.8;
}

/* =========================
RESPONSIVE
========================= */

@media (max-width: 992px) {

  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 768px) {

  .content-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 28px;
  }

}