@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Light Theme (Default) Luxury Palette */
  --primary: #FF6B00; /* Vibrant Orange */
  --primary-hover: #e66000;
  --secondary: #D4AF37; /* Rich Gold */
  --accent: #1565C0; /* Royal Blue */
  --background: #F8F4E8; /* Warm Cream */
  --surface: #FFFFFF; /* Pure White */
  --surface-hover: #fafafa;
  --text-main: #222222; /* Dark Charcoal */
  --text-muted: #555555;
  --border: #D4AF37; /* Rich Gold for refined borders */
  --radius: 12px;
  --shadow: 0 10px 25px -5px rgba(11, 20, 38, 0.08), 0 8px 10px -6px rgba(11, 20, 38, 0.04);
  --shadow-hover: 0 20px 25px -5px rgba(11, 20, 38, 0.12), 0 8px 10px -6px rgba(11, 20, 38, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --h1-gradient: linear-gradient(135deg, #0B1426, #1565C0);
  --header-bg: #0B1426;
  --footer-bg: #0B1426;
  --header-text: #FFFFFF;
  
  --btn-sec-bg: rgba(21, 101, 192, 0.1);
  --btn-sec-text: #1565C0;
  --btn-sec-border: #1565C0;
  --btn-sec-hover-bg: #1565C0;
  --btn-sec-hover-text: #FFFFFF;
  
  --alt-section-bg: #FFFFFF;
  --dark-section-bg: #0B1426;
  --hero-bg: #0B1426;
  --hero-text: #FFFFFF;
  --popular-card-bg: #FFFFFF;
  --popular-card-border: #D4AF37;
  
  --icon-bg-sec: rgba(212, 175, 55, 0.1); /* Gold */
  --icon-bg-pri: rgba(255, 107, 0, 0.1); /* Orange */
  --icon-bg-pri-heavy: rgba(255, 107, 0, 0.2);
  
  --primary-gradient-2: #FF8E53;
  --primary-shadow: rgba(255, 107, 0, 0.4);
  --primary-shadow-hover: rgba(255, 107, 0, 0.6);
  --highlight-gradient-1: #D4AF37;
  --highlight-gradient-2: #FF6B00;
  
  --hero-h1-gradient: linear-gradient(135deg, #FFFFFF, #D4AF37);
  --footer-text: #FFFFFF;
  --footer-link-text: #D4AF37;
  --footer-text-muted: #A0AABF;
  
  --input-bg: #FFFFFF;
  --input-text: var(--text-main);
  --label-text: var(--text-main);
}

body.dark-theme {
  --primary: #FF6B6B;
  --primary-hover: #FF5252;
  --secondary: #4ECDC4;
  --accent: #1565C0;
  --background: #0f172a;
  --surface: #1e293b;
  --surface-hover: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  
  --h1-gradient: linear-gradient(135deg, #fff, #94a3b8);
  --header-bg: rgba(15, 23, 42, 0.8);
  --footer-bg: #0b1120;
  --header-text: var(--text-main);
  
  --btn-sec-bg: rgba(78, 205, 196, 0.1);
  --btn-sec-text: #4ECDC4;
  --btn-sec-border: #4ECDC4;
  --btn-sec-hover-bg: #4ECDC4;
  --btn-sec-hover-text: #fff;
  
  --alt-section-bg: rgba(30, 41, 59, 0.5);
  --dark-section-bg: rgba(15, 23, 42, 0.8);
  --hero-bg: transparent;
  --hero-text: var(--text-main);
  --popular-card-bg: #1e293b;
  --popular-card-border: var(--primary);
  
  --icon-bg-sec: rgba(78, 205, 196, 0.1);
  --icon-bg-pri: rgba(255, 107, 107, 0.1);
  --icon-bg-pri-heavy: rgba(255, 107, 107, 0.2);
  
  --primary-gradient-2: #FF8E53;
  --primary-shadow: rgba(255, 107, 107, 0.4);
  --primary-shadow-hover: rgba(255, 107, 107, 0.6);
  --highlight-gradient-1: #FFD93D;
  --highlight-gradient-2: #FF6B6B;
  
  --hero-h1-gradient: var(--h1-gradient);
  --footer-text: var(--text-main);
  --footer-link-text: var(--text-muted);
  --footer-text-muted: var(--text-muted);
  
  --input-bg: #0B1426;
  --input-text: #FFFFFF;
  --label-text: #FFFFFF;
}

body.dark-theme input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #fff;
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; background: var(--h1-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 0.9rem;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-gradient-2));
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--primary-shadow-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--btn-sec-bg);
  color: var(--btn-sec-text);
  border: 1px solid var(--btn-sec-border);
}

.btn-secondary:hover {
  background: var(--btn-sec-hover-bg);
  color: var(--btn-sec-hover-text);
  transform: translateY(-3px);
}

.btn-highlight {
  background: linear-gradient(135deg, var(--highlight-gradient-1), var(--highlight-gradient-2));
  color: #fff;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 217, 61, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 217, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 217, 61, 0); }
}

/* Header */
header {
  position: relative;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.header-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: -100px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
}

/* Header Logo Text Highlight */
.header-logo-text {
  color: #e9d79b;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-transform: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: inline-block;
  margin-left: 0;
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: initial;
  filter: none;
}

.header-logo-text:hover {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  color: var(--header-text);
  font-weight: 500;
  font-size: 1.0 rem;
  position: relative;
}

.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--header-text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.theme-toggle-btn:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links .register-link {
  background: var(--primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 25px;
}

.nav-links .register-link::after {
  display: none;
}

.nav-links .register-link:hover {
  background: #fff;
  color: var(--primary);
  transform: scale(1.05);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Footer */
footer {
  background: var(--footer-bg);
  padding: 60px 0 20px;
  border-top: 1px solid var(--border);
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #fff;
}

.footer-col p {
  color: var(--footer-text);
}

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

.footer-col ul li a {
  color: var(--footer-link-text);
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-main);
  border: 1px solid var(--border);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.footer-bottom p {
  color: #ffffff !important;
}

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 30px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 107, 107, 0.3);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  background: var(--icon-bg-pri);
  padding: 15px;
  border-radius: 12px;
}

.card h3 {
  margin-bottom: 15px;
}

/* Forms */
.form-container {
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius);
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--label-text);
}

.form-control {
  width: 100%;
  min-width: 0;
  padding: 15px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--input-text);
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 15px;
}

.dynamic-field {
  display: none;
  animation: fadeIn 0.5s forwards;
}

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

.error-text {
  color: var(--primary);
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}

/* Loading Spinner */
.spinner {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto;
}

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

/* Responsive */
@media (max-width: 768px) {
  .logo {
    margin-left: 0;
    font-size: 1.1rem;
    flex: 1;
    min-width: 0;
  }
  .header-logo-text {
    font-size: 1.1rem;
    white-space: normal;
    line-height: 1.2;
    display: inline-block;
  }
  .theme-toggle-btn, .mobile-menu-btn {
    flex-shrink: 0;
    margin-left: 10px;
  }
  .logo img {
    height: 50px !important;
  }
  footer .logo img {
    height: 100px !important;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface);
    flex-direction: column;
    padding: 20px;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    color: var(--text-main);
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .section { padding: 50px 0; }
  .form-container { padding: 20px; }
}

/* Banner specific */
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 0;
  gap: 40px;
}

.banner-content {
  flex: 1;
}

.banner-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.interactive-board {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1/1;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  border: 4px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow);
  transform: perspective(1000px) rotateX(10deg) rotateY(-15deg);
  transition: transform 0.5s ease;
  background: var(--surface);
}

.banner-image:hover .interactive-board {
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.chess-square {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.chess-square.light {
  background-color: #eeeed2;
}

.chess-square.dark {
  background-color: #769656;
}

.chess-piece-draggable {
  font-size: 2.2rem;
  cursor: grab;
  user-select: none;
  line-height: 1;
}

.chess-piece-static {
  font-size: clamp(1.2rem, 9vw, 2.5rem) !important;
}

.chess-piece-draggable:active {
  cursor: grabbing;
}

@media (max-width: 900px) {
  .banner {
    flex-direction: column;
    text-align: center;
  }
}

/* Value Props Box */
.value-props {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin: -40px auto 60px;
  position: relative;
  z-index: 20;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.value-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  background: var(--icon-bg-pri);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .value-props {
    flex-direction: column;
  }
}

/* FAQ */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
}

.faq-item.active .faq-question {
  color: var(--secondary);
}

/* Blog / Testimonials Grid */
.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(78, 205, 196, 0.2);
  color: var(--secondary);
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Highlight Card */
.card.popular {
  border: 2px solid var(--popular-card-border);
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 107, 107, 0.2);
  background: var(--popular-card-bg);
}

.card.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: 15px;
  right: -35px;
  background: var(--primary);
  color: #fff;
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.alt-section {
  background: var(--alt-section-bg) !important;
}

.alt-section-dark {
  background: var(--dark-section-bg) !important;
}

.hero-section {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-text);
  border-radius: 0 0 30px 30px;
  box-shadow: 0 10px 30px rgba(11, 20, 38, 0.1);
  margin-bottom: 40px;
}

.hero-section p {
  color: var(--hero-text-muted, #cbd5e1) !important;
}

.hero-section h1 {
  background: var(--hero-h1-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  bottom: 0;
  background: var(--hero-bg);
  z-index: -1;
}

body.dark-theme .hero-section {
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 768px) {
  .card.popular {
    transform: scale(1);
  }
}

/* Marquee Testimonials */
.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
}

.marquee-content {
  display: flex;
  animation: scroll-left 25s linear infinite;
  gap: 30px;
  padding-left: 30px;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.testimonial-card-small {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 30px;
  white-space: nowrap;
  font-style: italic;
  font-weight: 500;
  color: var(--text-main);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

/* Interactive Chess Board */
.interactive-board {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  margin: 0 auto;
  border: 10px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  position: relative;
  transform: perspective(1000px) rotateX(15deg) rotateY(-15deg);
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.interactive-board:hover {
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.chess-piece {
  position: absolute;
  width: 12.5%;
  height: 12.5%;
  background-size: 80%;
  background-repeat: no-repeat;
  background-position: center bottom;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  filter: drop-shadow(2px 5px 3px rgba(0,0,0,0.5));
  transform: translateZ(20px);
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: #ffffff;
  color: #222222;
  padding: 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  position: relative;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.modal-overlay.show .modal-content {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 15px; right: 15px;
  background: none; border: none;
  font-size: 1.5rem;
  color: #888; cursor: pointer;
}
.modal-close:hover { color: #000; }

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  border-radius: 50px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: translateY(-3px);
  color: white;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.whatsapp-float i {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    padding: 12px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    justify-content: center;
  }
  .whatsapp-float span {
    display: none;
  }
}

