/* Base Styles */
:root {
  --primary: #4361ee;
  --primary-light: #4895ef;
  --primary-dark: #3f37c9;
  --accent: #4cc9f0;
  --success: #0cce6b;
  --text-dark: #212529;
  --text-light: #6c757d;
  --background: #f8f9fa;
  --surface: #ffffff;
  --border: #dee2e6;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5 {
  margin-bottom: 0.5em;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

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

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

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: 5rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 6px rgba(67, 97, 238, 0.15);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(67, 97, 238, 0.2);
}

.btn-secondary {
  background-color: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  color: white;
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Navigation */
header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-text {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  background-color: var(--primary);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.nav-cta:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 2px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background: linear-gradient(120deg, #e0f7fa, #f5f5f5);
  padding: 6rem 0;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  padding-right: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
  background-color: white;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Templates Section */
.templates {
  background-color: var(--background);
}

.template-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: space-between;
}

.template-card {
  background: white;
  border-radius: 10px;
  overflow: visible;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 0;
  max-width: calc(33.333% - 1.34rem);
}

.template-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.template-preview {
  height: 200px;
  overflow: hidden;
}

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

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

.template-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.2rem;
}

.template-card p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-light);
}

.template-card .btn {
  margin: 0 1.5rem 1.5rem;
}

/* How It Works Section */
.how-it-works {
  background-color: white;
}

.steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.step {
  text-align: center;
  padding: 2rem;
  flex: 1;
}

.step-number {
  background-color: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
}

.step-arrow {
  font-size: 2rem;
  color: var(--primary);
}

.cta-center {
  text-align: center;
  margin-top: 3rem;
}

/* About Section */
.about {
  background-color: var(--background);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-logo {
  flex: 2;
}

.footer-logo .logo-text {
  font-size: 1.8rem;
  font-weight: 700;
}

.footer-logo p {
  margin-top: 1rem;
  color: #adb5bd;
}

.footer-links {
  flex: 3;
  display: flex;
  justify-content: space-around;
}

.footer-links-column h4 {
  color: white;
  margin-bottom: 1.2rem;
}

.footer-links-column ul {
  list-style: none;
}

.footer-links-column li {
  margin-bottom: 0.8rem;
}

.footer-links-column a {
  color: #adb5bd;
  transition: color 0.3s ease;
}

.footer-links-column a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #4b5563;
  color: #adb5bd;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 3rem;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .steps {
    flex-direction: column;
  }
  
  .step-arrow {
    transform: rotate(90deg);
    margin: 1rem 0;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .template-card {
    max-width: 100%;
    margin-bottom: 2rem;
  }
  
  .hidden-placeholder {
    display: none;
  }
  
  /* Make sure build section responds properly on mobile */
  .template-slider, .build .template-slider {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    align-items: center;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    height: 250px;
    padding: 1rem 0;
  }
  
  .nav-links li {
    margin: 1rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .footer-links {
    flex-direction: column;
  }
  
  .footer-links-column {
    margin-bottom: 2rem;
    text-align: center;
  }
}

/* Placeholder Image Styles */
/* Remove these once you have real images */
.template-preview {
  position: relative;
}

.template-preview::before {
  display: none;
}

.hidden-placeholder {
  display: block;
}

/* Build Section */
.build {
  background: linear-gradient(120deg, #e0f7fa, #f5f5f5);
  width: 100%;
  overflow: hidden;
}

.build .template-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: space-between;
}

.build .template-card {
  background: white;
  border-radius: 10px;
  overflow: visible;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 0;
  max-width: calc(33.333% - 1.34rem);
}

/* Mobile Responsive Fixes */
@media (max-width: 992px) {
  .build .template-slider {
    flex-direction: column;
  }
  
  .build .template-card {
    max-width: 100%;
    margin-bottom: 2rem;
  }
}
