* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #fff;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
/* HEADER */
.header {
  background: #1a1a1a;
  padding: 8px 0;  /* πιο λεπτό */
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  height: 35px;
  width: auto;
}

.logo-text {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
  font-size: 15px;
}

.nav a:hover {
  color: #27AE60;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header {
    padding: 6px 0;
  }

  .header .container {
    gap: 12px;
  }

  .logo-icon {
    height: 30px;
  }

  .logo-text {
    font-size: 13px;
  }

  .nav {
    gap: 15px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .header .container {
    gap: 8px;
  }

  .logo-icon {
    height: 25px;
  }

  .logo-text {
    font-size: 11px;
  }

  .nav {
    gap: 10px;
    font-size: 12px;
  }
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .header {
    padding: 10px 0;
  }

  .header .container {
    gap: 15px;
  }

  .logo-img {
    height: 50px;
  }

  .nav {
    gap: 15px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .header .container {
    gap: 10px;
  }

  .logo-img {
    height: 40px;
  }

  .nav {
    gap: 12px;
    font-size: 12px;
  }
}


/* HERO WITH CAROUSEL */
.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  margin-top: -60px;  /* πιο ήπιο lift για desktop */
}

.hero h1 {
  font-size: 20px;
  margin-bottom: 0px;
  color: #ffffff;
}

.hero-logo {
  max-width: 450px;
  height: auto;
  margin: 30px auto 20px auto;
  display: block;
}

.hero p {
  font-size: 20px;
  margin-bottom: 0px;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #27AE60;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s;
}

.btn:hover {
  background: #175531;
}

/* SECTIONS */
section {
  padding: 80px 20px;
}

section h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: #1a1a1a;
}

/* BENEFITS */
.benefits {
  background: #f9f9f9;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #27AE60;
}

.card p {
  color: #666;
}

/* PROJECTS */
.work {
  background: #fff;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, outline 0.25s ease;
  cursor: pointer;
  margin-top: 8px; /* λίγο κενό για να “αναπνέει” το πάνω μέρος */
}

.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(39, 174, 96, 0.35); /* απαλό πράσινο shadow */
  outline: 2px solid rgba(39, 174, 96, 0.8);       /* πράσινο περίγραμμα γύρω‑γύρω */
  outline-offset: 0;
}

.project:focus-visible {
  outline: 3px solid rgba(39, 174, 96, 0.45);
  outline-offset: 4px;
}

.project img {
  border-radius: 8px;  /* ⬅️ ελαφρύ radius στην εικόνα */
  width: 100%;
  height: 250px;
  aspect-ratio: 16 / 9;  /* ⬅️ ΠΡΟΣΘΕΣΕ ΑΥΤΟ */
  object-fit: cover;
}
.project h3 {
  padding: 20px 20px 10px;
  color: #1a1a1a;
}

.project p {
  padding: 0 20px 20px;
  color: #666;
}

/* CONTACT */
.contact {
  background: #f9f9f9;
  text-align: center;
}

.contact-info {
  margin-bottom: 40px;
  font-size: 16px;
}

.contact-info p {
  margin: 10px 0;
}

/* Social media icons - all with gradient backgrounds */
.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 8px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.social-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Instagram gradient */
.social-icon.instagram {
  background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
}

/* Facebook gradient */
.social-icon.facebook {
  background: linear-gradient(135deg, #0D5FDB 0%, #1877F2 100%);
}

/* TikTok gradient */
.social-icon.tiktok {
  background: linear-gradient(135deg, #000 0%, #25F4EE 100%);
}

@media (max-width: 480px) {
  .social-links {
    gap: 14px;
  }

  .social-icon {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
}

/* FOOTER */
footer {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav {
    gap: 15px;
    font-size: 14px;
  }

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

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

  section {
    padding: 50px 20px;
  }

  section h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }
}

/* =========================
PROJECT POPUP GALLERY (MODAL) - MOBILE FRIENDLY
========================= */

.project {
  cursor: pointer;
}

.project:focus-visible {
  outline: 3px solid rgba(39, 174, 96, 0.45);
  outline-offset: 4px;
}

.project:hover {
  transform: translateY(-4px);
  transition: transform 0.2s ease;
}

/* Modal container */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(4px);
}

/* Modal dialog */
.modal-dialog {
  position: relative;
  width: min(1100px, calc(100vw - 20px));
  max-height: 90vh;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  background: #0b0f0d;
  border: 1px solid rgba(39, 174, 96, 0.18);
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
  padding: 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(39,174,96,0.18);
}

.modal-header {
  padding: 8px 6px 14px 6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.modal-title {
  font-size: 18px;
  font-weight: bold;
  color: #27AE60;
}

.modal-subtitle {
  font-size: 14px;
  opacity: 0.8;
}

/* Viewer */
.modal-viewer {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 12px;
  align-items: center;
  padding: 6px;
}

.modal-nav {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-nav:hover {
  background: rgba(39,174,96,0.18);
}

/* Fixed aspect ratio */
.media-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #050806;
  border: 1px solid rgba(255,255,255,0.10);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

/* Thumbnails */
.modal-thumbs {
  display: flex;
  gap: 10px;
  padding: 10px 6px 2px;
  overflow-x: auto;
  margin-top: 10px;
}

.thumb {
  position: relative;
  width: 96px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.10);
  background: #050806;
  flex: 0 0 auto;
  cursor: pointer;
  padding: 0;
}

.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb.active {
  border-color: rgba(39,174,96,0.85);
}

.thumb-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.12);
}

/* Project details styling */
.modal-details {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 14px;
  margin-top: 10px;
}

.modal-details h3 {
  color: #27AE60;
  margin-bottom: 12px;
  font-size: 16px;
}

.modal-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-details li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modal-details li:last-child {
  border-bottom: none;
}

/* ===== MOBILE RESPONSIVE ===== */

/* Tablet (768px) */
@media (max-width: 768px) {
  .modal-dialog {
    width: calc(100vw - 16px);
    max-height: 85vh;
    padding: 12px;
    margin: 5vh auto;
    top: auto;
    transform: none;
  }

  .modal-viewer {
    grid-template-columns: 36px 1fr 36px;
    gap: 8px;
    padding: 4px;
  }

  .modal-nav {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .media-frame {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
  }

  .modal-title {
    font-size: 16px;
  }

  .modal-subtitle {
    font-size: 12px;
  }

  .thumb {
    width: 80px;
    height: 50px;
  }

  .modal-details {
    font-size: 13px;
    padding: 15px 0;
  }

  .modal-details h3 {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .modal-details li {
    padding: 5px 0;
  }
}

/* Mobile (480px) */
@media (max-width: 480px) {
  .modal-dialog {
    width: calc(100vw - 12px);
    max-height: 80vh;
    padding: 10px;
    margin: 4vh auto;
    border-radius: 12px;
  }

  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 18px;
    top: 10px;
    right: 10px;
  }

  .modal-header {
    padding: 4px 4px 10px 4px;
    gap: 8px;
  }

  .modal-title {
    font-size: 14px;
  }

  .modal-subtitle {
    font-size: 11px;
  }

  .modal-viewer {
    grid-template-columns: 32px 1fr 32px;
    gap: 6px;
    padding: 2px;
  }

  .modal-nav {
    width: 32px;
    height: 32px;
    font-size: 20px;
    padding: 0;
  }

  .media-frame {
    aspect-ratio: 3 / 4;
    border-radius: 8px;
  }

  .modal-thumbs {
    gap: 8px;
    padding: 8px 4px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .thumb {
    width: 70px;
    height: 44px;
    border-radius: 8px;
  }

  .thumb-badge {
    width: 20px;
    height: 20px;
    font-size: 10px;
    top: 4px;
    right: 4px;
  }

  .modal-details {
    font-size: 12px;
    padding: 12px 0;
  }

  .modal-details h3 {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .modal-details li {
    padding: 4px 0;
  }

  /* Touch-friendly buttons */
  .modal-nav {
    min-height: 44px;
  }

  .modal-close {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Extra small phones (320px) */
@media (max-width: 360px) {
  .modal-dialog {
    width: calc(100vw - 10px);
  }

  .media-frame {
    aspect-ratio: 1 / 1;
  }

  .thumb {
    width: 60px;
    height: 40px;
  }

  .modal-title {
    font-size: 13px;
  }

  .modal-details {
    font-size: 11px;
  }
}
/* ===== HERO MOBILE LAYOUT ===== */

/* Tablet */
@media (max-width: 768px) {
  .hero {
    min-height: 460px;
    padding: 0 16px;
    align-items: flex-start;
  }

  .hero-content {
    margin-top: 0;          /* ΜΗ αρνητικό σε tablet */
    padding-top: 80px;
  }

  .hero-logo {
    max-width: 260px;
    margin: 0 auto 16px auto;
  }

  .hero h1 {
    font-size: 26px;
    margin-bottom: 8px;
  }

  .hero p {
    font-size: 16px;
    margin-bottom: 18px;
  }

  .btn {
    font-size: 15px;
    padding: 10px 24px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero {
    min-height: 420px;
    padding: 0 12px;
  }

  .hero-content {
    margin-top: 0;
    padding-top: 70px;
  }

  .hero-logo {
    max-width: 220px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero p {
    font-size: 14px;
  }

  .btn {
    font-size: 14px;
    padding: 9px 20px;
  }
}
/* ===== HEADER MOBILE ===== */
@media (max-width: 768px) {
  .header {
    padding: 8px 0;
  }

  .header .container {
    gap: 10px;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 6px 0;
  }

  .logo-text {
    font-size: 11px;
  }

  .nav {
    gap: 10px;
  }

  .nav a {
    font-size: 12px;
  }
}
/* ===== PROJECTS GRID MOBILE ===== */
@media (max-width: 768px) {
  .projects {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project img {
    height: 220px;
  }

  section {
    padding: 50px 16px;
  }

  section h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .project img {
    height: 200px;
  }

  section {
    padding: 40px 14px;
  }

  section h2 {
    font-size: 24px;
  }
}
