/* === GLOBAL RESET & BASE === */
html {
  scroll-behavior: smooth;
}
body { 
  background-color: #ffffff;
  color: #111111;
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  transition: background-color 0.4s ease, color 0.4s ease;
}
header {
  background: #0288d1;
  color: white;
  padding: 20px;
  font-size: 24px;
  padding-bottom: 3em;
}
section, .container {
  background-color: #f9f9f9;
  color: #111;
  scroll-margin-top: 80px;
  transition: background-color 0.4s ease, color 0.4s ease;
}
nav {
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: bold;
}
nav ul {
  list-style-type: none;
  padding: 0;
}
nav ul li {
  display: inline;
  margin: 15px;
}
nav ul li a {
  text-decoration: none;
  font-size: 18px;
  color: #0288d1;
  padding: 10px;
  border-radius: 5px;
  background: #e0f7fa;
  transition: background-color 0.3s ease, color 0.3s ease;
}
nav ul li a:hover {
  background: #0288d1;
  color: white;
}

/* === TOGGLE & BACK-TO-TOP === */
#dark-mode-toggle, #back-to-top {
  position: fixed;
  z-index: 1000;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  padding: 10px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}
#dark-mode-toggle {
  top: 16px;
  right: 16px;
  background: #111;
  color: #fff;
}
#dark-mode-toggle:hover {
  background-color: #444;
}
#back-to-top {
  bottom: 16px;
  right: 16px;
  background: #000;
  color: #fff;
  display: none;
  opacity: 0;
}
#back-to-top.show {
  display: block;
  opacity: 1;
}

/* === SECTIONS & CARDS === */
section {
  padding: 20px;
  border-radius: 10px;
  margin: 1.5rem auto;
  max-width: 900px;
}
.featured-card, .project-card, .card {
  background: #f5f5f5;
  padding: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.featured-card:hover, .project-card:hover, .card:hover {
  transform: scale(1.03);
}
.featured-card h3, .project-card h3 {
  color: #2e3a59;
  margin-top: 0.5rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.project-card img {
  max-width: 100%;
  border-radius: 8px;
}
.forecast-card {
  background: #f4f4f4;
  padding: 12px;
  width: 150px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.forecast-card:hover {
  transform: scale(1.04);
}

/* === CONTACT & FOOTER === */
.contact-section, .about-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
}
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.site-footer {
  text-align: center;
  background: #f2f2f2;
  padding: 1rem;
  font-size: 0.9rem;
  color: #555;
  margin-top: 3rem;
}
.site-footer a {
  color: #222;
  text-decoration: none;
  font-weight: bold;
}
.site-footer a:hover {
  color: #0077cc;
}

/* === INPUTS & BUTTONS === */
input, textarea, button, select {
  font-size: 1rem;
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: background-color 0.3s ease, color 0.3s ease;
}
button:hover {
  background: #555;
  color: white;
}

/* === DARK MODE MASTER BLOCK === */
body.dark-mode {
  background-color: #222;
  color: #f5f5f5;
}
body.dark-mode header, 
body.dark-mode footer {
  background-color: #1a1a1a;
}
body.dark-mode nav ul li a {
  background: #333;
  color: #ddd;
}
body.dark-mode nav ul li a:hover {
  background: #555;
  color: white;
}
body.dark-mode section,
body.dark-mode .container,
body.dark-mode .featured-card,
body.dark-mode .project-card,
body.dark-mode .forecast-card,
body.dark-mode .card,
body.dark-mode .contact-section,
body.dark-mode .about-section {
  background-color: #2a2a2a;
  color: #f5f5f5;
  border-color: #444;
}
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode p,
body.dark-mode a,
body.dark-mode li,
body.dark-mode strong {
  color: #f5f5f5;
}
body.dark-mode input,
body.dark-mode button,
body.dark-mode textarea,
body.dark-mode select {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
}
body.dark-mode .vasiverse-toast {
  background: #2c2c2c;
  color: #f0f0f0;
  border: 1px solid #555;
}

/* === ANIMATIONS === */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.trust-banner {
  transition: opacity 0.5s ease-out, background-color 0.4s ease;
  animation: slideUpFade 0.8s ease-out;
}
body.dark-mode .trust-banner {
  background-color: #1e1e1e;
  color: #baf9e0;
  border: 1px solid #444;
}
body.dark-mode .trust-banner a {
  color: #93ffd0;
}
body.dark-mode .trust-banner button {
  background: #285c4d;
  color: white;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  nav ul { display: none; }
  .hamburger {
    display: block;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
  }
  #mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #111;
    padding: 1rem;
  }
  #mobile-menu.active {
    display: flex;
  }
}
@media (max-width: 600px) {
  .contact-cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;
  }
  section, .contact-section, .about-section {
    padding: 1rem;
  }
  .contact-form {
    padding: 0 1rem;
  }
}

/* === VASIVERSE TOAST === */
.vasiverse-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #f5f5f5;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
body:not(.dark-mode) .vasiverse-toast {
  background: #fff;
  color: #111;
  border: 1px solid #ccc;
}
.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

section.dark-mode,
.container.dark-mode {
  background-color: #1e1e1e;
  color: #eeeeee;
}

body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

header.dark-mode,
footer.dark-mode,
aside#sidebar.dark-mode,
section.dark-mode,
.container.dark-mode {
  background-color: #1f1f1f;
  color: #eeeeee;
}

a {
  color: #0779e4;
}

body.dark-mode a {
  color: #90caf9;
}
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}
body.dark-mode {
  background-color: #111;
  color: #eee;
}
/* forecast.css */

#forecast {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
  color: inherit;
}

.forecast-day {
  padding: 1rem;
  border-radius: 8px;
  background: var(--card-bg, rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(8px);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
  min-width: 100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --card-bg: rgba(255, 255, 255, 0.05);
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --card-bg: rgba(0, 0, 0, 0.05);
  }
}
/* forecast.css */
#forecast {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
  color: inherit;
}

.forecast-day {
  padding: 1rem;
  border-radius: 8px;
  background: var(--card-bg, rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(8px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --card-bg: rgba(255, 255, 255, 0.05);
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --card-bg: rgba(0, 0, 0, 0.05);
  }
}

@media (max-width: 768px) {
  #dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    padding: 0.6em 1.2em;
    font-size: 1rem;
    border-radius: 8px;
  }
}



/* compact mobile dark mode toggle */

/* ✅ Compact, top-right floating dark mode toggle on mobile */
@media screen and (max-width: 768px) {
  .dark-mode-toggle-container {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
    background: var(--card-bg, #fff);
    padding: 8px;
    border-radius: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);

    /* 💡 These lines fix the long vertical bug */
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: auto;
    max-height: 60px;
    overflow: hidden;
  }

  .toggle-label {
    width: 60px;
    height: 30px;
    position: relative;
    background-color: #ccc;
    border-radius: 50px;
    display: inline-block;
    cursor: pointer;
  }

  .toggle-label input {
    display: none;
  }

  .toggle-slider {
    position: absolute;
    width: 26px;
    height: 26px;
    top: 2px;
    left: 2px;
    background: white;
    border-radius: 50%;
    transition: left 0.3s ease;
  }

  .toggle-label input:checked + .toggle-slider {
    left: 32px;
    background: #222;
  }
}



/*  1. Global Reset Block (optional but highly recommended) */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

 


/*  2. Dark Mode Toggle Mobile Styling   */

@media screen and (max-width: 768px) {
  .dark-mode-toggle-container {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background: var(--card-bg, #fff);
    border-radius: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    width: fit-content;
    height: auto;
    max-height: 60px;
    overflow: hidden;
  }

  .toggle-label {
    width: 60px;
    height: 30px;
    position: relative;
    background-color: #ccc;
    border-radius: 50px;
    display: inline-block;
    cursor: pointer;
  }

  .toggle-label input {
    display: none;
  }

  .toggle-slider {
    position: absolute;
    width: 26px;
    height: 26px;
    top: 2px;
    left: 2px;
    background: white;
    border-radius: 50%;
    transition: left 0.3s ease;
  }

  .toggle-label input:checked + .toggle-slider {
    left: 32px;
    background: #222;
  }
}


/* Fixed Toggle Dark Mode Vertical Line   */

@media screen and (max-width: 768px) {
  .dark-mode-toggle-container {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
    background: var(--card-bg, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    width: fit-content;
    height: auto;
    max-height: 60px;
    overflow: hidden;
  }

  .toggle-label {
    width: 60px;
    height: 30px;
    position: relative;
    background-color: #ccc;
    border-radius: 50px;
    display: inline-block;
    cursor: pointer;
    margin: 0;
  }

  .toggle-label input {
    display: none;
  }

  .toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    transition: left 0.3s ease;
  }

  .toggle-label input:checked + .toggle-slider {
    left: 32px;
    background: #222;
  }
}


/* Updated CSS Fix: Shrink & Refine the Toggle  */


@media screen and (max-width: 768px) {
  .dark-mode-toggle-container {
    all: unset;
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    padding: 4px 8px;
    background: var(--card-bg, #fff);
    border-radius: 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-width: 70%;
    height: auto;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
  }

  .toggle-label {
    font-size: 13px;
    padding: 2px 4px;
  }

  .toggle-slider {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-left: 6px;
  }
}



/* 🔧 Try This Final Polishing Touch  */


@media screen and (max-width: 768px) {
  .dark-mode-toggle-container {
    all: unset;
    position: fixed;
    top: 8px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    padding: 3px 6px;
    background: var(--card-bg, #f9f9f9); /* Soften if needed */
    border-radius: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    z-index: 1001;
    max-width: 65%;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    transform: scale(0.95); /* Subtle shrink effect */
  }

  .toggle-label {
    font-size: 12px;
    margin: 0 4px;
  }

  .toggle-slider {
    width: 20px;
    height: 20px;
    margin-left: 6px;
    flex-shrink: 0;
  }
}


/* 🧊 Polished Transparent Styling */

@media screen and (max-width: 768px) {
  .dark-mode-toggle-container {
    all: unset;
    position: fixed;
    top: 8px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.4); /* semi-transparent white */
    backdrop-filter: blur(8px);           /* glassy effect */
    -webkit-backdrop-filter: blur(8px);   /* Safari support */
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    z-index: 1001;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    transform: scale(0.95);
  }

  .toggle-label {
    font-size: 12px;
    margin: 0 4px;
  }

  .toggle-slider {
    width: 20px;
    height: 20px;
    margin-left: 6px;
    flex-shrink: 0;
  }
}

/* 🧼 Final Clean Toggle – Icon-Only, Ultra-Compact  */

@media screen and (max-width: 1024px) {
  .dark-mode-toggle-container {
    all: unset;
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 10000;

    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;

    transition: background 0.2s ease;
  }

  .dark-mode-toggle-container:hover {
    background: rgba(255, 255, 255, 0.3);
  }

  .dark-mode-toggle-container svg {
    width: 20px;
    height: 20px;
    fill: #333; /* Or #fff if in dark mode */
  }
}


#dark-mode-toggle {
  display: none !important;
}


/* 🌙 Ultra-Mini Dark Mode Toggle – Mobile Optimized  */

@media screen and (max-width: 768px) {
  #dark-mode-toggle {
    all: unset;
    position: fixed;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    color: #222;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  #dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
  }

  #dark-mode-toggle svg {
    width: 20px;
    height: 20px;
    fill: #222;
  }
}

✅ Final Mobile Toggle Button Style (Responsive & Minimal)

@media screen and (max-width: 768px) {
  .dark-mode-toggle {
    all: unset;
    position: fixed;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    border-radius: 50%;
    font-size: 18px;
    color: #222;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;

    overflow: hidden;
    box-sizing: border-box;
    transition: background 0.2s ease;
  }

  .dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
  }
}

.dark-mode-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 10000;

  padding: 6px 12px;
  font-size: 14px;
  color: #222;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease;
}

/* 🎨 CSS (at bottom of your style.css) */

.dark-mode-toggle:hover {
  background: rgba(255,255,255,0.3);
}

@media screen and (max-width: 768px) {
  .dark-mode-toggle {
    padding: 4px 10px;
    font-size: 13px;
    top: 10px;
    right: 10px;
  }
}

/* 🧪 Final Test Flow: */

.dark-mode-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 10000;
  padding: 6px 12px;
  font-size: 14px;
  background: rgba(255,255,255,0.2);
  color: #222;
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dark-mode-toggle:hover {
  background: rgba(255,255,255,0.3);
}

.dark-mode-toggle {
  outline: 2px solid limegreen;
}

.dark-mode-toggle {
  outline: 2px dashed red !important;
  background: yellow !important;
}

.dark-mode-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 10000;

  padding: 6px 12px;
  font-size: 14px;
  color: #222;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease;
}

.dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
}
.dark-mode-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 10000;

  padding: 6px 12px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.2);
  color: #222;
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}
.dark-mode-toggle {
  outline: 2px dashed red;
  background: yellow;
}

.dark-mode-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 10000;

  padding: 6px 12px;
  font-size: 14px;
  color: #222;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease;
}

.dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.35);
}

.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

#forecast-title {
  text-align: center;
  font-size: 1.6em;
  margin: 2em auto 1em;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.dark-mode #forecast-title {
  color: #ddd;
}


#forecast-title {
  text-align: center;
  font-size: 1.6em;
  margin: 2em auto 1em;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.dark-mode #forecast-title {
  color: #ddd;
}
#forecast-title {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease;
}

#forecast-title.visible {
  opacity: 1;
  transform: translateY(0);
}

#forecast-title {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease;
  text-align: center;
  font-size: 1.6em;
  margin: 2em auto 1em;
  font-weight: 600;
  color: #333;
}

#forecast-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.dark-mode #forecast-title {
  color: #ddd;
}
#forecast-title {
  text-align: center;
  font-size: 1.6em;
  margin: 2em auto 1em;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.3px;
  max-width: 100%;
}

.dark-mode #forecast-title {
  color: #ddd;
}
#forecast-title {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
  /* τα υπόλοιπα όπως πριν */
}

#forecast-title.visible {
  opacity: 1;
  transform: translateY(0);
}



.dark-mode-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  background: #fff;
  border: none;
  padding: 0.4em 0.8em;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 1000;
}
body.dark-mode .dark-mode-toggle {
  background: #333;
  color: #fff;
}

.dark-mode-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  background: #fff;
  border: none;
  padding: 0.4em 0.8em;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 1000;
  font-size: 16px;
}

body.dark-mode .dark-mode-toggle {
  background: #333;
  color: #fff;
}

/* 📱 Mobile Fix */
@media (max-width: 768px) {
  .dark-mode-toggle {
    top: 10px;
    right: 10px;
    font-size: 14px;
    padding: 0.3em 0.6em;
  }
}

/* === 🌙 Dark Mode Floating Toggle === */
.dark-mode-toggle { ... }


.dark-mode-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  background: #ffffffdd;
  border: none;
  padding: 0.5em 0.9em;
  border-radius: 999px;
  font-size: 1.1em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 9999;
  transition: background 0.3s ease;
}
.dark-mode-toggle:hover {
  background: #f1f1f1;
}
body.dark-mode .dark-mode-toggle {
  background: #333333cc;
  color: #fff;
}
body.dark-mode .dark-mode-toggle:hover {
  background: #444;
}

/* ======================== */
/* 🧱 BASE STYLES           */
/* ======================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: #222;
  scroll-behavior: smooth;
}
body.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

/* ======================== */
/* 📐 LAYOUT                */
/* ======================== */
header, footer, section {
  padding: 2em 1em;
}
section {
  max-width: 980px;
  margin: 0 auto;
}

/* ======================== */
/* 🎛 COMPONENTS            */
/* ======================== */

/* Forecast */
#forecast-section {
  text-align: center;
  background: linear-gradient(to right, #e0f7fa, #fffde7);
}
#weather-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  margin-bottom: 2em;
}
#city-input {
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 260px;
  max-width: 90%;
}
#weather-form button {
  background: #2196f3;
  color: #fff;
  padding: 0.6em 1.4em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}
.forecast-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5em;
}
.forecast-card {
  padding: 1em;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}
.forecast-card:hover {
  transform: translateY(-4px);
}
.forecast-temp {
  font-size: 1.4em;
  font-weight: bold;
}

.forecast-card {
  background-color: #1e1e1e;
}

/* ======================== */
/* ✨ ANIMATIONS            */
/* ======================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================ */
/* 🛸 UTILITIES & FLOATING ELEMENTS */
/* ================================ */

/* Dark Mode Toggle */
.dark-mode-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.92);
  border: none;
  padding: 0.5em 0.9em;
  border-radius: 999px;
  font-size: 1.1em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  z-index: 9999;
  transition: background 0.3s ease, transform 0.2s ease;
}
.dark-mode-toggle:hover {
  background: #eee;
  transform: scale(1.05);
}
body.dark-mode .dark-mode-toggle {
  background: rgba(51, 51, 51, 0.9);
  color: #fff;
}

/* Back to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 0.6em 1.2em;
  border: none;
  background: #444;
  color: white;
  border-radius: 50px;
  display: none;
  z-index: 1000;
}
.scroll-top-btn.show {
  display: block;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #222;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/*

.forecast-card {
  background: #20232a;
  color: #fff;
  border-radius: 8px;
  padding: 1em;
  margin: 0.5em;
  text-align: center;
  display: inline-block;
  width: 160px;
}
*/

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  padding: 1rem;
}
/* .forecast-card {
  background: #1e1e1e;
  color: #f5f5f5;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
} */
.forecast-card img {
  max-width: 80px;
}


#forecast-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  padding: 1rem;
} 
/*.forecast-card {
  background: #2e2e2e;
  color: #f5f5f5;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
} */
.forecast-card img {
  max-width: 80px;
  margin: 0 auto;
}

#forecast:empty,
#weather-output:empty {
  display: none;
}

#forecast-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  padding: 1rem;
} */
/*
.forecast-card {
  background: #2e2e2e;
  color: #f5f5f5;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
} */
#forecast-container:empty {
  display: none;
}

#forecast-status {
  color: #f5f5f5;
  font-style: italic;
  text-align: center;
  margin-top: 8px;
}

.status-box {
  color: #f5f5f5;
  font-style: italic;
  margin-top: 8px;
  text-align: center;
}

.status-box ul {
  list-style: none;
  padding-left: 0;
  margin: 0.5em 0 0;
}

.status-box li::before {
  content: "• ";
  color: #bbb;
}

.status-box {
  color: #f5f5f5;
  font-style: italic;
  text-align: center;
  margin-top: 8px;
}

.status-box ul {
  list-style: none;
  padding-left: 0;
  margin-top: 8px;
}

.status-box li::before {
  content: "• ";
  color: #bbb;
}

#forecast-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 1rem;
  margin-top: 1rem;
}

.forecast-card:hover {
  transform: scale(1.05);
}

.forecast-card img {
  max-width: 80px;
  margin-bottom: 8px;
}

/*
.forecast-card {
  border: 1px solid limegreen;
  background: black;
  color: white;
}
*/

body {
  background-color: black;
}


/* Weather Cards */

.forecast-card {
  background: linear-gradient(135deg, #1e1e1e, #2e2e2e);
  color: #fdfdfd;
  border: 1px solid limegreen;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 255, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forecast-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 255, 0, 0.3);
}

.forecast-card img {
  max-width: 90px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.forecast-card:hover img {
  transform: rotate(-2deg) scale(1.1);
}


/* 🚀 Forecast Card Styling – VasiVerse */
.forecast-card {
  background: linear-gradient(135deg, #1e1e1e, #2e2e2e);
  color: #fdfdfd;
  border: 1px solid limegreen;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 255, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forecast-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 255, 0, 0.3);
}

.forecast-card img {
  max-width: 90px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.forecast-card:hover img {
  transform: rotate(-2deg) scale(1.1);
}


body.light-mode {
  background-color: #f9f9f9;
  color: #1a1a1a;
}

@media (prefers-color-scheme: light) {
  body, section, nav, header, footer,
  .card, .container, .project-card, .featured-card,
  .forecast-card, .contact-section, .about-section {
    background-color: #ffffff;
    color: #1a1a1a;
    border-color: #e5e5e5;
  }

  a {
    color: #0077cc;
  }

  button {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
  }

  .forecast-card {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }
}
body.light-mode .card {
  ckground: #fff; color: #111;                     
}

header, .site-header, .title-banner {
  background-color: #f9f9f9; /* Light mode base */
  color: #1a1a1a;
  padding: 16px 24px;
  font-size: 1.8rem;
  font-weight: 600;
  border-bottom: 1px solid #e5e5e5;
}


@media (prefers-color-scheme: light) {
  header {
    background-color: #ffffff;
    color: #1a1a1a;
    border-bottom: 1px solid #ddd;
  }
}

body.light-mode header {
  background-color: #ffffff;
  color: #111;
}

header h1 {
  font-family: 'Segoe UI', sans-serif;
  letter-spacing: 1px;
  color: #0077cc;
}
/* 💙 Restore VasiVerse Header Blue */
header, .site-header, .title-banner {
  background-color: #0077cc; /* Classic blue */
  color: #ffffff;
  padding: 20px 32px;
  font-size: 2rem;
  font-weight: 700;
  border-bottom: none;
  text-align: center;
}


/* 🚀 VasiVerse Header Rebuild */
header {
  background-color: #0077cc; /* Vibrant blue */
  color: #ffffff;
  padding: 24px 32px;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  border-bottom: 2px solid #005fa3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header h1 {
  margin: 0;
  color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

header h1::before {
  content: '🚀';
  margin-right: 12px;
  font-size: 1.6rem;
  vertical-align: middle;
}





/* 🪶 Gentle Light Mode Styling for Cards and Containers */
@media (prefers-color-scheme: light) {
  .card, .container, .content-box, .forecast-card {
    background-color: #f2f2f2; /* Soft gray */
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }
}



/* ✍️ Typography Fix for Visibility */
body, section, nav, header, footer,
.card, .container, .forecast-card, .content-box {
  color: #1a1a1a; /* Deep gray – crisp but softer than full black */
  font-size: 1rem;
  line-height: 1.6;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 400;
}

h1, h2, h3, h4 {
  color: #111; /* Slightly bolder for headers */
  font-weight: 700;
}

p, li, span, input, label {
  color: #1a1a1a;
}

a {
  color: #0077cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


header h1 {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-in-out;
}

body.loaded header h1 {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 600px) {
  .hero,
  .intro-block,
  .welcome-section {
    min-height: auto;
    padding: 30px 20px;
    text-align: center;
  }

  .welcome-text {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 15px;
  }

  .jump-button {
    display: block;
    margin: 20px auto;
    padding: 10px 18px;
    font-size: 16px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 8px;
  }

  .mobile-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #111;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
  }

  .mobile-nav a {
    color: white;
    font-size: 20px;
    text-decoration: none;
  }

  section {
    margin-bottom: 30px;
  }
}


.back-home-button {
  display: inline-block;
  margin: 20px auto;
  padding: 10px 16px;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  text-align: center;
}
.back-home-button:hover {
  background-color: #555;
}
