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

:root {
    --primary-color: #134487;
    --secondary-color: #0b2c59;
    --text-color: #000;
    --text-light: #555;
    --transition: all 0.3s ease;
}

/* Accessibility class for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animation class for lazy loading */
.feature-article {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-article.visible {
    opacity: 1;
    transform: translateY(0);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Outfit", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

p {
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 10px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul,
li {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

button{
    font-family: inherit;
}

/* Navigation Styles */
nav {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

nav .container {
    padding: 0 20px;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav .logo img {
    width: auto;
    height: 30px;
    transition: var(--transition);
}

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

nav .logo span {
    font-size: 1.4rem;
    font-weight: 200;
    color: var(--primary-color);
}

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

nav .menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

nav ul li a {
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

@media (max-width: 767px) {
    nav{
        position: relative;
    }

    nav ul {
        display: none;
    }

    a.cta{
        display: none;
    }

    nav .logo span {
        display: inline;
    }
}

a.cta {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

a.cta:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

button.cta-white {
    background-color: #fff;
    color: var(--text-color);
    width: 100%;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button.cta-white:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


/* Header Section */
header {
    background: url('images/bg.jpg') no-repeat center center/cover;
    position: relative;
}

header .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    min-height: 70vh;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
}

header h1 {
    color: #fff;
    font-size: 2.4rem;
    margin-bottom: 20px;
    font-weight: 700;
    animation: fadeInUp 1s ease;
}

header p {
    color: #fff;
    margin-bottom: 30px;
    max-width: 600px;
    font-size: 1.1rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.email-signup {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    animation: fadeInUp 1s ease 0.4s both;
}

input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    min-width: 200px;
    transition: var(--transition);
}

input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@media (max-width: 767px) {
    header .container {
        align-items: center;
        text-align: center;
        min-height: 50vh;
        padding: 100px 20px 40px;
    }

    header h1 {
        font-size: 2rem;
    }

    input[type="email"] {
        min-width: auto;
        width: 100%;
        margin-right: 0;
    }

    .email-signup {
        width: 100%;
        max-width: 400px;
        flex-direction: column;
    }

    button.cta-white {
        width: 100%;
    }
}

/* Features Styles */
#features {
    padding: 5px 20px;
    background-color: #f9f9f9;
}

#features svg {
    width: 100%;
    height: auto;
    max-width: 50px;
    color: var(--primary-color);
    cursor: pointer;
}

#features ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

#features ul li {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* How it works Styles */
#hero {
    padding: 10px 0;
}

#hero h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

#hero>.container>p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

#hero article {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

#hero article:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    #hero article {
        padding: 40px;
    }
}

@media (max-width: 767px) {
    #hero article {
        flex-direction: column;
        padding: 10px 20px;
    }

    #hero article img {
        max-width: 100%;
        height: auto;
    }

    /* Ensure the row-reverse article displays properly on mobile */
    #hero article[style*="flex-direction: row-reverse"] {
        flex-direction: column !important;
    }
}

/* FAQ Styles */
#faq {
    padding: 10px 0;
    background-color: #f9f9f9;
}

#faq h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

#faq>.container>div>p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

#faq ul li {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

#faq ul li:last-child {
    margin-bottom: 0;
}

#faq h3 {
    padding: 20px;
    background-color: white;
    cursor: pointer;
    position: relative;
    margin: 0;
    transition: var(--transition);
}

#faq h3::after {
    content: '+';
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

#faq li.active h3 {
    background-color: var(--primary-color);
    color: white;
}

#faq li.active h3::after {
    content: '−';
    color: white;
}

#faq ul p {
    padding: 20px;
    display: none;
    margin: 0;
    background-color: white;
    border-top: 1px solid #eee;
}

#faq li.active p {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Footer Styles */
footer {
    padding: 20px 0;
    background: var(--secondary-color);
    text-align: center;
}

footer h2 {
    color: #fff;
    font-size: 2rem;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

footer .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: auto;
    padding: 40px 20px;
}

footer .social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

footer .social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

footer .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

footer .copyright {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}