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

/* Body */
body {
  font-family: 'Quicksand', sans-serif;
  background: #2c5e94;
  color: #ffe066;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Handwritten */
.handwritten {
  font-family: 'Caveat', cursive;
}

/* Stars inside hero */
#starfield {
  position: absolute;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 0;
  pointer-events: none;
}

/* Each star twinkles differently */
.twinkle1 {
  animation: twinkle 1s ease-in-out infinite alternate;
}
.twinkle2 {
  animation: twinkle 1.3s ease-in-out infinite alternate;
}
.twinkle3 {
  animation: twinkle 0.9s ease-in-out infinite alternate;
}
.twinkle4 {
  animation: twinkle 1.5s ease-in-out infinite alternate;
}
.twinkle5 {
  animation: twinkle 1.1s ease-in-out infinite alternate;
}

/* Twinkle Animation */
@keyframes twinkle {
  0% { opacity: 0.2; }
  100% { opacity: 1; }
}

/* Clouds */
.cloud {
  position: absolute;
  opacity: 0.5;
  z-index: 2;
  pointer-events: none;
}

/* Cloud Animations */
.cloud1 {
  left: 5%;
  top: 2rem;
  animation: cloudMove1 3s ease-in-out infinite alternate;
}
.cloud2 {
  left: 10%;
  top: 6rem;
  animation: cloudMove2 3.2s ease-in-out infinite alternate;
}
.cloud3 {
  right: 5%;
  top: 2rem;
  animation: cloudMove3 2.8s ease-in-out infinite alternate;
}
.cloud4 {
  right: 10%;
  top: 8rem;
  animation: cloudMove4 3.4s ease-in-out infinite alternate;
}

/* Tiny Jiggle Animations */
@keyframes cloudMove1 {
  0% { transform: translateX(0); }
  100% { transform: translateX(12px); }
}
@keyframes cloudMove2 {
  0% { transform: translateX(0); }
  100% { transform: translateX(10px); }
}
@keyframes cloudMove3 {
  0% { transform: translateX(0); }
  100% { transform: translateX(-12px); }
}
@keyframes cloudMove4 {
  0% { transform: translateX(0); }
  100% { transform: translateX(-10px); }
}

/* Hero, Section, Footer stacking */
.hero,
.section,
footer {
  position: relative;
  z-index: 3;
}

/* Container */
.container {
  max-width: 900px;
  margin: auto;
  padding: 2rem;
  text-align: center;
}

/* Fade-in on load */
.fade-in {
  opacity: 0;
  animation: fadeInAnimation 2s ease forwards;
}

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

/* Hero Section */
.hero {
  padding: 8rem 2rem 5rem 2rem;
}

/* Typography */
h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 5px rgba(255, 224, 100, 0.8);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 3px rgba(255, 224, 100, 0.7);
}

p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  background: #FFD700;
  color: #2a2a2a;
  padding: 0.7rem 1.4rem;
  margin: 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover, .btn-secondary:hover {
  background: #fff9c4;
  transform: scale(1.05);
}

/* Sections */
.section {
  padding: 5rem 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  margin: 2rem;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: #ffd700;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  opacity: 0.8;
  font-size: 1rem;
}
