nav {
    background-color: #555;
    padding: 20px;
}

nav {
    top: 0;
    width: 99%;
    z-index: 1000;
    background-color: #3a3838;
    margin-left: 5px;
    margin-top: 5px;
    position: fixed;
   
}

 .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
} 




.brand {
    color: #fff;
    font-size: 1.5em; /* Adjust font size as needed */
    font-weight: bold;
    margin-right: 20px; /* Adjust margin as needed */
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    margin: 0 5px;
    transition: background-color 0.3s;
}


.nav-links a:hover {
    background-color: #777;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .brand {
        margin: 5px 0 10px 0;
    }

    .nav-links a {
        margin: 5px 0;
    }
} 






/* ***** home css *** */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins','sans-serif';
}

.container{
    width: 99%;
    height: 100vh;
    background-image: url("https://img.freepik.com/free-photo/high-angle-desktop-with-laptop-copy-space_23-2148430882.jpg?w=900&t=st=1705003839~exp=1705004439~hmac=b8348bae2abc4523655bb8c38c8ebbc2e0a6c71cc81910cf9ff56492de3535c1");
    background-size: 100%; /* Adjust this property as needed */
    background-position: center;
    color: rgb(158, 95, 181);
    display: flex;
    align-items: center;
   flex-direction: column;
   margin-top: 5px;
    margin-left: 5px;
   border: 15px solid black;
}
.container h4 {
    font-size: 24px;
    font-weight: 700;
    /* color: rgb(110, 106, 106); Adjust the color as needed */
    margin-top: 20px; /* Adjust the margin as needed */
    margin-left: 250px;
    margin-top: 130px;
    color: aliceblue;
}

.container h3 {
    font-size: 30px;
    font-weight: 600;
    margin-left: 300px;
    margin-top: 25px;
}
.container h2 {
    font-size: 26px;
    font-weight: 700;
    color: rgb(110, 106, 106); /* Adjust the color as needed */
    margin-top: 25px; /* Adjust the margin-top as needed */
    margin-left: 250px; /* Adjust the margin-left as needed */
    color: aliceblue;

}
.auto-type{
    color: rgb(162, 97, 195);
}





/* For large screens and tablets */
@media (max-width: 1200px) {
    .container {
        padding: 20px;
        border: 10px solid black;
        background-image: url('https://img.freepik.com/free-photo/high-angle-desktop-with-laptop-copy-space_23-2148430882.jpg?w=900&t=st=1705003839~exp=1705004439~hmac=b8348bae2abc4523655bb8c38c8ebbc2e0a6c71cc81910cf9ff56492de3535c1'); /* Add your background image URL */
        background-size: cover; /* Adjust the background size as needed */
        background-repeat: no-repeat; /* Prevent the background image from repeating */
        background-position: center; /* Center the background image */
    }

    .container h4, .container h3, .container h2 {
        margin-left: 0;
    }

    .container h4 {
        font-size: 22px;
    }

    .container h3 {
        font-size: 28px;
    }

    .container h2 {
        font-size: 24px;
    }

    button {
        margin-left: 0;
        font-size: 16px;
    }
}

/* For medium screens (tablets and small desktops) */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        border: 5px solid black;
    }

    .container h4, .container h3, .container h2 {
        margin-left: 0;
    }

    .container h4 {
        font-size: 20px;
    }

    .container h3 {
        font-size: 26px;
    }

    .container h2 {
        font-size: 22px;
    }

    button {
        margin-left: 0;
        font-size: 14px;
    }
}

/* For small screens (phones) */
@media (max-width: 480px) {
    .container {
        padding: 10px;
        border: 3px solid black;
    }

    .container h4, .container h3, .container h2 {
        margin-left: 0;
    }

    .container h4 {
        font-size: 18px;
        margin-top: 10px;
    }

    .container h3 {
        font-size: 24px;
        margin-top: 15px;
    }

    .container h2 {
        font-size: 20px;
        margin-top: 15px;
    }

    button {
        margin-left: 0;
        font-size: 12px;
    }
}
/* ***** home css end *** */


/* *** ABOUT css ** */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
}

.conta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 95vh;
    /* background-color: rgb(104, 101, 101); */
    /* background-color: rgb(68, 68, 68); */
    /* background-color: rgb(165, 153, 155); */
    background-color: rgb(167, 167, 167);
    margin-top: 5px;
    width: 99%;
    margin-left: 5px;
    
}

h1 {
    font-size: 36px;
    margin-bottom: 40px;
    color: rgb(49, 117, 194);
    /* color: #f4f4f4; */
    text-decoration: underline;
}

.content-wrapper {
    display: flex;
    gap: 20px;
}

.image-box {
    width: 990px;
    height: 250px;
    overflow: hidden;
    border: 2px solid #333;
    border-radius: 8px;
    margin-left: 160px;
    margin-bottom: 80px;
}

.image-box img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

.resume-paragraph {
    flex-grow: 1;
}
.resume-paragraph h4 {
    color: black;
    font-size: 202%;
}

.resume-paragraph p {
    font-size: 20px;
    line-height: 1.6;
    margin-right: 25px;
    margin-bottom: 20px;
    
}
.auto{
    /* color: rgb(252, 253, 255); */
    color: rgb(48, 114, 188);
}

/* Responsive styles for the #about section */

/* For large screens and tablets */
@media (max-width: 1200px) {
    .conta {
        padding: 20px;
        height: 125vh;
    }

    .conta h1{
        margin-top: 26%;
    }

    .content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .image-box{
        width: 50%;
        height: 30%;
        margin-right: 110px;
    }

    .image-box img {
        width: 80%;
    }

    .resume-paragraph {
        text-align: center;

    }

    .resume-paragraph h4 {
        font-size: 22px;
    }

    .resume-paragraph p {
        font-size: 16px;
        margin-bottom: 45px;
    }
}

/* For medium screens (tablets and small desktops) */
@media (max-width: 768px) {
    .conta {
        padding: 15px;
        height: 100vh;
    }

    .content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .image-box img {
        width: 100%;
    }

    .resume-paragraph {
        text-align: center;
    }

    .resume-paragraph h4 {
        font-size: 20px;
    }

    .resume-paragraph p {
        font-size: 14px;
    }
}

/* For small screens (phones) */
@media (max-width: 480px) {
    .conta {
        padding: 10px;
        height: 150vh;
    }

    .content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .image-box img {
        width: 100%;
    }

    .resume-paragraph {
        text-align: center;
    }

    .resume-paragraph h4 {
        font-size: 18px;
    }

    .resume-paragraph p {
        font-size: 12px;
    }
}

/* ****ABOUT end **** */





/* ****** contact */

/* Base styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4; 
    margin: 0;
    padding: 0; 
}

.contact-section {
    text-align: center;
    padding: 50px;
    background-color: rgb(182, 178, 178);
    margin-top: 5px;
    width: 99%;
    margin-left: 5px;
    height: 75vh;
}

.contact-section h2 {
    font-size: 30px;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    margin-left: 120px;
    margin-right: 150px;
    gap: 10%;
}

.contact-info div {
    width: 28%;
    font-size: 20px;
    text-align: center;
    margin-top: 30px;
    cursor: pointer;
    color: rgb(7, 52, 58);
}

.contact-info img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 10px;
}


.contact-info > *:hover {
    transform: scale(1.05); /* Example hover effect: scales the item */
    transition: transform 0.3s; /* Smooth transition for the scaling */
}

/* Responsive styles */

/* For large screens and tablets */
@media (max-width: 1200px) {
    .contact-info {
        margin-left: 60px;
        margin-right: 60px;
        gap: 5%;
    }

    .contact-info div {
        width: 30%; /* Adjust width for better responsiveness */
    }
}

/* For medium screens (tablets and small desktops) */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        margin-left: 20px;
        margin-right: 20px;
        gap: 20px;
    }

    .contact-info div {
        width: 100%; /* Full width for each item */
        font-size: 18px; /* Slightly smaller font size for readability */
    }

    .contact-section h2 {
        font-size: 24px; /* Adjust font size for smaller screens */
    }
}

/* For small screens (phones) */
@media (max-width: 480px) {
    .contact-info {
        padding: 10px; /* Add padding for better spacing */
    }

    .contact-info div {
        width: 100%; /* Full width for each item */
        font-size: 16px; /* Adjust font size for smaller screens */
        margin-top: 10px; /* Adjust margin for better spacing */
    }

    .contact-section {
        height: auto; /* Allow height to adjust based on content */
        padding: 20px; /* Adjust padding for smaller screens */
    }

    .contact-section h2 {
        font-size: 20px; /* Adjust font size for smaller screens */
    }
}
/* contact end here */



    /* // skills // */

    .box{
        width: 99%;
        margin-top: 5px;
        margin-left: 5px;
        /* background-color: #3e3434; */
        background-color: #747171;
    }
    .box h1{
        text-align: center;
        color: rgb(15, 15, 15);
        padding-top: 5%;
        font-size: 50px;
       
    }
    .boxchild{
        display: grid;
        justify-content: space-around;
        grid-template-columns: repeat(4,1fr);
        padding-left: 10%;
        padding-right: 10%;
        margin: auto;
        text-align: center;
        /* color: rgb(109, 194, 206); */
        color: black;
        gap: 20px;
    }

    .boxchild > *:hover {
        transform: scale(1.05); /* Example hover effect: scales the item */
        transition: transform 0.3s; /* Smooth transition for the scaling */
    }
    
    .boxchild div{
        width: 45%;
        font-size: 20px;
    }

    .boxchild img {
        width: 100%;
    }

    .box h2{
        text-align: center;
        color: rgb(14, 14, 14);
        padding-top: 6%;
        font-size: 50px;
        margin-bottom: 50px;
        text-decoration: underline;
        
    }





/* For large screens and tablets */
@media (max-width: 1200px) {
    .boxchild {
        grid-template-columns: repeat(3, 1fr); /* Reduce columns for medium screens */
        padding-left: 5%;
        padding-right: 5%;
    }

    .boxchild div {
        width: 80%; /* Adjust width for better responsiveness */
    }

    .boxchild {
        padding-left: 5%;
        padding-right: 5%;
    }

    .boxchild div {
        width: 60%; /* Adjust width for better responsiveness */
    }
}

/* For medium screens (tablets and small desktops) */
@media (max-width: 768px) {
    .boxchild {
        grid-template-columns: repeat(2, 1fr); /* Reduce columns for smaller screens */
        padding-left: 2%;
        padding-right: 2%;
    }

    .boxchild div {
        width: 90%; /* Full width for each item */
        font-size: 24px; /* Adjust font size for smaller screens */
    } 
}


/* TOOLS PART */
.boxchild2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 30px 10%;
    color: rgb(10, 10, 10);
  }
  
  .boxchild2 > div {
    flex: 1 1 200px;
    max-width: 220px;
    font-size: 18px;
    height: auto;
    text-align: center;
    border-radius: 10px;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .boxchild2 > div:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  .boxchild2 img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
  }
  



    /* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .boxchild2 {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .boxchild2 div {
        flex: 0 0 23%;
        margin-bottom: 20px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 1199px) {
    .boxchild2 {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .boxchild2 div {
        flex: 0 0 45%;
        margin-bottom: 20px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .boxchild2 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .boxchild2 div {
        width: 60%;
        margin-bottom: 20px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .boxchild2 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .boxchild2 div {
        width: 80%;
        margin-bottom: 20px;
    }
}

/* skill end */

/* Projects Section */
#projects {
    width: 100%;
    margin-top: 20px;
   
    background-color: #f0f0f0; /* Light background for the project section */
    text-align: center;
    padding: 20px;
}

#projects h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* Project Grid */
.pro {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns in a row */
    gap: 20px;
    padding: 20px;
    justify-items: center;
}

.calculator-title {
    background-color: #494848; /* Dark background for each project card */
    color: white;
    width: 85%; /* Adjusted width for better fit */
    max-width: 300px; /* Adjusted max-width */
    padding: 15px;
    text-align: center;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    transition: transform 0.3s, box-shadow 0.3s; /* Transition effects */
}
.calculator-title {
    height: 500px; /* Fixed height */
}
.calculator-title img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover; /* Ensures images fit nicely within bounds */
}

.calculator-title h5 {
    font-size: 1.2em;
    margin: 15px 0;
    font-weight: bold;
    color: #f7f7f7;
}

.calculator-title p {
    font-size: 1em;
    color: #dcdcdc;
}

.calculator-title > *:hover {
    transform: scale(1.05); /* Slight scaling on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* More pronounced shadow on hover */
}

/* Links with Icons */
.link-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    margin-top: 10px;
}

.link-with-icon i {
    margin-left: 8px; /* Space between text and icon */
}

/* Tablet (up to 768px) */
@media (max-width: 768px) {
    #projects {
        padding: 20px 10px;
    }

    .pro {
        grid-template-columns: repeat(2, 1fr); /* Two columns on tablet */
    }

    .calculator-title {
        max-width: 280px; /* Slightly smaller on tablet */
    }

    .calculator-title h5 {
        font-size: 1.1em;
    }

    .link-with-icon {
        font-size: 0.9em;
    }

    .link-with-icon i {
        font-size: 24px;
    }
}

/* Mobile (up to 480px) */
@media (max-width: 480px) {
    #projects {
        padding: 10px;
    }

    .pro {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .calculator-title {
        max-width: 90%; /* Full width with margin */
        padding: 10px;
    }

    .calculator-title h5 {
        font-size: 1em;
    }

    .link-with-icon {
        font-size: 0.8em;
        text-align: center;
    }

    .link-with-icon i {
        font-size: 20px;
    }
}

    /* GIThub */
    #github {
        text-align: center;
        padding: 15px;
        background-color: #e0dcdc;
        margin-top: 30px;
        margin-left: 5px;
        margin-right: 5px;
    }
    
    #github h1 {
        font-family: 'Arial', sans-serif;
        font-size: 2em;
        margin-bottom: 20px;
        color: #333;
    }
    
    #github div {
        display: inline-block;
        margin: 10px;
    }
    
    #github img {
        width: 400px;
        height: auto;
        border: 2px solid #ddd;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s;
    }
    
    #github img:hover {
        transform: scale(1.05);
    }
    


    
