/* ============================================
   PHASE 1: VISUAL UPGRADE STYLES
   - Hero video section
   - What You Can Do cards
   - Modal styling
   - Enhanced animations
   ============================================ */

/* -------- HERO SECTION WITH VIDEO -------- */

.hero-section {
  position: relative;
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 40px 0;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 500px;
  padding: 10px;
  animation: heroFadeUp 1s ease-out;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-headline {
  font-size: 2rem !important;
  font-family: 'Metal Mania', cursive;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
}

.hero-subtext {
  font-size: 1.05rem !important;
  color: #ddd;
  margin-bottom: 20px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideInButtons 1.2s ease-out;
  margin-top: 8px;
}

@keyframes slideInButtons {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-buttons .btn {
  min-width: 150px;
}

.btn-primary {
  background: #8b0000 !important;
  padding: 6px 16px !important;
  font-size: 0.75rem !important;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid #8b0000;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: transparent !important;
  color: #8b0000;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139, 0, 0, 0.4);
}

.btn-secondary {
  background: transparent !important;
  padding: 6px 16px !important;
  font-size: 0.75rem !important;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid #fff;
  color: #fff;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #8b0000 !important;
  border-color: #8b0000;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139, 0, 0, 0.4);
}

.btn-outline {
  background: transparent !important;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 30px !important;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary) !important;
  color: white;
  transform: translateY(-3px);
}

/* Mobile Hero */
@media (max-width: 768px) {
  .hero-section {
    min-height: 100vh;
  }

  .hero-headline {
    font-size: 1.4rem !important;
  }

  .hero-subtext {
    font-size: 0.85rem !important;
    margin-bottom: 16px;
  }

  .hero-buttons {
    gap: 10px;
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    min-width: 140px;
    width: 100%;
    max-width: 250px;
  }

  .btn-primary, .btn-secondary {
    padding: 12px 24px !important;
    font-size: 0.95rem;
  }
}

/* -------- THE UNDERGROUND CALLS SECTION -------- */

.underground-calls {
  padding: 80px 40px;
  background: var(--bg);
  text-align: center;
}

.underground-calls h2 {
  font-size: 3rem;
  margin-bottom: 60px;
  color: var(--primary);
  font-family: 'Metal Mania', cursive;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

.cinematic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.cinematic-card {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cinematic-card:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 20px 50px rgba(139, 0, 0, 0.4);
}

.card-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
  z-index: 0;
}

.cinematic-card:hover .card-background {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 0.4s ease;
  z-index: 1;
}

.cinematic-card:hover .card-overlay {
  opacity: 0.6;
}

.card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  gap: 15px;
  color: white;
  word-wrap: break-word;
  text-align: center;
}

.card-content h3 {
  font-size: 1.8rem !important;
  margin: 0;
  text-align: center;
  font-family: 'Metal Mania', cursive;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
  letter-spacing: 1px;
}

.card-content p {
  font-size: 0.95rem !important;
  margin: 0;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.3;
  font-weight: 500;
}

.card-content .btn {
  margin-top: 10px;
  align-self: center;
}

.btn-portal {
  background: rgba(139, 0, 0, 0.9);
  border: 2px solid #8b0000;
  color: white;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.btn-portal:hover {
  background: #8b0000;
  box-shadow: 0 0 25px rgba(139, 0, 0, 0.8), 0 6px 20px rgba(139, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .underground-calls {
    padding: 60px 20px;
  }

  .underground-calls h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }

  .cinematic-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cinematic-card {
    height: 300px;
  }

  .card-content {
    padding: 15px;
  }

  .card-content h3 {
    font-size: 1.8rem;
  }

  .card-content p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .btn-portal {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .cinematic-card {
    height: 300px;
  }

  .card-content h3 {
    font-size: 1.6rem;
  }

  .card-content p {
    font-size: 0.95rem;
  }
}

/* -------- MODAL STYLING -------- */

.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: var(--card-bg);
  margin: 5% auto;
  padding: 40px;
  border: 1px solid var(--primary);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  color: var(--primary);
  margin-bottom: 30px;
  text-align: center;
  font-size: 2rem;
}

.close {
  color: var(--text);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--primary);
}

.modal-form {
  margin-bottom: 20px;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  background-color: var(--input-bg);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.modal-divider {
  text-align: center;
  color: var(--paragraph-text);
  margin: 25px 0;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.google-btn {
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #ddd;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.google-btn:hover {
  background: #f5f5f5 !important;
  border-color: var(--primary);
  transform: translateY(-2px);
}

#modal-error {
  padding: 12px;
  background: rgba(255, 107, 107, 0.1);
  border-left: 4px solid #ff6b6b;
  border-radius: 4px;
}

#upload-message {
  padding: 12px;
  background: rgba(76, 175, 80, 0.1);
  border-left: 4px solid #4CAF50;
  border-radius: 4px;
  color: #4CAF50;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 30px 20px;
    margin: 20% auto;
  }

  .modal-content h2 {
    font-size: 1.5rem;
  }
}

/* -------- CONTAINER UTILITY -------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -------- ENHANCED BUTTON STYLES -------- */

.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

/* -------- SCROLLING ANIMATIONS -------- */

[data-aos] {
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

[data-aos].aos-animate {
  opacity: 1;
}

/* -------- MOBILE-SPECIFIC HERO FIXES -------- */

@media (max-width: 768px) {
  .hero-section {
    height: 70vh !important;
    min-height: 500px !important;
  }
  
  .hero-content {
    padding: 20px !important;
    width: 90% !important;
    max-width: 400px !important;
  }
  
  .hero-content h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
    margin-bottom: 15px !important;
    line-height: 1.2 !important;
  }
  
  .hero-content p {
    font-size: clamp(1rem, 3.5vw, 1.2rem) !important;
    margin-bottom: 25px !important;
    line-height: 1.4 !important;
  }
  
  .hero-content .btn {
    font-size: 1rem !important;
    padding: 12px 24px !important;
    width: auto !important;
    min-width: 160px !important;
    margin: 5px !important;
  }
  
  .slider-controls {
    bottom: 20px !important;
    gap: 15px !important;
  }
  
  .slide-indicators span {
    width: 10px !important;
    height: 10px !important;
  }
  
  .prev-slide, .next-slide {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 60vh !important;
    min-height: 400px !important;
  }
  
  .hero-content {
    padding: 15px !important;
    width: 95% !important;
  }
  
  .hero-content h2 {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
  }
  
  .hero-content p {
    font-size: clamp(0.9rem, 3vw, 1.1rem) !important;
    margin-bottom: 20px !important;
  }
  
  .hero-content .btn {
    font-size: 0.95rem !important;
    padding: 10px 20px !important;
    min-width: 140px !important;
    display: block !important;
    margin: 8px auto !important;
    width: 100% !important;
    max-width: 200px !important;
  }
  
  .slider-controls {
    bottom: 15px !important;
    gap: 10px !important;
  }
}

/* -------- MOBILE HEADER FIXES -------- */

@media (max-width: 768px) {
  header.sticky-header {
    flex-direction: column;
    padding: 10px 15px;
    gap: 10px;
  }
  
  .logo h1 {
    font-size: 28px !important;
    margin: 5px 0;
  }
  
  .header-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
  }
  
  .burger-menu, #auth-form, #theme-toggle {
    flex: 1;
    min-width: 60px;
  }
  
  .burger-menu {
    justify-content: flex-start;
  }
  
  #theme-toggle {
    justify-content: flex-end;
  }
  
  #auth-form {
    justify-content: center;
  }
  
  #auth-form .login-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  header.sticky-header {
    padding: 8px 10px;
  }
  
  .logo h1 {
    font-size: 24px !important;
  }
  
  .burger-menu, #auth-form, #theme-toggle {
    min-width: 50px;
  }
  
  #auth-form .login-btn {
    padding: 5px 10px;
    font-size: 0.85rem;
  }
}

/* -------- REMOVE SLIDER CONTROLS WHEN ONLY ONE SLIDE -------- */

.single-slide .slider-controls {
  display: none !important;
}
