/* Script for GEAC Academy - Ultra Modern Design with Blur Theme */

:root {
  --primary-blur: rgba(255, 255, 255, 0.1);
  --secondary-blur: rgba(255, 255, 255, 0.05);
  --accent-blur: rgba(64, 224, 255, 0.2);
  --dark-bg: #0a0a0a;
  --darker-bg: #050505;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --gradient-primary: linear-gradient(135deg, rgba(64, 224, 255, 0.1), rgba(255, 255, 255, 0.05));
  --gradient-secondary: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(64, 224, 255, 0.05));
  --border-blur: rgba(255, 255, 255, 0.1);
  --shadow-blur: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(64, 224, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(64, 224, 255, 0.6);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(64, 224, 255, 0.8);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--darker-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(20px);
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--primary-blur);
  border-top: 3px solid var(--accent-blur);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-blur);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blur);
  transition: width 0.3s ease;
}

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

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

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Home Hero Background Slideshow */
.hero:not(.page-hero) {
  position: relative;
}

.hero:not(.page-hero)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.hero:not(.page-hero)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  animation: heroSlideshow 30s ease-in-out infinite, heroImageMove 20s ease-in-out infinite;
  z-index: 0;
}

@keyframes heroSlideshow {
  0%, 16.66% {
    background-image: url('/assets/images/courses/leadership-development-program.webp');
  }
  16.67%, 33.33% {
    background-image: url('/assets/images/courses/public-speaking-mastery.webp');
  }
  33.34%, 50% {
    background-image: url('/assets/images/courses/advanced-communication-skills.jpg');
  }
  50.01%, 66.66% {
    background-image: url('/assets/images/courses/executive-communication.webp');
  }
  66.67%, 83.33% {
    background-image: url('/assets/images/courses/team-collaboration-skills.jpg');
  }
  83.34%, 100% {
    background-image: url('/assets/images/courses/business-writing-excellence.webp');
  }
}

@keyframes heroImageMove {
  0%, 100% { transform: translate(-10%, -10%) scale(1.1); }
  50% { transform: translate(-5%, -5%) scale(1.15); }
}

/* Page Hero Sections (60vh for all pages except home) */
.hero.page-hero {
  min-height: 60vh;
  background: var(--gradient-primary);
}

.hero.page-hero h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.hero.page-hero p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Blog Post Hero Sections */
.hero.page-hero .hero-content {
  padding: 0 0.5rem;
}

.hero.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(64, 224, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff, rgba(64, 224, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-blur);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid var(--border-blur);
  backdrop-filter: blur(10px);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn:hover {
  background: var(--accent-blur);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-primary {
  background: var(--gradient-secondary);
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Sections */
.section {
  padding: 5rem 0;
}

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

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #ffffff, rgba(64, 224, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--primary-blur);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-blur);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-secondary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

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

.card-content {
  position: relative;
  z-index: 2;
}

.card-icon {
  font-size: 3rem;
  color: rgba(64, 224, 255, 0.8);
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Professional Cards - 3 in a row */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.professional-card {
  background: var(--primary-blur);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-blur);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 350px;
}

.course-card {
  min-height: 500px;
}

.course-image img {
  border-radius: 15px;
  filter: brightness(0.9) contrast(1.1);
}

.course-card:hover .course-image img {
  filter: brightness(1) contrast(1.2);
}

.blog-card {
  min-height: 450px;
}

.blog-image img {
  border-radius: 15px;
  filter: brightness(0.9) contrast(1.1);
}

.blog-card:hover .blog-image img {
  filter: brightness(1) contrast(1.2);
}

/* Blog Post CTA Buttons */
.blog-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.blog-cta-buttons .btn {
  min-width: 150px;
  text-align: center;
}

@media (max-width: 768px) {
  .blog-cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .blog-cta-buttons .btn {
    width: 100%;
    min-width: auto;
  }
}

/* Course Modal Buttons */
.course-modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.course-modal-buttons .btn {
  min-width: 120px;
  text-align: center;
}

/* Search Filter Container */
.search-filter-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
}

@media (max-width: 768px) {
  .course-modal-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .course-modal-buttons .btn {
    width: 100%;
    min-width: auto;
  }
  
  .search-filter-container {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .search-filter-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .search-filter-container .form-group {
    width: 100%;
    margin-bottom: 0;
  }
  
  .search-filter-container .form-control {
    font-size: 16px;
    width: 100%;
  }
}

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

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-footer {
  margin-top: auto;
  padding-top: 1rem;
}

/* Footer */
.footer {
  background: var(--darker-bg);
  border-top: 1px solid var(--border-blur);
  padding: 3rem 0 1rem;
}

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

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-blur);
  color: var(--text-muted);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--primary-blur);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-blur);
  border-radius: 15px;
  padding: 1.5rem;
  z-index: 10000;
  display: none;
  max-width: 400px;
  margin: 0 auto;
}

.cookie-popup.show {
  display: block;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.cookie-buttons .btn {
  flex: 1;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Go to Top Button */
.go-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-blur);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-blur);
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

.go-top:hover {
  background: var(--accent-blur);
  transform: translateY(-3px);
}

.go-top.show {
  display: flex;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--primary-blur);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-blur);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: rgba(64, 224, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(64, 224, 255, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

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

/* Select Dropdown Styling */
select.form-control {
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%2340E0FF" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

select.form-control:focus {
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%2340E0FF" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
}

select.form-control option {
  background: var(--dark-bg);
  color: var(--text-primary);
  padding: 8px 12px;
  border: none;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--primary-blur);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-blur);
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 1.5rem;
    margin: 1rem;
    max-height: 85vh;
    border-radius: 15px;
  }
  
  .course-modal-image {
    height: 150px !important;
    margin-bottom: 1rem !important;
  }
  
  .modal-content h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }
  
  .course-details {
    margin: 1rem 0 !important;
  }
  
  .course-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

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

/* Accordion */
.accordion {
  margin-top: 2rem;
}

.accordion-item {
  background: var(--primary-blur);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-blur);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: var(--secondary-blur);
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-content.active {
  padding: 1rem 1.5rem;
  max-height: 200px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero.page-hero h1 {
    font-size: 1.4rem;
  }

  .hero.page-hero p {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cards-grid-3 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }

  .cookie-popup {
    left: 10px;
    right: 10px;
  }

  .footer-content {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .card {
    padding: 1.5rem;
  }

  .professional-card {
    padding: 1.5rem;
    min-height: 300px;
  }
}

/* Our Story Section */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.story-image-container {
  background: var(--primary-blur);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-blur);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-blur);
}

.story-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.story-title {
  color: var(--text-primary);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.story-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .story-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .story-content {
    text-align: center;
    order: 2;
  }
  
  .story-grid > div:first-child {
    order: 1;
  }
  
  .story-reverse .story-content {
    order: 1;
  }
  
  .story-reverse > div:first-child {
    order: 2;
  }
  
  .story-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }
  
  .story-text {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
  }
  
  .story-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .story-grid {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .story-title {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }
  
  .story-text {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .story-image {
    height: 150px;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}