/* =========================
   THEME VARIABLES
   ========================= */

:root {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #ffffff;
}
/* =========================
   LIGHT MODE VARIABLES
   ========================= */
body.light {
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
}
/* =========================
   GLOBAL STYLE
   ========================= */
body {
  margin: 0;
  font-family: 'Segoe UI';
  background: var(--bg);
  color: var(--text);
  transition: 0.3s;
}

/* =========================
   HEADER CONTAINER
   ========================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* =========================
   LOGO STYLE
   ========================= */
.logo {
  font-weight: bold;
}
/* =========================
   NAV LINKS
   ========================= */

.nav {
  display: flex;
  gap: 20px;
  background: #40d2dc;
  padding: 15px;
  border-radius: 10px;
}

/* link styling */
.nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  transition: 0.2s;
}
/* hover effect */
.nav a:hover {
  background: rgba(138, 184, 249, 0.303);
}

/* SVG icons */
.icon {
  width: 18px;
  height: 18px;
  fill: none;                 /* δεν γεμίζει */
  stroke: var(--text);        /* παίρνει χρώμα theme */
  stroke-width: 2;
  stroke-linecap: round;      /* smooth edges */
  stroke-linejoin: round;
}

/* hover animation */
.nav a:hover .icon {
  transform: scale(1.1);
  opacity: 1;
}
/* =========================
   THEME BUTTON
   ========================= */
.theme-toggle {
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
/* HAMBURGER ICON */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* =========================
   MOBILE MODE (ΔΙΟΡΘΩΜΕΝΟ)
   ========================= */
@media (max-width: 768px) {
  
  /* Εμφανίζουμε το Hamburger Button */
  .hamburger {
    display: block !important;
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
    order: 3; /* Το σπρώχνει τέρμα δεξιά */
  }

  /* Ευθυγράμμιση Header στο κινητό */
  .header {
    position: relative;
    padding: 10px 15px;
  }

  .logo {
    order: 1;
  }

  .theme-toggle {
    order: 2;
    margin-left: auto;
    margin-right: 15px;
  }

  /* ΜΕΤΑΤΡΟΠΗ ΤΟΥ NAV ΣΕ ΚΑΘΕΤΟ MOBILE MENU */
  .nav {
    display: none; /* Κρυφό από προεπιλογή στο κινητό */
    flex-direction: column;
    position: absolute;
    top: 100%; /* Ανοίγει ακριβώς κάτω από το header */
    left: 0;
    width: 100%;
    background: var(--card); /* Παίρνει το χρώμα του theme (σκούρο ή ανοιχτό) */
    padding: 15px;
    gap: 10px;
    box-sizing: border-box;
    border-bottom: 2px solid #40d2dc;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
  }

  /* Όταν πατάμε το hamburger και μπαίνει η κλάση .show μέσω JS */
  .nav.show {
    display: flex !important;
  }

  /* Τα links πιάνουν όλο το πλάτος για να πατιούνται εύκολα */
  .nav a {
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    padding: 12px;
    background: rgba(64, 210, 220, 0.1); /* Απαλό φόντο στα links */
  }
  
  /* Διόρθωση για το Footer Grid στο κινητό */
  .footer-container {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
}
/* =========================
   FOOTER STYLE
   ========================= */
.footer {
  background: var(--card);
  margin-top: 10px; /* από 40px, το κατεβάζουμε για να μην αφήνει τεράστιο κενό από το main content */
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 15px 0 0 0; /* Προσθέτουμε λίγο padding πάνω για να μην κολλάνε τα κείμενα */
}

/* container */
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  
  /* ΑΥΞΗΣΗ ΠΕΡΙΘΩΡΙΟΥ: Δίνουμε 10% αριστερά-δεξιά για να έρθει πολύ πιο μέσα στο desktop */
  padding: 20px 10% !important; 
  
  max-width: 1400px; 
  margin: 0 auto; 
  box-sizing: border-box;
}

/* Σωστή στοίχιση για την 5η στήλη των Social */
.social-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* columns */
.footer-col h3,
.footer-col h4 {
  margin-top: 0;
  margin-bottom: 4px; 
  font-size: 15px; 
}

/* links */
.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 2px;
  font-size: 13px;
  opacity: 0.8;
}

/* hover */
.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* text */
.footer-col p {
  margin: 2px 0;
  font-size: 13px;
  opacity: 0.8;
}

/* bottom bar */
.footer-bottom {
  text-align: center;
  padding: 5px;
  font-size: 11px;
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0.7;
}
/* =========================
   STICKY FOOTER LAYOUT
   ========================= */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

/* main content μεγαλώνει */
main {
  flex: 1;
}
/* =========================
   FOOTER RESPONSIVE
   ========================= */

/* tablet */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
    padding: 10px 30px !important; /* Μαζεύει το περιθώριο στα tablet */
  }
}

/* mobile */
@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr !important;
    text-align: center;
    padding: 10px 15px !important; /* Ελάχιστο περιθώριο στα κινητά */
  }

  .footer-col {
    padding: 2px 0 !important;
  }
  
  .social-column {
    align-items: center !important; /* Κεντράρει τα social στο κινητό */
  }

  .footer-col a {
    font-size: 13px;
    display: inline-block;
    margin: 5px;
  }

  .footer-bottom {
    font-size: 11px;
    padding: 10px;
  }
}
/* =========================
   SOCIAL ICONS
   ========================= */
.socials {
  margin-top: 2px;
  display: flex;
  gap: 8px;
}

/* links */
.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  transition: 0.25s;
}

/* hover effect */
.socials a:hover {
  transform: translateY(-3px) scale(1.1);
  background: #3b82f6;
}

/* icon color on hover */
.socials a:hover .icon {
  stroke: white;
}
/* MOBILE FIX */
@media (max-width: 500px) {
  .socials {
    justify-content: center;
  }
}
/* =========================
   BACKGROUND IMAGE LAYER
   ========================= */
body {
  margin: 0;
  font-family: 'Segoe UI';
  background: var(--bg);
  position: relative;
  color: var(--text);
}

/* background image layer */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-image: url("Eins.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.09;   /*  εδώ παίζεις */
  z-index: -1;
}
/* =========================
   LAYOUT
   ========================= */
.container {
  padding: 30px;
}

/* HERO */
.hero {
  text-align: center;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero p {
  opacity: 0.8;
  font-size: 16px;
}

/* GRID CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  padding: 18px;
  border-radius: 16px;
  transition: 0.2s;
}

.card a {
  display: inline-block;
  margin-top: 10px;
  color: #3b82f6;      
  text-decoration: none;
}
/* =========================
   CANVAS RESPONSIVE FIX
   ========================= */
canvas {
    background: #0b0f19;
    border-radius: 12px;
    display: block;
    width: 100% !important;  /* Αναγκάζει το canvas να μαζεύει στο πλάτος της οθόνης */
    max-width: 100%;         /* Εμποδίζει το canvas από το να βγει εκτός οθόνης */
    height: auto !important; /* Διατηρεί τις αναλογίες (aspect ratio) σωστές */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    box-sizing: border-box;
}