@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

:root {
    --bg-body: #ffffff;
    --bg-section: #f9f9f9;
    --bg-header-footer: #1d2f6f; /* your navy */
    --bg-card: #ffffff;

    --text-main: #000000;
    --text-secondary: #333333;
    --text-inverse: #ffffff;

    --accent: #1d2f6f;
}

body.dark {
    --bg-body: #121212;
    --bg-section: #1a1a2b;
    --bg-header-footer: #1d2f6f; /* keep brand navy */
    --bg-card: #222244; /* slightly lighter navy tint */

    --text-main: #e0e0e0;
    --text-secondary: #aaaaaa;
    --text-inverse: #ffffff;

    --accent: #4a6ff3; /* lighter blue accent for contrast */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-body);
    color: var(--text-main);
}

.container {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Navbar Styling */
header {
    width: 100%;
    height: 80px;
    background: var(--bg-header-footer);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.buttons {
    display: flex;
    align-items: center;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
}
.theme-toggle i {
    font-size: 1.8rem;
    padding: 0.7rem;
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.theme-toggle i:hover {
    background: #fff;
    color: #1D2F6F;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}
.hamburger i {
    color: #ffffff;
    font-size: 1.8rem;
    padding: 1rem;
    display: block;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    padding: 1rem;
    font-size: 1.2rem;
    display: block;
    width: 100%;
    transition: all 0.3s ease;
}

@media (min-width: 767px) {
    .navbar a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        transition: width 0.3s ease;
        background: #ffffff;
    }

    .navbar a:hover::after {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 0;
        background: #1D2F6F;
        color: #ffffff;
        padding: 1rem 0;
        gap: 0.5rem;
        width: 100%;
    }

    .navbar a {
        text-align: center;
    }

    .navbar a:hover {
        background: #ffffff;
        color: #1D2F6F;
    }

    .navbar.open {
        display: flex;
    }
}

/* Home Section Styling */
.home-section {
    width: 100%;
    min-height: calc(100vh - 80px);
    background: var(--bg-section);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 5rem;
    padding: 2rem 1rem;
}


.home-image img {
    max-width: 500px;
    width: 100%;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.home-desc {
    max-width: 550px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.home-desc h1 {
    font-size: 2.5rem;
    font-weight: 700;
}
.home-desc p {
    font-size: 1.2rem;
    line-height: 1.7;
}
.home-desc button {
    padding: 1rem;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.3rem;
    background-color: #1D2F6F;
    color: #ffffff;
    display: inline-block;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.home-desc button:hover {
    background-color: #2445ba;
    transform: translateY(-2px);
}

/* Feature Section Styling */
.features-section {
    width: 100%;
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 3rem;
    padding: 2rem 1rem;
}

.features-section .feature-heading {
    text-align: center;
    width: 100%;
    margin-bottom: 2rem;
}

.feature-heading {
    width: 100%;
    text-align: center;
}
.feature-heading h1 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
}
.feature-heading p {
    font-size: 1.2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem 2rem;
    width: 100%;
    justify-items: center;
}

.feature-card {
    background: var(--bg-card);
    color: var(--text-main);
    width: auto;
    max-width: 350px;
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}
.feature-card p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .feature-heading h1 {
        font-size: 2.5rem;
    }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { max-width: none; }  /* fill the track */
}

/* Footer styling */
footer {
    width: 100%;
    height: 100px;
    background: var(--bg-header-footer);
    color: var(--text-inverse);
    display: flex;
    justify-content: center;
    align-items: center;
}

footer p {
    font-size: 1.2rem;
    padding: 0 2rem;
    text-align: center;
}