:root {
  --primary-color: #ffffff; /* White */
  --secondary-color: #cccccc; /* Light Gray */
  --text-color: #e0e0e0;
  --bg-color: #000000;
  --white-color: #ffffff;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
   cursor: none;
}

body.loaded {
    overflow-y: auto;
    overflow-x: hidden;
}

/* --- Custom 3D Transparent Disk Cursor --- */
.custom-cursor {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1) 60%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.1), 0 0 10px rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    z-index: 10000;
}


/* --- Interactive Starfield Canvas --- */
#starfield-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind everything */
}


/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* --- Preloader (Arrival Animation) --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.75s ease 1s, visibility 0.75s ease 1s;
  opacity: 1;
  overflow: hidden;
}

.preloader-text {
    font-family: 'Allura', cursive;
    font-size: 4.5rem; /* Increased size */
    color: var(--white-color);
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.preloader-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(-40px) scale(0.5);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    line-height: 1;
}

.plane-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.plane-container.is-flying {
    opacity: 1;
    animation: circleFly 3s ease-in-out forwards;
}

.plane {
    width: 100%;
    height: 100%;
}

#preloader.exploding .plane-container {
    animation: planeExplode 0.5s ease-in forwards;
}

#preloader.exploding .preloader-text {
    transition: opacity 0.5s ease;
    opacity: 0;
}

.star-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.star-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

#preloader.exploding .star-particle {
    animation: starSprinkle 1.5s ease-out forwards;
}

#preloader.finished {
  opacity: 0;
  visibility: hidden;
}

@keyframes circleFly {
    0% { transform: translateX(-80vw) translateY(0) rotate(-90deg) scale(0.5); opacity: 0; }
    20% { opacity: 1; }
    25% { transform: translateX(0) translateY(-20vh) rotate(0deg) scale(1); }
    50% { transform: translateX(20vw) translateY(0) rotate(90deg) scale(1.2); }
    75% { transform: translateX(0) translateY(20vh) rotate(180deg) scale(1); }
    100% { transform: translateX(0) translateY(0) rotate(360deg) scale(1.5); opacity: 1; }
}

@keyframes planeExplode {
    0% { transform: scale(1.5) rotate(360deg); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

@keyframes starSprinkle {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1); }
}

@keyframes holographic-pulse {
  0% {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.5));
  }
  100% {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.2));
  }
}


/* Navbar — authoritative rules */

/* Base variables and transitions */
.custom-navbar{
  --navbar-padding: 18px 0;
  --navbar-boxshadow: none;
  --logo-height: 60px; /* original */

  position: fixed; /* ensure sticky */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030; /* above content but below modals */

  /* background-color: transparent; <-- REMOVED default transparent */
  padding: var(--navbar-padding);
  transition: background-color .35s ease, padding .28s ease, box-shadow .35s ease, transform .20s ease;
}

/* --- NEW: Rule for transparent state on desktop when NOT scrolled --- */
@media (min-width: 993px) {
  .custom-navbar:not(.scrolled) {
    background-color: transparent !important; /* Start transparent ONLY on desktop at top */
    box-shadow: none; /* Ensure no shadow when transparent */
  }
}
/* --- END NEW RULE --- */


.custom-navbar .navbar-brand img{
  height: var(--logo-height);
  transition: height .28s ease;
  display: block;
}

.custom-navbar .nav-link{
  color: #fff !important; /* always white links */
  transition: color .25s ease, opacity .25s ease;
  position: relative;
  padding-bottom: 6px;
  margin: 0 10px; /* Added spacing */
}

/* Underline/highlight line */
.custom-navbar .nav-link::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0; /* Start hidden */
  height: 3px;
  background: linear-gradient(90deg, #ffffff, #b3b3b3);
  border-radius: 2px;
  transition: width 260ms cubic-bezier(.2,.9,.2,1);
}

.custom-navbar .nav-link:hover::after,
.custom-navbar .nav-link.active::after {
  width: 100%;
}


/* Scrolled state */
.custom-navbar.scrolled{
  --navbar-padding: 8px 0;
  --navbar-boxshadow: 0 6px 18px rgba(0,0,0,0.45);
  --logo-height: 45px; /* shrunk */

  background-color: #000000 !important; /* Explicit solid black */
  padding: var(--navbar-padding);
  box-shadow: var(--navbar-boxshadow);
}

/* Hidden state */
.custom-navbar.navbar-hidden{
  transform: translateY(-110%);
}

.custom-navbar .navbar-collapse{
  transition: none;
}

/* Mobile/tablet styling */
@media (max-width: 992px){
  .custom-navbar{
    /* Mobile starts solid black */
    background: rgba(0,0,0,1) !important;
    --logo-height: 60px;
    padding: 12px 0;
  }
  .custom-navbar.scrolled{
    /* Mobile scrolled state also solid black, just shrunk */
    --logo-height: 45px;
    padding: 8px 0;
    background: rgba(0,0,0,1) !important; /* Ensure it stays solid black */
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  }
  .custom-navbar .navbar-collapse{
    background: rgba(0,0,0,0.98);
    padding: 12px;
    border-radius: 8px; /* Added radius */
    margin-top: 10px; /* Added margin */
  }
}

/* Toggler Icon Color */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Content padding */
#scroll-container{
  padding-top: 96px; /* Adjusted based on max nav height (60px logo + padding) */
}

/* Link contrast */
.custom-navbar a.nav-link:focus,
.custom-navbar a.nav-link:hover{
    opacity: 0.9;
    color: #fff !important; /* Ensure hover color is white */
}


/* --- Section Styling --- */
.full-screen-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0; /* Reduced padding slightly */
    position: relative;
    z-index: 2; /* Above starfield */
}

/* Home section padding already handled by #scroll-container */
#home {
     min-height: calc(100vh - 96px); /* Adjust min-height based on scroll container padding */
     padding-top: 0;
     display: flex; /* Ensure flex alignment works */
     align-items: center;
     justify-content: center;
}


.section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
}
.section-title.text-start {
    text-align: left !important;
    margin-bottom: 40px;
}

.section-title::after {
  background: var(--white-color);
  content: ""; width: 80px; height: 4px; border-radius: 2px;
  position: absolute; bottom: -15px; left: 50%;
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.5s ease-out 0.3s, transform 0.5s ease-out 0.3s;
}

.section-title.text-start::after {
    left: 0;
    transform: translateX(0) translateY(10px);
}

.section-title[data-aos].aos-animate::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.section-title.text-start[data-aos].aos-animate::after {
    opacity: 1;
    transform: translateX(0) translateY(0);
}


.hero-content {
  padding-top: 0; /* Removed specific padding */
  text-align: center; /* Center align hero text */
}

.hero-content h1 {
  font-family: 'Allura', cursive;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-content h1 span {
    display: inline-block;
    opacity: 0;
    transform: translateY(-50px) scale(0.5);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    font-size: 6.5rem;
    margin: 0 1px;
    line-height: 1;
}

/* --- Services Section --- */
.service-icon {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--white-color);
  width: 100%;
  max-width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-icon svg {
  width: 70px;
  height: 70px;
  transition: transform 0.3s ease;
}

.service-icon span {
  font-size: 1.2rem;
  margin-top: 15px;
  font-weight: 500;
}

.service-icon:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* --- Service Icon Animations (On Hover) --- */

/* Ebook Flip */
.ebook-svg .book-page-flip {
    transform-origin: 50px 50px;
    visibility: hidden;
}
.service-icon:hover .ebook-svg .book-page-flip {
    animation: page-flip-continuous-simple 3s ease-in-out infinite;
}
.service-icon:hover .ebook-svg .page-1 { animation-delay: 0s; }
.service-icon:hover .ebook-svg .page-2 { animation-delay: 1s; }
.service-icon:hover .ebook-svg .page-3 { animation-delay: 2s; }
@keyframes page-flip-continuous-simple {
    0%, 33.4%, 100% { transform: perspective(1000px) rotateY(0deg); visibility: hidden; }
    1% { transform: perspective(1000px) rotateY(0deg); visibility: visible; }
    33.3% { transform: perspective(1000px) rotateY(-180deg); visibility: visible; }
}

/* Test Paper Reveal */
.test-paper-svg {
    transition: filter 0.3s ease;
    animation: holographic-pulse 2.5s infinite ease-in-out;
}
.test-paper-outline {
    stroke-dasharray: 102;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s ease-out;
}
.test-paper-checkmark {
    stroke-dasharray: 9;
    stroke-dashoffset: 9;
    transition: stroke-dashoffset 0.5s ease-in-out;
}
.service-icon:hover .test-paper-svg {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    animation: none;
}
.service-icon:hover .test-paper-checkmark {
    stroke-dashoffset: 0;
    transition-delay: 0.2s;
}

/* Download Arrow */
.service-icon:hover .download-svg .arrow {
    animation: moveDown 1.5s infinite ease-in-out;
}
@keyframes moveDown {
    0%, 100% { transform: translateY(-4px); }
    50% { transform: translateY(4px); }
}


.text-gradient {
    background: linear-gradient(45deg, #ffffff, #b3b3b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}




/* --- Popular Books Carousel (3D) --- */
.book-carousel-container {
    position: relative;
    width: 100%;
    height: 350px;
    perspective: 1200px;
    margin: 60px auto 0; /* Added top margin */
    overflow: visible !important;               /* ⬅️ allows back side to show */
  perspective-origin: 50% 50%;     /* ⬅️ centers 3D depth */

}

.new-book-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

.book-item {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    width: 200px;
    height: 300px;
    border-radius: 10px;
    overflow: visible;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), box-shadow 0.3s ease; /* Added transition */
    -webkit-box-reflect: below 10px linear-gradient(transparent, transparent, rgba(0,0,0,0.25));
    cursor: pointer; /* Indicate interactivity */

    will-change: transform;
/* backface-visibility: hidden; */
transform-style: preserve-3d;

}
.book-item:hover {
     box-shadow: 0 15px 35px rgba(0,0,0,0.5); /* Enhance shadow on hover */
}

.book-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    line-height: 45px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;

    
}
.new-carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.prev-arrow { left: 10%; }
.next-arrow { right: 10%; }


/* --- Popular Ebook Series Sliders (Swiper) --- */
#ebook-series .container-fluid {
    max-width: 1600px;
}

.series-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--white-color);
    margin-top: 3rem; /* Increased top margin */
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.series-carousel {
    width: 100%;
    height: 320px;
    padding: 10px 0;
    overflow: hidden; /* Hide overflow */
}

.series-book-item {
    height: 250px;
    
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: grab; /* Indicate draggable */
    position: relative; /* This is crucial for positioning the cover */
}
.series-book-item:active {
    cursor: grabbing;
}

.series-book-item:hover {
    transform: translateY(-5px) scale(1.02); /* Slight scale on hover */
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* --- START: Styles for Ebook Series Hover Effect --- */
.book-image-default,
.book-image-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

.book-image-cover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; /* Hide the cover image by default */
}

.series-book-item:hover .book-image-cover {
    opacity: 1; /* Show the cover image on hover */
}
/* --- END: Styles for Ebook Series Hover Effect --- */


/* Styling Swiper Arrows */
.series-carousel .swiper-button-next,
.series-carousel .swiper-button-prev {
    color: #ffffff;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.series-carousel .swiper-button-next:hover,
.series-carousel .swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1); /* Scale arrows on hover */
}
.series-carousel .swiper-button-next::after,
.series-carousel .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: 900;
}


/* --- About Us Section --- */
.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
}
.about-img {
  max-width: 80%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* --- E-book Page Card Styles --- */
.ebook-page-card {
  position: relative;
  /* border-radius: 18px; */
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  height: 310px;
  transition: all 0.4s ease;
}

.ebook-page-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
}

.ebook-page-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease-out;
}

.ebook-page-overlay p {
    min-height: auto;
    margin-bottom: 1rem;
}

/* Hover effects for Ebook Page Card */
.ebook-page-card:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,.5);
  transform: translateY(-5px);
}
.ebook-page-card:hover .ebook-page-image {
  transform: scale(1.1);
}
.ebook-page-card:hover .ebook-page-overlay {
  opacity: 1;
  transform: translateY(0);
}


/* --- Footer --- */
.footer-section {
  background-color: #111;
  color: var(--white-color);
  position: relative;
  z-index: 2; /* Above starfield */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; /* Use flexbox */
  flex-direction: column; /* Stack children vertically */
  min-height: 90vh;
  padding-top: 50px; /* Add top padding */
  padding-bottom: 20px; /* Add bottom padding */
}

/* Ensure container takes up available space */
.footer-section .container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.footer-logo {
    max-width: 200px;
    height: auto;
}
.footer-tagline {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-top: 1rem;
    max-width: 350px;
}

.footer-heading {
  color: var(--white-color);
  font-weight: 600;
  margin-bottom: 25px;
  font-size: 1.5rem;
}
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-section a:hover { color: var(--white-color); }
.footer-links li { margin-bottom: 12px; font-size: 1.1rem; }
.social-icons a {
    font-size: 1.5rem; /* Slightly smaller social icons */
    margin: 0 10px; /* Reduced margin */
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Social Icon Hover Colors */
.social-icons a .fab {
  transition: color 0.3s ease;
}
.social-icons a:hover {
  transform: scale(1.2) translateY(-3px);
  /* Color is set per icon below */
}
.social-icons a:hover .fa-facebook-f { color: #1877F2; }
.social-icons a:hover .fa-instagram { color: #E1306C; }
.social-icons a:hover .fa-youtube { color: #FF0000; }

.footer-contact-info {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Copyright section adjustments */
.copyright {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem; /* Reduced padding */
  margin-top: auto; /* Pushes copyright to the bottom */
  font-size: 0.9rem;
  color: var(--secondary-color);
  /* Removed absolute positioning */
}

.copyright p {
    color: var(--secondary-color);
    margin-bottom: 0; /* Remove default margin */
}


/* Responsive adjustments */
@media (max-width: 991.98px) {
  /* Mobile navbar is solid black (handled by .custom-navbar rules) */
  .preloader-text { font-size: 3rem; }
  .hero-content h1 span { font-size: 4.5rem; }
  .service-icon { width: 150px; height: 150px; }
  .custom-cursor { display: none; }
  body { cursor: auto; }
  .prev-arrow { left: 5%; }
  .next-arrow { right: 5%; }
}

@media (max-width: 767.98px) {
  .full-screen-section { min-height: auto; padding: 80px 0; } /* Reduced padding */
  #home, .footer-section { min-height: 90vh; }

  .hero-content h1 span { font-size: 3.5rem; }
  .about-img {
    margin-top: 30px;
    max-width: 100%;
  }
  .book-item { width: 160px; height: 240px; }
  .book-carousel-container { height: 280px; }
  .prev-arrow { left: 2%; }
  .next-arrow { right: 2%; }
  .copyright { text-align: center; }
  .copyright .d-flex { flex-direction: column !important; } /* Stack copyright on mobile */
  .copyright p:first-child { margin-bottom: 0.5rem !important; } /* Add space between lines */

  .series-carousel .swiper-button-next,
  .series-carousel .swiper-button-prev {
      display: none;
  }
  .series-title {
      font-size: 1.5rem; /* Smaller title on mobile */
  }
}




