html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    padding-top: 48px;
    font-family: "Inter", sans-serif;
    color: #1f2937;
    background: #ffffff;
    overflow-x: hidden;
}


/* NAVBAR */

.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: #FCD34D !important;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 48px;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.navbar .container {
    min-height: 48px;
}

.navbar .navbar-nav {
    align-items: center;
}

.navbar .nav-item {
    display: flex;
    align-items: center;
}

.navbar-brand {
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    display: block;
    height: 34px;
    width: auto;
}

.navbar-nav .nav-link {
    padding-top: 0;
    padding-bottom: 0;
    line-height: 48px;
}

.navbar-toggler {
    padding: 0.25rem 0.5rem;
    border: 0;
    line-height: 1;
}

.navbar-toggler:focus {
    box-shadow: none;
}


/* HERO */

.hero {
    height: 100vh;
    background: url('assets/hero_background.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin: 0;
    padding: 0;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-top: 280px;
    margin-left: calc(-50vw + 50%);
    background: rgba(255, 255, 255, 0.5);
    width: 100vw;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero p {
    font-size: 1.3rem;
    color: #000000;
    font-weight: bold;
    max-width: 100%;
    overflow-wrap: anywhere;
}

body.lang-gr .hero p {
    white-space: normal;
}

.btn-primary {
    border-radius: 30px;
    padding: 5px 12px;
    background: transparent !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
    font-size: 0.8rem;
}


/* SECTIONS */

.section {
    padding: 110px 0;
}

.section h2 {
    font-weight: 700;
    text-align: center;
}

.section p {
    color: #6b7280;
}

.bg-light {
    background-color: #f8fafc !important;
}


/* ABOUT SECTION */

#about {
    background-color: #000000;
}

#about h2 {
    color: #FCD34D;
    text-align: left;
    font-size: 2.6rem;
}

#about p {
    color: #ffffff;
}


/* CONTACT SECTION */

#contact .contact-details {
    text-align: left;
}

#contact .contact-details h2 {
    text-align: left;
    font-size: 2.6rem;
}

#contact .contact-card {
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    background-color: #ffffff;
}

#contact .contact-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

#contact .contact-card .form-label {
    font-weight: 600;
}

#contact .contact-card .form-control {
    border-radius: 10px;
}

#contact .contact-card .btn-primary {
    padding: 10px 24px;
}

#contact .contact-card .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#contact .contact-map {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: 14px;
}


/* TEAM SECTION */

#team h2 {
    text-align: center;
}

#team .team-photo-frame {
    width: 100%;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    overflow: hidden;
    background-color: #F8FAFC;
    border-radius: 0.5rem;
}

#team .team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
}


/* INFRASTRUCTURE SECTION */

#infrastructure {
    background: linear-gradient(rgba(15,23,42,0.45), rgba(15,23,42,0.45)), url('assets/infrastructure_background.webp') center/cover no-repeat;
}

#infrastructure .card {
    background-color: #FCD34D !important;
    color: #111827;
}

#infrastructure .infra-gallery-card {
    background-color: #ffffff !important;
}

#infrastructure .infra-gallery-img {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
}

#infrastructure .infra-gallery-label {
    margin-top: 0.65rem;
    margin-bottom: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
}

#infrastructure .infra-gallery-label-nowrap {
    white-space: nowrap;
    font-size: 0.84rem;
}


/* CARDS */

.card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
}

.service-card {
    background-color: #FCD34D !important;
}


/* CONTAINER WIDTH */

.container {
    max-width: 1100px;
}


/* FOOTER */

.footer {
    background: #ffffff;
    color: #1f2937;
    padding: 20px 0;
}

.footer p {
    opacity: 0.7;
}

.footer img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.footer-logos {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0;
    flex-wrap: nowrap;
}

.footer-logo-slot {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.footer-logo {
    width: 100%;
    max-height: 64px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .footer-logos {
        --bs-gutter-x: 1rem;
    }

    .footer-logo {
        max-height: 72px;
    }
}

/* REVEAL ANIMATION */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* HERO GLOW */

.hero {
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(0,123,255,0.15),
        transparent 70%
    );
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}


/* BUTTON IMPROVEMENT */

.btn-primary {
    border-radius: 30px;
    padding: 10px 25px;
    transition: 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}


/* NAVBAR SHADOW ON SCROLL */

.navbar.scrolled {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* DARK THEME */

body.dark-theme {
    background-color: #111827;
    color: #e5e7eb;
}

body.dark-theme .navbar {
    background: rgba(20,20,25,0.95) !important;
}

body.dark-theme .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

body.dark-theme .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.dark-theme .navbar .nav-link,
body.dark-theme .navbar .navbar-brand {
    color: #e5e7eb !important;
}

body.dark-theme .section.bg-light {
    background-color: #1f2937 !important;
}

body.dark-theme .card {
    background-color: #1e293b;
    color: #e5e7eb;
}

body.dark-theme .service-card {
    background-color: #FCD34D !important;
    color: #111827;
}

body.dark-theme #infrastructure .card {
    background-color: #FCD34D !important;
    color: #111827;
}

body.dark-theme #infrastructure .infra-gallery-card {
    background-color: #ffffff !important;
}

body.dark-theme #team .team-photo-frame {
    background-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .footer {
    background-color: #0f172a;
    color: #e5e7eb;
}

body.dark-theme #contact .contact-card {
    background-color: #1f2937;
    color: #e5e7eb;
    border: 1px solid #374151;
}

body.dark-theme #contact .contact-card .form-label {
    color: #e5e7eb;
}

body.dark-theme #contact .contact-card .form-control {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

body.dark-theme #contact .contact-card .form-control:focus {
    background-color: #374151;
    border-color: #60a5fa;
    color: #e5e7eb;
}

/* Service images proportionate */
.service-img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    display: block;
}

body.dark-theme .section .btn-primary {
    background-color: #2563eb !important;
    border-color: #ffffff !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

body.dark-theme .section .btn-primary:hover {
    background-color: #1d4ed8 !important;
    border-color: #ffffff !important;
}

body.dark-theme #contact .contact-card .btn-primary {
    background-color: #2563eb !important;
    border-color: #ffffff !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

body.dark-theme #contact .contact-card .btn-primary:hover {
    background-color: #1d4ed8 !important;
    border-color: #ffffff !important;
}

/* DARK MODE TOGGLE BUTTON - Lovable style */

.btn-toggle {
    background-color: #f3f4f6; /* light gray */
    color: #111827; /* dark text */
    border: none;
    border-radius: 999px; /* pill shape */
    padding: 5px 0;
    width: 42px;
    height: 34px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle:hover {
    background-color: #e5e7eb; /* slightly darker on hover */
    transform: translateY(-1px);
}

body.dark-theme .btn-toggle {
    background-color: #1f2937; /* dark gray in dark mode */
    color: #f3f4f6;
}

body.dark-theme .btn-toggle:hover {
    background-color: #374151; /* slightly lighter hover */
}

.btn-toggle i {
    font-size: 1rem;
    vertical-align: middle;
}

@media (max-width: 991.98px) {
    .navbar {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .navbar .container {
        justify-content: space-between;
        flex-wrap: wrap;
        align-items: center;
        row-gap: 0.5rem;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }

    .navbar-brand,
    .navbar-toggler {
        position: relative;
        z-index: 1;
    }

    .navbar .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
    }

    .navbar .navbar-nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        width: 100%;
        margin-left: 0 !important;
        align-items: center;
        padding-top: 0.5rem;
        gap: 0.25rem;
    }

    .navbar .nav-item {
        width: 100%;
        justify-content: flex-start;
    }

    .navbar .nav-item:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .navbar .nav-item:nth-last-child(2) {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        justify-content: flex-end;
    }

    .navbar .nav-item:last-child {
        grid-column: 3;
        grid-row: 1;
        width: auto;
        justify-content: flex-end;
    }

    .navbar .nav-item:not(:first-child):not(:nth-last-child(2)):not(:last-child) {
        grid-column: 1 / -1;
    }

    .navbar-nav .nav-link {
        width: 100%;
        line-height: 1.4;
        padding: 0.5rem 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .navbar .nav-item.ms-2 {
        margin-left: 0 !important;
        margin-top: 0;
    }

    .navbar .btn-toggle {
        align-self: flex-start;
    }
}
