*{
    padding: 0;
    margin: 0;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#homepage {
    background:linear-gradient( rgba(40, 75, 156, 0.5),    rgba(24, 40, 72, 0.5)   ),url(images/background-image.jpg) no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#header{
    width: 80%;
    height: 12vh;
    background: linear-gradient(135deg, rgb(40, 75, 156),rgb(24, 40, 72));
    display: flex;
    align-items: center;
    border-radius: 30px;
    margin-top: 2.5%;
}

#logo{
    width: 15%;
    height: 100%;
    margin-left: 5%;
}

#logo img{
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

#nav{
    width: 50%;
    margin: 0 auto;
    margin-left: 20%;
    display: flex;
    justify-content: end;
    align-items: center;
    position: relative;
}

#defaultbar{
    list-style: none;    
    display: flex;       
    gap: 50px;
    padding: 0;
    margin: 0;
}

#defaultbar li{
    font-size:25px;
    color: white;
    transition: transform 0.5s ease;
}

#defaultbar li:hover{
    transform: scale(1.2);
}

#defaultbar a{
    text-decoration: none;
    color: inherit;
}


#hamburger{
    display: none; 
    cursor: pointer;
}


.sidebar{
    display: none;
}

#home-section{
    height: 73vh;
    width: 80%;
    margin-top: 5vh;
}

#home-section-first-div{
    width: 100%;
    height: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 5%;
}

#first-text{
    font-size: 50px;
    color: white;
    font-weight: 900;
}

#second-text{
    font-size: 25px;
    color: white;
    font-weight: 900;
    margin-top: 5%;
}

#home-section-second-div{
    width: 100%;
    height: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5%;
    margin-top: 5%;
}

#home-section-second-div button{
    width: 15%;
    height: 35%;
    font-size: 25px;
    border-radius: 20px;
    border: 1px solid white;
    background-color: transparent;
    transition: transform 0.5s ease, background-color 0.5s ease, border 0.5s ease;
}

#home-section-second-div button:hover{
    transform: scale(1.2);
    background-color: rgba(24, 40, 72,0.7);
    border: 1px solid rgb(24, 40, 72);
}

#home-section-second-div a{
    text-decoration: none;
    color: white;
}

/*-----------------------------------------------------------------------------------------*/

#About-Us {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #284b9c, #182848); 
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
    flex-direction: row;
}

#About-first-div,
#About-second-div{
    width: 40%;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#p1{
    font-size: 50px;
    font-weight: 800;
    margin-left: 5%; 
    margin-bottom: 10%;
}

.p2{
    width: 80%;
    margin-top: 5%;
    margin-left: 5%;
    line-height: 1.5;
    font-size: 20px;
}

.About-second-div-child{
    width: 60%;
    height: 40%;
    background-color: #182848;
    margin-top: 5%;
    margin-bottom: 5%;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.About-second-div-child-p1{
    font-size: 80px;
    font-weight: 800;
    color: #284b9c;
}

.About-second-div-child-p2{
    font-size: 25px;
}

/*-----------------------------------------------------------------------------------------*/

#Projects{
    width: 100%;
    height: 100vh;
    background: linear-gradient(45deg, #284b9c, #182848); 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 50px;
}

#Projects h1{
    color: white;
    font-size: 50px;
}

.Projects-rows{
    width: 90%;
    height: 38%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
}

#rows {
    position: relative; 
    width: 50%;
    height: 100%;
    overflow: hidden;  
    transition: transform 0.5s ease;
}

#rows img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    
    display: block;
}

#rows .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(24,40,72,1), rgba(24,40,72,0.5));
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    opacity: 0;
    transition: height 0.5s ease, opacity 0.5s ease;
}

#rows .overlay p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease 0.2s; 
    width: 90%;
}

#rows:hover .overlay p {
    opacity: 1;
}


#rows:hover .overlay {
    height: 100%; 
    opacity: 1;
}

#rows:hover {
    transform: scale(1.1);
}

/*-----------------------------------------------------------------------------------------*/

#Contact {
    background:
        linear-gradient(
            rgba(40, 75, 156, 0.5),   
            rgba(24, 40, 72, 0.5)   
        ),
        url(images/background-image.jpg) no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#contact-section{
    width: 80%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#contact-section1,
#contact-section2{
    width: 50%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;

}

#contact-form {
    width: 70%;
    height: 70%;
    background: linear-gradient(135deg, #284b9c, #182848);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: #fff;
    font-family: 'Arial', sans-serif;
}

#contact-form form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contact-form label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 1rem;
}

#contact-form input,
#contact-form textarea {
    margin-top: 8px;
    padding: 12px 15px;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    background-color: rgba(255,255,255,0.2);
    box-shadow: 0 0 10px rgba(240,192,64,0.7);
}

#contact-form button {
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #182848;
    background-color: #e61a0b;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form button:hover {
    background-color: #e63e0b;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(240,192,64,0.5);
}


#contact-info{
    width: 70%;
    height: 70%;
    background: linear-gradient(135deg, #284b9c, #182848);
    border-radius: 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

#contact-info h1{
    color: white;
    margin-top: 5%;
    margin-bottom: 10%;
}

#contact-info p{
    color: white;
    margin-top: 2.5%;
}

.social-links {
  display: flex;
  gap: 40px;
  margin-top: 10%;
  justify-content: center;
  align-items: center;
}

.social-links a svg {
  transition: 0.3s;
  color: white;
}

.social-links a:hover svg {
  transform: scale(1.2);
  color: #e61a0b; 
}

#footer{
    width: 80%;
    height: 10vh;
    display: flex;
    justify-content: left;
    align-items: center;
    flex-direction: column;
}

#footer p{
    color: white;
    margin-top: 2.5%;
    text-align: center;
}

/*-------------------------
Fade/Slide Animations*/

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-pop {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.reveal-pop.active {
    opacity: 1;
    transform: scale(1);
}


@media (max-width: 1480px) {

    #logo{
        width: 27%;
        height: 80%;
        margin-left: 5%;
        
    }

    #nav{
        width: 50%;
        margin: 0 auto;
        margin-left: 5%;
        display: flex;
        justify-content: end;
        align-items: center;
        position: relative;
    }

    #home-section-second-div button{
        width: 15%;
        height: 40%;
        font-size: 20px;
        border-radius: 20px;
        border: 1px solid white;
        background-color: transparent;
        transition: transform 0.5s ease, background-color 0.5s ease, border 0.5s ease;
    }

    #About-Us {
        width: 100%;
        min-height: 100vh;
        background: linear-gradient(135deg, #284b9c, #182848); 
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #About-first-div,
    #About-second-div{
        width: 80%;
        height: 90vh;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .About-second-div-child{
        width: 60%;
        height: 60%;
        background-color: #182848;
        margin-top: 5%;
        margin-bottom: 5%;
        border-radius: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }


    #Projects{
        width: 100%;
        height: 150vh;
        background: linear-gradient(45deg, #284b9c, #182848); 
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 50px;
    }

    .Projects-rows{
        width: 90%;
        height: 30%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 80px;
    }

    #Contact {
        background:
            linear-gradient(
                rgba(40, 75, 156, 0.5),   
                rgba(24, 40, 72, 0.5)   
            ),
            url(images/background-image.jpg) no-repeat center center;
        background-size: cover;
        width: 100%;
        height: 130vh;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    #contact-form {
        width: 70%;
        height: 80%;
        background: linear-gradient(135deg, #284b9c, #182848);
        border-radius: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        color: #fff;
        font-family: 'Arial', sans-serif;
    }

    #contact-info{
        width: 70%;
        height: 80%;
        background: linear-gradient(135deg, #284b9c, #182848);
        border-radius: 20px;
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    #contact-info h1{
        color: white;
        margin-top: 20%;
        margin-bottom: 15%;
    }
}


@media (max-width: 1298px) {

    #logo{
        width: 20%;
        height: 80%;
        margin-left: 5%;
    }

    #Projects{
        width: 100%;
        height: 270vh;
        background: linear-gradient(60deg, #284b9c, #182848); 
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 80px;
    }

    #rows .overlay p {
        width: 80%;
    }

    .Projects-rows {
        flex-direction: column; 
        align-items: center;
        gap: 80px;
        height: auto; 
    }

    #rows {
        width: 90%;     
        height: 50vh;   
    }
}

@media (max-width: 1298px) {
    

    #nav{
        width: 70%;
        margin: 0 auto;
        margin-left: 5%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    #home-section-second-div button{
        width: 20%;
        height: 30%;
    }

    #About-Us {
        width: 100%;
        height: 190vh;
        background: linear-gradient(130deg, #284b9c, #182848); 
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    #About-first-div,
    #About-second-div{
        width: 80%;
        height: 90vh;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    #p1{
        font-size: 50px;
        font-weight: 800;
        margin-left: 5%; 
        margin-bottom: 5%;
    }


    .About-second-div-child{
        width: 60%;
        height: 60%;
        background-color: #182848;
        margin-top: 5%;
        margin-bottom: 2.5%;
        border-radius: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    #Contact {
        background:
            linear-gradient(
                rgba(40, 75, 156, 0.5),   
                rgba(24, 40, 72, 0.5)   
            ),
            url(images/background-image.jpg) no-repeat center center;
        background-size: cover;
        width: 100%;
        height: 120vh;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    #contact-section{
        width: 80%;
        height: 90vh;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    #contact-section1,
    #contact-section2{
        width: 50%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    #contact-form {
        width: 100%;
        height: 90%;
        background: linear-gradient(135deg, #284b9c, #182848);
        border-radius: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        color: #fff;
        font-family: 'Arial', sans-serif;
    }

    #contact-info{
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #284b9c, #182848);
        border-radius: 20px;
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    #contact-info h1{
        color: white;
        margin-top: 10%;
        margin-bottom: 5%;
    }

    #contact-info p{
        color: white;
        margin-top: 2.5%;
    }

    .social-links {
        display: flex;
        gap: 40px;
        margin-top: 8%;
    }

    #footer{
        width: 80%;
        height: 10vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #footer p{
        color: white;
    }
}

@media (max-width: 1080px) {
    #home-section-first-div{
        width: 100%;
        height: 30%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-top: 5%;
    }

    #first-text{
        font-size: 50px;
        color: white;
        font-weight: 900;
    }

    #second-text{
        font-size: 25px;
        color: white;
        font-weight: 900;
        text-align: center;
    }
}

@media (max-width: 970px) {
    #header {
        position: relative;
        z-index: 1000;
    }

    #nav {
        display: flex;
        justify-content: flex-end;  
        align-items: center;
    }

    #defaultbar {
        display: none;
    }

    #hamburger {
        display: flex;
        cursor: pointer;
        margin-right: 6%;      
        z-index: 10000;        
    }

    .sidebar {
        display: none !important; 
        position: fixed;
        top: 0%;
        left: 60%;
        width: 40%;
        height: 50vh;
        background: linear-gradient(150deg, #1e3569 75%, #182848 100%);
        padding: 40px 30px;
        flex-direction: column;
        gap: 25px;
        transform: translateX(110%); 
        transition: transform 0.35s ease;
        z-index: 99999;           
        border-top-right-radius: 30px;
        border-bottom-right-radius: 30px;
        border-bottom-left-radius: 30px;
        overflow-y: auto;
    }

    .sidebar.active {
        display: flex !important;
        transform: translateX(0);
    }

    #close {
        align-self: flex-end;
        margin-bottom: 20px;
        cursor: pointer;
        padding: 8px;
        border-radius: 10px;
    }

    .sidebar li {
        font-size: 22px;
        font-weight: 500;
        color: white;
        list-style: none;
    }

    .sidebar li a {
        text-decoration: none;
        color: white;
        display: block;
        padding: 10px 0;
        border-radius: 8px;
        transition: background 0.3s ease, padding-left 0.3s ease;
    }

    .sidebar li a:hover {
        background: rgba(255,255,255,0.08);
        padding-left: 10px;
    }

    #home-section-second-div button{
        width: 20%;
        height: 30%;
        font-size: 20px;
    }

     #About-Us {
        width: 100%;
        height: 160vh;
        background: linear-gradient(135deg, #284b9c, #182848); 
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }


    #contact-info{
        width: 100%;
        height: 80%;
        background: linear-gradient(135deg, #284b9c, #182848);
        border-radius: 20px;
        display: flex;
        align-items: center;
        flex-direction: column;
    }
}

@media (max-width: 821px) {
    #logo{
        width: 55%;
        height: 80%;
        margin-left: 5%;
    }

    #nav {
        display: flex;
        justify-content: flex-end;  
        align-items: center;
    }

    #home-section-second-div button{
        width: 30%;
        height: 40%;
    }

    .Projects-rows{
        width: 90%;
        height: 38%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 100px;
    }

    #rows {
        position: relative; 
        width: 100%;
        height: 100%;
        overflow: hidden;  
        transition: transform 0.5s ease;
    }

    #rows img {
        width: 100%;
        height: 100%;
        border-radius: 20px;
        
        display: block;
    }

    #contact-section1,
    #contact-section2{
        width: 80%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
}

@media (max-width: 598px) {

    .sidebar {
        left: 40%;
        width: 60%;
        height: 73vh;
        background: linear-gradient(135deg, #243f7c 5%, #121f3a 100%);
    }

    #close {
        align-self: flex-end;
        margin-top: 8px;
        margin-right: -22px;
        cursor: pointer;
        border-radius: 10px;
    }

    #home-section{
        height: 73vh;
        width: 90%;
        margin-top: 5vh;
    }

    #home-section-first-div{
        width: 100%;
        height: 30%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-top: 5%;
        gap: 5%;
    }

    #first-text{
        font-size: 50px;
        color: white;
        font-weight: 900;
    }

    #second-text{
        font-size: 25px;
        color: white;
        font-weight: 900;
    }

    #home-section-second-div{
        width: 100%;
        height: 30%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5%;
    }

    #home-section-second-div{
        width: 100%;
        height: 30%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 15%;
        margin-top: 10%;
    }

    #home-section-second-div button{
        width: 80%;
        height: 40%;
    }

    .About-second-div-child{
        width: 100%;
        height: 60%;
        background-color: #182848;
        margin-top: 5%;
        margin-bottom: 2.5%;
        border-radius: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    #Projects{
        width: 100%;
        height: 220vh;
        background: linear-gradient(50deg, #284b9c, #182848); 
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 80px;
    }

    .Projects-rows{
        width: 90%;
        height: 40%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 100px;
    }

    #rows .overlay p {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 600;
        text-align: center;
        opacity: 0;
        transition: opacity 0.5s ease 0.2s; 
        width: 90%;
    }

    #contact-info{
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #284b9c, #182848);
        border-radius: 20px;
        display: flex;
        align-items: center;
        flex-direction: column;
    }
}

@media (max-width: 533px) {
    #logo{
        width: 85%;
        height: 80%;
        margin-left: 5%;
    }

    .sidebar {
        left: 0px;
        width: 100%;
        height: 80vh;
        background: linear-gradient(135deg, rgb(40, 75, 156),rgb(24, 40, 72));
        border-radius: 30px ;
    }

    .sidebar li a {
        text-align: center;
    }

    #close {
        align-self: flex-end;
        margin-top: 8px;
        margin-right: -25px;
        cursor: pointer;
        border-radius: 10px;
    }

    #first-text{
        font-size: 45px;
        color: white;
        font-weight: 900;
    }

    #second-text{
        font-size: 20px;
        color: white;
        font-weight: 900;
    }

    #About-Us {
        width: 100%;
        height: 190vh;
        background: linear-gradient(130deg, #284b9c, #182848); 
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: start;
        flex-direction: column;
    }

    #contact-section1,
    #contact-section2{
        width: 90%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    #contact-section{
        width: 80%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    #contact-info{
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #284b9c, #182848);
        border-radius: 20px;
        display: flex;
        align-items: center;
        flex-direction: column;
    }
}

@media (max-width: 478px) {
    #home-section-first-div{
        width: 100%;
        height: 40%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-top: 5%;
        gap: 10%;
    }

    #first-text{
        font-size: 40px;
        color: white;
        font-weight: 900;
    }

    #second-text{
        font-size: 20px;
        color: white;
        font-weight: 900;
    }

    #About-first-div{
        width: 95%;
        height: 90vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #About-second-div{
        width: 90%;
    }

    #Projects{
        width: 100%;
        height: 200vh;
        background: linear-gradient(50deg, #284b9c, #182848); 
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 3 0px;
    }

    .Projects-rows{
        width: 90%;
        height: 35%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 100px;
    }

    #rows .overlay p {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 600;
        text-align: center;
        opacity: 0;
        transition: opacity 0.5s ease 0.2s; 
        width: 90%;
    }

    #contact-section{
        width: 95%;
        height: 90vh;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
}

@media (max-width: 373px) {
    #header{
        width: 80%;
        height: 15vh;
    }

    #home-section-first-div{
        width: 100%;
        height: 40%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-top: 5%;
        gap: 10%;
    }

    #first-text{
        font-size: 30px;
        color: white;
        font-weight: 900;
    }

    #second-text{
        font-size: 15px;
        color: white;
        font-weight: 900;
    }
}

@media (max-height: 700px) {
    #About-Us {
        width: 100%;
        height: 250vh;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 140px;
    }
}