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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #f9f9f9;
}

header {
    background: linear-gradient(135deg, #0077c2, #00b4d8);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
}

header p {
    font-size: 1.1rem;
    margin-top: 10px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: auto;
}

.section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #0077c2;
    margin-bottom: 30px;
}

.section p {
    text-align: center;
    font-size: 1.05rem;
    color: #444;
    max-width: 800px;
    margin: 0 auto 40px;
}

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

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2rem;
    color: #00b4d8;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 1.2rem;
    color: #0077c2;
    margin-bottom: 10px;
}

.cta {
    text-align: center;
    margin-top: 50px;
}

.cta a {
    display: inline-block;
    background: #0077c2;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cta a:hover {
    background: #005f99;
}

footer {
    background: #003f63;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    margin-top: 60px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.6rem;
    }

    header p {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 20px;
    }
}

/* Footer */
/* ==============================
       FOOTER
    ============================== */
footer {
    background-color: #121111;
    color: #cbd5e1;
    padding: 36px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
}

footer a,
footer h4,
footer p {
    text-align: left;
    color: #cbd5e1;
    display: block;
    margin: 6px 0;
}

footer a {
    text-decoration: none;
}

footer h4 {
    margin-bottom: 18px;
    /* creates space below the heading */
}

footer a:hover {
    color: #f04b4b;
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 20px;
}

@media (max-width: 600px) {
    footer {
        text-align: center;
    }

    footer a,
    footer h4,
    footer p {
        text-align: center;
    }
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 20px;
    /* space above the line */

    /* translucent white */
}



#About a {
    text-decoration: none;
}



@media (max-width:900px) {
    .hero {
        grid-template-columns: 1fr
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .two-col {
        grid-template-columns: 1fr
    }
}

@media (max-width:560px) {
    .features-grid {
        grid-template-columns: 1fr
    }
}

/* NAVBAR */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 50px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .logo img {
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

nav .logo img:hover {
    transform: scale(1.1);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-left: auto;
}

nav ul li {
    cursor: pointer;
    position: relative;
}

nav ul li:hover {
    color: #e60000;
}

/* new one css nav bar animation */
nav ul li {
    cursor: pointer;
    position: relative;
    padding: 5px 0;
}

nav ul li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #e60000;
    transition: width 0.3s ease;
}

nav ul li:hover::after {
    width: 100%;
}

nav ul li ul {
    position: absolute;
    top: 40px;
    left: 0;
    background: #fff;
    padding: 10px 0;
    list-style: none;
    border-radius: 6px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s ease;
}

nav ul li:hover ul {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

nav ul li ul li {
    padding: 5px 5px;
    text-align: left;
    white-space: nowrap;
}

nav ul li ul li:hover {
    background: #f6f6f6;
    color: #e60000;
}

nav {
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-80px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* nav.sticky {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      transition: 0.3s ease;
    } */

ul li a {
    text-decoration: none;
    /* removes underline */
    color: inherit;
    /* keeps the text color same as the parent */
}

/* --- BUTTON --- */
.nav-btn {
    background: #e60000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: #0f4c91;
    transform: scale(1.05);
}


/* ===============================
   MOBILE RESPONSIVE NAVBAR (356px – 900px)
   =============================== */
@media (min-width: 356px) and (max-width: 900px) {
    nav {
        padding: 15px 25px;
    }

    /* Show hamburger icon */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        margin-left: 20px;
        z-index: 1001;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background: #000;
        border-radius: 3px;
        transition: 0.3s;
    }

    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }

    /* Hide desktop menu, convert to mobile dropdown */
    nav ul {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        /* height: calc(100vh - 70px); */
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* center all li items */
        gap: 30px;
        box-shadow: -6px 0 12px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        margin: 0;
        padding: 0;
    }

    /* When active, slide in menu */
    nav ul.active {
        right: 0;
    }

    nav ul li {
        font-size: 18px;
        width: 100%;
        text-align: center;
    }

    /* Hide hover underline animation on mobile */
    nav ul li::after {
        display: none;
    }

    /* Adjust other sections */
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .two-col {
        grid-template-columns: 1fr;
    }

    footer {
        text-align: center;
    }

    footer .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* For smaller phones (below 356px) */
@media (max-width: 355px) {
    nav ul li {
        font-size: 16px;
    }

    .cta {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* --------------------------------------- */


/* Basic nav layout */
nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    position: sticky;
}

.logo img {
    height: 40px;
}

/* Nav list */
.nav-list {
    display: flex;
    gap: 32px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Container relative for proper dropdown placement */
.dropdown {
    position: relative;
}

/* Button */
.dropbtn {
    padding: 10px 16px;
    display: inline-block;
    cursor: pointer;
    position: relative;
}

/* Dropdown content */
.dropdown-content {
    position: absolute;
    /* critical for accuracy */
    top: 100%;
    /* directly under the button */
    left: 0;
    /* align to left of parent */
    min-width: 200px;
    /* adjust width as needed */
    margin-top: 6px;
    /* small gap below button */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    padding: 4px 0;
    display: none;
    z-index: 1000;
}

/* Dropdown links */
.dropdown-content li a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #111;
    white-space: nowrap;
    /* prevents text wrap */
}

/* Hover effect */
.dropdown-content li a:hover {
    background: #f2f2f2;
}

/* Show on hover desktop */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        /* part of flow */
        padding-left: 12px;
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropbtn::after {
        content: "▾";
        float: right;
    }
}


/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 3px;
    margin: 4px 0;
    background: #000;
    border-radius: 2px;
}

/* Mobile styles */
@media (max-width:768px) {
    .hamburger {
        display: block;
        margin-left: auto;
    }

    .nav-list {
        position: absolute;
        top: 64px;
        /* below nav */
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: #fff;
        padding: 10px 8px;
        display: none;
        z-index: 1500;
        border-top: 1px solid #eaeaea;
    }

    .nav-list.show {
        display: flex;
    }

    /* Make each nav item full-width and tappable */
    .nav-list>li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-list>li>a,
    .nav-list>li>button,
    .dropbtn {
        display: block;
        width: 100%;
        padding: 12px 16px;
        box-sizing: border-box;
        text-align: left;
    }

    /* Mobile dropdown content becomes part of flow */
    .dropdown-content {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding-left: 8px;
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .nav-cta {
        padding: 12px 16px;
    }
}