/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    overflow-x: auto;
    overflow-y: auto; /* allow vertical scrolling */
}

.tagline {
    font-size: 1rem;
    color: #d9f1ff;
    margin-bottom: 2rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #002855;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    width: 50px;
    height: 50px;
    margin-right: 100px;
}

.main-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffcc00;
}

/* Horizontal container */
.horizontal-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 50px 20px;
}

/* Sections */
.section {
    flex: 0 0 400px; /* fixed width for horizontal layout */
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
}

/* Section headings */
.section h2 {
    margin-bottom: 5px;
    font-size: 2.5rem;
    color: #002855;
}

/* ====== Hero Section ====== */
.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.hero .carousel {
    position: relative;
    max-width: 600px;
    margin: 20px auto;
}

/* Section content */
.section p, .section ul {
    font-size: 15px;
    color: #555;
}

/* Carousel */
.carousel {
    width: 70%;
    max-width: 600px;
    margin: 0 auto 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    height: 350px; /* default height */
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    border-radius: 10px;
}

.carousel img.active {
    display: block;
    animation: fade 1.5s ease-in-out;
}

.carousel .prev,
.carousel .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    padding: 5px 10px;
    cursor: pointer;
    color: greenyellow;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    user-select: none;
}

.carousel .prev { left: 10px; }
.carousel .next { right: 10px; }

.carousel .dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

.carousel .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.carousel .dot.active { background-color: #ffe600; }


/* Language Selector */
/* ===== Language Dropdown ===== */
.language-selector {
  position: relative;
  margin-left: 20px;
}

.language-selector select {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 6px;
    padding: 6px 32px 6px 10px;
    font-size: 0.9rem;
    font-weight: 500;
    appearance: none; /* Remove default arrow */
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

/* Custom dropdown arrow */
.language-selector::after {
    content: "▼";
    font-size: 0.6rem;
    color: #ffffff;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.language-selector select:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffcc00;
}

/* Dropdown menu styling */
.language-selector option {
    background-color: #002855;
    color: white;
}

#language-select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    background-color: white;
    color: #002855;
    cursor: pointer;
    transition: border-color 0.3s;
}

#language-select:hover {
    border-color: #ffcc00;
}



/* Particle Background */
#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #004aad, #00b4d8);
}


/* Countdown */
#countdown {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

#countdown div {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 15px 10px;
    width: 70px;
}

#countdown span {
    font-size: 1.8rem;
    font-weight: 600;
    display: block;
}

#countdown p { font-size: 0.9rem; }


* Subscribe */
.subscribe p {
    margin-top: 1rem;
    font-size: 1rem;
}

.subscribe-form {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.subscribe-form input {
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 25%;
    font-size: 1rem;
}

.subscribe-form button {
    padding: 10px 20px;
    background: #fff;
    color: #004aad;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.subscribe-form button:hover { background: #e5e5e5; }



/* ====== Services Section ====== */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 50px 40px;
    justify-items: center;
    background-color: #f9f9f9;
}

.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.service-card h3 {
    color: #002855;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.service-card p {
    color: #555;
    font-size: 0.95rem;
}

/* Social Icons */
.socials {
    margin: 25px 0;
}

.socials img {
    width: 32px;
    margin: 0 8px;
    transition: transform 0.3s ease;
}

.socials img:hover {
    transform: scale(1.2);
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Footer */
footer {
    text-align: center;
    background-color: #002855;
    color: white;
    padding: 10px;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .carousel { width: 95%; height: 250px; }
    .logo-container h1 { font-size: 1.4rem; }
    .hero h2 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    header { padding: 15px 25px; }
}

/* ====== Responsive Enhancements ====== */

/* Medium devices (tablets and small laptops) */
@media (max-width: 992px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    .logo-container img { margin-right: 20px; }

    .hero { padding: 40px 15px; }

    .hero .carousel {
        width: 90%;
        height: 280px;
    }

    .section h2 { font-size: 2rem; }
}

/* Small devices (phones) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-container img {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .horizontal-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .section {
        flex: 0 0 auto;
        width: 90%;
    }

    .carousel {
        width: 100%;
        height: 220px;
    }

    .service-card { max-width: 90%; }

    .hero h2 { font-size: 1.8rem; }

    .hero p { font-size: 1rem; }

    footer {
        padding: 15px;
        font-size: 0.9rem;
    }
}

/* Extra small screens (below 480px) */
@media (max-width: 480px) {

    .hero h2 { font-size: 1.6rem; }

    .service-card h3 { font-size: 1.2rem; }

    .service-card p { font-size: 0.9rem; }

    .carousel { height: 180px;  }
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
}

@media (max-width: 768px) {

    .hamburger { display: block; }

    .main-nav {
        display: none;
        width: 100%;
        text-align: center;
        background-color: #002855;
        margin-top: 10px;
        border-radius: 8px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }

    .main-nav.show {
        display: flex;
    }
}


@media (max-width: 768px) {
    .language-selector {
        margin-top: 10px;
    }

    header {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}