

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* ========================================
   NAVIGATION BAR
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #003366;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo Styles */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo {
    height: 130px;
    margin-top: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    display: inline-block;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* ========================================
   HOME SECTION
   ======================================== */

.home-section {
    /* CSS variables for easy tint/opacity adjustments */
    --home-tint-start: rgba(0,51,102,0.55); /* slightly transparent -> shows image */
    --home-tint-end:   rgba(0,77,153,0.55);
    --home-fallback-bg: #003366;

    /* Use a clean background-image layer and keep gradient via an overlay for better control */
    background-color: var(--home-fallback-bg);
    background-image: url('Images/Background.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    color: #ffffff;
    min-height: calc(100vh - 70px); /* account for fixed navbar height instead of margin hack */
    display: flex;
    align-items: center;
    margin-top: 70px; /* preserved for layout compatibility */
    position: relative;
    overflow: hidden; /* ensure overlay doesn't escape
    */
}

.home-overlay {
    position: absolute;
    inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0 */
    /* gradient with reduced alpha so the image shows through while keeping the blue tint */
    background: linear-gradient(135deg, var(--home-tint-start) 0%, var(--home-tint-end) 100%);
    z-index: 1;
    pointer-events: none; /* allow clicks through overlay if needed */
}

/* Ensure the content sits above the overlay */
.home-content {
    position: relative;
    z-index: 2;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .main-heading,
    .subtitle,
    .description,
    .cta-button {
        animation: none !important;
        transition: none !important;
    }
}

.home-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.main-heading {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.subtitle {
    font-size: 24px;
    margin-bottom: 20px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.description {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-button {
    display: inline-block;
    background-color: #ffffff;
    color: #003366;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    background-color: #f5f5f5;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
    color: #003366;
}

.section-description {
    text-align: center;
    font-size: 18px;
    color: #666666;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h3 {
    color: #003366;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555555;
}

.values-list {
    list-style: none;
    padding-left: 0;
}

.values-list li {
    padding: 12px 0;
    font-size: 16px;
    line-height: 1.8;
    color: #555555;
}

.values-list strong {
    color: #003366;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */

.products-section {
    background-color: #ffffff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-card h3 {
    color: #003366;
    font-size: 22px;
    margin-bottom: 15px;
}

.product-card p {
    color: #666666;
    font-size: 15px;
    line-height: 1.6;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services-section {
    background-color: #f5f5f5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.2);
}

.service-image {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card h3 {
    color: #003366;
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: #666666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card ul li {
    padding: 5px 0;
    color: #555555;
    font-size: 14px;
}

.service-card ul li::before {
    content: "✓ ";
    color: #003366;
    font-weight: bold;
    margin-right: 8px;
}

/* ========================================
   PARTNERS SECTION
   =

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    background-color: #f5f5f5;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    font-size: 30px;
    color: #003366;
}

.contact-item h4 {
    color: #003366;
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-item p {
    color: #666666;
    font-size: 16px;
}

/* Contact Form */
.contact-form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #003366;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #003366;
}

.submit-button {
    width: 100%;
    background-color: #003366;
    color: #ffffff;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
    background-color: #004d99;
    transform: translateY(-2px);
}

/* Success Message */
.success-message {
    display: none;
    background-color: #4CAF50;
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    animation: slideInUp 0.5s ease;
}

.success-message.show {
    display: block;
}

.success-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: #003366;
    color: #ffffff;
    text-align: center;
    padding: 30px 20px;
}

.footer p {
    margin: 0;
    font-size: 15px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets and smaller */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: #003366;
        flex-direction: column;
        text-align: center;
        padding: 30px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 15px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .main-heading {
        font-size: 36px;
    }

    .subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 30px;
    }
}

/* Mobile devices */
@media (max-width: 600px) {
    .logo {
        height: 40px;
    }

    .logo-text {
        font-size: 16px;
    }

    .main-heading {
        font-size: 28px;
    }

    .subtitle {
        font-size: 18px;
    }

    .description {
        font-size: 16px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .products-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* Very small devices */
@media (max-width: 400px) {
    .nav-container {
        padding: 0 15px;
    }

    .logo-text {
        display: none;
    }

    .main-heading {
        font-size: 24px;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }
}
