/* Google Font  */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700&display=swap');

/* Added Scroll behaviour */
html {
    scroll-behavior: smooth;
}

/*  CSS Variables  */
:root {
    --clr-bg: #ffffff;
    --clr-blue: #4fc3d8;
    --clr-blue-dark: #2aa8bf;
    --clr-red: #e03030;
    --clr-text: #1a2e38;
    --clr-text-muted: #5a7a88;
    --nav-height: 70px;
    --shadow: 0 2px 20px rgba(79, 195, 216, 0.15);
}

/*  Dark Mode Variables  */
body.dark {
    --clr-bg: #0f1e26;
    --clr-text: #e8f5f8;
    --clr-text-muted: #8ab8c5;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

body.dark .header {
    background-color: #162630;
}

body.dark .feature-card {
    background-color: #162630;
    border-color: rgba(79, 195, 216, 0.15);
}

body.dark .benefit-item {
    background-color: #162630;
    border-color: rgba(79, 195, 216, 0.12);
}

body.dark .contact-item {
    background: #162630;
    border-color: rgba(79, 195, 216, 0.12);
}

body.dark .form-input {
    background: #162630;
    border-color: rgba(79, 195, 216, 0.15);
    color: var(--clr-text);
}

body.dark .footer {
    background-color: #08141a;
}

body {
    font-family: "Exo 2", sans-serif;
    background-color: var(--clr-bg);
    padding: 0;
    margin: 0;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #f0fafe;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--clr-red);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--nav-height);
}

.logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.navList {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navList li a {
    position: relative;
    display: inline;
    padding: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--clr-text-muted);
    text-decoration: none;
    border-radius: 6px;
}

.navList li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background-color: var(--clr-blue);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.25s ease;
}

.navList li a:hover {
    color: var(--clr-blue-dark);
    background-color: rgba(79, 195, 216, 0.08);
}

.navList li a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.navList li a:active {
    color: var(--clr-blue-dark);
}

.navList li a:active::after {
    transform: translateX(-50%) scaleX(1);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--clr-blue);
    border-radius: 50%;
    background-color: transparent;
    color: var(--clr-blue);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
        transform 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--clr-blue);
    color: #fff;
    transform: rotate(-20deg) scale(1.05);
}

/* Show only sun in light mode, moon in dark mode */
.theme-toggle .fa-moon {
    display: none;
}

body.dark .theme-toggle .fa-sun {
    display: none;
}

body.dark .theme-toggle .fa-moon {
    display: inline;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin: 0 auto;
    padding: 1rem 2rem;
    min-height: calc(100vh - var(--nav-height));
    max-width: 1200px;
}

.hero-content {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-badge,
.about-badge,
.features-badge,
.benefits-badge,
.contact-badge {
    display: inline-block;
    width: fit-content;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--clr-blue-dark);
    background-color: rgba(79, 195, 216, 0.12);
    border: 1px solid var(--clr-blue);
    border-left: 4px solid var(--clr-red);
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    margin: 0;
}

.hero-title,
.about-title,
.features-title,
.benefits-title,
.contact-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--clr-text);
    margin: 0;
}

.hero-title {
    margin-top: 1rem;
}

.hero-desc,
.about-desc,
.features-subtitle,
.benefits-subtitle,
.contact-subtitle {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--clr-text-muted);
    margin: 0;
}

.hero-desc {
    max-width: 520px;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-primary,
.btn-outline {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary,
.btn-outline {
    width: fit-content;
    padding: 0.75rem 1.75rem;
    font-family: "Exo 2", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
    cursor: pointer;
    background-color: var(--clr-blue);
    color: #fff;
    border: 2px solid var(--clr-blue);
    transition: all 0.25s ease;
}

.contact-form .btn-primary {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
}

.btn-outline {
    background: transparent;
    color: var(--clr-blue-dark);
}

.btn-primary:hover {
    background-color: var(--clr-blue-dark);
    border-color: var(--clr-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 195, 216, 0.35);
}

.btn-outline:hover {
    background-color: rgba(79, 195, 216, 0.08);
    transform: translateY(-2px);
}

.hero-image,
.about-image,
.benefits-image {
    flex: 1 1 45%;
    align-self: stretch;
}

.hero-image {
    align-self: auto;
}

.hero-image img,
.about-image img,
.benefits-image img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    object-position: top;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(79, 195, 216, 0.2);
    display: block;
}

/* About, Features, Benefits, Contact Sections */
.about,
.features,
.benefits,
.contact {
    padding: 6rem 2rem;
    background-color: var(--clr-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(79, 195, 216, 0.2);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-blue);
    margin: 0;
    line-height: 1;
}

.stat p {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    margin: 0;
}

.features-header,
.benefits-header,
.contact-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Features Grid  */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.75rem 1.5rem;
    background-color: var(--clr-bg);
    border: 1px solid rgba(79, 195, 216, 0.2);
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(79, 195, 216, 0.15);
    border-color: var(--clr-blue);
}

/* Icons */
.feature-icon,
.benefit-icon,
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(79, 195, 216, 0.12);
    border-radius: 10px;
    color: var(--clr-blue);
    font-size: 1.2rem;
    transition: background-color 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.feature-card:hover .feature-icon,
.benefit-item:hover .benefit-icon,
.contact-item:hover .contact-icon {
    background-color: var(--clr-blue);
    color: #fff;
}

.feature-card h3,
.benefit-text h3,
.contact-text h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-text);
    margin: 0;
    line-height: 1.3;
}

.feature-card p,
.benefit-text p,
.contact-text p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--clr-text-muted);
    margin: 0;
}

.benefits-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-list {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item,
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.15rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(79, 195, 216, 0.2);
    background-color: var(--clr-bg);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.benefit-item:hover,
.contact-item:hover {
    transform: translateX(6px);
    box-shadow: 0 12px 30px rgba(79, 195, 216, 0.15);
    border-color: var(--clr-blue);
}

.benefit-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-container {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1 1 35%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form */
.contact-form {
    flex: 1 1 65%;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-group {
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.92rem;
    color: var(--clr-text);
    background: var(--clr-bg);
    border: 1px solid rgba(79, 195, 216, 0.25);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    resize: none;
}

.form-input::placeholder {
    color: var(--clr-text-muted);
    opacity: 0.7;
}

.form-input:focus {
    border-color: var(--clr-blue);
    box-shadow: 0 0 0 3px rgba(79, 195, 216, 0.12);
}

/* Footer */
.footer {
    background: #0d1e26;
    border-top: 3px solid var(--clr-red);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    width: 110px;
    height: auto;
    object-fit: contain;
}

.footer-about {
    font-size: 0.88rem;
    line-height: 1.75;
    color: #8ab8c5;
    margin: 0;
    max-width: 280px;
}

/* Footer Columns */
.footer-links h4,
.footer-features h4,
.footer-contact h4 {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--clr-blue);
    margin: 0 0 1.25rem;
}

.footer-links ul,
.footer-features ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links ul li a,
.footer-features ul li a {
    font-size: 0.88rem;
    color: #8ab8c5;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links ul li a:hover,
.footer-features ul li a:hover {
    color: var(--clr-blue);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: #8ab8c5;
}

.footer-contact ul li i {
    color: var(--clr-blue);
    font-size: 0.9rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(79, 195, 216, 0.1);
    padding: 1.25rem 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: #5a7a88;
    margin: 0;
}

/*  Media Queries  */

@media (max-width: 1024px) {
    .features {
        margin-top: 0;
        padding-top: 0;
    }

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

@media (max-width: 968px) {

    .benefits-container,
    .contact-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .benefits-image img {
        min-height: 260px;
        max-height: 360px;
    }

    .benefits-list,
    .contact-info,
    .contact-form {
        width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-about {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .navbar {
        padding: 0 1.25rem;
    }

    .navList {
        gap: 1rem;
    }

    .navList li a {
        font-size: 0.82rem;
        letter-spacing: 0.5px;
        padding: 0.4rem;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.25rem;
    }

    .hero-badge {
        margin: 0 auto;
    }

    .hero-desc {
        max-width: 100%;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image img {
        min-height: 260px;
    }

    .about {
        margin-top: 0;
        padding-top: 0;
    }

    .about-content {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .about-image img {
        min-height: 260px;
    }

    .about-stats {
        gap: 1.25rem;
    }

    .stat h3 {
        font-size: 1.5rem;
    }

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

    .features-header,
    .contact-header,
    .benefits-header {
        margin-bottom: 2.5rem;
    }

    .benefits,
    .contact {
        padding: 3.5rem 1rem;
    }

    .benefit-item {
        padding: 1rem 1.1rem;
    }
}

@media (max-width: 650px) {
    :root {
        --nav-height: 60px;
    }

    .logo img {
        width: 75px;
        height: 75px;
    }

    .navList {
        gap: 0.4rem;
    }

    .navList li a {
        font-size: 0.75rem;
        letter-spacing: 0;
        padding: 0.3rem 0.25rem;
    }

    .theme-toggle {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 0.75rem;
    }

    .navList {
        gap: 0.2rem;
    }

    #contact-nav {
        display: none;
    }

    .navList li a {
        font-size: 0.68rem;
        padding: 0.25rem 0.2rem;
    }

    .navList li a::after {
        display: none;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

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

    .feature-card {
        padding: 1.25rem 1rem;
    }

    .feature-card h3,
    .benefit-text h3,
    .contact-text h3 {
        font-size: 0.88rem;
    }

    .feature-card p,
    .benefit-text p {
        font-size: 0.8rem;
    }

    .feature-icon,
    .benefit-icon,
    .contact-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .benefits-title,
    .about-title,
    .features-title {
        font-size: 2.2rem;
    }

    .contact-form .btn-primary {
        width: 100%;
        text-align: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 1.25rem;
    }

    .footer-brand {
        grid-column: unset;
    }

    .footer-bottom {
        padding: 1rem 1.25rem;
    }
}