@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Dancing+Script:wght@400..700&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;
    list-style: none;
    text-decoration: none;
    font-family: 'Poppins';
    scroll-behavior: smooth;
}

:root{
    --prime-color: #A234FD;
    --secondary-color: #5D00F7;
    --third-color: #FE7524;
    --bg-color: #241B38;
    --text-color: #07000E;
    --light-text: #716f73;
    --black-color: #000;
    --white-color: #fff;
    --prim-icon-gradient: linear-gradient(50deg, #a234fd 0%, #ff31ab 49%, #ff6f05 100%);
    --prim-text-gradient: linear-gradient(90deg, #7512a2 0%, #ff31ab 48.53%, #ff6f05 100%);
    --nav-menu-gradient: linear-gradient(180deg, #fe7524 0%, rgba(254, 117, 36, 0) 80%);
    --nav-gradient: linear-gradient(90deg, #a234fd 0%, #ff31ab 2%, #ff6f05 100%);
    --service-gradient: linear-gradient(-90deg, #a234fd 0%, rgba(162, 52, 253, 0) 100%);
    --service-gradient-mask: linear-gradient(#fff 0 0) content-box, (#fff 0 0);

    --kaushan-font: "Dancing Script", cursive;
    --DM-sans-font: "DM Sans", sans-serif;

    --transition-regular:.3s;
    --transition-slow:.6s;
}

body{
    overflow-x: hidden;
    color: var(--black-color);
}

img{
    width: 100%;
    height: 100%;
}
section{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5% 12%;
}
  /* Preloader fullscreen */
  #preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0f0f; /* Dark background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  /* Loader style */
  .loader {
    text-align: center;
    color: #ff9900;
    font-family: 'Orbitron', sans-serif; /* Add a tech font */
  }
  
  .loader .ring {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin: 10px;
    border: 3px solid transparent;
    border-top: 3px solid #ff9900;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  .loader .ring:nth-child(2) {
    animation-delay: 0.2s;
  }
  .loader .ring:nth-child(3) {
    animation-delay: 0.4s;
  }
  
  .loader p {
    margin-top: 20px;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #ffaa33;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  /* Blog Section - Sleek look */
.blog-section {
  width: 100%;
  margin: 60px auto;
  background-color: var(--box-bg);
  padding: 40px 15px; /* added side padding for mobile */
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: background-color 0.3s ease;
  overflow-x: hidden; /* prevent horizontal scroll */
}

.blog-section h1 {
  margin-bottom: 25px;
  padding-left: 20px;
  color: var(--prime-color);
  font-size: 2.5rem;
  border-left: 5px solid var(--third-color);
}

/* Latest Post Content */
.latest-post {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.post-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.post-content {
  flex: 1;
  text-align: left;
  padding: 10px;
}

.post-content h2 {
  color: var(--prime-color);
  margin-bottom: 15px;
  font-size: 2rem;
  font-weight: bold;
}

.post-content p {
  font-size: 1.1rem;
  color: var(--light-text);
  margin-bottom: 25px;
  line-height: 1.8;
}
.btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
/* CTA Button */
.btn {
  background-color: var(--prime-color);
  color: var(--white-color);
  padding: 14px 28px;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(108, 99, 255, 0.4);
  text-align: center;
}

.btn:hover {
  background-color: var(--third-color);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
}

/* Introduction Section - More space & shine */
.cellvi-intro {
  text-align: center;
  margin: 50px auto;
  padding: 50px 30px;
  max-width: 900px;
  line-height: 1.7;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.cellvi-intro h2 {
  font-size: 2.4em;
  margin-bottom: 20px;
  color: var(--prime-color);
  font-weight: 700;
}

.cellvi-intro p {
  font-size: 1.1em;
  color: var(--light-text);
  margin-top: 10px;
}

/* Embed Section */
.embed-section {
  margin-top: 60px;
  padding: 20px;
  text-align: center;
}

.embed-section h3 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--white-color);
}

.embed-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 30px auto;
  padding: 0 15px;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.substack-post-embed {
  padding: 25px;
  background-color: var(--box-bg);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
  min-width: 0;
  overflow-wrap: break-word;
}

.substack-post-embed:hover {
  transform: scale(1.05);
}

.substack-post-embed p {
  font-size: 1rem;
  color: var(--white-color);
}

.substack-post-embed a {
  font-size: 1rem;
  color: var(--prime-color);
  text-decoration: none;
  font-weight: bold;
}

.substack-post-embed a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .embed-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .embed-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .post-content h2 {
    font-size: 1.6rem;
  }

  .post-content p {
    font-size: 0.95rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 10px 18px;
  }

  .post-image img {
    max-width: 350px;
  }
}

@media (max-width: 600px) {
  .embed-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .post-content h2 {
    font-size: 1.3rem;
  }

  .post-content p {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .substack-post-embed {
    padding: 15px;
  }
}
