html { 
  scroll-behavior: smooth;
}

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: #222; /* dark text to contrast with light background */
  padding: 0 20px;

  /* Wallpaper background */
  background-image: url("https://i.pinimg.com/1200x/48/38/d8/4838d8f9df8827329fb8e9f4badbef23.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Shared card / light transparent style */
header, .post, aside, footer, .form-container {
  background: rgba(255, 255, 255, 0.7); /* semi-transparent white */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  color: #222;
}

/* Header */
header {
  text-align: center;
  margin: 20px 0;

  /* Sticky navbar */
  position: sticky;
  top: 0;
  z-index: 1000;

  /* Floating effect */
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

header h1 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 10px;
}

/* Nav */
nav ul {
  list-style: none;
}

nav ul li {
  display: inline;
  margin: 0 10px;
}

nav a {
  text-decoration: none;
  color: #003366;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.3s;
}

nav a:hover {
  background: rgba(0, 102, 204, 0.1);
  color: #0066cc;
}

/* Layout container */
.container {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
}

/* Main posts column */
main {
  flex: 2;
  margin-right: 0; /* no need to leave extra space */
}

/* Sidebar (normal flow on the right) */
aside {
  position: relative;
  width: 300px;   /* can adjust smaller/larger */
  flex: 1;
}

/* Sidebar sections */
aside .profile {
  margin-bottom: 20px;
}

/* Quote box styling */
.quote-box blockquote {
  font-style: italic;
  font-size: 0.95rem;
  color: #333;
  border-left: 4px solid #0066cc;
  padding-left: 12px;
  margin: 10px 0 0 0;
}

/* Posts */
.post {
  margin-bottom: 20px;
  transition: transform 0.2s;
}

.post:hover {
  transform: translateY(-3px);
}

.post h2 {
  color: #003366;
  margin-bottom: 8px;
}

.date {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

/* Post thumbnail */
.post-thumb {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Tags */
.tags {
  margin-top: 12px;
}

.tags span {
  display: inline-block;
  background: rgba(0, 51, 102, 0.1);
  padding: 4px 10px;
  margin: 4px 6px 0 0;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #003366;
  font-weight: 500;
  transition: 0.3s;
}

.tags span:hover {
  background: #0066cc;
  color: #fff;
}

/* Profile section in sidebar */
.profile {
  text-align: center;
}

.profile h3 {
  color: #003366;
  margin-bottom: 10px;
}

.profile p {
  color: #003366;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.profile img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  animation: bounce 2s infinite;
  border: 3px solid #3399ff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Bounce animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-12px);
  }
  60% {
    transform: translateY(-6px);
  }
}

/* Footer */
footer {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #003366;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  main, aside {
    width: 100%;
  }
  nav ul li {
    display: block;
    margin: 6px 0;
  }
}
/* Post Gallery */
.post-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* space between images */
}

.post-gallery img {
  max-width: 90%; /* keeps them responsive */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.post-gallery img:hover {
  transform: scale(1.03); /* subtle zoom on hover */
}
 /* Post gallery rows */
.post-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.post-row img {
  max-width: 45%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.post-row .description-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.7);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.post-row .description-box h2 {
  margin-bottom: 10px;
  color: #003366;
}

.post-row .description-box ul {
  list-style-type: disc;
  padding-left: 20px;
}

.post-row .description-box li {
  margin-bottom: 8px;
  color: #222;
}

/* Stack vertically on smaller screens */
@media (max-width: 768px) {
  .post-row {
    flex-direction: column;
    align-items: center;
  }

  .post-row img, 
  .post-row .description-box {
    max-width: 100%;
  }
}
/* Fade-in animation for whole page */
body {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Slide-up animation for posts and textboxes */
.post, .description-box, .form-container {
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Hover zoom for images */
.post-gallery img {
  transition: transform 0.4s ease;
}

.post-gallery img:hover {
  transform: scale(1.05);
}

/* Hover glow for nav links */
nav a {
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #0066cc;
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* Ordered list inside posts */
.post ol {
  margin-top: 10px;
  margin-left: 20px;
  font-size: 1rem;       /* smaller than h2 */
  color: #222;           /* normal text color */
  line-height: 1.6;
}

.post ol li {
  margin-bottom: 6px;
}