/* 
 * Modern Style CSS for Droidel Technology
 * This file contains all styles for the new version of the website
 */

:root {
  /* Main Colors */
  --primary: #3F88C5;         /* Blue for headings and primary elements */
  --primary-dark: #2D699C;
  --primary-soft: rgba(63, 136, 197, 0.15);
  --secondary: #FF6B35;       /* Orange for accents and CTAs */
  --secondary-dark: #E84E10;
  --secondary-soft: rgba(255, 107, 53, 0.15);
  
  /* Success, Info and Warning Colors */
  --success: #44A33D;
  --success-soft: rgba(68, 163, 61, 0.15);
  --info: #17a2b8;
  --info-soft: rgba(23, 162, 184, 0.15);
  --warning: #F6AE2D;
  --warning-soft: rgba(246, 174, 45, 0.15);
  --danger: #dc3545;
  --danger-soft: rgba(220, 53, 69, 0.15);
  
  /* Neutral Colors */
  --dark: #343a40;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray: #6c757d;
  --gray-dark: #343a40;
  --gray-light: #ced4da;
  
  /* Light Theme Variables */
  --bg-color: #FFF8E1;          /* Cream colored background */
  --bg-color-secondary: #FFF1CC; /* Slightly darker cream for sections */
  --text-color: #343a40;         /* Dark text for readability */
  --text-muted: #6c757d;         /* Muted text color */
  --border-color: #F3E0AE;       /* Light border color */
  --card-bg: #FFFFFF;            /* White card backgrounds */
  --card-border: #F3E0AE;
  --navbar-color: #343a40;
  
  /* Layout and Spacing */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --border-radius-pill: 50rem;
  --transition-base: all 0.3s ease;
  --transition-smooth: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --section-padding: 5rem 0;
  
  /* Typography */
  --font-family-sans-serif: 'Poppins', sans-serif;
  --font-family-secondary: 'Roboto', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

/* Dark Theme Variables */
[data-bs-theme="dark"] {
  --primary: #5AA9F0;         /* Lighter blue for headings in dark mode */
  --primary-dark: #3F88C5;
  --primary-soft: rgba(90, 169, 240, 0.2);
  --secondary: #FF7F50;       /* Lighter orange for better visibility */
  --secondary-dark: #FF6347;
  --secondary-soft: rgba(255, 127, 80, 0.2);
  
  /* Dark Theme Background and Text */
  --bg-color: #292422;         /* Dark brown background */
  --bg-color-secondary: #352E2A; /* Slightly lighter brown for sections */
  --text-color: #E0D3BB;        /* Light tan text color */
  --text-muted: #B9AD98;        /* Muted text color */
  --border-color: #3E3630;      /* Dark border color */
  --card-bg: #352E2A;           /* Card background */
  --card-border: #3E3630;
  --navbar-color: #E0D3BB;
  
  /* Shadow adjustments for dark mode */
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-family-sans-serif);
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition-base);
  padding-top: 0; /* Remove any top padding that might interfere with the hero */
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
  line-height: 1.3;
}

p {
  margin-bottom: 1.5rem;
}

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

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

img, video {
  max-width: 100%;
  height: auto;
}

section {
  padding: var(--section-padding);
  position: relative;
}

/* Text Styles */
.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.heading-with-icon {
  position: relative;
  margin-bottom: 2rem;
  font-weight: var(--font-weight-bold);
}

.heading-with-icon::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  margin: 15px auto 0;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: var(--border-radius-pill);
}

/* Background and Text Colors */
.bg-primary-soft { background-color: var(--primary-soft); }
.bg-secondary-soft { background-color: var(--secondary-soft); }
.bg-success-soft { background-color: var(--success-soft); }
.bg-warning-soft { background-color: var(--warning-soft); }
.bg-info-soft { background-color: var(--info-soft); }
.bg-danger-soft { background-color: var(--danger-soft); }

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-danger { color: var(--danger) !important; }
.text-light-50 { color: rgba(255, 255, 255, 0.7) !important; }

/* Button Styles */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-pill);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

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

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--white);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary);
  color: var(--white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Navbar Styles */
.custom-navbar {
  padding: 0.75rem 1rem;
  background-color: transparent; /* Start with transparent navbar */
  transition: var(--transition-base);
  z-index: 1030;
  position: fixed;
  top: 0;
  width: 100%;
}

.navbar-brand {
  font-weight: var(--font-weight-bold);
  font-size: 1.5rem;
  color: var(--primary) !important;
}

.nav-link {
  color: var(--primary);
  font-weight: var(--font-weight-medium);
  padding: 0.5rem 1rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-base);
  transform: translateX(-50%);
  opacity: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 70%;
  opacity: 1;
}

.navbar-scrolled {
  background-color: var(--bg-color);
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-scrolled .nav-link {
  color: var(--navbar-color);
}

/* Fix for hamburger menu positioning */
.navbar-toggler {
  padding: 0.25rem 0.5rem;
  border: none;
  outline: none;
  box-shadow: none;
  position: relative;
  z-index: 1050;
}

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

/* Mobile menu fix */
.navbar-collapse {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .custom-navbar {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }
  
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 0;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1040;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .custom-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .custom-navbar .nav-link {
    padding: 0.5rem 0;
  }
  
  .custom-navbar .nav-link::after {
    left: 0;
    transform: none;
  }
  
  .custom-navbar .nav-link:hover::after,
  .custom-navbar .nav-link.active::after {
    width: 30px;
  }
}

@media (max-width: 575.98px) {
  .custom-navbar {
    padding: 0.4rem 0.5rem !important;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-toggler {
    padding: 0.2rem 0.4rem;
  }
}

/* Dark Mode Toggle */
.form-switch {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Custom Dark Mode Toggle */
.dark-mode-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  margin: 0;
}

.dark-mode-toggle .form-check-input {
  width: 60px;
  height: 30px;
  margin: 0;
  cursor: pointer;
  background-color: #f1c40f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23ffffff' stroke='%23f39c12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'%3E%3C/circle%3E%3Cline x1='12' y1='1' x2='12' y2='3'%3E%3C/line%3E%3Cline x1='12' y1='21' x2='12' y2='23'%3E%3C/line%3E%3Cline x1='4.22' y1='4.22' x2='5.64' y2='5.64'%3E%3C/line%3E%3Cline x1='18.36' y1='18.36' x2='19.78' y2='19.78'%3E%3C/line%3E%3Cline x1='1' y1='12' x2='3' y2='12'%3E%3C/line%3E%3Cline x1='21' y1='12' x2='23' y2='12'%3E%3C/line%3E%3Cline x1='4.22' y1='19.78' x2='5.64' y2='18.36'%3E%3C/line%3E%3Cline x1='18.36' y1='5.64' x2='19.78' y2='4.22'%3E%3C/line%3E%3C/svg%3E");
  background-size: 18px;
  background-position: 8px center;
  background-repeat: no-repeat;
  border: none;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  border-radius: 30px;
  position: relative;
}

.dark-mode-toggle .form-check-input:checked {
  background-color: #2c3e50;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23ffffff' stroke='%238e44ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'%3E%3C/path%3E%3C/svg%3E");
  background-position: calc(100% - 8px) center;
}

.dark-mode-toggle .form-check-input:before {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 1;
}

.dark-mode-toggle .form-check-input:checked:before {
  left: calc(100% - 28px);
}

.dark-mode-toggle .form-check-input:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(to bottom, #f9d71c, #f1c40f);
  border-radius: 30px;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: -1;
}

.dark-mode-toggle .form-check-input:checked:after {
  background: linear-gradient(to bottom, #2c3e50, #1a202c);
}

.dark-mode-toggle .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(63, 136, 197, 0.25);
  border-color: transparent;
}

.dark-mode-toggle .form-check-label {
  display: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
  background-color: var(--dark);
}

/* Typewriter effect */
#typewriter-text {
  min-height: 1.2em; /* Maintain consistent height even when empty */
  display: inline-block;
  position: relative;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border-right: 3px solid transparent; /* Hidden cursor initially */
  animation: blink-cursor 0.7s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}

.typewriter-container {
  min-height: 4.5rem; /* Maintain consistent container height */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@keyframes blink-cursor {
  from, to { border-color: transparent; }
  50% { border-color: var(--white); }
}

/* Responsive typewriter text */
@media (max-width: 768px) {
  #typewriter-text {
    font-size: 1.8rem;
  }
  .typewriter-container {
    min-height: 3.5rem;
  }
}

@media (max-width: 576px) {
  #typewriter-text {
    font-size: 1.5rem;
  }
  .typewriter-container {
    min-height: 3rem;
  }
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  max-width: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
  width: 100%;
  padding-top: 80px; /* Account for fixed navbar height */
}

.hero-content .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 3rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5rem;
  color: var(--white);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer Styles */
.footer {
  background-color: var(--dark);
  color: var(--light);
  position: relative;
  margin-top: 3rem;
}

.footer-wave {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.footer-main {
  background-color: var(--dark);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-heading {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 2px;
  background: var(--primary);
}

.footer-brand h3 {
  font-weight: var(--font-weight-bold);
  color: var(--white);
}

.footer-contact .footer-icon-box {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary);
  border-radius: 50%;
  transition: var(--transition-base);
}

.footer-contact > div:hover .footer-icon-box {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-links.custom-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-links.custom-list li {
  margin-bottom: 0.75rem;
}

.footer-links.custom-list .footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer-links.custom-list .footer-link i {
  font-size: 0.8rem;
  margin-right: 0.5rem;
  transition: var(--transition-base);
}

.footer-links.custom-list .footer-link:hover {
  color: var(--white);
  transform: translateX(5px);
  text-decoration: none;
}

.footer-links.custom-list .footer-link:hover i {
  color: var(--primary);
}

.footer .newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  padding-right: 3.5rem;
  border-radius: var(--border-radius-pill);
  height: 50px;
}

.footer .newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer .newsletter-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

.footer .newsletter-btn {
  border-radius: 0 var(--border-radius-pill) var(--border-radius-pill) 0;
  padding: 0 1.25rem;
  font-size: 1.25rem;
  background: var(--primary);
  border-color: var(--primary);
}

.footer .newsletter-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

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

.footer .social-icon-footer:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-5px);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Section Backgrounds */
.bg-light {
  background-color: var(--bg-color-secondary) !important;
}

.gallery-section, 
.contact-section {
  background-color: var(--bg-color-secondary);
}

/* Form Controls */
.form-control, 
.form-select {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.875rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.form-control:hover, 
.form-select:hover {
  border-color: var(--primary-soft);
}

.form-control:focus, 
.form-select:focus {
  background-color: var(--card-bg);
  color: var(--text-color);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  outline: none;
}

/* Fix for Form Floating Labels */
.form-floating > .form-control,
.form-floating > .form-select {
  height: calc(3.5rem + 2px);
  padding: 1.25rem 1rem 0.25rem !important;
}

.form-floating > .form-control-plaintext,
.form-floating > .form-control,
.form-floating > .form-control:focus,
.form-floating > .form-select {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.form-floating > textarea.form-control {
  height: auto;
  min-height: calc(3.5rem + 2px);
  padding-top: 1.625rem !important;
}

.form-floating > label {
  padding: 1rem 1.25rem;
  color: var(--text-muted);
  height: 100%;
  transform-origin: 0 0;
  transition: opacity .1s ease-in-out, transform .1s ease-in-out;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  opacity: 0.8;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  color: var(--primary);
  height: auto;
}

.form-floating > .form-control:-webkit-autofill ~ label {
  opacity: 0.8;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  color: var(--primary);
  height: auto;
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Responsiveness */
@media (min-width: 992px) {
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .hero-content p {
    font-size: 1.35rem;
  }
}

@media (max-width: 991.98px) {
  section {
    padding: 4rem 0;
  }
  
  .navbar-collapse {
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 1rem;
  }
  
  .custom-navbar .nav-link::after {
    left: 0;
    transform: none;
  }
  
  .custom-navbar .nav-link:hover::after,
  .custom-navbar .nav-link.active::after {
    width: 30px;
  }
  
  .feature-card, 
  .course-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 3rem 0;
  }
  
  .hero-section {
    height: auto;
    min-height: 500px;
  }
  
  .hero-content {
    padding-top: 100px;
    padding-bottom: 80px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .stat-item h3 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-heading::after {
    margin: 0 auto;
    left: 0;
    right: 0;
  }
  
  .footer-links.custom-list .footer-link:hover {
    transform: none;
  }
}

@media (max-width: 575.98px) {
  section {
    padding: 2.5rem 0;
  }
  
  .hero-section {
    min-height: 450px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .heading-with-icon {
    font-size: 1.75rem;
  }
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: none;
  z-index: 999;
  width: 45px;
  height: 45px;
  text-align: center;
  line-height: 45px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  border-radius: 50%;
  border: none;
  box-shadow: var(--shadow);
  transition: var(--transition-base);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

#back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

#back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Gallery Overlay */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  transition: var(--transition-base);
}

.gallery-card img {
  transition: var(--transition-base);
  object-fit: cover;
  height: 250px;
  width: 100%;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.gallery-info {
  text-align: center;
  padding: 1rem;
}

.gallery-info h5 {
  color: white;
  margin-bottom: 0.5rem;
}

.gallery-info p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.gallery-info a {
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  transition: var(--transition-base);
}

.gallery-info a:hover {
  background: var(--white);
  color: var(--primary);
  transform: scale(1.1);
}

/* Lightbox for Gallery */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-img {
  max-height: 80vh;
  max-width: 90vw;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  color: white;
  text-align: center;
  padding: 1rem 0;
  font-size: 1.1rem;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  transition: var(--transition-base);
}

.lightbox-close:hover {
  color: var(--primary);
}

.video-content {
  width: 90%;
  max-width: 1000px;
}

.lightbox-video {
  width: 100%;
  max-height: 80vh;
  border-radius: var(--border-radius);
}

/* Feature Cards */
.feature-card {
  position: relative;
  height: 260px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition-base);
}

.feature-card .video-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.feature-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.6) 100%);
  color: white;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  transition: var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
}

.feature-card:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

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

.feature-title {
  color: var(--primary);
  font-weight: var(--font-weight-medium);
  transition: var(--transition-base);
}

/* About Section */
.about-video-wrapper {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-video {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-icon-box {
  width: 60px;
  height: 60px;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
}

/* Course Cards */
.course-card {
  overflow: hidden;
  transition: var(--transition-base);
}

.course-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.course-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-base);
}

.course-card:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

.course-desc {
  margin-bottom: 1rem;
}

/* Lab Packages Section */
.table > :not(caption) > * > * {
  padding: 1rem;
}

.table-responsive {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.table thead {
  border-bottom: none;
}

.table th {
  font-weight: var(--font-weight-semibold);
  vertical-align: middle;
}

/* Lab Packages Table Styling */
.lab-packages-container {
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .table-responsive {
    overflow: visible !important;
  }

  #lab-packages .container,
  #lab-packages .lab-packages-container {
    overflow: visible !important;
  }
  
  .lab-packages-table {
    width: 100%;
    table-layout: fixed;
  }
}

@media (max-width: 767.98px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  #lab-packages .lab-packages-container,
  #lab-packages .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .lab-packages-table {
    min-width: 700px;
    width: 100%;
  }
}

.lab-packages-title {
  text-align: center;
  margin-bottom: 2rem;
}

.lab-packages-description {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.lab-packages-table {
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
  border-collapse: separate;
  border-spacing: 0;
}

.lab-packages-table tr:first-child th:first-child {
  border-top-left-radius: var(--border-radius);
}

.lab-packages-table tr:first-child th:last-child {
  border-top-right-radius: var(--border-radius);
}

.lab-packages-table tr:last-child td:first-child {
  border-bottom-left-radius: var(--border-radius);
}

.lab-packages-table tr:last-child td:last-child {
  border-bottom-right-radius: var(--border-radius);
}

/* Table header styling */
.lab-packages-table th {
  padding: 1.5rem 1rem;
  text-align: center;
  font-weight: var(--font-weight-semibold);
  color: white;
}

/* First column - feature names */
.lab-packages-table th:first-child {
  background-color: var(--secondary);
  color: white;
  text-align: left;
  width: 220px;
}

/* Makerspace column */
.lab-packages-table th:nth-child(2) {
  background-color: var(--primary);
}

/* Premium Lab column */
.lab-packages-table th:nth-child(3) {
  background-color: var(--primary-dark);
}

/* Large Lab column */
.lab-packages-table th:nth-child(4) {
  background-color: var(--secondary);
}

/* Classroom Pack column */
.lab-packages-table th:nth-child(5) {
  background-color: var(--success);
}

/* Row styling */
.lab-packages-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

/* First column */
.lab-packages-table td:first-child {
  background-color: var(--secondary-soft);
  color: var(--text-color);
  font-weight: var(--font-weight-medium);
  text-align: left;
}

/* Check mark styling */
.lab-packages-table .check-mark {
  color: var(--success);
  font-size: 1.25rem;
}

/* CTA Buttons */
.lab-packages-table .btn-quote {
  background-color: var(--primary);
  color: white;
}

.lab-packages-table .btn-explore {
  background-color: var(--secondary);
  color: white;
}

.lab-packages-table .btn-buy {
  background-color: var(--success);
  color: white;
}

.lab-packages-table .btn {
  padding: 0.5rem 1rem;
  white-space: nowrap;
  font-size: 0.9rem;
}

/* Responsiveness for Lab Packages */
@media (max-width: 991.98px) {
  .lab-packages-table {
    font-size: 0.9rem;
  }
  
  .lab-packages-table th,
  .lab-packages-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .lab-packages-table .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 575.98px) {
  .lab-packages-title {
    font-size: 1.5rem;
  }
  
  .lab-packages-description {
    font-size: 0.9rem;
  }
}

/* What's Included Timeline */
.section-divider {
  width: 80px;
  height: 4px;
  margin: 0 auto;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: var(--border-radius-pill);
}

/* Accordion Styling */
.accordion-item {
  overflow: hidden;
  background-color: var(--card-bg);
  transition: var(--transition-base);
}

.accordion-button {
  background-color: var(--card-bg);
  color: var(--text-color);
  font-weight: var(--font-weight-medium);
  padding: 1.25rem;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background-color: var(--card-bg);
  color: var(--primary);
  box-shadow: none;
}

.accordion-button::after {
  background-size: 1.25rem;
  transition: var(--transition-base);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--border-color);
}

.accordion-body {
  padding: 1.25rem;
  background-color: var(--card-bg);
}

/* Contact Info */
.social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color-secondary);
  color: var(--primary);
  border-radius: 50%;
  transition: var(--transition-base);
}

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

/* Map Container */
.map-container {
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

/* Filter Buttons */
.filter-btn {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-color);
  transition: var(--transition-base);
  cursor: pointer;
  border-radius: var(--border-radius-pill);
}

.filter-btn.active, 
.filter-btn:hover {
  background-color: var(--primary);
  color: white;
}

/* Gallery items transitions */
.gallery-item {
  transition: all 0.3s ease-in-out;
  opacity: 1;
  transform: scale(1);
}

.filter-btn {
  transition: all 0.2s ease-in-out;
}

.filter-btn:not(.active):hover {
  background-color: rgba(var(--primary-rgb), 0.1);
}

/* Course inquiry steps */
.bg-primary-soft.rounded-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

/* Video thumbnails in gallery */
.video-thumbnail {
  height: 250px;
  background-color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--primary);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition-base);
}

.gallery-card:hover .video-badge {
  transform: translate(-50%, -50%) scale(1.1);
}

.table-responsive {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .table-responsive {
    overflow-x: visible;
  }
}

@media (max-width: 767.98px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Navbar Logo Styles */
.navbar-logo {
    transition: all 0.3s ease;
    filter: brightness(0.9);
    height: 80px;
    width: auto;
}

.navbar-scrolled .navbar-logo {
    filter: brightness(1);
    height: 65px;
}

[data-bs-theme="dark"] .navbar-logo {
    filter: brightness(1.2);
}

@media (max-width: 575.98px) {
    .navbar-logo {
        height: 60px !important;
    }
}

/* Media Query to hide vertical line on smaller devices */
@media (max-width: 767.98px) {
  .position-absolute.start-50.translate-middle-x[style*="width: 2px; background-color: var(--primary-soft)"] {
    display: none !important;
  }
} 