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

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 120px;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, #0a0f1f 0%, #10294d 45%, #0d1b2a 100%);
    color: white;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: #111;
    padding: 8px 8%;

    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    width: 220px;
    height: auto;
}

nav a {
    color: white;
    text-decoration: none; 
    margin-left: 25px;
    transition: 0.3s;
}

.hero {
    background-image: url("images/hero-background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 40px 8%;

    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
    
    background:
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.70) 0%,
            rgba(0, 0, 0, 0.55) 45%,
            rgba(0, 0, 0, 0.10) 75%

    )
        linear-gradient(
            to bottom,
            #111 0%
            rgba(17, 17, 17, 0.65) 0%,
            rgba(17, 17, 17, 0) 15%,
        ),
        linear-gradient(
            to bottom,
          rgba(10, 26, 54, 0) 55%,
          rgba(10, 26, 54, 0.95) 100%
        );
    pointer-events: none;
}

.hero h1,
.hero p,
.hero .estimate-button {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 15px;
    max-width: 650px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.estimate-button {
    background-color:white;
    color: black;
    padding: 15px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.25s ease, transform 0.15s ease;

}

.estimate-button:hover {
    background-color: #ddd;
}

.estimate-button:active {
    background-color: #bbb;
    transform: scale(0.96);
}

.services {
    padding: 80px 8%;
    background: linear-gradient(180deg, #10294d, #0f1f33);
    text-align: center;

}

.services h2 {
    font-size: 36px;
    margin-bottom: 40px;

}

.service-card {
    background-color: #1c1c1c;
    padding: 30px;
    border-radius: 10px;
    max-width: 350px;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.services-container {
    display:flex;
    justify-content: center; 
    gap: 30px;

}

.about {
    padding: 80px 8%;
    background: linear-gradient(180deg, #16395f, #1c1c1c);
    text-align: cneter;

}

.about h2 {
    font-size: 36px;
    margin-bottom: 25px;
    text-align: center;

}

.about p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.about-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.about-feature {
    background-color: #111;
    padding: 25px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    transition: 0.3s;
}

.about-feature:hover {
    transform: translateY(-5px);
    border: 1px solid #4da6ff;
    box-shadow: 0 0 20px rgba(77, 166, 255, 0.35);
}

.contact {
    padding: 50px 8%;
    background: linear-gradient(180deg, #16395f, #111);
    text-align: center;
    margin-top: 60px;
}

.contact a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.contact-info a {
    background-color: white;
    color: #111;
    padding: 15px 25px;
    border-radius: 6px;
    transition: 0.3s;
}

.contact-info a:hover {
    background-color: #ddd;

}

footer {
    background: #0a1630;
    text-align: center;
    padding: 25px;
    font-size: 14px;
}

nav a:hover {
    color: #ccc;
}

.estimate-form {
    display:flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
    margin: 40px auto 0;
    text-align: left; 
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
}

.estimate-form button {
    background-color: white;
    color: #111;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.estimate-form button:hover {
    background-color: #ddd;
}

.work {
    padding: 80px 8%;
    background: linear-gradient(180deg, #0f2747, #111);
    text-align: center;
}

.work h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.work p {
    font-size: 18px;
    margin-bottom: 40px;
}

.work-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.work-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    transition: 0.3s;
}

.work-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(o, o, 0, 0.35);
}

.services h2,
.work h2,
.about h2,
.contact h2 {
    color: #4da6ff;
}

.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    color: #4da6ff;
}

.social-links {
    margin-top: 15px;
    display:flex;
    justify-content: center;
}

.social-links a{
    width: 45px;
    height: 45px;
    background-color: #1877f2;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 20px;
    transition: 0.3s;
}

.social-links a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(24, 119, 242, 0.4);
}

.thank-you {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 8%;
}

.thank-you h1 {
    font-size: 52px;
    color: #4da6ff;
    margin-bottom: 20px;
}

.thank-you p {
    font-size: 20px;
    margin-bottom: 12px;
}

.thank-you .estimate-button {
    margin-top: 20px;
}

[data-fs-success],
[data-fs-error] {
    display: none;
}

[data-fs-success][data-fs-active],
[data-fs-error][data-fs-active] {
    display: block;
}

[data-fs-success] {
    max-width: 700px;
    margin: 25px auto;
    padding: 2-px 25px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    font-size: 20px;
    line-height: 1.5;
    color: #7ec8ff;
}

[data-fs-success] .estimate-button {
    display: inline-block;
    margin-top: 10px;
    background-color: white;
    color: #111;
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.service-area {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 18px;
    background-color: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(126, 200, 255, 0.6);
    border-radius: 999px;
    color: #7ec8ff;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 0.4px;
}

@media (max-width: 768px) {

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

    .logo {
        width: 150px;
    }

    nav {
        flex-direction: column;
        gap: 15px;
    }

    .about-features {
        flex-direction: column;
        align-items: center;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact h2 {
        font-size: 30px;
    }

    .hero h1 {
        font-size: 42px;
    }

    nav div {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    nav a {
        margin-left:0;
    }

    .work-gallery {
        grid-template-columns: 1fr;
    }

    .work-gallery img {
        height: 220px;
    }
}