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

body {
  min-height: 100dvh;
  background: radial-gradient(circle at right top, #8b5cf6, #0f172a);
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
}  

#header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  height: 500px;
}

#hello {
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 5px;
  font-size: 38px;
  margin-left: 120px;
  font-family: "Fredoka", sans-serif;
  font-weight: 800;
}

#name {
  margin-left: 160px;
  font-family: "Fredoka", sans-serif;
  padding: 10px 5px;
  font-size: 27px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 200;
  position: relative;
  display: inline-block;
  
  text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.3); 
}

#name::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background-color: #000000; /* Επιστροφή στο απόλυτο μαύρο χρώμα σου */
  margin-right: 15px;
}

#soft {
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 5px;
  font-size: 40px;
  margin-left: 120px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
}

#info {
  display: flex;
  gap: 90px;
  margin-left: 120px;
  width: 100%;
}

#info a {
  text-decoration: none;
  font-size: 20px;
  border: 1px solid black;
  border-radius: 8px;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.8);
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease;
}

#info a:hover {
  transform: scale(1.1);
}

#skill {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
}

#skill ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  font-size: 20px;
  list-style: none;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 200;
  min-height: 60px;
  align-items: center;
  padding: 10px;
}

#main-content {
  background: radial-gradient(circle at right top, #4c1d95, #0f172a);
  display: flex;
  justify-content: space-between;
  padding: 40px 120px;
}

#services {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 45%;
}

#about {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  width: 45%;
}

#what {
  font-size: 35px;
  color: rgba(255, 255, 255, 0.7);
}

#aboutme {
  font-size: 35px;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Plus Jakarta Sans", sans-serif;
  margin-bottom: 20px;
  margin-right: 30px;
}

#about p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
}

#services p {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.3);
  background-image: linear-gradient(to right, transparent, purple, transparent);
  background-size: 0% 1px;
  padding: 20px;
  background-position: center bottom;
  transition: 0.3s ease;
  background-repeat: no-repeat;
  width: 200px;
}

#services p:hover {
  background-image: linear-gradient(to right, transparent, purple, transparent);
  background-size: 100% 1px;
  padding: 20px;
  background-position: center bottom;
  color: rgba(255, 255, 255, 0.9);
}

#after-main {
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

#proj {
  font-size: 40px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 100;
  background-image: linear-gradient(to right, transparent, purple, transparent);
  background-size: 100% 2px;
  padding: 10px;
  background-position: bottom center;
  background-repeat: no-repeat;
}

#projects {
  min-height: auto;
  background: radial-gradient(circle at right top, #4c1d95, #0f172a);
  padding: 40px 0; 
}

#contact {
  height: 500px;
  background: radial-gradient(circle at right top, #4c1d95, #0f172a);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; 
  gap: 30px;
  width: 100%;
}

#title3 {
  padding: 10px 20px;
  font-size: 40px;
  color: rgba(225, 225, 255, 0.9);
  font-family: "Plus Jakarta Sans", sans-serif;
  text-align: center;
}

#talk, #mail {
  display: inline-flex;
  color: rgba(225, 255, 255, 0.6);
  text-decoration: none;
  font-size: 20px;
  border-radius: 14px;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  width: 140px; 
  height: 40px;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

#talk:hover, #mail:hover {
  color: rgba(225, 255, 255, 0.9);
  border: 1px solid purple;
}

#close {
  display: flex;
  height: 120px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#name3 {
  letter-spacing: -1.5px;
  font-size: 30px;
  color: rgba(255, 255, 255, 0.8);
}

#rights {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);    
  }
}

@keyframes lineGrow {
  from { width: 0; }
  to { width: 80px; } 
}

#hello, #name, #soft, #info, #skill {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

#hello { animation-delay: 0.1s; }
#soft { animation-delay: 0.3s; }
#name { animation-delay: 0.5s; }
#name::before {
  animation: lineGrow 1.2s ease-out forwards;
  animation-delay: 0.8s;
}
#info { animation-delay: 0.7s; }
#skill { animation-delay: 0.9s; }

.scroll-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.scroll-fade.show {
  opacity: 1;
  transform: translateY(0);
}

#me {
  position: relative; 
  border: 1px solid rgba(255, 255, 255, 0.15); 
  border-radius: 18px;
  width: auto;
  padding: 20px 24px; 
  background: rgba(225, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: justify;        
  color: rgba(225, 225, 255, 0.85);
  font-family: "Inter", sans-serif; 
  font-size: 16px;
  line-height: 1.6; 
  font-weight: 300;
  backdrop-filter: blur(5px); 
}

/* Το τριγωνάκι που μετατρέπει το πλαίσιο σε συννεφάκι */
#me::before {
  content: "";
  position: absolute;
  top: -12px;       
  left: 30px;       
  width: 0;
  height: 0;
  /* Δημιουργία τριγώνου με borders */
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid rgba(225, 225, 255, 0.05); 
}

/* ΣΤΥΛ ΓΙΑ ΤΑ PROJECTS ΣΤΟ PC (ΔΙΠΛΑ-ΔΙΠΛΑ) */
#work {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 30px;                 
  max-width: 1200px;        
  margin: 0 auto;            
  padding: 0 120px;         
}

.project-card {
  width: 100%;                   
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #8b5cf6;
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
}

.project-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 25px;
  color: rgba(225, 225, 255, 0.9);
  margin-bottom: 12px;
  font-weight: 700;
}

.project-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.project-link {
  color: #8b5cf6;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: #a78bfa;
}

#buttons {
  display: flex;
  flex-direction: row;
  gap: 60px;
  justify-content: center;
  margin: 10px;
}

#conn {
  display: flex;
  flex-direction: column;   
  align-items: center;      
  gap: 20px;               
  text-align: center;
}

/* ==========================================
   MEDIA QUERY (ΜΟΝΟ ΓΙΑ ΚΙΝΗΤΑ)
   ========================================== */
@media (max-width: 968px) {
  #header {
    height: auto;
    padding: 60px 20px;
    align-items: center;
    text-align: center;
  }

  
  #work {
    grid-template-columns: 1fr; 
    padding: 20px 24px;      
    gap: 25px;               
  }

  .project-card {
    max-width: 100%;         
    width: 100%;
    padding: 20px;
  }

  .project-title {
    font-size: 20px; 
    text-align: left;
  }

  .project-card p {
    font-size: 14px; 
    line-height: 1.6;
    text-align: left;
  }

  #me::before {
    left: 50%;
    transform: translateX(-50%); 
  }

  #hello, #name, #soft, #info {
    margin-left: 0 !important;
    justify-content: center;
  }

  #info {
    gap: 20px;
  }
 
  #name::before {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -5px;
    transform: translateX(-50%);
    width: 80px !important;
    margin-right: 0;
  }

  #skill ul {
    gap: 20px;
    padding: 20px;
  }

  #main-content {
    flex-direction: column;
    gap: 50px;
    padding: 40px 20px;
  }

  #services, #about {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  #aboutme {
    margin-right: 0;
  }

  #title3 {
    margin-left: 0;
    padding: 10px 20px;
    text-align: center;
  }

  #talk, #mail {
    margin-left: auto;
    margin-right: auto;
  }
} 
