/* =======================
   Global Reset & Basics
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #121212;
  color: #f0f0f0;
  line-height: 1.6;
  font-size: 16px;
}

/* =======================
   Navbar
======================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background-color: #1e1e1e;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #3a0ca3;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

.navbar ul li a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar ul li a:hover {
  color: #3a0ca3;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #f0f0f0;
}

/* =======================
   Sections
======================= */
.section {
  padding: 80px 32px;
  text-align: center;
}

.section h1, .section h2 {
  color: #3a0ca3;
  margin-bottom: 16px;
}

.section p {
  color: #dcdcdc;
  margin-bottom: 32px;
}

/* =======================
   Hero Sections
======================= */
.hero, .about-hero, .blog-hero, .contact-hero {
  padding: 120px 32px 80px;
}

.hero h1, .about-hero h1, .blog-hero h1, .contact-hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* =======================
   Buttons
======================= */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: #3a0ca3;
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
  background: #7209b7;
  transform: translateY(-3px);
}

/* =======================
   Portfolio / Blog Cards
======================= */
.cards-container, .posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.card, .blog-card {
  background-color: #1e1e1e;
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(58, 12, 163, 0.5);
}

.card h3, .blog-card h3 {
  color: #3a0ca3;
  margin-bottom: 12px;
}

.card p, .blog-card p {
  color: #dcdcdc;
}

/* =======================
   Contact Form
======================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input, .contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: none;
  background-color: #2a2a2a;
  color: #f0f0f0;
  resize: none;
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid #3a0ca3;
}

/* =======================
   Iframe
======================= */
.blog-iframe iframe {
  width: 100%;
  height: 1000px;
  border-radius: 12px;
  border: none;
}

/* =======================
   Social Links
======================= */
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 12px;
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: #3a0ca3;
  transform: translateY(-2px);
}

/* =======================
   Footer
======================= */
footer {
  background-color: #1e1e1e;
  padding: 32px;
  text-align: center;
  margin-top: 80px;
}

footer p {
  margin-bottom: 16px;
}

.footer-social a {
  margin: 0 12px;
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #3a0ca3;
}

/* =======================
   Responsive
======================= */
@media (max-width: 768px) {
  .navbar ul {
    display: none;
    flex-direction: column;
    gap: 16px;
    background-color: #1e1e1e;
    position: absolute;
    top: 64px;
    right: 0;
    width: 200px;
    padding: 16px;
    border-radius: 8px;
  }

  .navbar ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .cards-container, .posts-container {
    grid-template-columns: 1fr;
  }
}
