/* Reset and base styles */
:root {
  --yellow-light: #fff3b0;
  --yellow-deep: #ffd97d;
  --card-bg: #ffffff;
  --text-color: #3d405b;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --btn-bg: #ffc24b;
  --btn-hover-bg: #fdb833;
  --border-color: #f0f0f0;
  --icon-bg: #fff9e0;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, var(--yellow-light), var(--yellow-deep));
  color: var(--text-color);
  width: 100vw;
  height: 100vh;
  overflow: hidden; /* Critical for the animation */
}

/* Layout Containers */
.page-container {
  height: 100%;
  width: 100%;
  position: relative;
}

.content-wrapper {
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 10;
  transition: transform 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.page-container.section-1-active .content-wrapper {
  transform: translateY(-100vh);
}
.page-container.section-2-active .content-wrapper {
  transform: translateY(-200vh);
}
.page-container.section-3-active .content-wrapper {
  transform: translateY(-300vh);
}


.section-container {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Main content card */
.content-card {
  background: var(--card-bg);
  padding: 2.5rem 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-color);
  max-width: 650px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.content-card h1, .h1-style {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.content-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Feature & Profile Cards */
.feature-cards-grid, .profile-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 0;
}

.profile-card h4 {
  font-size: 0.9rem;
  font-weight: 400;
  color: #888;
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
}

a.feature-card-link {
  text-decoration: none;
  color: inherit;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: background-color 0.3s ease;
}

.icon-wrapper svg {
  width: 30px;
  height: 30px;
  color: var(--text-color);
}

.feature-card, .profile-card {
  background-color: #fafafa;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  text-align: center;
}

.profile-card {
  cursor: pointer;
}

.feature-card-link:hover .feature-card,
.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.feature-card-link:hover .icon-wrapper,
.profile-card:hover .icon-wrapper {
  background-color: var(--btn-bg);
}

.feature-card h3, .profile-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.feature-card p, .profile-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Button Styles */
.button-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.button-group--hub {
  flex-direction: column;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-primary, .btn-secondary {
  border: none;
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary {
  background-color: var(--btn-bg);
  color: var(--text-color);
}

.btn-secondary {
  background-color: #e0e0e0;
  color: var(--text-color);
}

.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background-color: var(--btn-hover-bg);
}

.btn-secondary:hover {
  background-color: #d5d5d5;
}

.btn-primary:focus-visible, .btn-secondary:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

.btn-icon-up {
  background-color: #f0f0f0;
  color: var(--text-color);
  border: none;
  border-radius: 50%;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-icon-up:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background-color: #e0e0e0;
}

.btn-icon-up:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

.btn-icon-up svg {
  width: 20px;
  height: 20px;
}


/* Cloud styles */
.clouds-wrapper {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  transition: transform 1.5s ease-out;
}

.page-container.section-1-active .clouds-wrapper {
  transform: translateY(-60vh);
}
.page-container.section-2-active .clouds-wrapper {
  transform: translateY(-120vh);
}
.page-container.section-3-active .clouds-wrapper {
  transform: translateY(-180vh);
}

.cloud {
  position: absolute;
  background: white;
  border-radius: 100px;
  filter: drop-shadow(0 4px 10px var(--shadow-color));
  left: -300px; /* Start all clouds off-screen to the left */
  animation-name: drift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
  z-index: -1;
}

/* Cloud shapes - only defines the visual structure */
.cloud-1 { width: 220px; height: 65px; }
.cloud-1::before { width: 110px; height: 110px; top: -55px; left: 25px; }
.cloud-1::after { width: 130px; height: 130px; top: -65px; right: 15px; }

.cloud-2 { width: 130px; height: 40px; }
.cloud-2::before { width: 70px; height: 70px; top: -35px; left: 10px; }
.cloud-2::after { width: 85px; height: 85px; top: -40px; right: 8px; }

.cloud-3 { width: 250px; height: 70px; }
.cloud-3::before { width: 130px; height: 130px; top: -65px; left: 30px; }
.cloud-3::after { width: 160px; height: 160px; top: -75px; right: 25px; }

.cloud-4 { width: 90px; height: 30px; }
.cloud-4::before { width: 50px; height: 50px; top: -25px; left: 8px; }

.cloud-5 { width: 170px; height: 50px; }
.cloud-5::before { width: 85px; height: 85px; top: -40px; left: 15px; }
.cloud-5::after { width: 100px; height: 100px; top: -50px; right: 12px; }

.cloud-6 { width: 110px; height: 35px; }
.cloud-6::before { width: 55px; height: 55px; top: -28px; left: 12px; }

.cloud-7 { width: 190px; height: 55px; }
.cloud-7::before { width: 90px; height: 90px; top: -45px; left: 20px; }
.cloud-7::after { width: 110px; height: 110px; top: -55px; right: 18px; }

/* Cloud animation */
@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(100vw + 350px));
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .content-card {
    padding: 2rem;
  }
  .content-card h1, .h1-style {
    font-size: 2rem;
  }
  .content-card p {
    font-size: 1rem;
  }
  .feature-cards-grid, .profile-cards-grid {
    grid-template-columns: 1fr;
  }
  .skills-section {
    align-items: flex-start;
    padding-top: 3rem;
  }
  .skills-section .content-card {
    padding-bottom: 2rem;
    overflow-y: scroll;
    max-height: calc(100vh - 5rem);
  }
}