

.switch {
    font-size: 17px;
    position: fixed;
    top: 90px;
    right: 70px;
    width: 3.5em;
    height: 2em;
    opacity: 1;
    visibility: visible;
    z-index: 1000;
    transition: transform 0.4s ease-in-out, opacity 0.3s ease, visibility 0.3s ease;
}

.switch::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    filter: blur(2px);
    z-index: -1;
    border-radius: 50px;
    background-color: #3b80ff;
    background-image: radial-gradient(at 21% 46%, #FFC107 0px, transparent 50%),
    radial-gradient(at 23% 25%, #FF5722 0px, transparent 50%),
    radial-gradient(at 20% 1%, #FF9800 0px, transparent 50%);
    box-shadow: 0 0 5px 2px rgba(255, 193, 7, 0.3),
    0 0 8px 2px rgba(255, 87, 34, 0.3),
    0 0 10px 2px rgba(255, 152, 0, 0.4);
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffffdc;
    transition: .4s;
    border-radius: 30px;
    box-shadow: none;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 1.4em;
    left: 0.3em;
    bottom: 0.35em;
    transition: .4s;
    border-radius: 50%;
    background-color: #FFEB3B;
    background-image: radial-gradient(at 81% 39%, #FFC107 0px, transparent 50%),
    radial-gradient(at 11% 72%, #FF5722 0px, transparent 50%),
    radial-gradient(at 23% 20%, #FF9800 0px, transparent 50%);
}

body.dark-mode .slider:before {
    background-color: #000000;
    background-image: radial-gradient(at 81% 39%, #90c1e9 0px, transparent 50%),
    radial-gradient(at 11% 72%, #283C5B 0px, transparent 50%),
    radial-gradient(at 23% 20%, #1A2531 0px, transparent 50%);
}

body.dark-mode .switch::before {
    background-color: #34495E;
    background-image: radial-gradient(at 21% 46%, #BDC3C7 0px, transparent 50%),
    radial-gradient(at 23% 25%, #95A5A6 0px, transparent 50%),
    radial-gradient(at 20% 1%, #7F8C8D 0px, transparent 50%);
    box-shadow: 0 0 10px 3px rgba(189, 195, 199, 0.4),
    0 0 6px 3px rgba(52, 152, 219, 0.3),
    0 0 15px 0 rgba(189, 195, 199, 0.5);
}

.input__check:checked + .slider {
    background-color: #17202A;
}

.input__check:checked + .slider:before {
    transform: translateX(1.5em);
}

body .card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    color: #121212;
}

.description {
    color: #333;
    background-color: #ffffff;
    box-shadow: 0.3em 0.3em 0.5em rgba(0, 0, 0, 0.1), -0.3em -0.3em 0.5em rgba(255, 255, 255, 0.8);
    border-radius: 1em;
}

.description .note {
    text-align: center;
    color: #ff0000;
    font-weight: bold;
    margin-bottom: 0.5em;
    font-family: Arial, Helvetica, sans-serif;
}

body.dark-mode .description {
    color: #e0e0e0;
    background-color: #24252e;
    box-shadow: 0.3em 0.3em 0.5em rgba(0, 0, 0, 0.3), -0.3em -0.3em 0.5em rgba(255, 255, 255, 0.1);
    border-radius: 1em;
    border: 1.5px solid #3a3b44;
    transition: box-shadow 0.2s ease, background-color 0.3s ease, border 0.2s ease, transform 0.2s ease;
}

body.dark-mode .description:hover {
    background-color: #333840;
    border: 1.5px solid #5a5b6b;
}

body.dark-mode .card {
    background: linear-gradient(145deg, #212429, #212429);
    border: 2px solid #3c3d47;
    color: white;
}




section {
    padding: 20px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 2px solid #000000;
    color: #000000fb;
    font-family: 'squid', sans-serif;
    background: rgb(0, 0, 0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.26), -2px -2px 5px rgba(0, 0, 0, 0.26);
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.26)) drop-shadow(-2px -2px 2px rgba(0, 0, 0, 0.26));
}

body.dark-mode h2 {
    border-bottom: 2px solid #ffffff;
    color: #4fbff1;
    background: rgb(0, 156, 177);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'squid', sans-serif;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.26), -2px -2px 5px rgba(0, 0, 0, 0.26);
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.26)) drop-shadow(-2px -2px 2px rgba(0, 0, 0, 0.26));
}

#cars {
    margin-top: -34px;
}

#cars h2 {
    margin-top: -25px;
}

body.light-mode {
    background-color: #ffffff;
    color: #1d2b69;
    --card-bg: #ffffff;
    --card-content-bg: #f9f9f9;
    --text-color: #333;
    --text-color-hover: #000;
    --border-color: #ddd;
    --gradient-color: linear-gradient(90deg, #d6d6d6, #ffffff);
    --text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    --hover-text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
    --card-bg: #1e1e2f;
    --card-content-bg: #2b2b3c;
    --text-color: #e0e0e0;
    --text-color-hover: #fff;
    --border-color: #444;
    --gradient-color: linear-gradient(90deg, #1f1f1f, #292929); /* Διορθώθηκε σε gradient */
    --text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.466), -2px -2px 4px rgba(0, 0, 0, 0.342);
    --hover-text-shadow: 3px 3px 10px rgba(255, 255, 255, 0.062);
}

.card {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 550px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mode-toggle:hover {
    background-color: var(--card-content-bg);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

body.light-mode .card img {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.651);
}

body.light-mode .card img:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.603);
    filter: contrast(100%);
}

body.dark-mode .card img {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.425);
}

body.dark-mode .card p {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding: 20px 15px;
    border-radius: 15px;
    background-color: #071b3125;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.226), 0 1px 3px rgba(0, 0, 0, 0.26);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.card p {
    width: calc(100% - 90px);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding: 20px 15px;
    border-radius: 15px;
    background-color: rgba(187, 37, 37, 0.055);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .card p:hover {
    background-color: rgba(4, 16, 29, 0.145);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
}

body.dark-mode .card img:hover {
    box-shadow: 0 10px 8px rgba(0, 0, 0, 0.479);
    filter: brightness(0.85);
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Υπενθύμιση: Το fadeIn animation δεν χρησιμοποιείται. Εφάρμοσέ το αν χρειάζεται, π.χ.:
   .some-element { animation: fadeIn 1s ease-in; }
*/

body.light-mode #home h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.13), -2px -2px 4px rgba(0, 0, 0, 0.253);
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.26)) drop-shadow(-2px -2px 2px rgba(0, 0, 0, 0.247));
}

body.dark-mode #home h1 {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.329), -2px -2px 5px rgba(0, 0, 0, 0.322);
    filter: drop-shadow(2px 2px 2px rgba(255, 255, 255, 0.068)) drop-shadow(-2px -2px 2px rgba(255, 255, 255, 0.062));
}

body.dark-mode .menu a {
    color: var(--text-color); /* Αντικαταστάθηκε το --text-light με --text-color */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.26), -2px -2px 5px rgba(0, 0, 0, 0.26);
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.26)) drop-shadow(-2px -2px 2px rgba(0, 0, 0, 0.26));
}

body.dark-mode .menu a:hover {
    color: #006572;
}

.card h6 {
    margin: 4px 0;
    font-size: 25px;
    text-align: center;
    font-weight: 600;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgb(0, 0, 0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--text-shadow);
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.26)) drop-shadow(-2px -2px 2px rgba(0, 0, 0, 0.247));
    transition: transform 0.3s ease, letter-spacing 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

body.dark-mode .card h6 {
    background: rgb(206, 206, 206);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card h6:hover {
    transform: translateY(-5px);
    letter-spacing: 2px;
    text-shadow: var(--hover-text-shadow);
}

@media (min-width: 1440px) {
    .card h6 { font-size: 28px; }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    .card h6 { font-size: 25px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .card h6 { font-size: 22px; }
}

@media (min-width: 480px) and (max-width: 767px) {
    .card h6 { font-size: 20px; }
}

@media (min-width: 375px) and (max-width: 479px) {
    .card h6 { font-size: 18px; }
}

@media (min-width: 320px) and (max-width: 374px) {
    .card h6 { font-size: 16px; }
}

@media (max-width: 319px) {
    .card h6 { font-size: 14px; }
}

@media (max-width: 1265px) {
    .switch {
        position: static;
        margin: 7px auto;
        transform: scale(0.9);
        display: block;
        width: 3.5em;
        height: 2em;
        opacity: 1;
        visibility: visible;
        z-index: 1000;
    }
}