/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: black;
    color: white;
    line-height: 1.6;
}

.hidden {
    display: none;
}


/* Navbar */
.navbar {
    background: black;
    color: white;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    text-align: center;
    
}

.navbar ul {
    list-style: none;
    display: inline-flex;
    margin: 0;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    color: red;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: white;
}

/*Ηero Section*/

.hero {
    text-align: center;
    background: red;
    color: white;
    padding: 100px 20px;
    margin-top: 50px; /* To avoid overlapping navbar */
    position: relative;

    /*delete*/
    

    
}



.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 6px solid white;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    object-fit: cover; 
    overflow: hidden;
    object-position: left center; 
}

.profile-img:hover {
    transform: scale(1.3);
    cursor: pointer;
}

.hero .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: black;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.hero .btn:hover {
    background: white;
    color: red;
}




/* Profile Info */
.personal-info {
    position: relative;
    width: 90%;
    max-width: 300px;
    text-align: center;
    margin: 40px auto 0; /* Αφήνει κενό πάνω */
    
    padding: 10px;
    background: rgba(0, 0, 0, 0.5); /* Ελαφρύ ημιδιαφανές background αν χρειάζεται */
    border-radius: 10px;
}













/* Sections */
section {
    padding: 50px 20px;
    border-bottom: 1px solid #333;
}

section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
    color: red;
}

.container {
    width: 80%;
    margin: 0 auto;
}

/* About Section */
#about p {
    text-align: center;
    color: #ccc;
    font-size: 1.1em; /* Αυξάνει το μέγεθος των γραμμάτων */
    line-height: 1.6;
}


/* Skills Section */
.skills-list {
    list-style: none;
    padding: 0;
    color: #ccc;
    text-align: center;
}

.skills-list li {
    margin: 10px 0;
}

.skills-list strong{
    font-size: 1.2em;
}
.strong {
    font-size: 1.2em;
}

/* Experience Section */
.experience-item {
    margin-bottom: 20px;
    color: #ccc;
    text-align: center;
}

.experience-item h3 {
    color: red;
    margin-bottom: 5px;
}

/* Projects Section */
#projects {
    background: #111;
    color: white;
    text-align: center;
}

#projects p {
    color: #ccc;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
    margin-top: 40px;
}

.project-card {
    background: #222;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

.project-icon {
    border-radius: 10px;
}

.project-card h3 {
    color: red;
    margin-bottom: 10px;
}

.project-card p {
    color: #eee;
}

.project-links {
    margin-top: 15px;
}

.project-links .btn {
    display: inline-block;
    margin: 5px;
    padding: 10px 15px;
    background: red;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.project-links .btn:hover {
    background: white;
    color: red;
}

/* Certificates Section */
#certificates {
    background: #111;
    color: white;
    text-align: center;
}

#certificates p {
    color: #ccc;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
    margin-top: 40px;
}

.certificate-item {
    background: #222;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.certificate-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

.certificate-img {
    border-radius: 10px;
}

/*
.certificate-img {
    width: 100%;
    max-width: 300px; 
    height: auto; 
    max-height: 250px;
    object-fit: contain; 
    border-radius: 10px;
    display: block;
    margin: 0 auto; 
}
*/




.certificate-item h3 {
    color: red;
    margin-bottom: 10px;
}

/*
.certificate-item {
    background: #222;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 400px;
    overflow-y: auto;

}
*/



.certificate-item p {
    color: #eee;
}

/* Contact Section */
#contact {
    background: #111;
    color: white;
    text-align: center;
}

#contact p {
    color: #ccc;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    margin: 0 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

.social-links img {
    width: 30px;
    height: 30px;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.social-links a:hover img {
    filter: brightness(1);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: red;
}

/* UML History Page Styles */
#uml-history {
    background: #111;
    color: white;
    padding: 50px 20px;
    text-align: center;
}

#uml-history .container {
    max-width: 1000px;
    margin: 0 auto;
}

#uml-history h2 {
    color: red;
    margin-bottom: 20px;
}

#uml-history p {
    color: #ccc;
    margin-bottom: 40px;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 50px 0;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: red;
    transform: translateX(-50%);
}

.timeline-event {
    position: relative;
    width: 45%;
    background: #222;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    margin-bottom: 50px;
}

.timeline-event.left {
    float: left;
    clear: left;
    text-align: left;
    margin-right: 10%;
}

.timeline-event.right {
    float: right;
    clear: right;
    text-align: left;
    margin-left: 10%;
}

.timeline-event::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right: none;
    border-left-color: #222;
}

.timeline-event.left::after {
    right: -20px;
}

.timeline-event.right::after {
    left: -20px;
    transform: rotateY(180deg);
}

.date {
    font-size: 0.9em;
    color: #ddd;
    margin-bottom: 10px;
}

.event-box h3 {
    color: red;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.event-box p {
    color: #eee;
    line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .timeline-event {
        width: 100%;
        float: none;
        margin: 20px 0;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-event::after {
        display: none;
    }

    .navbar ul {
        flex-direction: column;
    }
}

/* Force uniform image size */

.slide-image,
.project-icon,
.certificate-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}




/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: black;
    color: white;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: black;
    color: white;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    text-align: center;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.navbar ul li a {
    color: red;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: white;
}

/* Hero Section */
.hero {
    text-align: center;
    background: red;
    color: white;
    padding: 100px 20px;
    margin-top: 50px;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 6px solid white;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    object-fit: cover; 
}

.profile-img:hover {
    transform: scale(1.3);
    cursor: pointer;
}

.hero .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: black;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.hero .btn:hover {
    background: white;
    color: red;
}



/* Responsive Adjustments */
@media (max-width: 1024px) {
    .container {
        width: 90%;
    }
}

@media (max-width: 60%) {
    .navbar ul {
        flex-direction: column;
    }
    
    .hero {
        padding: 60px 10px;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
    .personal-info {
        width: 100%;
        text-align: center;
        padding: 15px;
         overflow: hidden;
    word-wrap: break-word;
    }
}

@media (max-width: 40%) {
    .hero {
        padding: 40px 5px;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }

    .navbar ul {
        gap: 5px;
    }
    .personal-info {
        width: 100%;
        text-align: center;
        padding: 15px;
    }
}

/*Mobile Menu For Nav*/
.mobile-menu {
    display: none; /* Αρχικά είναι κρυφό */
    background: black;
    padding: 10px;
    text-align: left;
}
.mobile-menu button {
    background: #ff0000;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}
.mobile-menu ul {
    list-style: none;
    padding: 0;
    display: none; /* Αρχικά κρυφό */
}
.mobile-menu ul li {
    padding: 10px 0;
}

.mobile-menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.mobile-menu ul li a:hover {
    color: rgb(0, 255, 234);
}
.mobile-menu ul.active {
    display: block;
}
@media (max-width: 768px) {
    .navbar {
        display: none; /* Απόκρυψη του navbar */
    }
    
    .mobile-menu {
        display: block; /* Εμφάνιση του mobile menu */
    }
}

/*Center the photos of history */
@media (max-width: 768px) {
    .slideshow-container {
        display: flex;
        flex-direction: column; /* Τοποθετεί τις εικόνες κάθετα */
        align-items: center;
    }

    .slide-image {
        width: 90%; /* Μειώνει το πλάτος για καλύτερη εμφάνιση σε κινητά */
        height: auto;
        margin-bottom: 10px; /* Προσθέτει απόσταση μεταξύ των εικόνων */
    }
}

/*
@media (max-width: 768px) {
    .slideshow-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .slide-image,
    .project-icon,
    .certificate-img {
        display: flex;
        justify-content: center;
        align-items: center;
      
    }
}

/*
.slideshow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.slide-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}    width: 100%; /* Εξασφαλίζει ότι οι εικόνες στοιχίζονται σωστά */

/*
.slide-image {
    width: 100%; 
    height: auto; 
    object-fit: cover;
    flex: 0 0 100%; 
}
*/

/*
.slide-image,
.project-icon,
.certificate-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}*/
