/* =====================================================
   HOME PAGE STYLES
   Homepage animations, quick access, guides, and CTA sections
   ===================================================== */

/* ================================================
   Home Page Animations
   ================================================ */
/* Hero Section */
.home-page {
  background: #f8fafc;
}

.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #0a1628 0%,
    #1a365d 30%,
    #0066cc 70%,
    #4cc9f0 100%
  );
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(76, 201, 240, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 102, 204, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 30%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #4cc9f0;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 25px;
  backdrop-filter: blur(10px);
}

.hero-badge i {
  color: #ffc107;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, #4cc9f0 0%, #00b4d8 50%, #48cae4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #4cc9f0 0%, #00b4d8 100%);
  color: #0a1628;
  box-shadow: 0 10px 30px rgba(76, 201, 240, 0.4);
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(76, 201, 240, 0.5);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 25px 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
}

/* Features Section */
.features-section {
  padding: 80px 20px;
  background: white;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.feature-card {
  background: #f8fafc;
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background: white;
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Calendar Section Home */
.calendar-section-home {
  padding: 80px 20px;
  background: #f8fafc;
}

.section-header-home {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #0066cc 0%, #004080 100%);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.section-header-home h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

.section-header-home p {
  font-size: 1.1rem;
  color: #64748b;
  margin: 0;
}
/* Fade in up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@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);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Apply animations */
.hero-badge {
  animation: fadeInDown 0.8s ease-out;
}

.hero-title {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-actions {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
  animation: scaleIn 0.8s ease-out 0.8s both;
}

.feature-card {
  animation: fadeInUp 0.6s ease-out both;
}

.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}
.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}
.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}
.feature-card:nth-child(4) {
  animation-delay: 0.4s;
}

.feature-icon {
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  animation: pulse 0.6s ease-in-out;
}

.stat-number {
  transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
  transform: scale(1.1);
}

/* Quick Access Section */
.quick-access-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0a1628 0%, #1a365d 100%);
  position: relative;
  overflow: hidden;
}

.quick-access-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(76, 201, 240, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 102, 204, 0.15) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.quick-access-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.quick-access-header {
  text-align: center;
  margin-bottom: 50px;
}

.quick-access-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
}

.quick-access-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.quick-access-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 35px 30px;
  text-align: center;
  text-decoration: none;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.quick-access-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(76, 201, 240, 0.1) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.quick-access-card:hover {
  transform: translateY(-10px);
  border-color: rgba(76, 201, 240, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.quick-access-card:hover::before {
  opacity: 1;
}

.quick-access-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.quick-access-card:hover .quick-access-icon {
  transform: scale(1.1);
}

.quick-access-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.quick-access-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Guides Section */
.guides-section {
  padding: 80px 20px;
  background: white;
}

.guides-container {
  max-width: 1200px;
  margin: 0 auto;
}

.guides-header {
  text-align: center;
  margin-bottom: 50px;
}

.guides-header .section-tag {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.guides-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 15px;
}

.guides-header p {
  font-size: 1.1rem;
  color: #64748b;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.guide-card {
  background: #f8fafc;
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.guide-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #0066cc 0%, #4cc9f0 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.guide-card:hover {
  background: white;
  border-color: #e2e8f0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.guide-card:hover::before {
  opacity: 1;
}

.guide-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0066cc 0%, #4cc9f0 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
}

.guide-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.guide-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

/* CTA Section */
.cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0066cc 0%, #004080 100%);
  text-align: center;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 35px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 35px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-btn-primary {
  background: white;
  color: #0066cc;
}

.cta-btn-primary:hover {
  background: #f0f7ff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 992px) {
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .quick-access-section {
    padding: 60px 20px;
  }

  .quick-access-header h2,
  .guides-header h2 {
    font-size: 1.8rem;
  }

  .quick-access-grid,
  .guides-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .quick-access-card {
    padding: 30px 25px;
  }

  .guides-section {
    padding: 60px 20px;
  }

  .cta-section {
    padding: 60px 20px;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ================================================
   Responsive Home Page
   ================================================ */

@media (max-width: 1024px) {
  .hero-section {
    min-height: 500px;
    padding: 60px 20px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .features-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 50px 15px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-btn {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 20px 30px;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .features-section {
    padding: 50px 15px;
  }

  .features-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .feature-card {
    padding: 25px 20px;
  }

  .calendar-section-home {
    padding: 50px 15px;
  }

  .section-header-home h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 8px 15px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Legacy welcome section - hide */
.welcome-section {
  display: none;
}

.calendar-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 1.8rem;
  color: var(--color-gray-800, #1e293b);
  margin-bottom: 10px;
}

.section-header h2 i {
  color: var(--color-primary);
  margin-right: 10px;
}

.section-header p {
  color: var(--color-gray-600, #475569);
}
