@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('variables.css');

html { 
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-body);
  background-color: var(--color-bg);
  opacity: 0; /* Initially hide body for fade-in */
  animation: fadeInContent 1s forwards;
}

@keyframes fadeInContent {
  to { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
}

/* Navbar */
.navbar-landing {
  background-color: var(--color-bg-card);
  box-shadow: var(--shadow-sm);
  padding: var(--space-sm) var(--space-lg);
  transition: box-shadow var(--transition-normal);
}

.navbar-landing.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand-landing {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  font-size: var(--text-h3);
  transition: color var(--transition-fast);
}

.navbar-brand-landing:hover {
  color: var(--color-primary-dark);
}

.navbar-nav-landing .nav-link {
  color: var(--color-text-dark);
  font-weight: 500;
  margin-left: var(--space-md);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.navbar-nav-landing .nav-link:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.navbar-nav-landing .nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 60vh; /* Adjust height as needed */
  background: linear-gradient(rgba(var(--color-primary-rgb), 0.8), rgba(var(--color-primary-rgb), 0.8)), url('/images/tanesco-hero.jpg') no-repeat center center/cover;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.hero-content {
  z-index: 10;
  /* Removed slideInUp from here, now handled by word animation */
}

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

@keyframes wordPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

.hero-title {
  font-size: var(--text-h1);
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: var(--text-h4);
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

.hero-buttons .btn {
  margin: 0 var(--space-sm);
}

/* Section Styling */
.section-heading {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.content-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* CTA Cards (repurposed from previous landing) */
.cta-cards-section {
  padding: var(--space-3xl) 0;
  background-color: var(--color-bg-sidebar); /* Lighter background for this section */
}

.cta-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px; /* Slightly adjusted */
  border: 1px solid rgba(0,0,0,0.05);
}

.cta-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.cta-card-icon {
  width: 64px; /* Slightly smaller icon */
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: var(--color-secondary-soft); /* Use soft accent background */
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-card-icon svg {
  fill: var(--color-secondary); /* Accent color for the icon */
  width: 32px;
  height: 32px;
}

.cta-card h3 {
  font-size: var(--text-h3);
  color: var(--color-text-dark);
  margin-bottom: var(--space-md);
}

.cta-card p {
  font-size: var(--text-body);
  color: var(--color-text-body);
  margin-bottom: var(--space-xl);
  flex-grow: 1;
}

.cta-card .btn-group {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
}

/* Buttons */
.btn-primary-custom {
  background: var(--color-primary);
  color: white;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  transition: background var(--transition-fast), transform var(--transition-fast);
  font-family: var(--font-body);
  font-size: var(--text-body);
  text-decoration: none;
}

.btn-primary-custom:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px) scale(1.02);
  color: white;
}

.btn-outline-custom {
  background: transparent;
  color: var(--color-primary);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 2px solid var(--color-primary);
  transition: all var(--transition-fast), transform var(--transition-fast);
  font-family: var(--font-body);
  font-size: var(--text-body);
  text-decoration: none;
}

.btn-outline-custom:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-1px) scale(1.02);
}

/* Footer */
.footer-landing {
  background-color: var(--color-primary);
  color: white;
  padding: var(--space-3xl) var(--space-lg);
}

.footer-heading {
  font-size: var(--text-h4);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: white;
}

.social-icons a {
  color: white;
  font-size: var(--text-h3);
  margin-right: var(--space-md);
  transition: transform var(--transition-fast);
}

.social-icons a:hover {
  transform: translateY(-2px) scale(1.1);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-lg);
  margin-top: var(--space-2xl);
  font-size: var(--text-small);
  opacity: 0.8;
}

/* Scroll-triggered fade-in for sections */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-section { height: 70vh; }
  .hero-title { font-size: var(--text-h2); }
  .hero-subtitle { font-size: var(--text-h4); max-width: 90%; }
}

@media (max-width: 767px) {
  .hero-section { height: 80vh; padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
  .hero-title { font-size: var(--text-h3); }
  .hero-subtitle { font-size: var(--text-body); max-width: 95%; }
  .hero-buttons .btn { margin: var(--space-sm) 0; width: 100%; max-width: 250px; }
  .cta-cards-section .row > div {
    margin-bottom: var(--space-2xl);
  }
  .footer-landing .col-md-3 {
    margin-bottom: var(--space-2xl);
  }
}
