@import url(common.css);

body {
    background-image: url('../images/background-less-clouds.png');
    background-size: 120%;
    background-position-x: 20%;
    background-position-y: 0%;
}

header nav ul li a {
    color: var(--background1);
}

header nav ul li a:hover {
    color: var(--background2);
}

.hamburger-menu__line {
    background-color: var(--background1);
}

.hamburger-menu.is-active .hamburger-menu__line {
    background-color: var(--background1);
}

.hero {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: transparent;
    padding: 60px 0;
    position: relative;
    margin-top: 30px;
}

.hero .container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex-basis: 70%;
    margin-right: 20px;
    margin-left: auto;
    text-shadow: 3px 3px 20px rgba(0, 0, 0, 0.4); 
    max-width: 70%;
    text-align: right;
}

.hero h1 {
    font-size: 60px;
    color: var(--background2);
    margin-bottom: 0px;
    line-height: 60px;
    text-align: right;
}

.hero p {
    font-size: 21px;
    color: var(--background2);
    text-shadow: 3px 3px 20px rgba(0, 0, 0, 0.8); 
    margin-bottom: 30px;
    text-align: right;
}

.hero-form {
    max-width: 58%;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.hero-form input[type="email"] {
    max-width: 40%;
    padding: 10px;
    padding-left: 20px;
    border: 1px solid #ccc;
    border-radius: 50px 0 0 50px;
    flex-grow: 1;
    margin-right: -1px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 18px;
    border: 1px solid var(--accent2)
}

/* .hero-form:hover {
    max-width: 65%;
} */

.hero-form input[type="email"]:focus {
    outline: none;
}

.hero-form:focus-within {
    max-width: 75%;
    outline: none;
}

.btn {
    padding: 10px 22px;
    text-decoration: none;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-family: 'Nunito Sans', sans-serif;
}

.btn-info {
    background-color: var(--accent1);
    color: var(--background2);
    border-radius: 50px;
    margin-right: 10px;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
    font-family: 'Nunito Sans', sans-serif;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-info:hover,
.btn-info:focus {
    background-color: var(--accent2);
    color: var(--background2);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.btn-go {
    background-color: var(--accent2);
    border: 1px solid var(--accent2);
    border-radius: 0 50px 50px 0;
    font-weight: bold;
}

.btn-go:hover,
.btn-go:focus {
    background-color: var(--accent1);
    color: var(--background2);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.hero-image {
    flex-basis: 35%;
    text-align: right;
}

.hero-image img {
    margin-top: 40px;
    max-width: 300px;
    height: auto;
}

.services {
    padding: 40px 0;
    background-color: transparent;
    position: relative;
    z-index: 5;
    margin-top: 100px;
}

.services .container {
    padding: 14px 14px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.service-card {
    background-color: var(--background2);
    padding: 20px;
    border: 5px solid var(--background1);
    border-radius: 16px;
    flex-basis: 30%;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.service-card h2 {
    color: var(--foreground2);
    margin-top: 0;
}

.service-card p {
    color: #666;
    font-size: 15px;
}

.service-card .btn-read-more {
    display: inline-block;
    text-decoration: none;
    background-color: var(--accent1);
    color: var(--background2);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
    font-family: 'Nunito Sans', sans-serif;
    margin-top: 15px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card .btn-read-more:hover,
.service-card .btn-read-more:focus {
    background-color: var(--accent2);
    color: var(--background2);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.blog {
    padding: 40px 0;
    position: relative;
    z-index: 5;
}

.blog .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--foreground2);
    margin-bottom: 40px;
}

.blog-posts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.blog-card {
    background-color: var(--background2);
    border-radius: 10px;
    box-shadow: 0 0 14px rgba(0,0,0,0.1);
    border: 1px solid var(--background1);
    overflow: hidden;
    flex-basis: 30%;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.blog-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-content h3 {
    margin-top: 0;
    color: var(--foreground2);
    font-size: 1.4rem;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.blog-card-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.blog-card .btn-read-more {
    display: inline-block;
    text-decoration: none;
    background-color: var(--accent1);
    color: var(--background2);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
    font-family: 'Nunito Sans', sans-serif;
    margin-top: 15px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card a:hover .btn-read-more {
    background-color: var(--accent2);
}

@media (max-width: 1600px) {
    body {
        background-size: 150%;
        background-position: 20% top;
    }
    .hero-form {
        max-width: 80%;
    }
    .hero-form:focus-within {
        max-width: 100%;
        outline: none;
    }
    .btn-go {
        min-width: 100px;
    }
}

@media (max-width: 1200px) {
    body {
        background-size: 300%;
        background-position: 20% top;
    }
    .hero-form {
        max-width: 100%;
    }
    .hero-form:focus-within {
        max-width: 100%;
        outline: none;
    }
    .btn-info {
        display: none;
    }

    .blog-card {
        flex-basis: 80%;
    }
}

@media (max-width: 768px) {
    body {
        background-size: 300%;
        background-position: 20% top;
    }
    .hero {
        padding: 30px 0;
        margin-top: 15px;
    }

    .hero .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-text {
        flex-basis: 100%;
        margin-bottom: 30px;
        text-shadow: 3px 3px 20px rgba(0, 0, 0, 0.8); 
        max-width: 90%;
    }

    .hero h1 {
        font-size: 40px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-form {
        max-width: 100%;
        margin-left: 25%;
        margin-right: 10%;
    }
    
    .hero-form:hover,
    .hero-form:focus-within {
        max-width: 100%;
    }

    .btn {
        font-size: 16px;
    }

    .hero-form input[type="email"] {
        font-size: 16px;
    }

    .hero-image {
        flex-basis: 100%;
        text-align: center;
        margin-top: 0;
    }

    .hero-image img {
        max-width: 200px;
        margin-top: 20px;
    }

    .services {
        padding: 20px 0;
        margin-top: 50px;
    }

    .services .container {
        flex-direction: column;
        gap: 20px;
    }

    .service-card {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    .service-card:last-child {
        margin-bottom: 0;
    }

    .service-card h2 {
        font-size: 1.5rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .blog-card {
        flex-basis: 80%;
    }

    .blog .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 620px) {
    body {
        background-size: 300%;
        background-position: 20% top;
    }
    .hero-form {
        margin-left: 20%;
        margin-right: 10%;
    }
}

@media (max-width: 488px) {
    .hero-form {
        margin-left: 10%;
        margin-right: 10%;
    }
}