/* Βασικές Μεταβλητές (Προσαρμόζεις τα χρώματα εδώ) */
:root {
    --primary-bg: #111111;
    --text-light: #ffffff;
    --accent-red: #d32f2f; /* Προσαρμογή στο κόκκινο του hover/button σου */
    --overlay-color: rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif; /* Αντικατέστησε με το font σου */
}

body {
    background-color: var(--primary-bg);
    color: var(--text-light);
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    height: 10%;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.logo-container {
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 1001;
}

.logo {
    height: 200px;
    width: auto;
    float: left;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}
.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--accent-red);
}

.nav-profile-menu {
    position: relative;
    align-self: flex-start;
}

.nav-profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1100;
    min-width: 150px;
    padding: 8px 0;
    list-style: none;
    display: none;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-profile-dropdown[hidden] {
    display: none;
}

.nav-profile-menu.show-dropdown .nav-profile-dropdown {
    display: block;
}

.nav-profile-dropdown a {
    display: block;
    padding: 10px 14px;
    white-space: nowrap;
}

.burger-menu {
    display: none;
    cursor: pointer;
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1100;
}

.burger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    margin: 6px;
    background-color: var(--text-light);
    transition: 0.3s ease;
}

.burger-menu.active span {
    background-color: var(--accent-red);
}

/* --- RESPONSIVE NAVIGATION --- */
@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background-color: var(--primary-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
        z-index: 1050;
    }
    .nav-links.nav-active {
        right: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
    }

    .nav-profile-menu {
        display: flex;
        flex-direction: column;
        align-self: center;
        align-items: center;
        width: 100%;
    }

    .nav-profile-menu > a,
    .nav-profile-dropdown a {
        text-align: center;
    }

    .nav-profile-dropdown {
        display: none;
        position: static;
        min-width: 0;
        margin-top: 8px;
        text-align: center;
    }

    .nav-profile-menu.show-dropdown .nav-profile-dropdown {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
        padding: 0;
    }
}
/* --- TO ΜΥΣΤΙΚΟ ΓΙΑ ΤΟ PARALLAX --- */
.parallax-section {
    position: relative;
    height: 100vh; 
    /* Αυτές οι 3 γραμμές κάνουν την εικόνα να μένει ακίνητη στο scroll (καρφιτσωμένη) */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    display: flex;
    align-items: center;
}

/* Ορισμός των φόντων για κάθε Parallax Section */
.hero-bg {
    background-image: url('assets/barbershop1.jpg');
}
.about-bg {
    background-image: url('assets/barbershop2.jpg');
}
.barbers-bg {
    background-image: url('assets/barbershop3.jpg');
}

/* Σκούρο φίλτρο πάνω από τις εικόνες για να διαβάζονται τα γράμματα */
.content-overlay {
    background-color: var(--overlay-color);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
}

/* --- SOLID SECTIONS (Tα επίπεδα που γλιστράνε από πάνω) --- */
.solid-section {
    background-color: #0a0a0c; /* Ένα κλικ πιο σκούρο/μπλε από το μαύρο */
    padding: 100px 10%;
    min-height: 60vh;
    position: relative;
    z-index: 10; /* Διασφαλίζει ότι θα περάσει ΠΑΝΩ από το parallax */
}

/* --- BUTTONS --- */
.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    margin-top: 20px;
    transition: 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--text-light);
    color: var(--primary-bg);
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.service-card {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
}

.service-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.service-card h3 {
    margin-top: 16px;
    font-size: 16px;
}

.service-price {
    margin-top: 10px;
    color: var(--accent-red);
    font-size: 20px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
}

/* --- BOOKING --- */
.booking {
    max-width: 760px;
    margin-top: 32px;
}
.booking-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
}
.booking-form label {
    align-self: end;
    color: var(--text-light);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.booking-form select {
    width: 100%;
    min-height: 54px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 0;
    background-color: #171719;
    color: var(--text-light);
    font-size: 16px;
}
.booking-form select:focus-visible,
.booking-submit:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 3px;
}
.booking-submit {
    grid-column: 1 / -1;
    width: fit-content;
    margin-top: 12px;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 600px) {
    .booking-form {
        grid-template-columns: 1fr;
    }
    .booking-submit {
        width: 100%;
    }
}

.calendar-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.calendar-nav {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}

.calendar-nav:disabled {
    opacity: 0.5;
}

.calendar-weekdays, .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 4px;
}

.calendar-weekdays span {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-light);
    padding-bottom: 8px;
    text-transform: uppercase;
}

.calendar-day, .calendar-spacer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.calendar-day {
    background-color: #171719;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    cursor: pointer;
    transition: 0.2s ease;
}

.calendar-day:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.1);
}

.calendar-day:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-day.is-selected {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.time-slot {
    padding: 10px 5px;
    background-color: #171719;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: 0.2s ease;
    cursor: pointer;
    transition: 0.2s ease;
}

.time-slot:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.time-slot.is-selected {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.appointment-picker {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

customer-details {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.booking-field label {
    align-self: center;
    text-align: left;
}

.booking-field input {
    width: 100%;
    min-height: 54px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 0;
    background-color: #171719;
    color: var(--text-light);
    font-size: 16px;
}

.booking-field input:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 3px;
}

.booking-handoff {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

@media (max-width: 600px) {

    .appointment-picker, .booking-field {
        grid-template-columns: 1fr;
    }

    .booking-field {
        gap: 8px;
    }

    .booking-handoff {
        text-align: left;
    }
}
/* --- FOOTER --- */
.footer-bg {
    background-color: #000;
    padding: 80px 10% 40px;
    position: relative;
    z-index: 10;
}
.footer-container {
    display: flex;
    justify-content: space-between;
}

.copyright {
    text-align: center; 
    margin: 20px 0;
    font-size: 0.8rem;
}

.profile-page {
    min-height: 100vh;
}

.profile-page .logo {
    height: 120px;
}

.profile-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 72vh;
    padding: 150px 20px 70px;
}

.profile-card {
    width: min(100%, 620px);
    padding: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #0a0a0c;
}

.profile-card h1 {
    margin-top: 12px;
    font-size: clamp(34px, 8vw, 52px);
    letter-spacing: 2px;
}

.profile-form {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.profile-form label {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.profile-form input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0;
    background: #171719;
    color: var(--text-light);
    font-size: 16px;
}

.profile-form input:disabled,
.profile-form input[readonly] {
    opacity: 0.72;
}

.profile-form input:focus-visible,
.profile-actions button:focus-visible,
.profile-delete:focus-visible {
    outline: 2px solid var(--accent-red);
    outline-offset: 3px;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.profile-actions button,
.profile-delete {
    min-width: 100px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    color: var(--text-light);
    font: inherit;
    cursor: pointer;
}

.profile-actions button:hover:not(:disabled) {
    background: var(--text-light);
    color: var(--primary-bg);
}

.profile-actions button:disabled,
.profile-delete:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.profile-delete {
    margin-top: 28px;
    border-color: var(--accent-red);
    color: #ff8b8b;
}

.profile-delete:hover:not(:disabled) {
    background: var(--accent-red);
    color: #fff;
}

.profile-status {
    min-height: 24px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.profile-status.is-error {
    color: #ff8b8b;
}

.social-icon img {
    width: 32px;
    height: auto;
    transition: opacity 0.3s ease;
    filter: brightness(0) invert(1);
}

.social-icon img:hover {
    opacity: 0.7;
}

@media (max-width: 600px) {
    .profile-card {
        padding: 30px 22px;
    }
}

.legal-section {
    padding-top: 250px;
    min-height: 80vh;
}

@media (max-width: 768px) {
    .legal-section {
        padding-top: 180px; 
    }
}