@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Playwrite+CU:wght@100..400&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: all 0.5s linear;
    color: #fff; 
    text-transform: capitalize;
}

body {
    background-color: #1A1110;
    font-family: "Lato", sans-serif;
}

header {
    position: relative;
    padding: 2em 0;
    height: 100vh;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: -8px;
    z-index: 0;
    background-repeat: repeat;
    background-size: 280px auto;
    background-position: center;
    filter: blur(3px);
    transform: scale(1.02);
}

header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 17, 16, 0.05) 0%,
        rgba(26, 17, 16, 0.35) 100%
    );
    z-index: 1;
    pointer-events: none;
}

header .main {
    z-index: 2;
}

.main .heading,
.main .heading_1 {
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
}

.logo {
    font-size: 2em;
    font-weight: 600;
    flex: 1;
    color: #fff;
    display: flex;
    align-items: center;
}

.logo img {
    width: 70px;
    margin-right: 1%;
}

.navbar {
    width: 100%;
    padding: 2rem 3rem;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    position: fixed;
}

.navbar.scrolled {
    background-color: #000;
    box-shadow: rgba(0, 0, 0, 0.35) 0 5px 15px;
}

.nav_items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.item {
    display: flex;
    justify-content: center;
}

.nav_items li {
    list-style: none;
    padding: 1em;
}

.nav_items li a {
    text-decoration: none;
    transition: 0.3s;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav_items li::before {
    content: '';
    width: 0;
    height: 2px;
    background-color: orangered;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav_items li:hover::before {
    width: 100%;
}

.btn {
    padding: 9px 15px;
    font-size: 18px;
    letter-spacing: 2px;
    cursor: pointer;
    background-color: orangered;
    border: 2px solid orangered;
    transition: all 0.5s ease-out;
}

.nav_menu {
    display: none;
}

.main {
    width: 80%;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    position: absolute;
    color: #fff;
}

.heading_1 {
    font-size: 2.3em;
}

.heading {
    font-size: 3.5em;
    padding: 1.5% 0;
    font-family: "Playwrite CU", cursive;
}

.main_btn {
    display: flex;
}

.btn1:hover {
    background-color: transparent;
}

.btn2 {
    background-color: transparent;
    margin-left: 1%;
    align-items: center;
    display: flex;
}

.btn2 i {
    font-size: 2em;
    margin-right: 6px;
    color: orangered;
}

.btn2:hover {
    background-color: orangered;
}

.btn2:hover i {
    color: #fff;
}

/* Services */
.sec {
    padding: 8% 0 3% 0;
    width: 85%;
    margin: auto;
}

.head {
    text-align: center;
}

.heading span {
    color: orangered;
}

.head .heading {
    font-family: 'Lato', sans-serif;
}

.head .heading_1 {
    font-family: 'Playwrite CU', cursive;
    color: aliceblue;
    font-size: 1.4em;
}

.boxes {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

/* Merged .box rule (was duplicated) */
.box {
    background-color: #2c2c2c;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    flex: 1 1 30%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 2px solid transparent;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.box img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.box h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: orangered;
}

.box p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.5;
}

/* About */
.about_heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6em;
    align-items: center;
}

.about .heading_1,
.about .heading {
    grid-column: 1;
}

.about .para {
    grid-column: 2;
    text-align: right;
    color: #777;
}

.about_box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2em;
    margin-top: 5%;
}

.para1 {
    color: #888;
    padding-bottom: 5%;
}

.box1 {
    background-color: #ffeedc;
    box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
    border: 5px solid chocolate;
}

.box1 img {
    width: 100%;
}

.box1_text {
    padding: 4%;
}

.box1_text button:hover {
    color: #000;
}

/* Contact */
.contact {
    margin-top: 6%;
    width: 100%;
    background-color: #312c2a;
}

.contact_box {
    display: grid;
    width: 85%;
    margin: auto;
    align-items: center;
    grid-gap: 2rem;
    grid-template-columns: 1fr 1fr;
}

.left_box .heading_1 {
    color: orangered;
}

.right_box {
    text-align: right;
}

.right_box img {
    width: 100%;
}

/* Footer */
.footer_container {
    display: grid;
    gap: 0.4rem 2rem;
    grid-template-columns: repeat(4, 1fr);
}

.footer_logo img {
    max-width: 40px;
}

.footer_logo span {
    display: flex;
    font-size: 1.8rem;
    font-weight: 800;
}

.footer_col .footer_text {
    max-width: 350px;
    color: #999;
    margin: 2rem 0;
}

.footer_socials {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.footer_socials a {
    font-size: 1.8rem;
    text-decoration: none;
    padding: 3%;
}

.footer_socials a:hover {
    background-color: orangered;
}

.footer_col h4 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.footer_links {
    display: grid;
    gap: 1rem;
    list-style: none;
}

.footer_links a {
    text-decoration: none;
    color: #999;
}

.footer_links a:hover {
    background-color: orangered;
}

.footer_bar {
    padding: 1rem;
    font-size: 1rem;
    text-align: center;
}

/* Scroll-up button */
.top {
    background-color: orangered;
    font-size: 40px;
    padding: 0.5rem;
    position: fixed;
    border-radius: 10%;
    right: 5%;
    cursor: pointer;
    bottom: -50%;
}

.top:hover {
    transform: translateY(-0.6rem);
}

.top.show {
    bottom: 8%;
}

/* Alerts */
.error {
    color: #fff;
    background-color: #c0392b;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.success {
    color: #fff;
    background-color: #27ae60;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    margin: 0.5rem 0;
}
/* Form inputs */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
textarea,
select {
    background-color: #1A1110;
    color: #fff;
    border: 1px solid #444;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: orangered;
}

input::placeholder,
textarea::placeholder {
    color: #666;
}
/* Submit buttons */
input[type="submit"] {
    background-color: orangered;
    color: #fff;
    border: 2px solid orangered;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="submit"]:hover {
    background-color: transparent;
    color: orangered;
}

.btn-secondary {
    background-color: orangered;
    color: #fff;
    border: 2px solid orangered;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: transparent;
    color: orangered;
}

/* Responsive */
@media only screen and (max-width: 1050px) {
    .about_heading {
        gap: 0 2em;
    }
    .about_box, .boxes {
        gap: 1em;
    }
    .box1_text .btn {
        padding: 9px;
        font-size: 15px;
    }
    .left_box .heading {
        font-size: 2.5em;
    }
}

@media only screen and (max-width: 850px) {
    .nav_items {
        position: absolute;
        top: -1%;
        left: 0;
        width: 100%;
        padding: 5em 0 2em 0;
        display: flex;
        align-items: center;
        text-align: center;
        flex-direction: column;
        gap: 0.9rem;
        background-color: #000;
        transition: 0.5s;
        z-index: -1;
        transform: translateY(-100%);
    }
    .nav_items.open {
        transform: translateY(0);
    }
    .item {
        flex-direction: column;
    }
    .nav_menu {
        display: block;
        font-size: 2em;
    }
    .boxes, .about_box {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact_box {
        grid-template-columns: 1fr;
    }
    .footer_container {
        grid-template-columns: repeat(2, 1fr);
    }
    .navbar {
        padding: 2rem 2rem;
    }
    .heading {
        font-size: 3rem;
    }
    .heading_1 {
        font-size: 2rem;
    }
}
