/* Reset box-sizing for all elements */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Scroll padding for sections to prevent content from being hidden by the navbar */
html {
    scroll-padding-top: 70px; /* Adjust this value based on your navbar height */
}

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

/* Body Styling */
body {
    color: #333;
    line-height: 1.6;
    font-family: 'Roboto', Arial, sans-serif;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation Bar */
nav {
    background-color: #002244;
    padding: 0 0;
    position: fixed; /* Fixes the nav bar at the top */
    width: 100%;
    z-index: 999;
    height: 70px; /* Define the height explicitly */
    align-items: center; /* Align items vertically */
    display: flex;
    justify-content: space-between;
}

/* Language Toggle Button Styling */
#language-toggle {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect */
#language-toggle:hover {
    background-color: #00aaff;
    color: #fff;
    border-color: #00aaff;
}

/* Mobile adjustments - Hide or move the button below the hamburger */
@media (max-width: 768px) {
    #language-toggle {
        position: absolute;
        top: 1rem;
        right: 4rem; /* Move the button away from the hamburger */
        font-size: 0.9rem;
    }

    /* Option to hide the button entirely on mobile */
    /* #language-toggle {
        display: none; 
    } */
}


nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem; /* Add padding inside the container */
}

nav .logo img {
    width: 100%;
    max-width: 200px; /* Adjust as needed */
    height: auto;
    display: block;
}

nav .nav-links {
    list-style: none;
    display: flex;
    margin: 0;
}

/* Navigation Links - Desktop */
.nav-links {
    display: flex; /* Show links in desktop mode */
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.nav-links a:hover {
    color: #00aaff;
}

/* Hamburger Menu Icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1000;
    position: fixed;
    top: 1rem;
    right: 1rem;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: all 0.3s ease-in-out; /* Smooth transition for rotation */
}

/* Transform Hamburger into 'X' when active */
.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg); /* Move down and rotate */
}

.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0; /* Hide the middle bar */
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg); /* Move up and rotate */
}

/* Hamburger Menu - Mobile View */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Show hamburger menu on mobile */
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: #002244;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 998;
        padding: 2rem; /* Add padding inside the nav links */
        overflow-y: auto; /* Allow scrolling if content exceeds viewport */
    }

    .nav-links.nav-active {
        transform: translateX(0); /* Slide in the nav links when menu is active */
    }

    .nav-links li {
        margin: 1.5rem 0;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
        display: block;
        width: 100%;
    }
}


/* Hero Section Adjustments */
.hero {
    position: relative;
    background: url('images/hero-background.jpg') no-repeat center center/cover;
    height: 100vh;
    padding-top: 70px; /* Adjust this value to match the navbar height */
}

.hero .overlay {
    background-color: rgba(0, 0, 34, 0.7); /* Slightly darker overlay for better text readability */
    color: #fff;
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 0; /* Reduced from 2rem */
    text-align: center;
}

/* Hero Section Tagline Styling */
.hero-text h1 {
    font-size: 3rem; /* Emphasize the tagline */
    color: #ffffff; /* Make the text stand out */
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.1rem; /* Slight spacing for elegance */
    margin-bottom: 1.5rem;
    line-height: 1.3;
    opacity: 0; /* Start with hidden text */
    animation: fadeIn 3s ease-in-out forwards; /* Smooth fade-in effect */
}

/* Fade-in Keyframe Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Optional: Fade-in for the paragraph under the tagline */
.hero-text .mission {
    font-size: 1.1rem;
    color: #f1f1f1;
    text-align: center;
    margin-top: 1rem;
    opacity: 0; /* Initially hidden */
    animation: fadeIn 4s ease-in-out forwards; /* Slight delay for softer appearance */
    animation-delay: 0.5s; /* Delayed start to stagger the fade-in */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-text {
        padding: 0.5rem 0; /* Further reduced padding on small screens */
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text .tagline {
        font-size: 1.2rem;
    }

    .hero-text .mission {
        font-size: 1rem;
    }
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #002244;
}

.section p {
    font-size: 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Performance Section */
.performance {
    text-align: center;
}

.performance-image-container {
    max-width: 800px;
    margin: 0 auto 1rem;
}

.performance-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.performance .disclaimer {
    font-size: 0.9rem;
    color: #666;
    max-width: 800px;
    margin: 0.5rem auto 0;
    text-align: left;
    line-height: 1.5;
}

/* About Us Section */
.about-us .company-intro {
    margin-bottom: 2rem;
    text-align: center;
}

.about-us .company-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

.about-us .company-intro p strong {
    color: #002244;
    font-size: 1.2rem;
}

/* Team Members Grid */
.about-us .team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.about-us .team-member {
    flex: 1 1 300px;
    max-width: 350px;
    text-align: center;
}

.about-us .team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.about-us .team-member h3 {
    font-size: 1.5rem;
    color: #002244;
    margin-bottom: 0.5rem;
}

.about-us .team-member .title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 1rem;
}

.about-us .team-member p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    text-align: left;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .about-us .team-members {
        flex-direction: column;
        align-items: center;
    }

    .about-us .team-member {
        max-width: 100%;
    }

    .about-us .team-member p {
        text-align: center;
    }
}

/* Blog Section */
.blog {
    background-color: #ffffff;
    padding: 4rem 0;
}

.blog h2 {
    color: #002244;
    margin-bottom: 1rem;
    text-align: center;
}

.blog-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.blog-post {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.blog-post-content {
    padding: 2rem;
}

.blog-post h3 {
    color: #002244;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    line-height: 1.5;
    font-weight: 600;
}

.blog-meta {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    align-items: center;
}

.blog-date {
    color: #666;
    font-weight: 500;
}

.blog-category {
    background-color: #00aaff;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.read-more-btn {
    display: inline-block;
    color: #00aaff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: #002244;
    text-decoration: underline;
}

.blog-cta {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin-top: 3rem;
}

.blog-cta p {
    margin-bottom: 2rem;
    color: #666;
    font-size: 1.2rem;
    line-height: 1.6;
}

.blog-cta-btn {
    display: inline-block;
    background-color: #002244;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.blog-cta-btn:hover {
    background-color: #00aaff;
}

/* Blog loading and error states */
.blog-loading {
    text-align: center;
    padding: 3rem 1rem;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00aaff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.blog-loading p {
    color: #666;
    font-size: 1.1rem;
}

.blog-error {
    text-align: center;
    padding: 3rem 1rem;
    grid-column: 1 / -1;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.blog-error p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Mobile responsiveness for blog section */
@media (max-width: 1024px) {
    .blog-posts {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-post-content {
        padding: 1rem;
    }
    
    .blog-post h3 {
        font-size: 1.2rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Disclosure Section */
.disclosure {
    background-color: #f9f9f9;
    padding: 2rem 0;
}

.disclosure h2 {
    text-align: center;
    color: #002244;
    margin-bottom: 2rem;
}

.disclosure p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    color: #333;
}

.disclosure p strong {
    color: #002244;
}

.disclosure p:last-child {
    margin-bottom: 0;
}


/* Contact Form */
.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact label {
    margin-top: 1rem;
    font-weight: bold;
}

.contact input,
.contact textarea {
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact textarea {
    resize: vertical;
    min-height: 150px;
}

/* Contact form - message box and button styling */
.contact form textarea {
    width: 100%;
    height: 150px;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 1.5rem; /* Add space below the message box */
}

/* Submit Button */
.contact form button {
    padding: 0.75rem 1.5rem;
    background-color: #002244;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1.5rem; /* Add space above the button */
}

.contact form button:hover {
    background-color: #001122;
}

/* Contact Section Styles */

.contact form button:hover {
    background-color: #001122;
}

/* Email Paragraph */
.contact p {
    margin-top: 1.5rem; /* Adjust spacing here */
    font-size: 1.1rem;
    color: #555;
}

/* Email Link */
.contact p a {
    color: #002244;
    text-decoration: none;
    font-weight: bold;
}

.contact p a:hover {
    text-decoration: underline;
}


/* Thank You Section */
.thank-you {
    text-align: center;
    padding: 4rem 0;
}

.thank-you h2 {
    font-size: 2.5rem;
    color: #002244;
    margin-bottom: 1.5rem;
}

.thank-you p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
}

.thank-you .cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #002244;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
}

.thank-you .cta-button:hover {
    background-color: #001122;
}

/* Footer */
footer {
    background-color: #002244;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }

    nav .nav-links li {
        margin: 0;
        margin-top: 1rem;
    }

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

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