/* Pillars Academy - Main Stylesheet */

/* ===== CSS Variables ===== */
:root {
  --primary-color: #000036;
  --secondary-color: #0021A2;
  --accent-color: #FF6109;
  --text-dark: #000036;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --header-height: 70px;
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 70px;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header & Navigation ===== */
.header {
  background: linear-gradient(135deg, #000036 0%, #001a4d 50%, #000036 100%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3),
              0 0 40px rgba(255, 97, 9, 0.1);
  animation: headerSlideDown 0.6s ease-out;
}

@keyframes headerSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  right: 0;
  bottom: 0;
  width: 200%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 97, 9, 0.03) 50%, 
    transparent 100%);
  pointer-events: none;
  animation: headerShine 8s infinite;
}

@keyframes headerShine {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(50%); }
}

.header.scrolled {
  background: linear-gradient(135deg, rgba(0, 0, 54, 0.98) 0%, rgba(0, 26, 77, 0.98) 50%, rgba(0, 0, 54, 0.98) 100%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5),
              0 0 60px rgba(255, 97, 9, 0.15);
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.78rem;
  padding: 22px 10px;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), #FF8C00);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-color);
}

.nav-menu > li > a:hover {
  color: var(--white);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.nav-menu > li > a:hover::after {
  width: 60%;
}

.nav-menu > li > a.active {
  color: var(--white);
}

.nav-menu > li > a.active::after {
  width: 80%;
  background: linear-gradient(90deg, var(--accent-color), #FF8C00);
}

/* Player Portal Button - Simple Version */
.player-portal {
  background: #0021A2 !important;
  color: #ffffff !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  margin-left: 15px !important;
  display: inline-block !important;
}

.player-portal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 33, 162, 0.4);
  background: #0044cc !important;
}

.player-portal:active {
  transform: translateY(0);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), #FF8C00);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  box-shadow: 0 0 5px var(--accent-color);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 97, 9, 0.1);
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.mobile-menu-toggle:hover span {
  background: var(--white);
  box-shadow: 0 0 10px var(--white);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--white);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: var(--white);
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
}

/* Main Navigation */
.nav-main {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Music Player in Nav */
.nav-music-player {
  position: relative;
  margin-left: 10px;
}

.music-toggle-btn {
  background: linear-gradient(135deg, rgba(255, 97, 9, 0.2) 0%, rgba(255, 140, 0, 0.2) 100%);
  border: 1px solid rgba(255, 97, 9, 0.5);
  color: #FF6109;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.music-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(255, 97, 9, 0.3) 0%, rgba(255, 140, 0, 0.3) 100%);
  border-color: #FF6109;
  box-shadow: 0 0 20px rgba(255, 97, 9, 0.3);
}

.music-toggle-btn.playing {
  background: linear-gradient(135deg, #FF6109 0%, #FF8C00 100%);
  color: #fff;
}

.music-label {
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  gap: 0;
  align-items: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 25px 12px;
  display: block;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--accent-color);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--white);
  margin-left: 6px;
  vertical-align: middle;
  transition: var(--transition);
}

.dropdown:hover .dropdown-toggle::after {
  border-top-color: var(--accent-color);
}

/* CTA Button */
.btn-cta {
  background: var(--accent-color);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}

.btn-cta:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 97, 9, 0.4);
}

/* ===== Footer ===== */
.footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: var(--white);
}

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

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

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

.footer-contact p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

/* Newsletter Signup */
.newsletter-signup {
  margin-top: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 5px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
  background: var(--accent-color);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.newsletter-form button:hover {
  background: var(--white);
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  background: var(--bg-light);
  padding: 15px 0;
  margin-bottom: 30px;
}

.breadcrumbs ul {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumbs li::after {
  content: '>';
  margin-left: 10px;
  color: var(--text-light);
}

.breadcrumbs li:last-child::after {
  display: none;
}

.breadcrumbs a {
  color: var(--text-light);
  transition: var(--transition);
}

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

.breadcrumbs li:last-child {
  color: var(--text-dark);
  font-weight: 500;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 97, 9, 0.4);
}

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

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

.btn-outline {
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--white);
}

/* ===== Section Styles ===== */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

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

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.section-bg {
  background: var(--bg-light);
}

/* ===== Responsive Design ===== */

/* Tablet */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 15px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
    position: fixed;
    right: 20px;
    top: 12px;
    z-index: 1002;
  }

  .nav-music-player {
    display: flex;
    justify-content: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
  }

  .nav-main {
    display: flex;
    align-items: flex-start;
    padding-top: 20px;
  }

  .nav-menu {
    display: none;
  }

  .nav-main.active .nav-menu {
    display: flex;
  }

  .nav-main {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--primary-color);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

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

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu > li > a {
    padding: 15px 10px;
    font-size: 1rem;
    color: var(--white);
    display: block;
  }

  .player-portal {
    width: 100%;
    text-align: center;
    margin-top: 15px;
    margin-left: 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .section {
    padding: 50px 0;
  }

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

@media (max-width: 480px) {
  .section-title h2 {
    font-size: 1.75rem;
  }
}

/* General mobile image/video overflow fix */
img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .header-container {
    padding: 0 15px;
  }

  .footer {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .section-title p {
    font-size: 0.95rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 12px 24px;
  }

  .btn-large {
    padding: 14px 28px;
    font-size: 1rem;
  }
}
