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

:root {
  /* Default Theme (theme-1: Blue & Pink vibrance) */
  --primary-color: #03a9f4;
  --secondary-color: #e91e63;
  --accent-color: #ffc107;
  --bg-color: #fafafa;
  --text-color: #333333;
  --card-bg: #ffffff;
  
  --font-main: 'Poppins', sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --header-height: 70px;
}

/* Theme Variations */
body.theme-2 { --primary-color: #673ab7; --secondary-color: #ff9800; --accent-color: #00bcd4; }
body.theme-3 { --primary-color: #4caf50; --secondary-color: #ff5722; --accent-color: #ffeb3b; }
body.theme-4 { --primary-color: #f44336; --secondary-color: #2196f3; --accent-color: #ffc107; }
body.theme-5 { --primary-color: #e91e63; --secondary-color: #9c27b0; --accent-color: #00bcd4; }
body.theme-6 { --primary-color: #009688; --secondary-color: #ff5722; --accent-color: #ffeb3b; }
body.theme-7 { --primary-color: #3f51b5; --secondary-color: #ff4081; --accent-color: #00e5ff; }
body.theme-8 { --primary-color: #00bcd4; --secondary-color: #ffeb3b; --accent-color: #ff4081; }
body.theme-9 { --primary-color: #ff9800; --secondary-color: #673ab7; --accent-color: #4caf50; }
body.theme-10 { --primary-color: #2b2b2b; --secondary-color: #d1a84f; --accent-color: #ffffff; }

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
}

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

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--secondary-color);
}

.hamburger {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: var(--transition);
}

.nav-links {
  position: absolute;
  top: var(--header-height);
  right: -100%;
  width: 250px;
  background-color: white;
  height: 100vh;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  gap: 1.5rem;
  transition: right 0.4s ease;
}

.nav-links.active {
  right: 0;
}

.nav-links a {
  font-weight: 600;
  color: #555;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.btn-login {
  background-color: var(--primary-color);
  color: white !important;
  padding: 10px 20px;
  border-radius: 50px;
  text-align: center;
  display: inline-block;
  margin-top: auto;
  margin-bottom: 100px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.95)), var(--hero-bg) center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, var(--primary-color) 0%, transparent 60%);
  opacity: 0.1;
  z-index: 1;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 30px;
  font-weight: 300;
}

.hero-image img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  transition: var(--transition);
}

.hero-image img:hover {
  transform: rotate(0) scale(1.02);
}

/* Proposal Section */
.proposal {
  padding: 60px 0;
  background-color: white;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 700;
}

.proposal p {
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.2rem;
  color: #555;
}

/* Modules Grid */
.modules {
  padding: 50px 0;
  background-color: #f0f4f8;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.module-card {
  background: var(--card-bg);
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
  text-align: center;
  border-bottom: 4px solid var(--secondary-color);
  cursor: pointer;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-bottom-color: var(--primary-color);
}

.module-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.module-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.module-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.module-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.module-card.active .module-content {
  max-height: 500px;
  opacity: 1;
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.module-content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Speakers Section */
.speakers {
  padding: 60px 0;
  background-color: white;
  text-align: center;
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.speaker-card {
  text-align: center;
}

.speaker-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px auto;
  border: 5px solid var(--accent-color);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background-color: #ddd;
}

.speaker-card h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.speaker-card p {
  color: #777;
  font-size: 0.9rem;
}

/* Video Section */
.video-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  text-align: center;
  color: white;
}

.video-section .section-title {
  color: white;
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 35px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  background-color: #1ebe5d;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 50px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 0;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .modules-grid {
    grid-template-columns: 1fr;
  }
  
  .speakers-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
    .speakers-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin Styles */
.admin-container {
  max-width: 800px;
  margin: 100px auto;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.admin-group {
    margin-bottom: 25px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.admin-group h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-main);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn:hover {
    background: var(--secondary-color);
}

.theme-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.theme-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.theme-option.active {
    border-color: #333;
    transform: scale(1.1);
}

/* Hardcoded Theme Previews for Admin Panel */
.theme-option[data-theme="theme-1"] { background: linear-gradient(135deg, #03a9f4, #e91e63); }
.theme-option[data-theme="theme-2"] { background: linear-gradient(135deg, #673ab7, #ff9800); }
.theme-option[data-theme="theme-3"] { background: linear-gradient(135deg, #4caf50, #ff5722); }
.theme-option[data-theme="theme-4"] { background: linear-gradient(135deg, #f44336, #2196f3); }
.theme-option[data-theme="theme-5"] { background: linear-gradient(135deg, #e91e63, #9c27b0); }
.theme-option[data-theme="theme-6"] { background: linear-gradient(135deg, #009688, #ff5722); }
.theme-option[data-theme="theme-7"] { background: linear-gradient(135deg, #3f51b5, #ff4081); }
.theme-option[data-theme="theme-8"] { background: linear-gradient(135deg, #00bcd4, #ffeb3b); }
.theme-option[data-theme="theme-9"] { background: linear-gradient(135deg, #ff9800, #673ab7); }
.theme-option[data-theme="theme-10"] { background: linear-gradient(135deg, #2b2b2b, #d1a84f); }

.module-item, .speaker-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    display: flex;
    gap: 15px;
    align-items: center;
}

.img-preview {
    max-width: 100px;
    max-height: 100px;
    border-radius: 5px;
}
/* Modal Base Styles */
.modal {
  display: none; 
  position: fixed; 
  z-index: 2000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.6); 
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto; 
  padding: 30px;
  border: 1px solid #888;
  width: 90%;
  max-width: 600px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  position: relative;
  animation: animatetop 0.4s;
}

@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height:1;
}

.close-modal:hover,
.close-modal:focus {
  color: #000;
  text-decoration: none;
}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

