/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}


body {
    background-color: #ffffff;
    color: #1b2b48;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background-color: #0b295c;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
}

/* Hamburger Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: absolute;
    /* 👈 stays at top even when menu opens */
    top: 20px;
    /* 👈 adjust as per your layout */
    right: 20px;
    /* 👈 keep it on top-right */
    z-index: 999;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    display: block;
    border-radius: 2px;
}

.navbar .MD-India img {
    /* position: absolute; */
    width: 6.5rem;
    height: 6.5rem;

}

.image_container {
    display: flex;
    gap: 25px;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 24px;
    /* transition: all 0.3s ease; */
}

.navbar a:hover {
    font-size: 1.2rem;
    transform: scale(1.1);
}

/* Hero Section */
.hero-section {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 3rem 2rem;
    background-color: #0b295c;
    color: white;
}

.hero-text {
    max-width: 42rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}


.tags span {
    background: white;
    color: #0b2a60;
    padding: 0.2rem 0.8rem;
    margin-right: 0.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.4rem;
}

.tags span:hover {
    font-size: 1.6rem;
    transform: scale(1.5);
}

.hero-buttons {
    margin-top: 1.5rem;
}

.hero-buttons a {
    text-decoration: none;
    color: white;
}

.secondary {
    border: 2px solid white;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 8px;
}

.secondary:hover {
    background-color: white;
    color: #0b2a60;
    font-size: 1.15rem;
    transform: scale(1.15);
}

button.primary {
    padding: 0.6rem 1.5rem;
    margin-right: 1rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
}

button.primary {
    background: white;
    color: #0b2a60;
    margin-bottom: 5px;
}

button.secondary {
    background: #102c6f;
    color: white;
    border: 1px solid white;
}

button.primary:hover {
    background-color: #0b2a60;
    color: white;
    border: 2px solid white;
    border-radius: 8px;
}


.hero-image img {
    max-width: 600px;
    height: 400px;
    border-radius: 8px;
}

/* About Section */
.about-main {
    padding: 4rem 3rem;
    background: #f8f9fa;
    display: flex;
    padding: 2rem 1rem;
    width: 100%;
    height: 50vh;
}

.about {
    display: flex;
    flex-direction: column;
    position: relative;
    left: 30px;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-syntax {
    max-width: 70%;
}

.about-syntax>p {
    font-size: 24px;
}

.learn {
    margin: 15px;
}

.learn-more a {
    margin-bottom: 20px;
}

.learn-more {
    background: #0b2a60;
    color: white;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.5rem;
    margin-top: 2.8rem;
    cursor: pointer;
    max-width: 20rem;
    text-decoration: none;
}

.learn-more:hover {
    background: white;
    color: #0b2a60;
    border: 2px solid #0b2a60;
}

/* .button-img {
    display: flex;
    justify-content: space-between;
} */

.about-image img {
    height: 400px;
    width: 650px;
    padding-right: 50px;
}

/* Panel Section */

.panel-div {
    display: flex;
    flex-direction: column;
}

.panel-div-2 {
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.panel-section-2 {
    display: flex;
    justify-content: space-between;
    padding: 3rem 2rem;
    background: #f8f9fa;
}

.panel-section {
    display: flex;
    justify-content: space-between;
    padding: 3rem 2rem;
    background: #fff;
}

.panel-text {
    flex: 1;
    margin-left: 2rem;
}

.panel-head h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.panel-text ul {
    list-style: disc;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.panel-text ul li {
    font-size: 18px;
}

.img-section {
    display: flex;
    flex-direction: column;
}

.features-icons span {
    display: inline-block;
    margin-right: 1rem;
    margin-top: 0.5rem;
    background: #f1f1f1;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.panel-image1 img {
    /* width: 40%; */
    padding-left: 20px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.panel-image2 img {
    /* width: 40%; */
    padding-right: 20px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #0b2a60;
    color: white;
    padding: 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-left {
    padding-left: 20px;
}

.footer-left,
.footer-right {
    flex: 1;
    margin: 1rem;
}

.footer-left h4,
.footer-right h4 {
    margin-bottom: 0.5rem;
}

.footer-left p,
.footer-right p {
    font-size: 0.9rem;
    margin: 0.3rem 0;
    font-size: 22px;
}

.footer-right a {
    text-decoration: underline;
    color: white;
    font-size: 22px;
}

@media screen and (max-width: 768px) {

    /* Navbar adjustments for better mobile experience */
    .hamburger {
        display: flex;
        padding: 5px;
        margin-right: 10px;
        position: absolute;
        /* Keep it fixed for better accessibility */
        top: 20px;
        right: 20px;
        z-index: 999;
        /* Ensure it's above other content */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #0b2a60;
        position: absolute;
        /* Use fixed to cover content when open */
        top: 0;
        /* Align to the top */
        right: 0;
        width: 100%;
        /* height: 100%; */
        /* Take full height when open */
        padding: 60px 20px 20px;
        /* Adjust padding for hamburger */
        z-index: 998;
        /* Below hamburger but above other content */
        justify-content: flex-start;
        /* Align items to the top */
        align-items: end;
        /* Center items horizontally */
        overflow-y: auto;
        /* Enable scrolling for long menus */
    }

    .nav-links.active {
        display: flex;
        /* width: 100%; */
        /* Ensure full width when active */
    }

    .nav-elements {
        background-color: #f1f1f1;
        position: fixed;
        right: 0;
        opacity: 95%;

    }

    .nav-elements li a {
        list-style: none;
        color: #0b295c;

    }

    .navbar {
        flex-direction: row;
        /* Keep logo and hamburger on one line */
        justify-content: space-between;
        /* Space out logo and hamburger */
        align-items: center;
        padding: 1rem;
    }

    .navbar .image_container {
        display: flex;
        align-items: center;
        gap: 10px;
        /* Reduce gap for smaller screens */
    }

    .navbar .MD-India img {
        width: 3.5rem;
        /* Adjust size for mobile */
        height: 3.5rem;
    }

    .navbar .logo img {
        width: 100px;
        /* Adjust logo size for mobile */
        height: auto;
        /* Maintain aspect ratio */
    }

    .navbar ul {
        flex-direction: column;
        gap: 1.5rem;
        /* Increase gap for better touch targets */
        width: 100%;
        text-align: center;
        /* Center menu items */
    }

    .navbar a {
        font-size: 1.5rem;
        /* Increase font size for readability */
        padding: 0.8rem 0;
    }

    /* Hero Section */
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .tags span {
        font-size: 1.2rem;
        /* Adjust tag font size */
        padding: 0.1rem 0.6rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        /* Space out buttons */
        margin-top: 1.5rem;
        align-items: center;
        /* Center buttons */
    }

    button.primary,
    .secondary {
        width: 80%;
        /* Make buttons take more width */
        max-width: 250px;
        /* Limit max width */
    }

    .hero-image img {
        max-width: 100%;
        height: auto;
        /* Maintain aspect ratio */
        margin-top: 2rem;
    }

    /* About Section Improvements */
    .about-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1rem;
        /* Consistent padding */
        height: auto;
        /* Allow content to dictate height */
    }

    .about {
        width: 100%;
        /* Occupy full width */
        left: 0;
        /* Remove left offset */
        padding: 0 1rem;
        /* Add horizontal padding */
    }

    .about h2 {
        font-size: 2rem;
        /* Adjust heading size */
        margin-bottom: 1rem;
    }

    .about-syntax {
        max-width: 100%;
        /* Allow text to take full width */
        margin-bottom: 1.5rem;
        /* Space below text */
    }

    .about-syntax>p {
        font-size: 1rem;
        /* Adjust paragraph font size for mobile readability */
        line-height: 1.5;
        /* Improve line spacing */
    }

    .about-button {
        display: flex;
        /* Use flex to center the button */
        justify-content: center;
        width: 100%;
    }

    .learn-more {
        margin: 0;
        /* Remove existing margin */
        width: 80%;
        /* Make button wider */
        max-width: 250px;
        /* Limit max width */
        font-size: 1.2rem;
        /* Adjust button font size */
        padding: 0.8rem 1rem;
        /* Adjust padding */
    }

    .about-image {
        display: block;
        /* Ensure the image is shown on mobile */
        width: 100%;
        padding: 0 1rem;
        /* Add horizontal padding */
        margin-top: 2rem;
        /* Space above the image */
    }

    .about-image img {
        width: 100%;
        height: auto;
        /* Maintain aspect ratio */
        padding-right: 0;
        /* Remove padding */
    }

    .panel-div,
    .panel-div-2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center content horizontally within these divs */
        padding: 0 1rem;
        /* Add horizontal padding to the main panel container */
    }

    .panel-section,
    .panel-section-2 {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0rem;
        /* Remove horizontal padding here, managed by parent */
        width: 100%;
        /* Ensure these sections take full width */
    }

    .panel-image1,
    .panel-image2 {
        width: 100%;
        /* Image container should be full width */
        padding: 0;
        /* Remove any padding */
        margin-bottom: 1.5rem;
        /* Space below the image */
    }

    .panel-image1 img,
    .panel-image2 img {
        width: 100%;
        /* Image takes full width of its container */
        height: auto;
        /* Maintain aspect ratio */
        border-radius: 8px;
        /* Ensure consistent border-radius */
    }

    .img-section {
        width: 100%;
        /* Ensure text section takes full width */
        margin-left: 0;
        /* Remove left margin */
        padding: 0 1rem;
        /* Add horizontal padding to the text content */
    }

    .panel-head h3 {
        font-size: 1.6rem;
        /* Adjust heading size */
        margin-bottom: 0.8rem;
    }

    .panel-text {
        margin-right: 0;
        /* Remove right margin */
        width: 100%;
        /* Ensure the text block takes full width */
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center the list items if they are not full width */
    }

    .panel-text ul {
        list-style: none;
        /* Remove default bullets for cleaner look */
        padding-left: 0;
        /* Remove default padding */
        text-align: center;
        /* Center list items */
        margin-bottom: 1.5rem;
    }

    .panel-text ul li {
        font-size: 1rem;
        /* Adjust list item font size */
        margin-bottom: 0.5rem;
        /* Space between list items */
        width: fit-content;
        /* Allow list items to take only necessary width */
    }

    .features-icons {
        display: flex;
        /* Use flexbox for tags */
        flex-wrap: wrap;
        /* Allow tags to wrap to the next line */
        justify-content: center;
        /* Center the tags horizontally */
        gap: 10px;
        /* Space between tags */
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
        /* Add padding to prevent tags from touching edges */
    }

    .features-icons span {
        font-size: 0.85rem;
        /* Adjust icon text size */
        padding: 0.6rem 0.8rem;
        margin: 0;
        /* Remove individual margins, let gap handle spacing */
        white-space: nowrap;
        /* Prevent text wrapping inside span */
        flex-shrink: 0;
        /* Prevent tags from shrinking too much */
    }

    .learn {
        display: flex;
        justify-content: center;
        /* Center the "Learn more" button */
        align-items: center;
        margin-top: 1rem;
        margin-bottom: 2rem;
        width: 100%;
        /* Ensure the container takes full width for centering */
    }

    .learn-more {
        margin: 0;
        /* Ensure no external margins interfere with centering */
        width: 80%;
        /* Make button wider */
        max-width: 250px;
        /* Limit max width for good proportions */
        font-size: 1.2rem;
        padding: 0.8rem 1rem;
        text-align: center;
        /* Center text within the button */
    }
}
