/* Reset and General Settings */

/*fonts*/
@font-face {
    font-family: 'Inter Variable';
    src: url('/assets/fonts/inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter Variable';
    src: url('/assets/fonts/inter/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
/*end fonts*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f7f9fc; /* Light calm background */
    color: #333;
    overflow-x: hidden;
}

/* Header */
header {
    position: relative;
    text-align: center;
    padding: 20px 15px;
    background: linear-gradient(to bottom right, rgba(0, 153, 255, 0.8), rgba(0, 153, 255, 0.3)), url('https://source.unsplash.com/featured/?technology');
    background-size: cover;
    color: white;
    overflow: hidden;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

p {
    font-size: 1.5em;
    font-weight: 300;
    position: relative;
    z-index: 2;
    margin: 10px 0;
}

/* Main Content */
main {
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Section */
section {
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

h2 {
    color: #2C3E50;
    margin-bottom: 15px;
    border-bottom: 2px solid #FFA500;
    padding-bottom: 5px;
    font-size: 2.5em;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
}

/* Footer */
footer {
    background: #2C3E50;
    color: white;
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

footer a {
    color: #FFA500;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

/* Falling Cubes */
.falling-cube {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 5px;
    opacity: 0.8;
}

/* Parrot Animation */
.flying-parrot {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    animation: fly 5s linear infinite;
}

@keyframes fly {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
    100% {
        transform: translateY(0);
    }
}

/* About Layout */
.about-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-layout img {
    border-radius: 10px;
    width: 200px;
    height: auto;
    margin-left: 20px;
}

/* Media Queries */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    p {
        font-size: 1.2em;
    }

    h2 {
        font-size: 2em;
    }

    main {
        padding: 30px 10px;
    }

    section {
        padding: 20px;
    }

    .about-layout {
        flex-direction: column;
        align-items: center;
    }

    .about-layout img {
        margin-left: 0;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }

    p {
        font-size: 1em;
    }

    h2 {
        font-size: 1.5em;
    }
}

/* Burger Menu Container */
#burgerMenu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 25px;
    cursor: pointer;
    z-index: 15;
    padding-left: 8px;
    transition: all 0.3s ease;
}

#burgerMenu span {
    background-color: #ffffff; /* White color for the bars */
    height: 4px;
    width: 90%;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Burger Menu - Hover Effect */
#burgerMenu:hover span {
    background-color: #ffa500; /* Hover effect to orange color */
}

/* Active State of the Burger Menu (turns into X) */
#burgerMenu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg); /* Top bar rotates into X */
}

#burgerMenu.active span:nth-child(2) {
    opacity: 0; /* Middle bar fades out */
}

#burgerMenu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg); /* Bottom bar rotates into X */
}


/* Navigation */

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #FFA500; /* Gold */
}

/* Navigation Styles */
nav {
    background: #34495E;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Navigation List (Hidden by default) */
#navList {
    display: none; /* Hide the menu by default */
    top: 0; /* Adjust based on header height */
    flex-direction: column;
    align-items: center;
    background-color: #34495E;
    text-align: center;
    z-index: 10;
    margin: 0 auto;
}

#navList.active {
    display: block; /* Show menu when active */
}

/* Nav Items */
#navList li {
    margin: 15px 0;
}

#navList a {
    color: white;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Hover Effect on Nav Items */
#navList a:hover {
    color: #ffa500; /* Gold color on hover */
}

/* Media query for desktop */
@media (min-width: 768px) {
    #burgerMenu {
        display: none; /* Hide burger menu on larger screens */
    }

    #navList {
        display: flex; /* Show the full menu on larger screens */
        flex-direction: row;
        justify-content: center;
        list-style: none;
    }

    #navList li {
        margin: 0 25px;
    }

}

/* gif */
.gif-container {
    text-align: center;
    /*margin-bottom: 40px;*/
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /*position: relative;*/
}

.gif-container img {
    max-width: 100%;
}

/*cursor*/

/*#custom-cursor {*/
/*    position: fixed;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 20px;*/
/*    height: 20px;*/
/*    background-color: rgba(0, 150, 255, 0.7);*/
/*    border-radius: 50%;*/
/*    pointer-events: none; !* Να μη μπλοκάρει clicks *!*/
/*    transform: translate(-50%, -50%);*/
/*    transition: background-color 0.3s ease;*/
/*    z-index: 10000;*/
/*}*/
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    z-index: 9999;
}

/*about page*/
/* General layout for all sections */
.about-page section {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Headings */
.about-page h1,
.about-page h2 {
    font-weight: 600;
    font-size: 1.75rem;
    color: #1d1d1f;
    margin-bottom: 1rem;
}

/* Paragraphs and list items */
.about-page p,
.about-page li {
    font-weight: 300;
    font-size: 1.15rem;
    color: #6e6e73;
    line-height: 1.6;
    max-width: 600px;
}

/* List styling */
.about-page ul {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.about-page li {
    margin-bottom: 0.5rem;
}

/* Intro section image and layout */
.about-page .intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.about-page .portrait {
    width: 160px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/*home page*/
.homepage {
    padding: 2rem;
    max-width: 1100px;
    margin: auto;
    font-family: sans-serif;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-text h2 {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cta-buttons button {
    background-color: #0077ff;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    margin-right: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-buttons button:hover {
    background-color: #444;
}

.hero-image img {
    width: 250px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/*contact form*/
#contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contact-form label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333333;
}

#contact-form input,
#contact-form textarea {
    padding: 12px 16px;
    border: 1px solid #cccccc;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #fafafa;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #0077ff;
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.1);
    outline: none;
    background-color: #fff;
}

#contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

#contact-form button {
    align-self: flex-start;
    padding: 12px 24px;
    background-color: #000;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#contact-form button:hover {
    background-color: #2C3E50FF;
}


/*home page service section*/

.services {
    display: flex;
    justify-content: center;
    padding: 2rem;
    background-color: #f9f9f9;
}

.service-text {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    text-align: center;
}

.service-text h2 {
    width: 100%;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #222;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item img {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* οβάλ/στρογγυλό */
    object-fit: cover;
    background-color: transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0); /* αρχικά χωρίς σκιά */
}

.service-item:hover img {
    transform: scale(1.08); /* λίγο zoom */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* ελαφριά σκιά */
}

.service-item p {
    margin-top: 0.75rem;
    font-weight: bold;
    color: #333;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.service-item:hover p {
    color: #0077cc; /* ή χρώμα της επιλογής σου */
}

.cta-buttons {
    width: 100%;
    margin-top: 2rem;
    text-align: center;
}

.cta-buttons button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    background-color: #000;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-buttons button:hover {
    background-color: #444;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .service-item {
        max-width: 100%;
    }

    .service-text {
        flex-direction: column;
        align-items: center;
    }
}


/*projects page*/

.project-item {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    gap: 2rem;
    flex-wrap: wrap;
}

.project-item img {
    width: 220px;
    height: 150px;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.project-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.project-info {
    flex: 1;
    max-width: 600px;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-info a {
    color: #0077cc;
    text-decoration: none;
}
.project-info p {
    font-weight: 300;
    font-size: 1.15rem;
    color: #6e6e73;
    line-height: 1.6;
    max-width: 600px;
}

.project-info a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .project-item {
        flex-direction: column;
        text-align: center;
    }

    .project-item img {
        width: 100%;
        height: auto;
    }

    .project-info {
        max-width: 100%;
    }
}

/*services*/

.services-page {
    padding: 2rem;
    font-family: sans-serif;
}

.tab-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tab-button {
    padding: 0.5rem 1rem;
    cursor: pointer;
    background-color: #eee;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}
.tab-button.active {
    background-color: #333;
    color: white;
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

.sub-tabs {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}
.sub-tab-button {
    padding: 0.4rem 0.8rem;
    background-color: #ddd;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.sub-tab-button.active {
    background-color: #555;
    color: white;
}

.sub-tab-content {
    display: none;
    margin-top: 1rem;
}
.sub-tab-content.active {
    display: block;
}

.tab-content img, .sub-tab-content img {
    width: 100px;
    height: auto;
    border-radius: 50%;
    background-color: white;
    padding: 10px;
    transition: transform 0.3s ease;
}

.tab-content img:hover, .sub-tab-content img:hover {
    transform: scale(1.1) rotate(2deg);
}

/* Blog Page Container */
.blogpage {
    height: 100vh;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: system-ui, sans-serif;
    color: #333;
    background-color: #fff;
}

/* Blog Header */
.blog-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.blog-header p {
    font-weight: 300;
    font-size: 1.15rem;
    color: #6e6e73;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto; /* για κεντράρισμα αν χρειαστεί */
}


.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111;
}

.blog-header input[type="search"] {
    width: 100%;
    max-width: 480px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.blog-header input[type="search"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.post-item:hover,
.post-item:focus {
    background-color: #f5faff;
    transform: scale(1.01);
    outline: none;
}

.post-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.post-item h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
}

.post-item:focus h3 {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.5rem 0.9rem;
    font-size: 1rem;
    border: 1px solid #bbb;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pagination button:hover:not(:disabled) {
    background-color: #e7f0ff;
    border-color: #007bff;
}

.pagination button:disabled {
    background-color: #ddd;
    color: #777;
    cursor: default;
}




/* Login Section */
#login-container {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    animation: fadeIn 0.6s ease;
    width: 100%;
}

.login-box {
    background: rgba(220, 220, 220, 0);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.42);
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: zoomIn 0.3s ease;
    transition: box-shadow 0.3s ease;
}

.login-box:hover {
    box-shadow: 0 12px 36px rgb(44, 62, 80);
}

.login-box h1 {
    font-size: 2rem;
    color: #0a0a0a;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-box .subtitle {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.login-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-box input:focus {
    border-color: #007aff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.login-box button {
    width: 100%;
    padding: 0.75rem;
    background-color: #000;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-box button:hover {
    background-color: #2C3E50FF;
}