/* Google Fonts Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

/* Common CSS */
img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
p {
    color:white;
    text-align: center;
    font-size: 18px;
    line-height: 1.6rem;
}
.section-title {
    font-size: 3.5rem;
    font-weight: 400;
    color: black;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
}
.section-title span {
    color: crimson;
}
a {
    text-decoration: none;
}
.container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn {
    display: inline-block;
    padding: 10px;
    color:white;
    background-color: transparent;
    border: 2px solid crimson;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-top: 30px ease;
    transition: .3s;
    transition-property: background-color, color;
    border-radius: 6px;
}
.btn:hover {
    color: white;
    background-color: crimson;
}
.brand h1 {
    font-size: 4rem;
    text-transform: uppercase;
    color: white;
}
.brand h1 span {
    color: crimson;
}
/* Common CSS Ends */

/* Menu Items Starts */

#header{
    width: 100%;
    margin: 0 auto;
}
#header .menu{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: crimson;
}
#header .logo {
    width: 40px;
    height: 40px;
    margin-left: 100px;
}
.menu-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.menu-items ul {
    list-style: none;
}
.menu-items ul li{
    display: inline-block;
    margin-right: 50px;
}
.menu-items ul li a{
    text-decoration: none;
    text-transform: uppercase;
    color: white;
    font-size: 18px;

}
.menu-items ul li a:hover {
    color: yellow;
    transition: 0.3s;
}

/* Menu Items Ends */

/* Hero CSS Starts */

#hero {
    background-image: url(../img/main_bg.jpg);
    background-size: cover;
    background-position: top center;
    position: relative;
    z-index: 1;
}
#hero::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: .7;
    z-index: -1;
}
#hero.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    justify-content: flex-start;
}
#hero h1 {
    display: block;
    width: fit-content;
    font-size: 4rem;
    position: relative;
    color:white;
    animation: text_reveal .5s ease forwards;
    animation-delay: 1s;
}
#hero h1:nth-child(1){
    animation-delay: 1s;
}
#hero h1:nth-child(2){
    animation-delay: 2s;
}
#hero h1:nth-child(3){
    animation: text_reveal_name .5s ease forwards;
    animation-delay: 3s;
}
#hero h1 span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: crimson;
    animation: text_reveal_box 1s ease;
    animation-delay: .5s;
}
#hero h1:nth-child(1) span {
    animation-delay: .5s;
}
#hero h1:nth-child(2) span {
    animation-delay: 1.5s;
}
#hero h1:nth-child(3) span {
    animation-delay: 2.5s;
}
#hero .btn {
    display: inline-block;
    padding: 10px 30px;
    color:white;
    background-color: transparent;
    border: 2px solid crimson;
    font-size: 2rem;
    text-transform: uppercase;
    margin-top: 30px ease;
    transition: .3s;
    transition-property: background-color, color;
    border-radius: 6px;
}
#hero .btn:hover{
    color: white;
    background-color: crimson;
}

/* Hero CSS Ends */

/* Services Section Starts */

#services .services{
    flex-direction: column;
    text-align: center;
    max-width: 1500px;
    margin: 0 auto;
    padding: 50px 0;
    margin-bottom: 0;
}
#services .section-title{
    font-size: 3.5rem;
    font-weight: 400;
    color: black;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
}
#services .section-title span{
    color: crimson;
}
#services .service-top p{
    font-size: 1.4rem;
    margin-top: 5px;
    line-height: 2.5rem;
    letter-spacing: .05rem;
    color: black;
}
#services .service-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
} 
#services .services-item {
    flex-basis: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    border-radius: 10px;
    background-image: url(../img/services.jpg);
    background-size: cover;
    margin: 10px 5%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
#services .services-item::after{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color:black;
    opacity: .7;
    z-index: -1;
}
#services .service-bottom .icons{
    height: 80px;
    width: 80px;
    margin-bottom: 20px;
}

#services .services-item h1 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Services Section Ends */

/* Projects Section Starts */

#projects .projects {
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 0;
    margin-bottom: 100px;
} 
#projects .projects-header h1 {
    margin-bottom: 20px;
}
#projects .all-projects {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#projects .project-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 80%;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
}
#projects .project-info{
    padding: 30px;
    flex-basis: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: rgba(57, 60, 63, 0.096);
    color: black;
    text-transform: capitalize;
}
#projects .project-info h1{
    font-size: 3.5rem;
    font-weight: 500;
}
#projects .project-info h2{
    font-size: 2rem;
    font-weight: 400;
    margin-top: 10px;
}
#projects .project-info p{
    color: black;
    text-align: center;
    margin-top: 10px;
    line-height: 30px;
}
#projects .project-img {
    flex-basis: 50%;
    height: 300px;
    overflow: hidden;
    position: relative;
}
#projects .project-img::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: .3;
}
#projects .project-img img {
    transition: .3s ease transform;
}
#projects .project-item:hover .project-img img{
    transform: scale(1.1);
} 

/* Projects Section Ends */

/* About Section Starts */

#about .about{
    flex-direction: column-reverse;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 5px;
    margin-top: 0;
    padding-top: 0;
}
#about .col-left{
    width: 250px;
    height: 360px;
}
#about .col-right{
    width: 100%;
}
#about .col-right h1{
    margin-top: 0;
    margin-bottom: 25px;
}
#about .col-right h2{
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
}
#about .col-right p{
    margin-bottom: 20px;
    text-align: center;
    font-size: 2rem;
    line-height: 3rem;
    color: black;
}
#about .col-right .btn {
    color: black;
    margin-bottom: 50px;
    padding: 10px 20px;
    font-size: 2rem; 
}
#about .col-left .about-img{
    height: 100%;
    width: 100%;
    position: relative;
    border: 10px solid white;
}
#about .col-left .about-img::after{
    content: '';
    position: absolute;
    left: -33px;
    top: 19px;
    height: 340px;
    width: 200px;
    border: 7px solid crimson;
    z-index: -1;
}

/* About Section Ends */

/* Contact Section Starts */

#contact .contact {
    flex-direction: column;
    padding: 10px 0;
    align-items: center;
    justify-content: center;
    min-width: 20vh;
    align-items: center;
}
#contact .contact-items{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin: 0;
}
#contact .contact-item{
    width: 30%;
    margin: 0;
    flex-direction: row;
    box-shadow: 0px 0px 18px 0 #00002c;
    transition: .3s ease box-shadow;
}
#contact .contact-item:hover{
    box-shadow: 0px 0px 5px 0 #00002c;
}
#contact .contact-item .icon{
    height: 50px;
    width: 50px;
    align-items: center;
}
#contact .contact-item .icon img{
    object-fit: contain;
}
.section-title {
    font-size: 3.5rem;
    font-weight: 400;
    color: black;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
    margin-top: 30px;
}
#contact .contact-info h1{
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 5px;
    margin-top: 0px;
    text-align: center;
}
#contact .contact-info h2{
    font-size: 1rem;
    line-height: 2rem;
    font-weight: 500;
    text-align: center;
}
h1.section-title {
    margin-bottom: 30px;
}

/* Contact Section Ends */

/* Footer Section Starts */

#footer {
    background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
}
#footer .footer{
    min-height: 200px;
    flex-direction: column;
    padding-top: 15px;
    padding-bottom: 10px;
}
#footer h1 {
    text-align: center;
    font-size: 2.5rem;
}
#footer h2 {
    color: white;
    font-weight: 500;
    font-size: 2rem;
    letter-spacing: 1rem;
    margin-top: 10px;
    margin-bottom: 10px;
    align-items: center;
    text-align: center;
}
#footer .social-icon {
    padding: 0 auto;
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}
#footer .social-iten {
    width: 50px;
    height: 50px;
    margin: 0 5px;
}
#footer .footer p{
    font-size: 15px;
    margin-bottom: 5px;
    text-align: center;
}
/* Footer Section Ends */

/* Keyfreams Starts*/

@keyframes text_reveal_box {
    50%{
        width: 100%;
        left: 0;
    }
    100%{
        width: 0;
        left: 100%;
    }
}
@keyframes text-reveal {
    100%{
        color: white;
    }
}
@keyframes text-reveal_name {
    100%{
        color: crimson;
        font-weight: 500px;
    }
}
/* Keyfreams Ends */
