/* ===================================================================
   Content Mastery - Main CSS File
   Modern, component-based CSS architecture
   =================================================================== */

/* ===== BASE STYLES ===== */
@import url('base/variables.css');
@import url('base/reset.css');
@import url('base/utilities.css');

/* ===== COMPONENTS ===== */
@import url('components/buttons.css');
@import url('components/cards.css');
@import url('components/forms.css');
@import url('components/clients.css');
@import url('components/carousels.css');
@import url('components/sections.css');

/* ===== LAYOUT ===== */
/* Navigation and header styles will be imported here */
/* @import url('layout/header.css'); */
/* @import url('layout/footer.css'); */
/* @import url('layout/grid.css'); */

/* ===== PAGE-SPECIFIC STYLES ===== */
/* Page-specific styles will be imported here */
@import url('pages/home.css');
@import url('pages/authentication.css');
/* @import url('pages/courses.css'); */

/* ===== THIRD-PARTY OVERRIDES ===== */
/* Bootstrap and other framework overrides */

/* ===== TEMPORARY LEGACY SUPPORT ===== */
/* This section will be removed once all inline styles are extracted */

/* Legacy hero section styles */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-color) 0%, #ffffff 100%);
  padding: 0;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 122, 89, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 143, 115, 0.05) 0%, transparent 50%);
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 122, 89, 0.1), rgba(255, 143, 115, 0.1));
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 20%;
  animation-delay: 2s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 60%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-normal);
  line-height: 1.1;
  color: var(--text-color);
  margin-bottom: var(--space-xl);
  letter-spacing: -0.02em;
  font-family: var(--font-primary);
}

.hero-title .hero-main {
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 4rem);
  display: block;
  letter-spacing: -0.01em;
  color: var(--text-color);
  font-family: var(--font-primary);
}

.hero-title .hero-subtitle {
  font-weight: 300;
  font-size: clamp(1.8rem, 6vw, 3rem);
  color: var(--primary-color);
  font-style: normal;
  letter-spacing: -0.01em;
  opacity: 0.9;
  font-family: var(--font-primary);
}

/* ===== HERO LOCATION STYLING ===== */
.hero-location {
  font-weight: 300;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: var(--primary-color);
  font-style: italic;
  letter-spacing: 0.02em;
  opacity: 0.9;
  font-family: var(--font-primary);
  display: block;
}

/* ===== FADE IN UP ANIMATION ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-up[data-delay="300"] {
  animation-delay: 0.3s;
}

.fade-in-up[data-delay="600"] {
  animation-delay: 0.6s;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.hero-description {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  font-weight: var(--font-weight-normal);
  font-family: var(--font-primary);
}


.hero-cta {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.hero-visual {
  position: relative;
  padding: var(--space-3xl) var(--space-lg);
}

.hero-image-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.hero-main-image {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
}

.hero-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  box-shadow: var(--shadow-2xl);
}

.placeholder-content i {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
}

.placeholder-content h3 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
}

.placeholder-content p {
  font-size: var(--font-size-lg);
  opacity: 0.9;
}

/* Legacy section styles */
.section {
  padding: var(--space-3xl) 0;
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
  margin-bottom: var(--space-md);
  text-align: center;
}

.section-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  font-weight: var(--font-weight-normal);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

/* Legacy responsive styles */
@media (max-width: 991px) {
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .hero-description {
    font-size: var(--font-size-lg);
  }
  
  .hero-cta {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: var(--space-3xl) 0 var(--space-2xl) 0;
    min-height: auto;
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-lg);
    text-align: center;
  }
  
  .hero-title .hero-main {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }
  
  .hero-title .hero-subtitle {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }
  
  .hero-description {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-xl);
    text-align: center;
  }
  
  /* Mobile layout: Image first, then content */
  .hero-section .row {
    flex-direction: column-reverse;
  }
  
  .hero-section .col-lg-6:first-child {
    order: 2;
  }
  
  .hero-section .col-lg-6:last-child {
    order: 1;
    margin-bottom: var(--space-2xl);
  }
  
  .hero-placeholder {
    height: 300px;
  }
  
  .placeholder-content i {
    font-size: 3rem;
  }
  
  .placeholder-content h3 {
    font-size: var(--font-size-2xl);
  }
  
  .shape {
    opacity: 0.3;
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
  
  .section-subtitle {
    font-size: var(--font-size-base);
  }
}