/* Dark Mode Toggle Button */
.toggle-theme {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}

.switch {
  display: inline-block;
  width: 50px;
  height: 26px;
  background-color: #ccc;
  border-radius: 50px;
  position: relative;
  cursor: pointer;
}

.switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

input[type="checkbox"]:checked + .switch::before {
  transform: translateX(24px);
}

input[type="checkbox"] {
  display: none;
}
/* style.css */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #EDE8F5;
  color: #3D52A0;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.navbar {
  background-color: #ffffff;
  padding: 1rem 0;
  position: relative;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.navbar .brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #3D52A0;
  text-decoration: none;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.navbar .nav-links li a {
  text-decoration: none;
  color: #3D52A0;
  font-weight: 500;
}

/* Fix navbar layout */
header, nav, .navbar, .nav-container {
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.hero {
  min-height: 100vh;
  background: linear-gradient(to right, #7091E6, #8697C4);
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
}

.hero .btn {
  background-color: #3D52A0;
  color: white;
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 1rem;
}

.section {
  padding: 4rem 0;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #3D52A0;
}

.bg-alt {
  background-color: #ADBBDA;
}

#project-list {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2rem;
}

.project {
  background-color: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}

.project h3 {
  font-size: 1.3rem;
  color: #3D52A0;
  margin-bottom: 0.5rem;
}

.project p {
  font-size: 0.95rem;
  color: #555;
  flex-grow: 1;
}

.project a {
  margin-top: 1rem;
  display: inline-block;
  text-decoration: none;
  color: white;
  background-color: #3D52A0;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.project a:hover {
  background-color: #1e2e70;
}

body.dark-mode .project {
  background-color: #3a3e50;
  color: #EDE8F5;
}

body.dark-mode .project p {
  color: #dcdcdc;
}

body.dark-mode .project a {
  background-color: #7091E6;
}

body.dark-mode .project a:hover {
  background-color: #3D52A0;
}

footer {
  background-color: #8697C4;
  color: white;
  text-align: center;
  padding: 1rem 0;
}

/* Dark Mode */
body.dark-mode {
  background-color: #1c1f2b;
  color: #EDE8F5;
}

body.dark-mode .navbar {
  background-color: #2a2d3e;
}

body.dark-mode .navbar .nav-links li a {
  color: #EDE8F5;
}

body.dark-mode .hero {
  background: linear-gradient(to right, #3D52A0, #1c1f2b);
  color: white;
}

body.dark-mode .section,
body.dark-mode .bg-alt {
  background-color: #2a2d3e;
  color: #EDE8F5;
}

body.dark-mode .project {
  background-color: #3a3e50;
  color: #EDE8F5;
}

body.dark-mode footer {
  background-color: #2a2d3e;
  color: #EDE8F5;
}

/* At the end of style.css */
/* Ensure the parent container centers the button */
.container.center {
  text-align: center;
}

/* Button styling */
.contact-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  color: white;
  background: linear-gradient(135deg, #6c5ce7, #7158e2); /* match your accent */
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

.contact-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(108, 92, 231, 0.4);
}

.contact-btn:active {
  transform: scale(0.98);
}

.blog-carousel {
  overflow: hidden;
  position: relative;
  margin-top: 2rem;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  animation: scroll-left 25s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

animation: scroll-left 40s linear infinite;

/* Swiper container */
.mySwiper {
  padding-top: 20px;
  padding-bottom: 40px;
}

/* Individual blog card */
.insight-card {
  border: 1px solid #ccc;
  background-color: #EDE8F5;
  padding: 20px;
  border-radius: 12px;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.insight-card h3 {
  font-size: 1.1rem;
  color: #3D52A0;
  margin-bottom: 12px;
}

.insight-card a {
  align-self: flex-start;
  padding: 6px 14px;
  font-size: 0.85rem;
  background-color: #7091E6;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
}

.share-buttons-icon {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid transparent;
  background-color: white;
  font-size: 18px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}

.btn-icon:hover {
  transform: scale(1.15);
}

.btn-icon.twitter {
  color: #000000;
  border-color: #000000;
}
.btn-icon.facebook {
  color: #1877F2;
  border-color: #1877F2;
}
.btn-icon.linkedin {
  color: #0A66C2;
  border-color: #0A66C2;
}
.btn-icon.whatsapp {
  color: #25D366;
  border-color: #25D366;
}
.btn-icon.email {
  color: #6c757d;
  border-color: #6c757d;
}


.post-meta {
  margin-top: 10px;
  margin-bottom: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary, #888);
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  animation: fadeInMeta 1.2s ease-in-out both;
  border: 1px solid rgba(200, 200, 255, 0.2);
  padding: 10px 20px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.post-meta i {
  color: var(--primary, #7091E6);
  font-size: 1.1rem;
}

.post-meta span {
  display: inline-block;
}

.post-meta .dot {
  font-size: 1.2rem;
  color: var(--text-muted, #bbb);
}

@keyframes fadeInMeta {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


#project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card, .project {
  background: var(--card-bg, #f4f4f4);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

.project-card h3, .project h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.project-card p, .project p {
  font-size: 0.95rem;
  color: #555;
}

.project-card a.btn, .project a.btn {
  display: inline-block;
  margin-top: 10px;
  background: #3D52A0;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}


.button-group {
  display: flex;
  gap: 10px;         /* space between buttons */
  margin-top: 10px;  /* space above buttons group */
}

.button-group .btn {
  margin-top: 0;     /* remove top margin on each button */
  flex: 1;           /* make both buttons same width */
  text-align: center;
}


.try-button-container {
  margin: 2rem 0;
  text-align: center;
}

.try-button {
  display: inline-block;
  background: #3D52A0;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease;
}

.try-button:hover {
  background: #2c3a77;
}


/* Code snippet */
.code-block {
  background: var(--code-bg, #1e1e1e);
  color: #eee;
  padding: 1em;
  margin: 1.5em 0;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  overflow-x: auto;
  font-size: 0.9em;
}

/* Post subtitle */
.post-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
  margin-top: -0.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary, #555);
  padding-left: 12px;
  border-left: 4px solid var(--accent-color, #ff5e57);
  font-style: italic;
}

