*{
    margin: 0;
    padding: 0;
}

html{
    scroll-behavior: smooth;
}

.header{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/profile.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}

.logo{
    font-family: "Parisienne", cursive;
    font-size: 30px;
    text-decoration: none;
    color: white;
    font-weight: 800;
    transition: 0.3s;
}

nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: block;
    position: static;
    height: auto;
    width: auto;
    background: none;
    text-align: right;
}

/*.nav-links {
    position: absolute;
    top: 0;
    right: -200px; 
    background: #2f8af1;
    height: 100vh;
    width: 200px;
    z-index: 2;
    text-align: left;
    transition: right 0.5s;
} */

.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a{
    font-family: "DM Serif Text", serif;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
}

.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #2f8af1;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after{
    width: 100%;
}

.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}

.text-box h1{
    font-size: 62px;
}

.text-box p{
    margin: 0.625rem 0 2.5rem;
    font-size: 0.938rem;
    color: #fff;
    word-wrap: break-word; 
    line-height: 1.5; 
    max-width: 80%; 
    margin-left: auto; 
    margin-right: auto; 
    line-height: 30px;
}

.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 10px;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.hero-btn:hover{
    border: 1px solid #2f8af1;
    background: #2f8af1;
    transition: 1s;
}

nav .fa{
    display: none;
	cursor: pointer;
}

@media(max-width: 700px){
    .text-box h1{
        font-size: 20px;
        padding-top: 100px;
    }
	
    .nav-links ul li{
        display: block;
    }
    .nav-links{
        position: absolute;
        background: #2f8af1;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: right 1s;
    }
    nav .fa{
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
		z-index: 3;
    }
    .nav-links ul{
        padding: 30px;
    }
}



/*----My Projects----*/

#container{
    width: 100%;
    margin-top: -0.625rem;
    padding: 0;
    box-sizing: border-box;
   
}

#container h1{
        padding-top: 20px;
        text-align: center;
        font-size: 36px;
        font-weight: 600;
}

#container h2{
    padding-top: 20px;
    text-align: center;
    color: #0077B5;

}

#container h1::after{
    content: '';
   
    width: 6.25rem;
    height: 0.313rem;
    position: absolute;
    bottom: -0.313rem;
    left: 50%;
    transform: translateX(-50%);
}

.projects-row{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(21.875rem, 1fr));
    grid-gap: 1.875rem;
}

.projects{
    text-align: center;
    padding: 1.563rem 0.625rem;
    border-radius: 0.313rem;
    font-size: 0.875rem;
    cursor: pointer;
    background: transparent;
    transition: transform 0.3s ease;
    
}

.projects p{
    font-size: 1.25rem;
}

.projects img {
    width: 100%; 
    height: auto; 
    max-width: 400px;
    border-radius: 0.313rem; 
    margin-bottom: 0.938; 
}

.projects:hover{
    color: #000000;
    transform: scale(1.05);
}

.projects:hover i{
    color: #fff;
}

@media (max-width: 700px){
    .projects-row img{
        display: inline;
        margin-right: 50px;
    }

    .projects-row img{
        margin-left: 80px;
        width: 50%;
        padding-top: 10px;
    }
    h2{
        font-size: 20px;
        text-align: center;
        margin-left: 50px;
    }
}




/*----We Offer----*/

#offer{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

h1{
    font-size: 36px;
    font-weight: 600;
}

p{
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}

.offer-col{
    flex-basis: 31%;
    background: #fff3f3;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}

.offer-col:hover{
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
}

h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}

@media(max-width: 700px){
    .row{
        flex-direction: column;
    }
}



/*------Contact-------*/

/* Main Contact Section */
#main3 {
    width: 80%;
    height: auto;
    padding: 50px;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 100px;
    position: relative; 
    background-color: #fff;
}

#main3 h1{
    text-align: center;
    margin-bottom: 20px;
    font-size: 36px;
    font-weight: 600;
}

/* Contact Container with two columns */
.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.contact-info {
    width: 40%;
    background-color: #a2c3e6;
    padding: 30px;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.contact-info h3 {
    color: #0077B5;
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-info ul {
    list-style: none;
    padding-left: 0;
}

.contact-info ul li {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.contact-info ul li i {
    margin-right: 10px;
    color: #0077B5;
}

.contact-wrapper {
    width: 55%;
    background-color: #a2c3e6;
    padding: 30px;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.contact-form .inputBox {
    position: relative;
    margin-bottom: 20px;
}

.contact-form .inputBox label {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #333;
}

.contact-form .inputBox label i {
    margin-right: 10px;
    font-size: 18px;
    color: #0077B5;
}

.contact-form .inputBox input,
.contact-form .inputBox textarea {
    width: 90%;
    padding: 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.contact-form .inputBox input:focus,
.contact-form .inputBox textarea:focus {
    border-color: #0077B5;
    background-color: #ffffff;
}

.contact-form .inputBox textarea {
    resize: none;
    height: 150px;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    background-color: #0077B5;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background-color: #005f85;
}

/* Media Query Adjustments */
@media (max-width: 768px) {
    #main3 {
        width: 80%;
        margin-left: 5%;
        padding: 30px;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-info, .contact-wrapper {
        width: 80%;
        margin-bottom: 20px;
    }

    #main3 h1{
        font-size: 36px;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    #main3 {
        margin-left: 2%;
        padding: 20px;
    }
}




/*----Footer----*/

footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    position: relative;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo a {
        font-family: "Parisienne", cursive;
        font-size: 30px;
        text-decoration: none;
        color: white;
        font-weight: 800;
        transition: 0.3s;
}

.footer-logo a:hover {
    transform: scale(1.1);
}

.footer-links ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links ul li {
    margin: 0 15px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #0077B5;
}

.footer-social img{
    width: 30px;
    margin: 5px;
}

footer p {
    font-size: 0.875rem;
    color: #fff;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links ul {
        margin-top: 20px;
        flex-direction: column;
    }

    .footer-links ul li {
        margin: 10px 0;
    }

    .footer-social ul {
        margin-top: 20px;
    }
}