/* Kalaran Academy - Main Stylesheet */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* Import Color Variables */
@import url('colors.css');

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--neutral-gray-dark);
  background-color: var(--neutral-white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-maroon);
  margin-bottom: 1rem;
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

h5 {
  font-size: var(--font-size-h5);
}

h6 {
  font-size: var(--font-size-h6);
}

p {
  margin-bottom: 1rem;
  color: var(--neutral-gray-dark);
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--neutral-gray-dark);
}

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-magenta), var(--primary-purple));
  border: none;
  color: var(--neutral-white);
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(194, 24, 91, 0.3);
  color: var(--neutral-white);
}

.btn-secondary-custom {
  background: var(--neutral-white);
  color: var(--primary-magenta);
  border: 2px solid var(--primary-magenta);
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-secondary-custom:hover {
  background: var(--primary-magenta);
  color: var(--neutral-white);
  transform: translateY(-2px);
}

.btn-golden {
  background: linear-gradient(135deg, var(--primary-yellow), var(--primary-orange));
  border: none;
  color: var(--neutral-black);
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-golden:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 193, 7, 0.4);
  color: var(--neutral-black);
}

/* Cards */
.card-custom {
  border-radius: 16px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.card-custom:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-header-custom {
  background: linear-gradient(135deg, var(--primary-magenta), var(--primary-purple));
  color: var(--neutral-white);
  font-weight: 600;
  border: none;
  padding: 1.25rem;
}

.card-img-overlay-custom {
  background: linear-gradient(to bottom, transparent, rgba(109, 30, 60, 0.8));
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--neutral-white);
}

/* Section Headings */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: 2.5rem;
  color: var(--primary-maroon);
  margin-bottom: 1rem;
}

.section-heading p {
  font-size: 1.1rem;
  color: var(--neutral-gray-dark);
  max-width: 600px;
  margin: 0 auto;
}

/* Section Dividers */
.section-divider {
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--secondary-pink) 20%,
    var(--primary-magenta) 50%, 
    var(--secondary-pink) 80%,
    transparent 100%);
  margin: 60px 0;
  border: none;
}

.lotus-divider {
  text-align: center;
  position: relative;
  margin: 50px 0;
  padding: 20px 0;
}

.lotus-divider::before,
.lotus-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 45%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--secondary-pink));
}

.lotus-divider::before {
  left: 0;
}

.lotus-divider::after {
  right: 0;
  background: linear-gradient(to left, transparent, var(--secondary-pink));
}

.lotus-divider i {
  color: var(--secondary-pink);
  font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-maroon) 0%, var(--primary-magenta) 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  margin-top: 76px; /* Account for fixed navbar */
}

.hero-section .carousel {
  height: 600px;
}

.hero-section .carousel-item {
  height: 600px;
  position: relative;
}

.hero-section .carousel-item img {
  height: 600px;
  object-fit: cover;
  width: 100%;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(109, 30, 60, 0.7) 100%);
  z-index: 1;
}

.hero-section .carousel-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  text-align: center;
}

.hero-section .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-yellow);
  opacity: 0.5;
  margin: 0 5px;
}

.hero-section .carousel-indicators .active {
  opacity: 1;
}

.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon {
  background-color: rgba(194, 24, 91, 0.8);
  border-radius: 50%;
  padding: 20px;
  width: 50px;
  height: 50px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, 
    rgba(255, 193, 7, 0.1) 0%, 
    rgba(255, 111, 0, 0.05) 50%, 
    transparent 100%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-title {
  color: var(--neutral-white);
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--neutral-cream);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* Utility Classes */
.text-primary-custom {
  color: var(--primary-magenta) !important;
}

.bg-primary-custom {
  background-color: var(--primary-magenta) !important;
}

.bg-gradient-custom {
  background: linear-gradient(135deg, var(--primary-maroon), var(--primary-magenta)) !important;
}

.section-padding {
  padding: 80px 0;
}

.section-padding-sm {
  padding: 60px 0;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Image Responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Links */
a {
  color: var(--primary-magenta);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-purple);
}

/* Navigation Bar */
.navbar-custom {
  background: var(--neutral-white) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-custom.scrolled {
  padding: 0.5rem 0;
}

.navbar-brand {
  padding: 0;
}

.navbar-brand img {
  height: 60px;
  transition: transform 0.3s ease;
  width: auto;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.nav-link-custom {
  color: var(--neutral-gray-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
  position: relative;
  margin: 0 0.25rem;
}

.nav-link-custom:hover {
  color: var(--primary-magenta) !important;
}

.nav-link-custom.active {
  color: var(--primary-magenta) !important;
}

.nav-link-custom.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--primary-magenta);
  border-radius: 2px;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Footer */
.footer-custom {
  background: var(--primary-maroon);
  color: var(--neutral-cream);
  padding: 50px 0 20px;
  margin-top: 80px;
}

.footer-custom a {
  color: var(--neutral-cream);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-custom a:hover {
  color: var(--primary-yellow);
}

.footer-heading {
  color: var(--primary-yellow);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.footer-custom p {
  color: var(--neutral-cream);
  margin-bottom: 0.5rem;
}

.footer-custom ul {
  list-style: none;
  padding: 0;
}

.footer-custom ul li {
  margin-bottom: 0.5rem;
}

.footer-custom ul li a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.footer-custom ul li a:hover {
  transform: translateX(5px);
  color: var(--primary-yellow);
}

.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 193, 7, 0.2);
  margin: 0 5px;
  transition: all 0.3s ease;
  color: var(--neutral-cream);
}

.social-icons a:hover {
  background: var(--primary-yellow);
  color: var(--primary-maroon);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 248, 225, 0.2);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  color: var(--neutral-cream);
  font-size: 0.9rem;
}

.footer-bottom a {
  margin: 0 10px;
}

/* Form Validation Styles */
.form-control-custom.is-valid {
  border-color: #28a745;
}

.form-control-custom.is-invalid {
  border-color: var(--secondary-red-orange);
}

.form-select.form-control-custom:focus {
  border-color: var(--primary-magenta);
  box-shadow: 0 0 0 0.2rem rgba(194, 24, 91, 0.15);
}

/* Contact Page Styles */
.contact-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(194, 24, 91, 0.1);
  border-radius: 50%;
}

.social-icon {
  color: var(--primary-magenta);
  transition: all 0.3s ease;
  display: inline-block;
}

.social-icon:hover {
  color: var(--primary-purple);
  transform: translateY(-3px);
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
