:root {
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --mainback: #231b46;

    --transition: all 400ms ease;
}
*{
    box-sizing: border-box;
}
/* Initial state for the fade-in effect */
body {
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* Adjust timing as needed */
}

/* Final state when the page is fully loaded */
body.fade-in {
    opacity: 1;
}


/* General Reset */
body, h1, h2, p, ul, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--light);
}

/* ================== Header Styling Start ================== */
header {
    background: #231b46;
    color: var(--white);
    padding: 1rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}
#close-menu-btn{
    display: none;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
    background: transparent;
    border: 0;
}
#open-menu-btn{
    display: none;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
    background: transparent;
    border: 0;
}
header .logo img {
    width: 70px;
}
nav ul {
    list-style: none;
    display: flex;
}
nav ul li {
    margin-left: 1.5rem;
    position: relative;
}
nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    position: relative;
}
nav ul li a:hover {
    color: var(--yellow);
}
nav ul li a:hover::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    animation: line-expand 0.5s forwards;
}
@keyframes line-expand {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}
@media screen and (max-width: 768px) {
    header{
        justify-content: space-between;
        padding-left: 30px;
        padding-right: 30px;
    }
    .nav-menu--parent {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;

        background: #231d41;
        padding: 1rem 0;
        transition: right 1s ease-in-out;
        max-width: 250px;
        height: 100vh;
    }
    .nav__menu{
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 40px;
    }
    .nav-menu--parent.show {
        right: 0;
    }
     #open-menu-btn{
        display: block;
     }
     #close-menu-btn{
        margin-left: auto;
        display: block;
    }
        
    .menu-btn-close{
        margin-right: 40px;
        margin-top: 15px;
    }
}
/* ================== Header Styling End ================== */

/* ================== Hero Section ================== */
.hero {
    text-align: center;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    height: 100vh;
}
.hero .img-1{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-content{
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    max-width: 635px;
    width: 100%;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero-content--button-a{
    color: white;
    cursor: pointer;
    text-decoration: none;
}
.hero button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    background: var(--yellow);
    color: var(--white);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all 0.5s;
}
.hero button:hover {
    background: #231b46;
    border: 2px solid var(--yellow);
    color: var(--white);
}
/* ================== Hero Section End ================== */
/* ================== About Section Starts ================== */
.about{
    padding: 100px;
}
.about-title{
    margin-bottom: 30px;
}
@media screen and (max-width: 780px){
    .about{
        padding: 70px;
    }
}
@media screen and (max-width: 550px){
    .about{
        padding: 50px;
    }
}
@media screen and (max-width: 350px){
    .about{
        padding: 30px;
    }
}
/* ================== About Section End ================== */

/* ================== Projects Start ================== */
.projects{
    margin-top: 4rem;
    margin-bottom: 4rem;
    margin-left: 8rem;
    margin-right: 8rem;
}
.projects__title{
    margin-bottom: 20px;
}
.projects__container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.project__image{
    padding: 15px 15px 0;
    width: 100%;
}
.project__image-img{
    width: 100%;
}
.project{
    background: var(--white);
    text-align: center;
    border: 1px solid var(--mainback);
    transition: all 0.5s ease-in-out;
}
.project:hover{
    background: var(--mainback);
    border: 1px solid var(--white);
    color: var(--white);
}
.project__info{
    padding: 2rem;
}
.project__info p{
    margin: 1.2rem 0 2rem;
    font-size: 0.9rem;
}
@media screen and (max-width:1200px){
    .projects{
    margin: 2rem;
    }
    .projects__container{
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}
@media screen and (max-width: 768px) {
    .projects__container{
        grid-template-columns: 1fr;
    }
}
/* ================== Projects End ================== */
/* ================== Contact Start ================== */
.contact__container{
    width: 76%;
    background: var(--mainback);
    padding: 4rem;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 4rem;
    height: auto;
    margin: 7rem auto;
    border-radius: 1rem;
}
.contact__aside{
    background: var(--yellow);
    padding: 3rem;
    border-radius: 1rem;
    position: relative;
    bottom: 0rem;
}
.contact__aside h2{
    text-align: center;
    margin-bottom: 1rem;
}
.contact__aside p{
    font-size: 0.9rem;
    margin-bottom: 2rem;
}
.aside__image{
    width: 12rem;
    margin-bottom: 2rem;
}
.contact__details li{
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
    margin-bottom: 1rem;
}
.contact__details h5{
    margin: 0;
}
/* .contact__socials{
    display: flex;
    gap: 0.8rem;
    margin-top: 3rem;
} */
/* .contact__socials a{
    background: var(--color-bg2);
    padding: 0.5rem;
    border-radius: 50%;
    font-size: 0.9rem;
    transition: var(--transition);
} */
/* .contact__socials a:hover{
    background: transparent;
} */
.contact__form{
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-right: 4rem;
}
.form__name{
    display: flex;
    gap: 1.2rem;
}
.contact__form input[type="text"]{
    width: 50%;
}
input, textarea{
    width: 100%;
    padding: 1rem;
    background: var(--mainback);
    color: var(--white);
    border: 1px solid var(--secondary);
}
.form-p{
    color: var(--white);
}
.form-p--a{
    color: var(--cyan);
}
.form-p--a:hover{
    color: var(--blue);
    transition: all 0.3s ease-in-out;
}
.contact__form .btn{
    margin-top: 1rem;
    cursor: pointer;
}
.btn-primary {
    background: var(--red);
    color: var(--white);
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid transparent;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}
.btn-primary:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* =============== MEDIA QUERIES START =============== */

@media screen and (max-width: 1024px) {
    .contact{
        padding-bottom: 0;
    }
    .contact__container{
        gap: 1.5rem;
        margin-top: 3rem;
        height: auto;
        padding: 1.5rem;
    }
    .contact__aside{
        width: auto;
        padding: 1.5rem;
        bottom: 0;
    }
    .contact__form{
        align-self: center;
        margin-right: 1.5rem;
    }
}
@media screen and (max-width: 550px){
    .contact__container{
        width: 80%;
        margin-bottom: 3rem;
    }
}

/* =============== MEDIA QUERIES END (TABLETS) =============== */

/* =============== MEDIA QUERIES START (PHONES) =============== */

@media screen and (max-width: 768px) {
    .contact__container{
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 80;
        padding: 0;
    }
    .contact__form{
        margin: 0 1.5rem 3rem;
    }
    .form__name{
        flex-direction: column;
    }
    .form__name input[type="text"]{
        width: 100%;
    }
}

/* =============== MEDIA QUERIES END (PHONES) =============== */
/* ================== Contact End ================== */
/* ================== Terms And Conditions Start ================== */
.terms{
    padding: 100px;
}
.terms-title{
    margin-bottom: 30px;
}
.terms-content--content_h4{
    margin: 0;
}
#terms-content--content{
    margin-bottom: 20px;
}
#terms-content--content li{
    margin-left: 40px;
}
.terms-content--content_h2{
    font-size: 1.2em;
}
.terms-and-conditions-2, 
.terms-and-conditions-3, 
.terms-and-conditions-4, 
.terms-and-conditions-5,
.terms-and-conditions-6,
.terms-and-conditions-7{
    margin-top: 60px;
}
@media screen and (max-width: 780px){
    .terms{
        padding: 70px;
    }
}
@media screen and (max-width: 550px){
    .terms{
        padding: 50px;
    }
}
@media screen and (max-width: 350px){
    .terms{
        padding: 30px;
    }
}
/* ================== Terms And Conditions End ================== */
/* ================== Footer Start ================== */
footer {
    text-align: center;
    padding: 1rem 2rem;
    background: #231b46;
    color: var(--white);
}
/* ================== Footer End ================== */
