/* CSS Variables - Triadic Color Scheme */
:root {
  /* Primary Colors (Triadic) */
  --primary-color: #3366FF; /* Blue */
  --secondary-color: #FF3366; /* Red-Pink */
  --tertiary-color: #66FF33; /* Green */
  
  /* Tonal Variations */
  --primary-light: #6B8FFF;
  --primary-dark: #1A4EFF;
  --secondary-light: #FF6B8F;
  --secondary-dark: #FF1A4E;
  --tertiary-light: #8FFF6B;
  --tertiary-dark: #4EFF1A;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --gray: #E9ECEF;
  --dark-gray: #495057;
  --black: #212529;
  
  /* Neuomorphic Colors */
  --neomorphic-bg: #E6E9EF;
  --neomorphic-shadow-light: #FFFFFF;
  --neomorphic-shadow-dark: #B8BCC8;
  
  /* Text Colors */
  --text-primary: #2C3E50;
  --text-secondary: #7F8C8D;
  --text-light: #BDC3C7;
  --text-white: #FFFFFF;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  --gradient-hero: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--tertiary-color) 100%);
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Shadows - Neuomorphic */
  --shadow-neomorphic: 
    8px 8px 16px var(--neomorphic-shadow-dark),
    -8px -8px 16px var(--neomorphic-shadow-light);
  --shadow-neomorphic-inset: 
    inset 8px 8px 16px var(--neomorphic-shadow-dark),
    inset -8px -8px 16px var(--neomorphic-shadow-light);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--neomorphic-bg);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Global Button Styles */
.btn, button, input[type='submit'], .button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-neomorphic);
  position: relative;
  overflow: hidden;
}

.btn:hover, button:hover, input[type='submit']:hover, .button:hover {
  transform: translateY(-2px);
  box-shadow: 
    12px 12px 24px var(--neomorphic-shadow-dark),
    -12px -12px 24px var(--neomorphic-shadow-light);
  color: var(--white);
  text-decoration: none;
}

.btn:active, button:active, input[type='submit']:active, .button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-neomorphic-inset);
}

.btn.is-secondary, .button.is-secondary {
  background: var(--gradient-secondary);
}

.btn.is-light, .button.is-light {
  background: var(--white);
  color: var(--primary-color);
  box-shadow: var(--shadow-neomorphic);
}

.btn.is-large, .button.is-large {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn.is-fullwidth, .button.is-fullwidth {
  width: 100%;
  text-align: center;
}

/* Header/Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  z-index: 1000;
}

.navbar-brand strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-item {
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-item:hover {
  color: var(--primary-color);
  background-color: transparent;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-item:hover::after {
  width: 80%;
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(51, 102, 255, 0.8) 0%, 
    rgba(255, 51, 102, 0.7) 50%, 
    rgba(102, 255, 51, 0.6) 100%);
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: var(--spacing-xl) 0;
}

.hero .title, .hero .subtitle {
  color: var(--text-white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  color: var(--text-white) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Parallax Elements */
.parallax-element {
  transform: translateY(0);
  transition: transform 0.6s ease-out;
}

/* Sections */
.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--light-gray);
}

/* Cards - Neuomorphic Style */
.card {
  background: var(--neomorphic-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-neomorphic);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 
    12px 12px 24px var(--neomorphic-shadow-dark),
    -12px -12px 24px var(--neomorphic-shadow-light);
}

.card-image {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  flex: 1;
  width: 100%;
}

.card-content .title {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.card-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Team Cards */
.card-content .media {
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.media-left img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

/* Pricing Cards */
.pricing-card {
  position: relative;
  height: 100%;
}

.pricing-card.featured {
  transform: scale(1.05);
  border: 2px solid var(--primary-color);
}

.pricing-card .tag {
  position: absolute;
  top: -10px;
  right: 20px;
  z-index: 10;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0;
}

.pricing-features li {
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid var(--gray);
  color: var(--text-secondary);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* Forms */
.field {
  margin-bottom: var(--spacing-md);
}

.label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  display: block;
}

.input, .textarea, .select select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-neomorphic-inset);
}

.input:focus, .textarea:focus, .select select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 
    inset 4px 4px 8px var(--neomorphic-shadow-dark),
    inset -4px -4px 8px var(--neomorphic-shadow-light),
    0 0 0 3px rgba(51, 102, 255, 0.1);
}

.radio {
  display: inline-block;
  margin-right: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.radio input[type="radio"] {
  margin-right: var(--spacing-xs);
}

/* Stars Rating */
.stars {
  color: #FFD700;
  font-size: 1.25rem;
  margin-top: var(--spacing-sm);
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: var(--text-light);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer .title {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: var(--spacing-xs);
}

.footer ul li a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.social-links a {
  color: var(--text-light);
  margin-right: var(--spacing-sm);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.social-links a:hover {
  color: var(--white);
  background: var(--primary-color);
  transform: translateY(-2px);
  text-decoration: none;
}

/* External Resources Section */
.external-resources .card {
  height: 100%;
  transition: all 0.3s ease;
}

.external-resources .card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.external-resources .title a {
  color: var(--primary-color);
  text-decoration: none;
}

.external-resources .title a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

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

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s ease forwards;
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Pulse Animation for CTA buttons */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(51, 102, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(51, 102, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(51, 102, 255, 0);
  }
}

/* Success Page Styles */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  text-align: center;
  padding: var(--spacing-md);
}

.success-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  max-width: 600px;
}

.success-content .title {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.success-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

/* Privacy and Terms Pages */
.legal-page {
  padding-top: 100px;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

.legal-content h1 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.legal-content h2 {
  color: var(--text-primary);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: var(--spacing-xs);
}

.legal-content p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.legal-content ul {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
}

.legal-content li {
  margin-bottom: var(--spacing-xs);
  color: var(--text-secondary);
}

/* Contact Page */
.contact-page {
  padding-top: 100px;
  min-height: 100vh;
}

.contact-hero {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.contact-hero .title, .contact-hero .subtitle {
  color: var(--white);
}

.contact-info {
  padding: var(--spacing-xl) 0;
}

.contact-card {
  text-align: center;
  padding: var(--spacing-lg);
}

.contact-card .icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

/* About Page */
.about-page {
  padding-top: 100px;
}

.about-hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('image/about-us-team-english-academy.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.about-hero .title, .about-hero .subtitle {
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-content {
  padding: var(--spacing-xl) 0;
}

.mission-vision {
  padding: var(--spacing-xl) 0;
  background: var(--light-gray);
}

.mission-card, .vision-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  height: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.25rem;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .card {
    padding: var(--spacing-sm);
  }
  
  .pricing-card.featured {
    transform: none;
    margin-top: var(--spacing-md);
  }
  
  .navbar-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero .title {
    font-size: 1.75rem;
  }
  
  .btn, .button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .card {
    margin-bottom: var(--spacing-sm);
  }
  
  .legal-content, .contact-info {
    padding: var(--spacing-md) var(--spacing-sm);
  }
}

/* Print Styles */
@media print {
  .navbar, .footer {
    display: none;
  }
  
  .hero {
    background: none !important;
    color: var(--text-primary) !important;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid var(--gray);
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --primary-color: #0000FF;
    --secondary-color: #FF0000;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .parallax-element {
    transform: none !important;
  }
  
  .hero {
    background-attachment: scroll;
  }
}