/* 🔹 Reset & General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #f4f8fb;
    color: #333;
    scroll-behavior: smooth;
    padding-top: 70px; /* Prevent content from going behind the fixed header */
}

/* 🔹 Fixed Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2c3e50;
    padding: 12px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 🔹 Logo */
.logo img {
    width: 85px;
    height: auto;
}

/* Navigation Menu */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 8px 12px;
    transition: 0.3s ease;
}

nav ul li a:hover {
    color: #00d1ff;
    transform: scale(1.05);
}


/* 🔹 Mobile Navigation (Hidden by Default) */
@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #2c3e50;
        flex-direction: column;
        align-items: center;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.5s ease, opacity 0.5s ease, visibility 0.5s;
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        padding: 15px 0;
    }

    .menu-toggle {
        display: block;
    }
}

/* 🔹 Hamburger Menu */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 12px;
    transition: transform 0.3s ease-in-out;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* 🔹 Sections */
section {
    max-width: 850px;
    margin: 20px auto;
    padding: 15px;
    text-align: center;
}

/* 🔹 Headings */
h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* 🔹 About Us */
.about-content {
    text-align: left;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 🔹 Services */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 10px 0;
    padding: 12px;
    border-radius: 8px;
}

/* 🔹 Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    padding: 10px;
}

.team-member {
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.team-member:hover {
    transform: scale(1.05);
}

.team-member img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
}

.team-member h3 {
    margin: 10px 0 5px;
}

/* 🔹 Contact Form */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

input, textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

button {
    background-color: #004c8c;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #003366;
}

/* 🔹 Scrolling Cards */
.scroll-container {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    overflow: hidden;
}

.right-to-left {
    animation: scrollRightToLeft 7s linear infinite;
}

.left-to-right {
    animation: scrollLeftToRight 7s linear infinite;
}

.scroll-card {
    background: #e1efff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    max-width: 80%;
    margin: auto;
}
.carousel-inner {
    text-align: center;
}


@keyframes scrollRightToLeft {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes scrollLeftToRight {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 🔹 Responsive Design */
@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .scroll-card {
        width: 150px;
        height: auto;
    }

    .right-to-left, .left-to-right {
        animation-duration: 9s; /* Slower animation on mobile */
    }
}
