/* ================================
   LAYOUT & BASE STYLES
   ================================ */

/* === LAYOUT CONTAINERS === */
.scrub-scroll-container {
  position: relative;
  /* Define timeline for scroll-driven animations */
  view-timeline-name: --scrub-timeline;
  view-timeline-axis: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  /* Ensure container doesn't interfere with scrolling */
  overflow: visible;
}

.header {
  text-align: center;
  padding: 100px 0 50px;
  background: var(--gradient);
  color: white;
  border-radius: 0 0 30px 30px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

/* === SECTIONS === */
.learning-journey {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px var(--shadow-light);
}

.journey-header {
  text-align: center;
  margin-bottom: 30px;
}

.journey-header h2 {
  color: var(--text-primary);
  font-size: 2rem;
  margin-bottom: 10px;
}

.journey-description {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.experience-section {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px var(--shadow-light);
  /* Prevent section resize when cards scale */
  position: relative;
  overflow: visible;
}

.achievements {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px var(--shadow-light);
  margin-bottom: 30px;
}

.achievements h2 {
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: center;
}

.tech-stack {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px var(--shadow-light);
}

/* === FOOTER === */
.footer {
  text-align: center;
  margin-top: 40px;
  padding: 30px;
  background: var(--gradient);
  border-radius: 15px;
  color: white;
  box-shadow: 0 8px 32px var(--shadow-medium);
}

.footer h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.footer p {
  margin-bottom: 10px;
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

/* === BUTTONS === */
.update-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 20px;
  transition: transform 0.3s ease;
}

.update-btn:hover {
  transform: scale(1.05);
}

/* === UTILITIES === */
.spacer {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: 80px 0;
}

/* === ANIMATIONS === */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }

  .header {
    padding: 60px 0 30px;
    margin-bottom: 20px;
  }

  .learning-journey {
    padding: 20px;
    margin-bottom: 20px;
  }

  .experience-section {
    padding: 20px;
    margin-bottom: 20px;
  }

  .achievements {
    padding: 20px;
    margin-bottom: 20px;
  }

  .tech-stack {
    padding: 20px;
    margin-bottom: 20px;
  }

  .footer {
    padding: 20px;
    margin-top: 30px;
  }

  .footer h3 {
    font-size: 1.2rem;
  }

  .journey-header h2 {
    font-size: 1.5rem;
  }

  .spacer {
    margin: 40px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px; /* Increased from 5px for better touch targets */
  }

  .header {
    padding: 40px 0 20px;
    border-radius: 0 0 15px 15px;
  }

  .learning-journey,
  .experience-section,
  .achievements,
  .tech-stack {
    padding: 15px;
    border-radius: 10px;
  }

  .footer {
    padding: 15px;
    border-radius: 10px;
  }
}
