/* This will change the cursor for all elements */
* {
    cursor: default; /* Ensures the cursor stays the default arrow */
}


/* For interactive elements like buttons */
a {
    cursor: pointer; /* Indicates a clickable area */
}

a *{
    cursor: pointer; /* Indicates a clickable area */
}



body{
    background-color: #00bfff46     ;
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    margin-top: 150px;

}
h2{
    text-align: center;
    font-size: 30px;
    text-decoration: underline;
}
.skills{
    font-size: 17px;
    text-align: center;
    color: rgb(16, 45, 234);
    font-family: 'Courier New', Courier, monospace;
    margin: 5px 15px;
}

.logo{
    margin-right: 50px;
}
header {
    position: fixed; /* Make it stick/fixed */
    top: 0; /* Stay on top */
    width: 100%; /* Full width */
    transition: top 0.3s; /* Transition effect when sliding down (and up) */
    display: flex;                 /* Use flexbox for layout */
    align-items: center;           /* Vertically center elements */
    justify-content: space-between; /* Space items to opposite ends */
    font-family: 'Courier New', Courier, monospace;
    font-size: 25px;
    background-color: #006d77;
    color: #223050;
    padding: 10px 20px;            /* Add padding for spacing */
    line-height: normal;
}

header h1 {
    flex-grow: 1;                  /* Allows the title to take up space */
    text-align: center;            /* Center text within the available space */
    margin: 0; 
    margin-right: 20px;                  /* Remove default margin */
}

header img {
    width: 80px;                   /* Adjust the width of the image */
    height: auto;                  /* Maintain aspect ratio */
    margin-left: 10px;             /* Space between the title and the logo */
}
header div{
    width: 100px;
    display: flex;
    flex-wrap: wrap;
}
header div img{
    width: 40px;
    height: auto;
}

.intro{
    text-align: center;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; /* 3 columns: images on the sides, text in the middle */
    gap: 20px; /* Space between the grid items */
    align-items: center; /* Vertically center the items */
}

.intro-item {
    text-align: center; /* Center the content within each grid cell */
}

.intro-grid img {
    width: 200px;
    max-width: 100%; /* Ensures images take up the full width of their grid column */
    height: auto; /* Maintains aspect ratio */
    display: block; /* Ensures the image behaves properly within its container */
    margin: 0 auto; /* Centers the image within the grid cell */
}

.intro-text {
    grid-column: 2; /* Position the text in the second (middle) column */
    text-align: justify; /* Justify the text for better alignment */
    max-width: 100%;
}



#classes{
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    justify-content: space-around;
    margin: 0px 30px;
    margin-bottom: 30px;

}

.class h2{
    text-decoration: none;
    font-size: 20px;
}

.class{
    grid-column: auto;
    margin: 0px 40px;
    padding: 0 20px;
    border: rgb(0, 34, 255) solid 3px;
    border-radius: 10%;
    background-color: #0034b89f;
    text-align: justify; /* Justify the text for better alignment */
}

#projects {
    margin-top: 100px;
    text-align: center;
}

#projects a {
    text-decoration: none;
    color: #006d77;
    display: block; /* Makes the <a> a block-level element, so it can be centered */
    text-align: center; /* Centers the text inside the block */
    margin: 20px auto; /* Ensures it's centered horizontally and adds spacing */
    width: fit-content; /* Adjusts the width to fit the content */
}

#projects a h2 {
    font-size: 25px;
    border-width: 2px;
    border-style: solid;
    border-radius: 7%;
    padding: 1px 30px;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

#projects a:hover h2 {
    transform: scale(1.1); /* Slightly increases the text size */
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7); /* Adds a glowing effect */
    color: #003d4d; /* Optional: Darkens the text color on hover */
}

.project-grid {
    display: grid;
    justify-content: space-around;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 0px 50px;
}

.project-item.item1{
    grid-column: 1 / span 2;
}

.project-item.item1 div{
    background-color: #87a8a479 ;
    border: 3px solid #102d3e ;
    border-radius: 10px;
    padding: 10px;
    margin: 10px;
}

.project-item.item2{
    grid-column: 3;
    background-color: transparent;
    border: none;
}
.project-item.item2 #img1{
    margin-top: 70px;
    margin-bottom: 90px;
    text-align: start;
}

.project-item.item2 #img2{
    text-align: end;
}

.project-item a{
    font-size: larger;
    text-decoration: none;
    color: #214eb8;
    font-family: 'Courier New', Courier, monospace;
}
.project-item img{
    max-width: 100%;
    width: 270px;
    margin: 20px 20px;
}

.download-container {
    margin-top: 60px;
    display: flex;
    align-items: center; /* Align the image with the top of the text */
    justify-content: center; /* Align content to the left */
}

.download-content {
    display: flex;
    flex-direction: column; /* Stack the text and button */
    justify-content: flex-start; /* Keep the button under the text */
    text-align: center; /* Center the button */
    margin-left: 10px; /* Add spacing between the image and content */
    margin-bottom: 30px;
    margin-right: 65px;
}

.download h2 {
    font-size: 20px;
    margin-bottom: 20px; /* Adds spacing between the text and button */
    text-decoration: none;
}

.download a h3 {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    display: inline-block;
    border-width: 5px;
    border-radius: 20px;
    border-color: rgb(16, 45, 234);
    border-style: solid;
    padding: 7px;
    margin: 0 auto; /* Centers the button */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download h3:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.download h3:hover {
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    color: rgb(16, 45, 234);
}

.download-img {
    width: 65px; /* Adjust width as needed */
    height: auto;
    flex-shrink: 0; /* Prevents the image from shrinking */
    margin-bottom: 0;
}

footer {
    background-color: #000000af;
    text-align: center;
    padding: 10px 0; /* Adjust this to control the height */
}

footer p {
    margin: 0; /* Remove extra margin */
    padding: 0; /* Remove padding from paragraph */
}

footer a {
    margin: 0 10px; /* Add spacing between the links, adjust to fit your needs */
    text-decoration: none; /* Remove underline */
    font-size: 16px; /* Adjust the font size */
    color: #94b4ff;
}


footer #footer {
    padding: 0; /* Ensure the container has no padding */
}

footer .s{
    display: none;
}


@media (max-width: 1200px) {
    .skills{
        font-size: 13px;
    }

    .intro-text {
        font-size: 14px;
    }

    h2{
        text-align: center;
        font-size: 25px;
        text-decoration: underline;
    }

    .class h2{
        text-decoration: none;
        font-size: 15px;
    }

    .class p{
        font-size: 13px;
    }

    #certif {
        margin-top: 100px;
        text-align: center;
    }
    .download h2 {
        font-size: 15px;
    }

    .download h3{
        font-size: 15px;
    }

    .download-container {
        margin-top: 30px;

    }
    
    footer a {

        font-size: 13px; /* Adjust the font size */

    }

    .project-item.item2 #img1{
        margin-top: 50px;
        margin-bottom: 40px;
        text-align: center;
    }

    .project-item.item2 #img2{
        text-align: center;
    }

    .project-item.item1 div h3{
        font-size: 17px;
    }
    .project-item.item1 div p{
        font-size: 13px;
    }
    #projects a{
        font-size: 15px;
        margin: 5px auto;
    }
    .project-grid{
        margin: 0;
        margin-left: 30px;
    }
    .project-item img{
        width: 220px;
        text-align: center;
    }
}

@media (max-width: 1025px){

    header h1{
        font-size: 45px;
    }

    header img {
        width: 80px;                   /* Adjust the width of the image */
        height: auto;                  /* Maintain aspect ratio */
        margin-left: 10px;             /* Space between the title and the logo */
    }
    header div{
        width: 90px;
        display: flex;
        flex-wrap: wrap;
    }

    header div img{
        width: 35px;
        height: auto;
    }



    .skills{
        font-size: 12px;
        margin: 20px 5px;
    }

    .intro{
        text-align: center;
        font-size: 25px;
    }

    .intro-text {
        font-size: 14px;
    }

    h2{
        text-align: center;
        font-size: 25px;
        text-decoration: underline;
    }

    .class h2{
        text-decoration: none;
        font-size: 18px;
    }

    .class p{
        font-size: 13px;
        
    }
    .class{
 
        margin: 0px 15px;
        padding: 0 15px;

    }

    #classes{
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: center;
        justify-content: space-around;
        margin: 0px 15px;
        margin-bottom: 30px;
    
    }


    .download h2 {
        font-size: 15px;
    }

    .download h3{
        font-size: 13px;
    }

    .download-container {
        margin-top: 30px;

    }
    #projects{
        margin-top: 40px;
    }
    #projects h3{
        font-size: 17px;
    }

    #projects p{
        font-size: 12px;
    }

    #projects a {
        font-size: 14px;
        margin: 5px auto;
    }
    .project-item img{
        width: 210px;
    }
    .project-item.item2 #img1{

        margin-top: 30px;
        margin-bottom: 40px;
    }

    .intro-grid img{
        width: 160px;
    }
}


@media (max-width: 768px){
    body {
    
        margin-top: 100px;
        
    }
    .not-s{
        display: none;
    }

    header h1{
        font-size: 40px;
        margin-left: 70px;
    }
    header img {
        width: 70px;                   /* Adjust the width of the image */
        height: auto;                  /* Maintain aspect ratio */
        margin-left: 10px;             /* Space between the title and the logo */
    }


    .skills{
        font-size: 12px;
        margin: 10px 30px;
    }

    .intro{
        text-align: center;
        font-size: 20px;
    }

    .intro-text {
        font-size: 13px;
        text-align: center;
    }

    .intro-grid{
        grid-template-columns: 1fr;
        gap: 0;
        margin: auto 40px;
    }

    .intro-grid img{
        display: none;
    }

    h2{

        font-size: 22px;

    }

    #classes{
        row-gap: 20px;
        margin-bottom: 0;
    }

    .class{
        grid-column: auto / span 2;
    }

    .download h2 {
        font-size: 12px;
    }

    .download h3{
        font-size: 11px;
    }

    .download-container {
        margin-top: 30px;

    }

    footer a{
        font-size: 15px;
    }
    footer p{
        font-size: 20px;
    }

    .download h3:hover {
        transform: initial;
        box-shadow: initial;
    }
    
    .download h3:hover {
        text-shadow: initial;
        color: initial; 
    }

    .project-item.item1{
        grid-column: 1 / span 3;
    }
    .project-grid {
        
        margin: 0px 20px;
    }
    .project-item.item2{
        display: none;
    }
    #projects {
        margin-top: 35px;

    }

    #projects h3{
        font-size: 18px;
    }

    #projects p{
        font-size: 13px;
    }

    .project-item a{
        font-size: 17px;
    }
    #projects a{
        font-size: 16px;
    }
}

@media (max-width: 480px){
    body {
    
        margin-top: 60px;
        
    }
    header h1{
        font-size: 28px;
        margin-left: 0px;
        margin-right: 40px;
    }
    header img {
        display: none;
    }

    .intro{
        text-align: center;
        font-size: 16px;
    }

    .skills{
        font-size: 12px;
        margin: 10px 15px;
    }

    .intro-grid{
        margin: auto 15px;
    }

    .intro-text {
        font-size: 13px;
        text-align: center;
    }

    h2{

        font-size: 20px;

    }

    .class h2{
        text-decoration: none;
        font-size: 17x;
    }

    .class p{
        text-align: center;
        font-size: 13px;
        
    }

    .download h2 {
        font-size: 11px;
    }

    .download h3{
        font-size: 11px;
    }

    footer a{
        font-size: 7px;
    }

    #projects {
        margin-top: 25px;

    }

    #projects h2{
        font-size: 13px;
    }

    



    #projects h3{
        font-size: 14px;
    }

    #projects p{
        font-size: 12px;
    }

    #projects a{
        font-size: 13px;
    }

    .project-item a{
        font-size: 9px;
    }

    footer .f{
        display: none;
    }
    footer .s{
        display: block;
    }

    footer a{
        font-size: 20px;
        margin: auto 20px;
    }
    footer p{
        font-size: 5px;
    }
}