:root {
  --primary-color: #3E285C;
  --lavender-light: #ede7f6;
  --lavender-gradient: linear-gradient(180deg, #f3e5f5, #e8eaf6);
  --text-color: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, sans-serif;
}

body {
  background: var(--lavender-gradient);
  color: var(--text-color);
}

.icon--violet {
  transform: scale(0.75);
}

/* ===========================
   Hamburger + Mobile Menu
   =========================== */

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Fullscreen menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 1000;
  display: none;
  flex-direction: column;
  padding: 1.5rem;
}

/* Close button */
.close-menu {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Menu links docked left */
.mobile-links {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-links a {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}

/* ===========================
   Mobile Layout
   =========================== */

@media (max-width: 768px) {

  .hamburger {
    display: block;
  }

  .nav-left {
    display: none !important;
  }

  .nav-right {
    display: none !important;
  }

  .navbar {
    position: relative;
  }

   .nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    white-space: nowrap;
  }
}

/* Active state */
.mobile-menu.active {
  display: flex;
}


/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.nav-logo {
  height: 28px;        /* adjust this size only */
  width: auto;         /* keeps proportions correct */
  display: block;
}

.nav-left, .footer-center {
  display: flex;
  gap: 1rem;
}

.nav-left a,
.footer-center a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.nav-left a:hover,
.footer-center a:hover {
  color: var(--primary-color);
}

.nav-center {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-right {
  display: flex;
  gap: 0.8rem;
}

.social-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  text-decoration: none;
}

logo-circle {
display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lavender-light);
outline-style: solid;
outline-color : var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  text-decoration: none;

}

.logo-icon {
  width: 20px;   /* adjust as needed */
  height: 20px;
  object-fit: contain; 
}


.social-circle:hover {
  opacity: 0.8;
}

.social-icon {
  width: 20px;   /* adjust as needed */
  height: 20px;
  object-fit: contain; 
  filter: brightness(0) invert(1); /* makes white on dark circle */
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 8%;
  flex-wrap: wrap;
}

.welcome-text {
  flex: 1;
  min-width: 300px;
}

.welcome-text h1 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.welcome-text p {
  color: #555;
  line-height: 1.6;
}

.welcome-image {
  flex-basis: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.welcome-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  background: lavender;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.welcome-image img:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
/* Divider */
.divider {
  border: none;
  border-top: 2px solid #ddd;
  margin: 2rem 8%;
}

/* ===== ARTICLES SECTION ===== */
.articles-section {
  padding: 3rem 8%;
}

.articles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.articles-header h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
}

.read-more-btn {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
}

.read-more-btn:hover {
  background: var(--primary-color);
  color: white;
}

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

.article-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: lavender;
}

.article-content {
  padding: 1.5rem;
}

.article-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.article-content p {
  color: #555;
  line-height: 1.6;
}
/* ===== About ===== */

.about-section {
  padding: 4rem 8%;
  background: var(--lavender-gradient);
  min-height: 80vh;
}
.about-container {
  max-width: 800px;
  margin: 0 auto;
}

.about-container h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-container h3 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.about-container p {
  color: #555;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding-top: 3rem;
  margin-top: 4rem;
}

.newsletter {
  max-width: 700px;
  margin: 0 auto 2rem;
}

.newsletter h2 {
  margin-bottom: 1rem;
}

.subscribe-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.subscribe-box input {
  width: 60%;
  padding: 0.8rem;
  border: none;
  border-radius: 5px 0 0 5px;
  outline: none;
}

.mail-btn {
  background: white;
  color: var(--primary-color);
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.mail-btn:hover {
  background: #ddd;
}

/* ========== Posts ===========*/

.post-hero {
  padding: 1rem 8%;
  background: var(--lavender-gradient);
  text-align: center;
}

.post-title {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.post-subtitle {
  font-size: 1.1rem;
  color: #555;
}

.post-content {
  padding: 1rem 8%;
  line-height: 1.8;
  color: #333;
}

.post-content img.post-image {
  width: 100%;
  border-radius: 10px;
  margin: 2rem 0;
}

.code-block {
  background: #1f1f1f;
  color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 2rem 0;
}

.back-button {
  display: inline-block;
  margin-top: 3rem;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

/************************ Footer **********************/

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 8%;
  flex-wrap: wrap;
}

.footer-center a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.footer-center a:hover {
  color: #e0e0e0;
}

.footer-left {
  font-weight: bold;
}

.footer-right {
  display: flex;
  gap: 0.8rem;
}

.footer-social {
  background: white;
  color: var(--primary-color);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.footer-line {
  border: none;
  border-top: 1px solid white;
  margin: 1rem 8%;
}

.footer-bottom {
  text-align: left;
  padding: 0 8% 1rem;
  font-size: 0.9rem;
}

/* ===========================
   Footer – Mobile Responsive
   =========================== */

@media (max-width: 768px) {

  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
    padding: 1.5rem 1rem;
  }

  .footer-left {
    font-size: 1.1rem;
  }

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

  .footer-right {
    justify-content: center;
  }

  .footer-line {
    margin: 1rem 1rem;
  }

  .footer-bottom {
    text-align: center;
    padding: 0 1rem 1rem;
  }
}
