/* ============================================
   VS Code Web Workshop - Main Stylesheet
   ============================================ */

:root {
  --primary-color: #0078d4;
  --secondary-color: #107c10;
  --accent-color: #ffc20e;
  --dark-bg: #1e1e1e;
  --light-bg: #f3f3f3;
  --text-dark: #323232;
  --text-light: #ffffff;
  --border-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --box-shadow-hover: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.05);
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  color: var(--text-dark);
}

h2 {
  font-size: 2.25rem;
  color: var(--text-dark);
}

h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

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

/* ============================================
   Navigation
   ============================================ */

nav {
  background: linear-gradient(135deg, var(--primary-color) 0%, #005a9e 100%);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
}

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

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

.nav-links a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0063b1 100%);
  color: var(--text-light);
  padding: 6rem 2rem;
  text-align: center;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
  font-weight: 700;
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.3rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  display: inline-block;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--text-dark);
  box-shadow: var(--box-shadow);
}

.btn-primary:hover {
  background-color: #ffb81c;
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text-dark);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text-light);
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
}

/* ============================================
   Container & Layout
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 2rem;
}

.section-alt {
  background-color: #ffffff;
}

/* ============================================
   Workshop Modules Section
   ============================================ */

.modules {
  background-color: var(--light-bg);
}

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

.module-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
}

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

.module-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.module-icon {
  font-size: 1.75rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 120, 212, 0.1);
  border-radius: 50%;
}

.module-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
}

.module-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #999;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ============================================
   Features Section
   ============================================ */

.features {
  background-color: white;
}

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

.feature-box {
  text-align: center;
  padding: 2rem;
  transition: var(--transition);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-box h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-box p {
  color: #666;
}

/* ============================================
   Learning Path Section
   ============================================ */

.learning-path {
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.05) 0%, rgba(16, 124, 16, 0.05) 100%);
}

.path-steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.path-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.path-step:hover {
  box-shadow: var(--box-shadow-hover);
  transform: translateX(4px);
}

.step-number {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.step-content p {
  color: #666;
  margin: 0;
}

/* ============================================
   Accordion Section
   ============================================ */

.accordion {
  max-width: 800px;
  margin: 3rem auto;
}

.accordion-item {
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.accordion-header {
  background: white;
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
  transition: var(--transition);
  border: none;
  width: 100%;
  text-align: left;
}

.accordion-header:hover {
  background-color: rgba(0, 120, 212, 0.05);
}

.accordion-header.active {
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.1) 0%, rgba(16, 124, 16, 0.1) 100%);
}

.accordion-toggle {
  font-size: 1.5rem;
  transition: var(--transition);
  color: var(--primary-color);
}

.accordion-item.active .accordion-toggle {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: #f9f9f9;
  transition: max-height 0.3s ease-out;
}

.accordion-content.show {
  max-height: 500px;
  padding: 1.5rem;
}

.accordion-content p {
  margin-bottom: 1rem;
  color: #666;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.cta-section h2 {
  color: white;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ============================================
   Footer
   ============================================ */

footer {
  background-color: var(--dark-bg);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--accent-color);
}

footer a:hover {
  color: var(--text-light);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .path-steps {
    max-width: 100%;
  }

  .section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .module-card {
    padding: 1.5rem;
  }

  .path-step {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Animations
   ============================================ */

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

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

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

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.pulse {
  animation: pulse 2s infinite;
}
