/* ============================================================
   style.css — Το στυλ της σελίδας του Ανδρέα
   Συμβουλή: άλλαξε τα χρώματα στις μεταβλητές παρακάτω
   και όλη η σελίδα θα αλλάξει αυτόματα!
   ============================================================ */

/* --- Μεταβλητές χρωμάτων (σκούρο θέμα, το προεπιλεγμένο) --- */
:root {
  --bg: #0f172a;          /* φόντο σελίδας */
  --bg-card: #1e293b;     /* φόντο για κάρτες */
  --text: #e2e8f0;        /* βασικό χρώμα κειμένου */
  --text-muted: #94a3b8;  /* πιο αχνό κείμενο */
  --accent: #38bdf8;      /* το «δικό σου» χρώμα — δοκίμασε να το αλλάξεις! */
  --accent-2: #818cf8;    /* δεύτερο χρώμα για το ντεγκραντέ */
}

/* --- Φωτεινό θέμα (ενεργοποιείται με το κουμπί 🌙/☀️) --- */
body.light {
  --bg: #f1f5f9;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
}

/* --- Βασικά --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* ομαλή κύλιση όταν πατάς links του μενού */
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

/* --- Μενού πλοήγησης --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo .dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* --- Αρχική ενότητα (hero) --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero-hello {
  color: var(--text-muted);
  font-size: 1.3rem;
}

.hero-name {
  font-size: clamp(3rem, 10vw, 6rem);
  /* Ντεγκραντέ κείμενο — ωραίο τρικ! */
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-typed {
  font-size: 1.5rem;
  color: var(--text-muted);
  min-height: 2rem;
  margin: 1rem 0 2rem;
}

/* Ο «κέρσορας» που αναβοσβήνει δίπλα στο κείμενο */
.cursor {
  animation: blink 0.8s infinite;
  color: var(--accent);
}

@keyframes blink {
  50% { opacity: 0; }
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.35);
}

/* --- Ενότητες --- */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem;
  /* Ξεκινούν αόρατες και εμφανίζονται με animation όταν κάνεις scroll
     (δες το IntersectionObserver στο js/main.js) */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  margin-top: 0.5rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* --- Κάρτες χόμπι --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  padding: 1.8rem;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  margin: 0;
}

/* --- Λίστα στόχων --- */
.goals-list {
  list-style: none;
}

.goals-list li {
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--accent);
}

/* --- Επικοινωνία --- */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-link {
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.2s, color 0.2s;
}

.contact-link:hover {
  transform: translateY(-3px);
  color: var(--accent);
}

/* --- Υποσέλιδο --- */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Κινητά: κρύβουμε τα links του μενού σε πολύ μικρές οθόνες --- */
@media (max-width: 600px) {
  .nav-links a {
    font-size: 0.85rem;
  }

  .navbar {
    padding: 1rem;
  }
}
