/* Base styles */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fffaf0;
  color: #333;
  margin: 0;
  padding: 0;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

/* Text width limiter for about/timeline */
.limited-text {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
  word-break: break-word;
}

@media (min-width: 1200px) {
  .limited-text {
    max-width: 540px;
  }
}

/* Links */
a {
  color: #6c63ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header + Nav */
.pookie-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

nav ul {
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  font-weight: 500;
  font-size: 1.1rem;
}

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

.hero-img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero-img-small {
  max-width: 300px;
  height: auto;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

/* Footer */
.pookie-footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px dashed #aaa;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

.socials {
  margin-top: 0.5rem;
}

.socials a {
  margin: 0 8px;
  font-weight: 600;
  color: #6c63ff;
}

/* Timeline */
.timeline {
  max-width: 650px;
  margin: 0 auto;
}

.timeline li {
  background-color: #fefefe;
  border-left: 4px solid #ccc;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  line-height: 1.6;
}

/* Projects Grid */
.projects-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 0;
}

.project-card {
  width: 280px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 1rem;
  transition: 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.03);
  text-align: center;
}

.project-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Dark Mode */
.dark-mode {
  background-color: #121212;
  color: #eee;
}

.dark-mode .card-box,
.dark-mode .project-card {
  background-color: #1e1e2f;
  color: #e0e0f0;
  border-color: #444;
}

.dark-mode .timeline li {
  background-color: #1a1a1a;
  border-left-color: #888;
}

.dark-mode .pookie-footer,
.dark-mode .socials a {
  color: #aaa;
}

/* Floating zzz animation */
.zzz-animation {
  display: none;
}

.dark-mode .zzz-animation {
  display: block;
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  animation: floatZzz 2s ease-in-out infinite;
  color: #ddd;
}

@keyframes floatZzz {
  0% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-10px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.3; }
}
/* Make the project cards smaller & tighter */
.card-box {
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 1rem;
  transition: 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.03);
  max-width: 280px;         /* 👈 limits the full box width */
  margin: 0 auto;            /* 👈 centers the card in its column */
}

.card-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.card-img-top {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Optional: center text and shrink font */
.card-title {
  font-size: 1.1rem;
}

.card-text {
  font-size: 0.9rem;
}
