/* === css/landing-style.css (CORRECTED FOR MOBILE SCROLLING) === */

/* 1. VARIABLES & GLOBAL RESET */
:root {
  --primary-color: #6d5edc;
  --secondary-color: #3b82f6;
  --dark-color: #1f2937;
  --gray-color: #6b7280;
  --bg-color: #f9fafb;
  --light-color: #ffffff;
  --error-color: #D8000C;
  --error-bg-color: #FFD2D2;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --border-radius-lg: 1.5rem;
  --border-radius-md: 1rem;
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--dark-color);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  overflow: hidden; /* This is FINE for desktop, we will override it for mobile */
}

/* Helper class to hide elements */
.hidden {
    display: none !important;
}


/* 2. ANIMATED BACKGROUND */
.background-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s infinite ease-in-out alternate;
}
.shape1 {
  width: 20vw; height: 20vw;
  background: var(--primary-color);
  top: 10%; left: 5%;
  animation-duration: 25s;
}
.shape2 {
  width: 30vw; height: 30vw;
  background: var(--secondary-color);
  bottom: -10%; right: -5%;
  animation-duration: 20s;
}
.shape3 {
  width: 15vw; height: 15vw;
  background: #f59e0b;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 30s;
}
@keyframes float {
  from { transform: translateY(0px) rotate(0deg) scale(1); }
  to { transform: translateY(-40px) rotate(70deg) scale(1.1); }
}


/* 3. MAIN PAGE CONTAINER & HEADER */
.page-container {
  max-width: 800px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.instructor-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--light-color);
  box-shadow: 0 0 0 4px var(--primary-color);
  margin-bottom: 1.5rem;
  object-fit: cover;
}
.main-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}
.main-header .subtitle {
  font-size: 1.25rem;
  color: var(--gray-color);
  font-weight: 400;
}


/* 4. MAIN CONTENT & ACTION BUTTONS */
.main-content {
  margin-top: 2rem;
}
.intro-text {
  font-size: 1.1rem;
  color: var(--dark-color);
  margin-bottom: 2.5rem;
}
.action-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.action-button {
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
  color: var(--light-color);
  text-decoration: none;
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 1rem;
}
.action-button.ielts-button {
  background: linear-gradient(135deg, var(--secondary-color), #2563eb);
}
.action-button:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow);
}
.button-icon svg {
  width: 3rem;
  height: 3rem;
  opacity: 0.8;
}
.button-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.button-text span {
  font-size: 0.9rem;
  opacity: 0.9;
}


/* 5. FOOTER */
.main-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--gray-color);
}
.social-links {
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.social-links a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}
.social-links a:hover {
  color: var(--dark-color);
  text-decoration: underline;
}
.social-links span {
  margin: 0 0.5rem;
}
.copyright {
  font-size: 0.875rem;
}

/*
======================================================
  NEW & IMPROVED AUTHENTICATION AND MODAL STYLES
======================================================
*/

/* 6. AUTHENTICATION AREA IN HEADER */
.user-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
}

.auth-button {
  padding: 8px 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  color: var(--dark-color);
  backdrop-filter: blur(10px);
}

.auth-button.primary {
  background: var(--primary-color);
  color: var(--light-color);
  border-color: transparent;
}

.auth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.auth-button.primary:hover {
  background: #5a4ab9; /* Darker purple */
}

.welcome-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-color);
}

/* 7. GENERIC MODAL STYLES (for Login, Register, Upgrade) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}
.modal-content {
    background-color: var(--light-color);
    padding: 30px 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 420px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-overlay:not(.hidden) .modal-content {
    transform: translateY(0);
}
.modal-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--dark-color);
    text-align: center;
    font-size: 28px;
}
.modal-content p {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 25px;
}
.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}
.close-modal-btn:hover { color: #333; }
.modal-content.large { max-width: 600px; }


/* 8. FORM STYLES (inside Modals) */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
    text-align: left;
}
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(109, 94, 220, 0.2);
}
.auth-button.full-width {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
}
.auth-button.full-width:hover { background-color: #5a4ab9; }

.error-message {
    color: var(--error-color);
    background-color: var(--error-bg-color);
    border: 1px solid var(--error-color);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
}


/* 9. PAYMENT MODAL SPECIFIC STYLES */
.payment-tabs {
  display: flex;
  margin-bottom: 20px;
  border-radius: 8px;
  background-color: #f0f0f0;
  padding: 5px;
}
.payment-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-weight: 600;
  color: #555;
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
  font-family: 'Poppins', sans-serif;
}
.payment-tab.active {
  background-color: var(--primary-color);
  color: white;
}
.payment-details { display: none; }
.payment-details.active { display: block; }
.payment-details h3 {
  text-align: left;
  font-size: 18px;
  margin-top: 0;
  color: var(--dark-color);
}
.payment-details p {
  text-align: left;
  margin-bottom: 12px;
  color: var(--gray-color);
}
.payment-card-info {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}
.payment-card-info p {
  margin: 0;
  text-align: left;
}
.card-number {
  font-family: monospace;
  font-size: 22px;
  font-weight: 600;
  color: var(--dark-color);
  margin: 10px 0 !important;
  letter-spacing: 2px;
  text-align: center;
}
.card-holder {
  text-align: right !important;
  font-size: 14px;
  color: var(--gray-color);
}
.payment-final-step {
  font-size: 15px;
  line-height: 1.6;
}
.payment-final-step a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}
.activation-note {
  font-size: 13px;
  color: var(--gray-color);
  font-style: italic;
  text-align: center !important;
  margin-top: 25px;
}


/* 10. RESPONSIVE DESIGN */
@media (max-width: 768px) {
  body {
    padding: 1.5rem 1rem; /* Adjusted padding */
    align-items: flex-start; /* Aligns content to the top */
    overflow-y: auto; /* --- THE FIX! --- Allows vertical scrolling on mobile */
    min-height: 100vh; /* Ensures body still fills the screen if content is short */
  }
  .page-container {
    padding: 1.5rem;
    /* Add a little margin at the bottom for better scroll feel */
    margin-bottom: 2rem; 
  }
  .main-header h1 {
    font-size: 2rem;
  }
  .action-container {
    flex-direction: column;
    align-items: center;  
  }
  .action-button {
    width: 100%;
    max-width: 400px;
  }
  .modal-content {
    padding: 20px;
    margin: 1rem;
  }
}