/* Fonts and basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* Top Bar */
.top-bar {
    background: #333;
    color: white;
    font-size: 0.85rem;
    padding: 5px 0;
    z-index: 1000;
    position: relative
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* responsive wrap */
}

.top-bar-info span {
    margin-right: 15px;
}

.top-bar-socials {
    display: flex;
    gap: 10px;
}

.top-bar-socials .social-icon {
    width: 20px;
    height: 20px;
    display: block;
    transition: transform 0.2s;
}

.top-bar-socials .social-icon:hover {
    transform: scale(1.2); /* subtle hover effect */
}

.top-bar-lang {
    display: flex;
    gap: 6px;
    align-items: center;
}

.top-bar-lang a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.top-bar-lang a:hover {
    text-decoration: underline;
}

/* Navbar */
.navbar {
    background: #fafafa;
    color: #333;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;

}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar a {
    color: #333;
    margin-left: 20px;
    text-decoration: none;
    transition: 0.3s;
}
.navbar a:hover {
    text-decoration: underline;
}

.login-btn, .logout-btn {
    margin-top: 20px;
    display: inline-block;
}
.btn-secondary {
    background: #76c893;
    color: white;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: #1c7c54;
    transform: translateY(-3px);
}

/* Main site logo */
.nav-logo {
    height: 125px;       /* smaller logo height */
    width: auto;        /* keeps aspect ratio */
}

/* Container for partner logos */
.nav-partners {
    display: flex;
    align-items: center;
    gap: 15px;           /* space between logos */
}

/* First secondary logo */
.nav-logo-small-1 {
    height: 50px;        /* custom size for first logo */
    width: auto;
    transition: transform 0.2s;
}

/* Second secondary logo */
.nav-logo-small-2 {
    height: 70px;        /* custom size for second logo */
    width: auto;
    transition: transform 0.2s;
}

/* Optional hover effect for both logos */
.nav-partners img:hover {
    transform: scale(1.1);
}

/* Hamburger hidden on desktop */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Hero */
.hero {
    background: url('images/hero.jpg') no-repeat center center; /* image URL */
    background-size: cover;    /* makes image fill the hero area */
    color: white;              /* keeps text readable */
    padding: 120px 0;
    text-align: center;
}
@keyframes gradientBG {
    0% { background-position:0% 50%; }
    50% { background-position:100% 50%; }
    100% { background-position:0% 50%; }
}



/* Ensure all hero content appears above overlay */
.hero > * {
    position: relative;
    z-index: 1; /* text, buttons, subtitles above overlay */
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;                 /* slightly bolder */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4); /* soft shadow for readability */
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 500;                 /* slightly stronger than normal */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3); /* subtle shadow */
}
.btn-primary {
    background: white;
    color: #1c7c54;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease; /* smooth animation for all changes */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* subtle shadow to lift the button */
}

.btn-primary:hover {
    background: #f0f0f0;
    background: #76c893; /* your accent color */
    color: white;         /* make text readable on accent */
    transform: translateY(-3px); /* slight upward movement on hover */
    box-shadow: 0 6px 12px rgba(0,0,0,0.2); /* a bit bigger shadow */
}

/* Features */
.features {
    padding: 80px 0;
    text-align: center;
}
.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
}

.section-title-contact {
    font-size: 1.4rem;
    margin-bottom: 40px;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}
.feature-card {
    background: #f4f4f4;
    padding: 30px;
    border-radius: 12px;
    transition: 0.3s;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* About */
.about {
    background: #fafafa;
    padding: 80px 0;
    text-align: center;
}

/* Contact */
.contact {
    background: #F3FFF2;
    padding: 40px 0;
    text-align: center;
}

#contact p {
    margin-bottom: 6px;
    line-height: 1.4;
}

.contact-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    width: 24px;
    height: 24px;
    display: block;
}

#contact img {
    width: 24px;
    margin: 8px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Footer links */
.footer a {
    color: #F3FFF2;  /* Example: gold */
    text-decoration: none; /* optional: remove underline */
}

.footer a:hover {
    color: #1c7c54;  /* Example: darker gold on hover */
    text-decoration: underline; /* optional: underline on hover */
}

/* Scroll Smooth */
html {
    scroll-behavior: smooth;
}

/* GLOBAL FIX */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Fix flex overflow everywhere */
.top-bar-content,
.navbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

/* =========================
   MOBILE-FRIENDLY FIXES
   ========================= */

/* Prevent horizontal scroll and make images responsive */
body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Mobile adjustments */
@media (max-width: 768px) {

    /* Top Bar stacking */
    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Navbar stacking */
   .navbar .container {
    display: flex;
    flex-direction: row;       /* logo + hamburger side by side */
    align-items: center;       /* vertical alignment */
    justify-content: space-between; /* logo left, hamburger right */
    gap: 10px;
    position: relative;        /* keep nav absolute below */
    padding: 0 15px;           /* optional spacing */
}
.navbar .logo img {
    max-height: 40px;  /* shrink logo for mobile */
}

/* Hide nav by default on mobile */
.navbar nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fafafa;
    position: absolute;
    top: 100%;
    left: 0;
}

/* Show nav when hamburger is clicked */
.navbar nav.active {
    display: flex;
    flex-direction: column;    /* stack links vertically */
    align-items: center;       /* center links horizontally */
    text-align: center;        /* center text inside links */
    gap: 15px;                 /* space between links */
    width: 100%;               /* optional: make full width */
}



/* Show hamburger */
.hamburger {
    display: block;
}

    /* Hide partner logos on mobile */
    .nav-partners {
        display: none;
    }

    /* Login button full-width */
    .login-btn {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }


    /* Hero section adjustments */
    .hero {
        padding: 60px 20px;
        text-align: center;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero .btn-primary {
        width: 100%;
        max-width: 250px;
        margin: 10px auto 0 auto;
        display: block;
    }

    /* Buttons global */
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 250px;
        margin: 10px auto;
        text-align: center;
    }

    /* Features grid stacks */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* Sections padding adjustments */
    .features,
    .about,
    .contact {
        padding: 40px 15px;
    }

    /* Footer padding smaller */
    .footer {
        padding: 20px 15px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-title-contact {
        font-size: 1.2rem;
    }

    .feature-card {
        padding: 20px;
    }
}