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

body {
    font-family: 'Poppins', sans-serif;
    color: #e0e0e0;
    background: #06060e;
    line-height: 1.6;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

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

/* Header */
header {
    background: #010213;
    /* Dark Blue */
    color: #e0e0e0;
    border-bottom: 2px solid #007bff;
    /* Blue Accent */
    padding: 1rem 0;
    position: fixed;
    /* Fix the header to the top */
    width: 100%;
    /* Full width */
    top: 0;
    /* Align to the top */
    left: 0;
    /* Align to the left */
    z-index: 1000;
    /* High z-index to ensure it stays above other content */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 2rem;
    color: #e0e0e0;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #007bff;
    /* Blue Accent */
}

/* Adjust the main content padding to account for the fixed header */
main {
    padding-top: 80px;
    /* Adjust this value based on the height of your header */
}

/* Ensure content is not hidden behind the fixed header */
section {
    scroll-margin-top: 80px;
    /* Adjust this value based on the height of your header */
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1020;
    /* Ensure the hamburger icon is visible above other elements */
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #e0e0e0;
    margin: 4px 0;
    transition: 0.4s;
}

/* Active Link Style */
.nav-links a.active,
nav ul li a.active {
    color: #007bff;
    /* Blue Accent or your preferred color */
    font-weight: bold;
    /* Optional: Make the active link stand out more */
}

/* Mobile styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        /* Ensure the hamburger menu is visible on mobile */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        /* Ensure the menu links are above the backdrop */
        transition: opacity 0.3s ease;
        opacity: 0;
        /* Initially hidden */
    }

    .nav-links.show {
        display: flex;
        opacity: 1;
        /* Make the menu links visible */
    }

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

    .nav-links a {
        font-size: 1.5rem;
        /* Increased font size */
        color: #e0e0e0;
        /* Ensure text color is visible */
        transition: color 0.3s;
    }

    .nav-links a:hover {
        color: #007bff;
        /* Blue Accent on hover */
    }

    .nav-links.show::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 900;
        /* Ensure the backdrop is behind the menu links */
        pointer-events: none;
        /* Make the backdrop not intercept clicks */
    }
}

/* Hero Section */
.hero {
    color: #fff;
    text-align: center;
    padding: 6rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: #007bff;
    /* Blue Accent */
    color: #fff;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.cta-button:hover {
    background: #0056b3;
    /* Darker Blue */
}

/* Features Section */
.features {
    background: linear-gradient(135deg, #010213 0%, #0a0a0a 100%);
    padding: 4rem 1rem;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    /* Ensure consistent size */
    color: #007bff;
    /* Blue Accent */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    background: #1c1c1c;
    /* Slightly Lighter Dark */
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.3s;
}

.feature:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    transform: translateY(-10px);
    transition: transform 500ms;
}

.feature:not(:hover) {
    transform: translateY(0px);
    transition: transform 500ms;
}

.feature .icon {
    font-size: 3rem;
    color: #007bff;
    /* Blue Accent */
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature p {
    font-size: 1rem;
    color: #ccc;
}

/* Services Section */
.section {
    padding: 4rem 1rem;
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    /* Ensure consistent size */
    color: #007bff;
    /* Blue Accent */
}

.services {
    background: linear-gradient(135deg, #010213 0%, #001f3f 100%);
    padding: 4rem 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service {
    background: #1c1c1c;
    /* Slightly Lighter Dark */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: box-shadow 0.3s;
}

.service:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.service h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service p {
    font-size: 1rem;
    color: #ccc;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #010213 0%, #0a0a0a 100%);
    padding: 4rem 1rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.about-text {
    max-width: 600px;
}

.about-image img {
    max-width: 100%;
    width: 600px;
    height: 400px;
    background-size: cover;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.7;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #010213 0%, #0a0a0a 100%);
    color: #fff;
    text-align: center;
    padding: 4rem 1rem;
}

.contact p {
    margin-bottom: 2rem;
}

.cta-button {
    background: #fff;
    color: #007bff;
    /* Blue Accent */
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.cta-button:hover {
    background: #0056b3;
    /* Darker Blue */
    color: #fff;
}

/* Footer */
footer {
    background: #010213;
    /* Dark Blue */
    color: #e0e0e0;
    border-top: 2px solid #007bff;
    /* Blue Accent */
    padding: 1rem 0;
    text-align: center;
}

/* Media Queries */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        /* Ensure the hamburger menu is visible on mobile */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        /* Ensure the menu links are above the backdrop */
        transition: opacity 0.3s ease;
        opacity: 0;
        /* Initially hidden */
    }

    .nav-links.show {
        display: flex;
        opacity: 1;
        /* Make the menu links visible */
    }

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

    .nav-links a {
        font-size: 1.5rem;
        /* Increased font size */
        color: #e0e0e0;
        /* Ensure text color is visible */
        transition: color 0.3s;
    }

    .nav-links a:hover {
        color: #007bff;
        /* Blue Accent on hover */
    }

    .nav-links.show::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        /* Ensure the backdrop is behind the menu links */
        pointer-events: none;
        /* Make the backdrop not intercept clicks */
    }

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

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

    .cta-button {
        padding: 0.75rem 1.5rem;
    }

    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        order: -1;
    }
}