*, *::before, *::after{
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #101317;
    --second-bg-color: #17191b;
    --text-color: #fff;
    --main-color: orangered;

    --logo-font-size: 4rem;
    --navbar-font-size: 2rem;
    --botton-font-size: 1.8rem;

    --servicesicons-font-size: 7rem;
    --linkicon-font-size: 3rem;
    --menuicon-font-size: 4rem;
    --socialmediaicon-font-size: 2.4rem;

    --heading-font-size: 5rem;
    --subheading-font-size: 4.5rem;
    --subsubheading-font-size: 3rem;
    --content-font-size: 2rem;
    --footerlinks-font-size: 1.8rem;
    --copyright-font-size: 1.2rem;
}

html{
    font-size: 62.5%;  /*62.5% of browser's default font size i.e. 62.5% of 16px = 10px*/
    overflow-x: hidden;
    background: rgb(241, 241, 241);
}

/*header, section{
    max-width: 240rem;
    margin: 0 auto;
}*/

section{
    min-height: 100vh;
    width: 100%;
    padding: 0 12.5%;
}

.heading{
    text-align: center;
    font-size: var(--heading-font-size);
    line-height: 2;
}

.subHeading{
    font-size: var(--subheading-font-size);
}

.subSubHeading{
    font-size: var(--subsubheading-font-size);
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3.5rem 12.5%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(1rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: var(--logo-font-size);
    color: white;
    font-weight: 600;
    transition: 0.3s;
}

.logo:hover{
    color: var(--main-color);
    text-shadow: 0 0 2.5rem var(--main-color),
                 0 0 5rem var(--main-color);
    transform: scale(1.1);
}

span{
    color: var(--main-color);
}

#menu-icon{
    font-size: var(--menuicon-font-size);
    color: white;
    display: none;
}

.bx::before {
    font-family: 'boxicons' !important;
}


.navbar a{
    font-size: var(--navbar-font-size);
    color: white;
    font-weight: 500;
    margin: 0 2rem;
    baorder-bottom: 0.3rem solid transparent;
    transition: 0.1s ease;
}

.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
    border-bottom: 0.3rem solid var(--main-color);
}

.contact-navItem{
    display: none;
}

.contact{
    padding: 1rem 2.8rem;
    background-color: white;
    color: black;
    border: 0.2rem solid transparent;
    border-radius: 0.8rem;
    font-size: var(--botton-font-size);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.contact:hover{
    background-color: var(--main-color);
    box-shadow: 0 0 2.5rem var(--main-color);
    color: white;
}

.portfolio{
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    gap: 5%;
}

.portfolio-content{
    flex: 0 0 55%;
}

.portfolio-content h2{
    line-height: 2;
}

.portfolio-content h1{
    text-align: left;
    line-height: 1;
}

p, li{
    font-size: var(--content-font-size);
}

.portfolio-content p{
    text-align: justify;
    margin: 2.5rem 0 3rem;
}

/*.btn-box{
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 2em;
}*/

.btn-box-grid{
    width: 100%;
    display: grid;
/*    grid-template-columns: 1fr 1fr  1fr;*/
    grid-template-columns: repeat(3, minmax(15rem, 1fr));
    gap: 1%;
}

/*.btn-box-grid > * {
  *//* Apply to ALL direct children *//*
  width: 100%;
  box-sizing: border-box;

  *//* Make link look/behave like button if needed *//*
  display: inline-block;
}*/
.btn-gold{
    display: inline-block;
    padding: 1.5rem 2.8rem;
    background: linear-gradient(145deg, #ffdf00 0%, #fff29e 10%, #e6b800 25%, #d4af37 40%, #a67c00 50%, #d4af37 60%, #e6b800 75%, #fff29e 90%, #ffdf00 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    border: 0.2rem solid transparent;
    border-radius: 0.8rem;
    font-size: var(--botton-font-size);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn-gold:hover{
    background: linear-gradient(145deg, #f5d033 0%, #ffeb8e 15%, #e6b800 30%, #c9a227 45%, #a67c00 50%, #c9a227 55%, #e6b800 70%, #ffeb8e 85%, #f5d033 100%);
    color: black;
    border: 0.2rem solid black;
}


.btn-1{
    display: inline-block;
    padding: 1.5rem 2.8rem;
    background-color: black;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    border: 0.2rem solid transparent;
    border-radius: 0.8rem;
    font-size: var(--botton-font-size);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn-1:hover{
    background-color: white;
    color: black;
    border: 0.2rem solid black;
}

.btn-2{
    display: inline-block;
    padding: 1.5rem 2.8rem;
    background-color: var(--main-color);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    border: 0.2rem solid black;
    border-radius: 0.8rem;
    font-size: var(--botton-font-size);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn-2:hover{
    background-color: white;
    color: var(--main-color);
}

.btn-box-grid a{
    text-align: center;
}

.portfolio .social{
    text-align: center;
    padding-bottom: 2.5rem;
    color: white;
}

.portfolio .social a{
    font-size: var(--socialmediaicon-font-size);
    color: black;
    border: .2rem solid var(--main-color);
    width: 4rem;
    height: 4rem;
    line-height: 3.8rem;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 .8rem;
    box-shadow: inset 0 0 1rem var(--main-color), 0 0 1rem var(--main-color);
    transition: 0.3s ease;
}

.portfolio .social a:hover{
    transform: scale(1.2)translateY(-10px);
    color: var(--main-color);
    border: .2rem solid var(--main-color);
}

.img-box{
    flex: 0 0 40%;
}

.img-box img{
    border-radius: 50%;
    width: 100%;
}

::-webkit-scrollbar{
    width: 1.5rem;
}

::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}

::-webkit-scrollbar-track{
    background-color: rgba(0, 0, 0, 0.6);
    width: 5rem;
}

.service-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2rem;
}

.service-container .service-box {
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.2rem solid var(--bg-color);
    transition: 0.5s ease;
}

.service-container .service-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.service-box i{
    font-size: var(--servicesicons-font-size);
    color: var(--main-color);
}

.service-box h2{
    line-height: 2;
    color: white;
}

.service-box p{
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: white;
    text-align: center;
}

.service-box a{
    margin-top: 2rem;
}

/* Portfolio grid container */
.project-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2rem;
}

/* Individual portfolio boxes */
.project-container .project-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    display: flex;
}

.project-box img{
    width: 100%;
    transition: 0.5s ease;
}

.project-box:hover img{
    transform: scale(1.1)
}

/* Project info overlay */
.project-box .project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 2rem;
    cursor: pointer;
    transition: 0.3s ease;
}

/* Hover effect for project info */
.project-box .project-info:hover {
    background: radial-gradient(rgba(0, 0, 0, 0.165), var(--main-color));
    transform: scale(1.1);
}

/* Style for links inside project info */
.project-info a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--text-color);
    border-radius: 50%;
}

/* Style for icons inside those links */
.project-info a i {
    font-size: var(--linkicon-font-size);
    color: var(--second-bg-color);
}

/*
additional css to style the link icon on hover
*/
/* Add hover effects */
.project-info a:hover {
    background: var(--main-color);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.project-info a:hover i {
    color: white;
}

/* Optional: Add transition to base state */
.project-info a {
    transition: all 0.3s ease;
}

.project-info h2{
    line-height: 2;
    color: white;
    text-shadow:    1px 1px 0 var(--main-color),
    2px 2px 0 var(--main-color),
    3px 3px 0 var(--main-color);
}

.project-info p{
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: white;
    text-shadow:    1px 1px 0 var(--main-color),
    2px 2px 0 var(--main-color),
    3px 3px 0 var(--main-color);
    text-align: center;
}

.project-info a{
    margin-top: 2rem;
}

.about{
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10em;
}

.about-img img{
    position: relative;
    width: 25vw;
    box-shadow: 0 0 2.5rem var(--main-color),
                0 0 5rem var(--main-color);
    border-radius: 50%;
}

.about-content h1,
.about-content h2{
    text-align: left;
}

.about-content p{
    text-align: justify;
    margin: 2em 0 2em;
}

.about-content ul li{
    list-style: disc;
    text-align: justify;
    margin: 0 0 0.5em 1em;
}

.about-content ul li:nth-child(5){
    margin: 0 0 0 1em;
}

.about-content ul li::marker{
    color: var(--main-color);
}

.timeline-items {
    max-width: 100vw;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.timeline-items::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left: calc(50% - 1px);
}

.timeline-item {
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    height: 21px;
    width: 21px;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;
    top: 10px;
}

.timeline-date {
    font-size: 20px;
    font-weight: 800;
    color: var(--main-color);
    margin: 6px 0 15px;
}

.timeline-content {
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

/* Recommended hover effect to use the transition */
.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}

.timeline-content h3 {
    font-size: 20px;
    color: white;
    margin: 0 0 10px;
    font-weight: 500;
}

.timeline-content p {
    color: white;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}

.contact-form{
    padding-bottom: 5%;
}

.contact-form form{
    max-width: 80em;
    margin: 0 auto;
    text-align: center;
}

.contact-form form .input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-form form .input-box input,
.contact-form form textarea{
    width: 100%;
    padding: 1.5em;
    font-size: var(--content-font-size);
    color: black;
    background: rgb(215, 215, 215);
    border-radius: 0.8rem;
    margin: 1rem 0;
    resize: none;
}

.contact-form form input{
    margin-top: 1rem;
}

.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 4rem 0;
    background: black;
}

.footer .social{
    text-align: center;
    padding-bottom: 2.5rem;
    color: white;
}

.footer .social a{
    font-size: var(--socialmediaicon-font-size);
    color: white;
    border: .2rem solid var(--main-color);
    width: 4rem;
    height: 4rem;
    line-height: 3.8rem;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 .8rem;
    box-shadow: inset 0 0 1rem var(--main-color), 0 0 1rem var(--main-color);
    transition: 0.3s ease;
}

.footer .social a:hover{
    transform: scale(1.2)translateY(-10px);
    color: var(--main-color);
    border: .2rem solid var(--main-color);
}

.footer ul{
    margin-top: 0;
    padding: 0;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}

.footer ul li a{
    color: white;
    border-bottom: .3rem solid transparent;
    transition: 0.3s ease;
}

.footer ul li a:hover{
    border-bottom: .3rem solid var(--main-color);
}

.footer ul li{
    font-size: var(--footerlinks-font-size);
    display: inline-block;
    padding: 0 1.5rem;
}

.footer .copyright{
    margin-top: 1.5rem;
    text-align: center;
    font-size: var(--copyright-font-size);
    color: white;
}

@media (max-width: 1650px) {
    :root{
        --botton-font-size: 1.9rem;
    }
}@media (max-width: 1550px) {
    :root{
        --botton-font-size: 1.8rem;
    }
}@media (max-width: 1450px) {
    :root{
        --botton-font-size: 1.5rem;
    }
}@media (max-width: 1400px) {
    .project-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-container {
        grid-template-columns: repeat(2, 1fr);
    }
}@media (max-width: 1300px) {
    :root{
        --botton-font-size: 1.4rem;
    }
}@media (max-width: 1024px) {
    .header, .navbar{
        padding-left: 5%;
        padding-right: 5%;
    }
    section{
        padding: 0 5%;
    }
}@media (max-width: 1200px) {
    html{
        font-size: 59.375%;
    }
    .btn-box-grid{
        grid-template-columns: repeat(1, minmax(auto, 1fr));
        padding: 0 20%;
        gap: 3%;
    }

}@media (max-width: 966px) {
    html{
        font-size: 56.25%;
    }

}@media (max-width: 916px) {
    html{
        font-size: 53.125%;
    }
}@media (max-width: 768px) {
    html{
        font-size: 50%;
    }

    .header{
/*        position: sticky;*/
        padding: 1.5rem 5%;
    }

    #menu-icon, .contact-navItem{
        display: block;
    }

    .contact{
        display:none;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 0 5%;
        background: rgba(0, 0, 0, 0.8);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        margin: 3rem 0;
    }

    section{
        padding: 0 5%;
    }

    .portfolio{
        flex-direction: column-reverse;
    }

    .img-box{
        padding: 5% 0 0;
    }

    .img-box img{
        width: 50vw;
    }

    .about{
        flex-direction: column;
        gap: 0;
    }

    .about-img img{
        width: 50vw;
    }

}@media (max-width: 600px) {
    .project-container {
        grid-template-columns: repeat(1, 1fr);
    }
    .service-container {
        grid-template-columns: repeat(1, 1fr);
    }
}
