/**********************************/
/* GLOBAL THEME VARIABLES         */
/**********************************/

:root {
  /* Core Colors */
  --primary-color: #006a8e;
  --secondary-color: #00303d;
  --accent-color: #00b8ce;
  --background-color: #00ccff;
  --text-color: #333;
  --heading-color: #111;
  --subtext-color: #666;
  --button-hover-color: #00a4b5;
  --border-radius: 8px;
  --transition-speed: 0.3s;
  --white: #fff;
  --black: #000;

  /* Day Theme Colors */
  --background-gradient-top: #87ceeb;
  --background-gradient-bottom: #ffffff;
  --cog-wheel-color: #fdd835;
  --cloud-color: #fff;
  --mountain-color: #999;
  --tree-color: #228b22;
  --icon-color: #0073e6;
  --static-color: #2980b9;

  /* Footer Day Theme */
  --footer-background-color: #87ceeb;
  --footer-text-color: #333;
  --footer-link-color: #006a8e;
  --footer-link-hover-color: #00303d;
  --footer-bug-color: #228b22;
  --page-views-background-color: #f4f4f4;
}

.dark-theme {
  /* Night Theme Colors */
  --primary-color: #00b8ce;
  --secondary-color: #001721;
  --accent-color: #008b9d;
  --background-color: #002c34;
  --text-color: #d0d0d0;
  --heading-color: #fff;
  --subtext-color: #aaa;
  --button-hover-color: #007686;
  --white: #2C3E50;
  --black: #FFFFFF;

  /* Night Theme Elements */
  --background-gradient-top: #000000;
  --background-gradient-bottom: #000000;
  --cog-wheel-color: #ffffff;
  --cloud-color: #999;
  --mountain-color: #666;
  --tree-color: #666;
  --icon-color: #00509e;
  --static-color: #2980b9;

  /* Footer Night Theme */
  --footer-background-color: #001721;
  --footer-text-color: #d0d0d0;
  --footer-link-color: #00b8ce;
  --footer-link-hover-color: #008b9d;
  --footer-bug-color: #ffcc00;
  --page-views-background-color: #002c34;
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition-speed), color var(--transition-speed);
}

.buddy {
    width: 100%;
}

/*********************************/
/* Cookie Banner                 */
/*********************************/

.cookie-banner {
  background: var(--secondary-color);
  color: var(--white);
  padding: 10px;
  text-align: center;
  display: flex;
  justify-content: center;
  transition: background var(--transition-speed);
}

.cookie-banner p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.accept-cookies {
  background: var(--accent-color);
  border: none;
  padding: 0.5em 1em;
  border-radius: var(--border-radius);
  color: var(--white);
  cursor: pointer;
  transition: background var(--transition-speed), transform var(--transition-speed);
}

.accept-cookies:hover {
  background: var(--button-hover-color);
  transform: translateY(-2px);
}

/**********************************/
/* Typography & Links             */
/**********************************/

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  margin-bottom: 20px;
  font-weight: 700;
  transition: color var(--transition-speed);
}

p, ul, ol, li, a {
  color: var(--subtext-color);
  font-weight: 400;
  transition: color var(--transition-speed);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--accent-color);
}

/* -------------------------------- */
/* Icon styling & flip effects */
/* -------------------------------- */

/* Uniform icon size and transitions */
.universal-icon {
  font-size: 1.6rem; /* moderate uniform size */
  transition: transform var(--transition-speed), color var(--transition-speed);
}

/* Flip on hover (and slight scale) */
.icon-flip:hover > .universal-icon,
.icon-flip:hover .universal-icon,
.universal-icon:hover {
  transform: rotateY(180deg) scale(1.2);
  color: var(--accent-color);
}
/* For label, link, etc. that also have icon-flip classes */
.icon-flip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  cursor: pointer;
}

/**********************************/
/* Buttons                        */
/**********************************/

button,
.cta-button {
  cursor: pointer;
  background: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 0.75em 1.5em;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  transition: background var(--transition-speed), transform var(--transition-speed);
}

button:hover,
.cta-button:hover {
  background: var(--button-hover-color);
  transform: translateY(-2px);
}

/**********************************/
/* Container & Layout             */
/**********************************/

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/**********************************/
/* Header & Nav                   */
/**********************************/

header {
  background: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background var(--transition-speed);
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 15px 0;
  gap: 20px;
}

.nav-link,
.dropdown-toggle {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--primary-color);
  transition: color var(--transition-speed);
}

.nav-link:hover,
.dropdown-toggle:hover {
  color: var(--accent-color);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius);
  display: none;
  flex-direction: column;
  min-width: 180px;
  z-index: 1000;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

.dropdown-content a {
  padding: 12px 20px;
  color: var(--text-color);
  transition: background var(--transition-speed), color var(--transition-speed);
}

.dropdown-content a:hover {
  background: var(--background-color);
  color: var(--primary-color);
}

/**********************************/
/* Hero                           */
/**********************************/

.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  width: 100%;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  transition: background var(--transition-speed);
}

.hero .hero-content {
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
}

.hero-content .cta-button {
  background: var(--white);
  color: var(--primary-color);
  font-weight: 500;
}

.hero-content .cta-button:hover {
  background: var(--button-hover-color);
  color: var(--white);
}

/**********************************/
/* Side Panel Styling             */
/**********************************/
.side-panel {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--background-color);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
  transition: right var(--transition-speed);
  z-index: 1000;
  overflow-y: auto;
  border-radius: var(--border-radius);
}

.side-panel.open {
  right: 0;
}

.toggle-button {
  position: fixed;
  position: fixed;
  top: 1%;
  right: 1%;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1100;
  transition: background var(--transition-speed);
}

.toggle-button:hover {
  background: var(--button-hover-color);
}

.panel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding: 1rem 0;
}

.theme-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  top: 10rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-color);
  color: var(--white);
  border-radius: var(--border-radius);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.theme-selector label {
  font-size: 1rem;
  color: var(--white);
}

.theme-selector select {
  padding: 0.3rem;
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  background: var(--white);
  color: var(--text-color);
  cursor: pointer;
}

.share-button {
  width: 90%;
  padding: 0.7rem;
  background: var(--accent-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  transition: background var(--transition-speed);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-button:hover {
  background: var(--button-hover-color);
}

.share-button:focus,
select:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/**********************************/
/* Living Painting                */
/**********************************/

.living-painting {
  position: relative;
  width: 100%;
  height: 50vh;
  background: linear-gradient(to bottom, var(--background-gradient-top), var(--background-gradient-bottom));
  overflow: hidden;
  transition: background var(--transition-speed);
}

.paint-container {
  position: relative;
  height: 50vh;
  margin: 0;
}

/* Rotating Cog as sun, top-right */
.sun-cog-container {
  position: absolute;
  top: 10%;
  right: 5%;
  animation: spin-gear 10s linear infinite;
}

.gear {
  color: var(--cog-wheel-color);
  opacity: 0.9;
}

@keyframes spin-gear {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Sky with Clouds drifting */
.sky {
  width: 100%;
  height: 60%;
  overflow: hidden;
  z-index: 1;
}

.cloud {
  position: absolute;
  color: var(--cloud-color);
  animation: move-clouds 20s linear infinite;
}

.cloud1 { top: 10%; left: -10%; }
.cloud2 { top: 30%; left: -20%; animation-delay: 5s; }
.cloud3 { top: 13%; left: -30%; animation-delay: 10s; }

@keyframes move-clouds {
  0% { transform: translateX(130vw); }
  100% { transform: translateX(-10vw); }
}

/* Aircrafts - Rocket & Horizontal Aircrafts */
.aircrafts {
  width: 100%;
  height: 50vh;
  z-index: 2;
}

.aircraft {
  position: absolute;
  color: var(--static-color);
}

/* Rocket Styling */
.aircraft3 {
  bottom: 10%; /* Start near the bottom */
  left: 30%; /* Center horizontally */
  transform-origin: center; /* Rotate around its own center */
  animation: rocket-liftoff-and-upward 13s ease-out infinite; /* Combined animation */
}

/* Combined Animation: Rotate and Move Upward */
@keyframes rocket-liftoff-and-upward {
  0% {
    transform: rotate(60deg) translateY(0); /* Start flat pointing right */
  }
  20% {
    transform: rotate(45deg) translateY(-10%); /* Partially upright, small upward movement */
  }
  50% {
    transform: rotate(-45deg) translateY(-30%); /* Fully upright, moving upward */
  }
  100% {
    transform: rotate(-45deg) translateY(-100vh); /* Fully upright, far upward */
  }
}

/* Horizontal Aircrafts */
.aircrafts-h {
  top: 10%;
  width: 100%;
  z-index: 2;
  overflow: hidden;
}

.aircraft-h {
  position: absolute;
  color: var(--accent-color);
  animation: move-horizontal 25s linear infinite;
}

.aircraft1 {
  top: 20%;
  left: 120%;
  rotate: 3deg;
}

.aircraft2 {
  top: 30%;
  left: 120%;
  animation-delay: 5s;
  rotate: 1deg;
}

@keyframes move-horizontal {
  0% { transform: translateX(-120vw); }
  100% { transform: translateX(120vw); }
}

/* Central House */
.central-house {
  position: absolute;
  bottom: 0%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 7;
}

.house-icon {
  font-size: 13rem;
  color: var(--static-color);
  animation: pulse 2s infinite;
}

.central-center {
  position: absolute;
  bottom: 77%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
}

.floating-icons {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.floating-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--icon-color), var(--icon-color));
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-icon:hover {
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Mountains & Trees */
.mountains {
  position: absolute;
  bottom: 0;
  left: 5%;
  z-index: 2;
  display: flex;
  gap: 1rem;
}

.mountain {
  color: var(--mountain-color);
}

.trees {
  position: absolute;
  bottom: 5%;
  right: 5%;
  z-index: 3;
  display: flex;
  gap: 1rem;
}

.tree {
  color: var(--tree-color);
}

/* Snow Effect Container */
.snow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allows interaction with underlying elements */
  z-index: 999; /* Ensures snow is on top */
  overflow: hidden;
}

/* Individual Snowflakes */
.snowflake {
  position: absolute;
  top: -10%; /* Start above the screen */
  width: 10px;
  height: 10px;
  background: white; /* Snowflake color */
  border-radius: 50%; /* Circular shape */
  opacity: 0.8; /* Slight transparency for realism */
  animation: fall linear infinite;
  animation-duration: 10s; /* Default duration for falling */
}

/* Falling Animation */
@keyframes fall {
  0% {
    transform: translateY(-10vh); /* Start above the visible area */
  }
  100% {
    transform: translateY(110vh); /* End below the visible area */
  }
}

/**********************************/
/* Projects Section               */
/**********************************/
.projects-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--background-color), var(--secondary-background-color));
  transition: background var(--transition-speed);
}

.projects-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--heading-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.projects-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  text-align: center;
  max-width: 800px;
  color: var(--subtext-color);
  line-height: 1.6;
  animation: fade-in 1s ease-in-out;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  width: 100%;
  padding: 0 20px;
}

.project-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  justify-content: space-between;
  align-items: center;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: var(--card-hover-background);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, var(--accent-color), transparent);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
}

.project-card:hover::before {
  opacity: 0.3;
}

.project-icon {
  margin-bottom: 15px;
  color: var(--accent-color);
  font-size: 3rem;
  transition: transform 0.3s ease;
}

.project-card:hover .project-icon {
  transform: scale(1.2);
}

.project-info h3 {
  font-size: 1.7rem;
  margin-bottom: 15px;
  color: var(--heading-color);
  font-weight: bold;
}

.project-info h3 a {
  color: var(--primary-color);
  transition: color var(--transition-speed);
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.project-info h3 a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.project-info p {
  flex-grow: 1;
  color: var(--subtext-color);
  margin-bottom: 15px;
  font-size: 1rem;
}

.project-info ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 15px;
  line-height: 1.6;
}

.project-info ul li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--text-color);
}

.project-info ul li i {
  margin-right: 10px;
  color: var(--accent-color);
}

.project-extras {
  width: 100%;
}

.project-extras .progress-bar {
  margin-bottom: 20px;
}

.project-extras .progress-bar label {
  display: block;
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--heading-color);
}

.project-extras .progress-bar progress {
  width: 100%;
  height: 12px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: var(--light-gray);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-extras .progress-bar progress::-webkit-progress-bar {
  background-color: var(--light-gray);
}

.project-extras .progress-bar progress::-webkit-progress-value {
  background-color: var(--accent-color);
}

.project-extras .progress-bar progress::-moz-progress-bar {
  background-color: var(--accent-color);
}

.project-extras h4 {
  font-size: 1.2rem;
  margin-top: 20px;
  margin-bottom: 12px;
  color: var(--heading-color);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 5px;
  display: inline-block;
}

.project-extras .project-lists ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 15px;
  background: var(--background-color-alt);
  border-radius: var(--border-radius);
  padding: 10px 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.project-extras .project-lists ul li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-color);
  line-height: 1.6;
  padding: 8px;
  border-radius: var(--border-radius);
  transition: background 0.3s ease, transform 0.3s ease;
}

.project-extras .project-lists ul li:hover {
  background: var(--light-gray);
  transform: scale(1.02);
}

.project-extras .project-lists ul li i {
  margin-right: 10px;
  color: var(--accent-color);
  font-size: 1.5rem;
}

.project-extras .donation-chart {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--text-color);
  font-weight: bold;
  text-align: center;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  padding: 15px;
  background: var(--background-color-alt);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: fade-in 0.5s ease-in-out;
}

.project-extras .donation-chart p {
  margin: 5px 0;
  color: var(--text-color);
  font-size: 1rem;
  text-align: center;
}

.project-extras .donation-progress-bar {
  margin-top: 10px;
}

.project-extras .donation-progress-bar label {
  display: block;
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--heading-color);
}

.project-extras .donation-progress-bar progress {
  width: 100%;
  height: 12px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: var(--light-gray);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-extras .donation-progress-bar progress::-webkit-progress-bar {
  background-color: var(--light-gray);
}

.project-extras .donation-progress-bar progress::-webkit-progress-value {
  background-color: var(--accent-color);
}

.project-extras .donation-progress-bar progress::-moz-progress-bar {
  background-color: var(--accent-color);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.progress-bar {
    margin-bottom: 20px;
}

.progress-bar label {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--heading-color);
}

.progress-bar progress {
    width: 100%;
    height: 12px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--light-gray);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar progress::-webkit-progress-bar {
    background-color: var(--light-gray);
}

.progress-bar progress::-webkit-progress-value {
    background-color: var(--accent-color);
}

.progress-bar progress::-moz-progress-bar {
    background-color: var(--accent-color);
}

/**********************************/
/* Events Section Styling         */
/**********************************/
.events-section {
  padding: 2rem;
  background: var(--background-color);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.events-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--heading-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.events-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--subtext-color);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--secondary-color);
  color: var(--white);
  font-size: 1.2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}

.event-item i {
  margin-right: 0.5rem;
  font-size: 1.5rem;
  color: var(--accent-color);
}

.event-item:hover {
  transform: scale(1.05);
  background: var(--button-hover-color);
  cursor: pointer;
}

/**********************************/
/* Calendar Sections  */
/**********************************/
.content-container {
  padding: 60px 0;
  background: var(--white);
  transition: background var(--transition-speed);
}

.calendar-section {
  max-width: 800px;
  margin: 0 0 40px;
  text-align: center;
}

.content-container h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--heading-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.content-container p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--subtext-color);
}

.calendar-placeholder {
  width: 100%;
  background: var(--background-color);
  border: 2px dashed var(--accent-color);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--subtext-color);
  transition: background var(--transition-speed);
}

.calendar {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 1rem;
  text-align: center;
}

.calendar caption {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--heading-color);
}

.calendar th,
.calendar td {
  padding: 10px;
  border: 1px solid #ddd;
}

.calendar .empty {
  background: #f9f9f9;
}

.calendar .day {
  padding: 10px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: background var(--transition-speed), color var(--transition-speed);
}

.calendar .day:hover {
  background: var(--button-hover-color);
  color: var(--white);
}

.calendar .day.past {
  color: #999;
  text-decoration: line-through;
  pointer-events: none;
}

.calendar .day.today {
  background: var(--primary-color);
  color: var(--white);
  font-weight: bold;
}

.calendar .day.range {
  background: #FFDD57;
  color: #000;
  font-weight: bold;
}

.calendar .event {
  display: block;
  margin-top: 5px;
  font-size: 0.9rem;
  color: var(--accent-color);
}

/* -------------------------------- */
/* Contact Section */
/* -------------------------------- */
.contact-section {
  padding: 60px 0;
  transition: background var(--transition-speed);
}

.contact-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--heading-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  text-align: center;
  max-width: 800px;
  color: var(--subtext-color);
}

#contact-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#contact-form label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text-color);
}

#contact-form input,
#contact-form select,
#contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 5px rgba(26, 161, 133, 0.3);
  outline: none;
}

#contact-form button {
  align-self: flex-start;
  background: var(--accent-color);
  color: var(--white);
  padding: 0.75em 1.5em;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: background var(--transition-speed), transform var(--transition-speed);
}

#contact-form button:hover {
  background: var(--button-hover-color);
  transform: scale(1.05);
}

/**********************************/
/* Footer Section Styling         */
/**********************************/
footer {
  background: var(--footer-background-color);
  color: var(--footer-text-color);
  padding: 20px 0;
  text-align: center;
  transition: background var(--transition-speed), color var(--transition-speed);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-nav-link, .footer-bug-link {
  color: var(--footer-link-color);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition-speed), transform 0.6s ease;
}

.footer-nav-link i {
  transition: transform 0.6s ease; /* Add smooth flip */
}

.footer-nav-link:hover i {
  transform: rotateY(180deg); /* Flip link icons on hover */
}

.footer-bug-link:hover {
  color: var(--footer-link-hover-color);
  transform: scale(1.2); /* Slightly enlarge the bug on hover */
}

/* Bug visibility */
.footer-bug {
  font-size: 1.5rem;
  color: var(--footer-bug-color);
}

/**********************************/
/* Page Views Styling             */
/**********************************/
.page-views {
  font-size: 1.2rem;
  color: var(--footer-text-color);
  display: inline-block;
  position: relative;
  text-align: center;
  padding: 10px;
  background: var(--page-views-background-color);
  border: 2px solid var(--footer-link-color);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
}

.page-views:hover p {
  animation: flip-text 0.6s ease; /* Flip only on hover */
}

@keyframes flip-text {
  0% {
    transform: rotateX(0deg);
  }
  50% {
    transform: rotateX(-180deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}

/**********************************/
/* Notifications Styling          */
/**********************************/
.notifications {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.notification {
  background: var(--primary-color);
  color: var(--white);
  padding: 15px 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 90%;
  animation: fade-in 0.3s ease-out;
}

.notification.success {
  background-color: #28a745; /* Green for success */
}

.notification.error {
  background-color: #dc3545; /* Red for error */
}

.notification .close-notification {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    margin-left: auto;
    cursor: pointer;
    outline: none;
}

@keyframes fade-in {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/**********************************/
/* Scroll Buttons                 */
/**********************************/
.scroll-button {
  position: fixed;
  right: 1%;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  width: 33px;
  height: 44px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: transform var(--transition-speed), background var(--transition-speed);
}

.scroll-button:hover {
  background: var(--button-hover-color);
  transform: scale(1.1);
}

#scroll-top {
    bottom: 88px;
}

#scroll-bottom {
  bottom: 30px;
}

/**********************************/
/* Images                         */
/**********************************/
.image-row{
  position:relative;
  width:100%;
  max-width:1400px;
  margin:0 auto;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:20px;
  padding:4rem 0;
}

.image-row img{
  display:block;
  height:auto;
}

.image-row img:nth-child(1),
.image-row img:nth-child(3){
  max-width:40%;
}

.image-row img:nth-child(2){
  max-width:80%;
  border:7px solid #000;
}

@media(max-width:768px){
  body{font-size:16px;}
  .container{width:96%;padding:10px 0;}
  header{position:static;}
  .navbar{flex-wrap:nowrap;overflow-x:auto;gap:12px;justify-content:flex-start;padding:12px 8px;scrollbar-width:none;}
  .navbar>*:last-child{margin-right:69px;}
  .navbar::-webkit-scrollbar{display:none;}
  .nav-link,.dropdown-toggle{font-size:.95rem;padding:6px 8px;white-space:nowrap;}
  .dropdown-content{position:static;transform:none;box-shadow:none;min-width:auto;}
  .hero{padding:60px 15px;}
  .hero-content h1{font-size:2.2rem;}
  .hero-content p{font-size:1.05rem;}
  .side-panel{width:100%;right:-100%;}
  .projects-grid{grid-template-columns:1fr;}
  .project-card{padding:16px;}
  .project-icon{font-size:2.5rem;}
  #contact-form input,#contact-form select,#contact-form textarea{font-size:1rem;padding:10px 12px;}
  #contact-form button{width:100%;justify-content:center;}
  .scroll-button{width:40px;height:40px;right:3%;}
  #scroll-top{bottom:160px;}
  #scroll-bottom{bottom:90px;}
  .footer-container{flex-direction:column;gap:12px;padding:10px;}
  .image-row{gap:12px;padding:2rem 0;}
  .image-row img:nth-child(1),.image-row img:nth-child(3){display:none;}
  .image-row img:nth-child(2){max-width:100%;width:100%;height:auto;border:0;}
  .central-house{bottom:-7%;}
  .house-icon{font-size:20rem;}
  .cookie-banner{position:fixed;bottom:0;left:0;width:100%;z-index:1200;}
}
@media (max-width: 768px) {
  .mountains,
  .trees {
    display: none !important;
  }
}

@media(max-width:480px){
  h1{font-size:1.8rem;}
  h2{font-size:1.5rem;}
  .hero-content h1{font-size:1.9rem;}
  .toggle-button{width:55px;height:55px;bottom:140px;right:3%;}
  .scroll-button{width:40px;height:40px;right:3%;}
  #scroll-top{bottom:200px;}
  #scroll-bottom{bottom:120px;}
  .notification{max-width:95%;font-size:.9rem;}
  .image-row{gap:8px;}
}
