/*===== Google Fonts =====*/
@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap");

/*===== Global CSS =====*/
:root {
  --main-color: #E27BE2; /* New Violet */
  --main-dark: #B464B4; /* Darker shade of E27BE2 */
  --accent-color: #ffeb3b;
  --text-dark: #2d3436;
  --text-light: #636e72;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(226, 123, 226, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Fira Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

/*===== Navbar =====*/
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  padding: 15px 0;
  transition: transform 0.3s ease, background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.hide {
    transform: translateY(-100%);
}

.navbar.sticky {
    padding: 10px 0;
    background-color: rgba(226, 123, 226, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

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

.navbar .row {
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar .logo a {
  font-family: "Kaushan Script", cursive;
  font-size: 28px;
  color: var(--main-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

.navbar.sticky .logo a {
    color: var(--white);
}

.navbar .logo a span {
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.navbar.sticky .logo a span {
    color: var(--accent-color);
}

.navbar .menu {
    display: flex;
    align-items: center;
}

.navbar .menu .nav-item {
  margin-left: 30px;
}

.navbar .menu .nav-link {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 16px;
  transition: color 0.3s;
  position: relative;
}

.navbar.sticky .menu .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.navbar .menu .nav-link:hover,
.navbar .menu .nav-link.active {
  color: var(--main-color);
}

.navbar.sticky .menu .nav-link:hover,
.navbar.sticky .menu .nav-link.active {
  color: var(--white);
}

.navbar .menu .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--main-color);
    transition: width 0.3s ease;
}

.navbar.sticky .menu .nav-link::after {
    background-color: var(--accent-color);
}

.navbar .menu .nav-link:hover::after,
.navbar .menu .nav-link.active::after {
    width: 100%;
}

.menu-btn {
  display: none;
  color: var(--text-dark);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.navbar.sticky .menu-btn {
    color: var(--white);
}

/*===== Header Social =====*/
.header-social {
    position: fixed;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.header-social li a {
    color: var(--text-light);
    font-size: 20px;
    transition: all 0.3s ease;
}

.header-social li a:hover {
    color: var(--main-color);
    transform: scale(1.2);
}

/*===== Home Section =====*/
.home-section {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #eef1f5 100%);
  position: relative;
  overflow: hidden;
}

.header-hero-shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 0;
}

.header-hero-shape::before {
  position: absolute;
  content: "";
  width: 1000%;
  height: 100%;
  background-color: var(--main-color);
  transform: skewX(20deg);
  top: 0;
  left: 0;
  opacity: 0.15;
}

.home-section .row {
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.home-text, .home-image {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 20px;
}

.home-text h4 {
  color: var(--main-color);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.home-text h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.home-text p {
  color: var(--text-light);
  font-size: 18px;
  margin-bottom: 30px;
}

.btn-1 {
  display: inline-block;
  background-color: var(--main-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(127, 0, 255, 0.3);
}

.btn-1:hover {
  background-color: var(--main-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(127, 0, 255, 0.4);
}

.home-image img {
  width: 100%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/*===== Section Title =====*/
.section-padding {
    padding: 80px 0;
}

.section-title {
    width: 100%;
    text-align: center;
    margin-bottom: 60px;
}

.section-title .sub-title {
    color: var(--main-color);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.section-title .main-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title .line {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.section-title .line li {
    height: 4px;
    background-color: var(--main-color);
    border-radius: 2px;
}

.section-title .line li:nth-child(1) { width: 50px; }
.section-title .line li:nth-child(2) { width: 10px; }
.section-title .line li:nth-child(3) { width: 5px; }

/*===== Services (Semester Cards) =====*/
.service-section {
    background-color: var(--white);
}

.service-item {
    flex: 0 0 33.33%;
    max-width: 33.33%;
    padding: 15px;
}

.service-item-inner {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid transparent;
}

.service-item-inner:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    border-color: rgba(127, 0, 255, 0.1);
}

.service-item-inner .icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: rgba(127, 0, 255, 0.1);
    color: var(--main-color);
    font-size: 30px;
    border-radius: 50%;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.service-item-inner:hover .icon {
    background: var(--main-color);
    color: var(--white);
}

.service-item-inner h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-item-inner p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 15px;
}

/*===== Search Bar =====*/
.search-container {
    padding: 40px 0;
    background-color: var(--bg-light);
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 18px 25px 18px 55px;
    border: none;
    border-radius: 50px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    font-size: 16px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    box-shadow: var(--shadow-lg);
    transform: scale(1.01);
}

.search-box .search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--main-color);
    font-size: 18px;
}

/*===== Subject Cards (Pricing) =====*/
.pricing {
    padding: 40px 0;
}

.pricing-item {
  flex: 0 0 33.33%;
  max-width: 33.33%;
  padding: 15px;
}

.pricing-plan {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.03);
}

.pricing-plan:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.pricing-header {
  background: linear-gradient(135deg, var(--main-color), var(--main-dark));
  padding: 25px;
  text-align: center;
}

.pricing-header h3 {
  color: var(--white);
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.5px;
}

.pricing-body {
  padding: 25px;
  flex-grow: 1;
}

.note-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.note-item:last-child {
    border-bottom: none;
}

.note-title {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 15px;
    padding-right: 10px;
}

.download-btn {
    background-color: rgba(127, 0, 255, 0.1);
    color: var(--main-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
}

.download-btn:hover {
    background-color: var(--main-color);
    color: var(--white);
}

.note-status.coming-soon {
    color: #ff9f43;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 159, 67, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/*===== Footer =====*/
footer {
  background-color: #1a1a1a;
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-col {
    flex: 0 0 33.33%;
    max-width: 33.33%;
    padding: 0 20px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--main-color);
    font-family: "Kaushan Script", cursive;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--main-color);
}

.footer-col p {
    color: #b2b2b2;
    font-size: 15px;
    line-height: 1.6;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b2b2b2;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--main-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--main-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.copyright-text {
    color: #b2b2b2;
    font-size: 14px;
}

.copyright-text a {
    color: var(--main-color);
}

/*===== Responsive =====*/
@media (max-width: 991px) {
  .navbar .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100vh;
    background-color: var(--main-color);
    flex-direction: column;
    align-items: flex-start;
    padding-top: 80px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .navbar .menu.active {
    right: 0;
  }

  .navbar .menu .nav-item {
    margin: 15px 30px;
  }

  .navbar .menu .nav-link {
    color: var(--white);
  }
  
  .navbar .menu .nav-link:hover,
  .navbar .menu .nav-link.active {
      color: var(--accent-color);
  }

  .menu-btn {
    display: block;
    color: var(--text-dark);
    z-index: 1001;
    position: relative;
  }
  
  /* Ensure button is white when menu is open (assuming it overlaps) */
  .navbar .menu.active ~ .menu-btn, /* This selector might not work if structure is different */
  .menu-btn.active { /* If we toggle a class on the button too */
      color: var(--white);
  }
  
  /* Since we can't easily target the button based on menu state with CSS alone if they are siblings and menu comes first... 
     Actually in HTML: .links (contains menu) comes BEFORE .menu-btn. 
     So we can't use ~ to style .menu-btn based on .menu.active inside .links.
     
     However, usually the JS toggles 'active' on the menu. 
     We might need to ensure the button is visible. 
     If the menu background is violet, and button is dark, it might be hard to see? No, dark on violet is okay-ish, but white is better.
     But if the button was disappearing, it was likely z-index.
  */

  .header-social {
      display: none;
  }

  .home-text, .home-image {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
  }

  .home-image {
    margin-top: 40px;
  }

  .pricing-item, .service-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .footer-col {
      flex: 0 0 50%;
      max-width: 50%;
      margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .pricing-item, .service-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 5px; /* Reduce padding to fit better */
  }
  
  .home-text h1 {
      font-size: 36px;
  }
  
  .footer-col {
      flex: 0 0 100%;
      max-width: 100%;
  }
}
