/* 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 */
}




/* Basic styles */
body {
    
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0; /* Adjusted to account for the fixed header */
    line-height: 1.6;
    background-color: #9ac5c9;
    margin-top: 150px;
    
}

.skills{
    font-size: 17px;
    text-align: center;
    color: rgb(216, 248, 255);
    font-family: 'Courier New', Courier, monospace;
    margin: 20px 15px;
}
.logo{
    margin-right: 50px;
}
/* Header styles */
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;               /* 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;
}

#slogan h2{
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    font-size: 40px;
}

.exp h2{
    margin-top:0;
    text-align: center;
    font-size: 30px;
    text-decoration: underline;
}

.exp .h2{
    margin-top: 80px;
}
.exp div h2{
    margin-top: 0;
}
.exp div h2{
    text-decoration: none;
}
.exp div{
    padding: 5px;
    margin: 10px;
    
}

.exp_grid{
    display: grid;
    column-gap: 50px;
    justify-content: space-around;
    grid-template-columns: 1fr 1fr;
}
.exp_grid div{
    grid-column: auto;
    border-style: solid;
    border-width: 1;
    border-radius: 5%;
}
.exp 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 */
}

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

.exp 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 */
}


.exp div h2{
    text-align: center;
    font-size: 18px;
    
}
.exp div h2 span{
    font-size: 15px;
    font-style: italic;
    color: #006d77;
}
.exp div p{
    text-align: center;
    font-size: 14px;
}

.bio {
    
    display: grid;                    
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 20px;                        
    align-items: start;  /* Align both text and image at the top */ 
    justify-content: center; /* Centers the grid within its container */ 
    max-width: 1200px;       
    margin: 0 auto;          
    padding: 20px;
    margin-top: 60px;
}

.bio div {
    margin: 0;
    
}


.bio .text {
    display: flex;
    justify-content: flex-start; /* Ensure text starts at the top */
    align-items: flex-start;      
    flex-direction: column;   
    text-align: right; /* Align text to the right */
}

.bio div img {
    max-width: 100%;
    width: 530px;
}

.bio img {
    max-width: 100%; 
    width: 150px;
    height: auto;
    display: block;
}

.text h2{
    margin-top: 0;
    padding-top: 0;
}


.path_sec h2{
    margin-top: 70px;
    text-align: center;
    font-size: 30px;
    text-decoration: underline;
}

.paths{
    display: flex;
    justify-content: center;
}

.paths a h3 {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease; /* Smooth transition for text */
}

.paths a h3{
    display: block;
    border-width: 5px;
    border-radius: 20px;
    border-style: solid;
    padding: 7px;
    margin: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for the hover effect */

}

.paths h3:hover {
    transform: scale(2);
    transform: translateY(-5px); /* Moves the button up by 5px */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow */
}

.paths h3:hover {

    /* Changes the text color to dark blue */
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3); /* Adds a glowing text-shadow */
     /* Slightly enlarges the text */
}

.paths a{
    color: black;
    text-decoration: none;
}
.cyber{
    border-color: red;
}

.cyber:hover{
    color: #a70011; 
}
.ai{
    border-color: rgb(152, 117, 0);
}

.ai:hover{
    color: #a48f26; 
}
.swe{
    border-color: rgb(21, 2, 98);
}

.swe:hover{
    color: #3cd8e6; 
}







/* Project grid */


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

#projects h2{
    font-size: 30px;
    text-decoration: underline;
    
}

#projects a h2{
    font-size: 20px;
    text-decoration: underline;
    
}

.project-item 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 */
}

.project-item 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;
}

.project-item 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;
    margin: 10px;
}

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

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


.project-item img{
    max-width: 100%;
    width: 270px;
    margin: 20px 20px;
}


.project-item h3 {
    color: #050545;
    font-family: 'Courier New', Courier, monospace;
}



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

#certif h2#cer_but {
    font-size: 20px;
}

#certif h2{
    font-size: 30px;
    text-decoration: underline;
    
}



.certif-grid {
    max-width: 100%;           /* Ensures the grid doesn't overflow the screen */
    margin: 0 auto;            /* Centers the grid on the page */
    display: grid;
    justify-items: center;     /* Ensures each image is centered within its grid cell */
    grid-template-columns: repeat(2, 1fr); /* Creates two equal columns */
    justify-items: center;      /* Center content within the grid cells */
    column-gap: 50px;
}

.certif-grid a img {
    width: 100%;
    max-width: 500px;         /* Limits the max width of the images to 500px */
    height: auto;             /* Maintains the aspect ratio */
    object-fit: contain;      /* Prevents image distortion */
    border-radius: 10%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}


#courses {

    max-width: 100%;
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px; /* Add some padding to avoid edges */
}


#courses h2{
    font-size: 30px;
    text-decoration: underline;
    margin-top: 100px;
}

.courses-main-grid {
    max-width: 100%; /* Ensure the grid does not exceed screen width */
    margin: 0 auto; /* Center the grid */
    display: grid;
    grid-template-columns: 1fr 2fr; /* 2-column layout: image and courses */
    column-gap: 20px; /* Space between columns */
    padding: 0 20px; /* Padding to avoid overflow */
    align-items: center; /* Centers the image vertically in relation to the grid */
}

.courses-item.item1
{
    max-width: 100%;
    grid-column: 1 / span 1;
}
.courses-item.item2{
    max-width: 100%;
    grid-column: 2/ span 2;
}

.courses-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.courses-item.courses-grid {
    margin-top: 20px;

    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Responsive grid */
    gap: 20px; /* Space between course items */

}
.course {
    border-radius: 10%;
    
    background-color: #87a8a49a;
    
    font-size: 27px;
    text-align: center;
    word-wrap: break-word; /* Ensure long words don't break the layout */
}

.course.l1{
    color: rgb(2, 14, 92);
    border: 3px solid rgb(2, 14, 92);
}

.course.l2{
    color: rgb(10, 31, 164);
    border: 3px solid rgb(10, 31, 164);
}

.course.l3{
    color: rgb(16, 45, 234);
    border: 3px solid rgb(16, 45, 234);
}

.course.l4{
    color: rgb(25, 224, 255);
    border: 3px solid rgb(25, 224, 255);
}

.course p{
    font-size: 15px;
}

.course.swe-bor{
    color:  rgb(21, 2, 98);
    border: 3px solid  rgb(21, 2, 98);
}

.course.ai-bor{
    color: rgb(152, 117, 0);
    border: 3px solid rgb(152, 117, 0);
}

.course.cy-bor{
    color: #a70011;
    border: 3px solid #a70011;
}

.course p{
    font-size: 12px;
}



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) {
    #slogan h2 {
        font-size: 32px;
    }

    .skills{
        font-size: 12px;
    }


    .bio div p{
        font-size: 15px;
    }

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

    .project-grid{
        margin: 0;
        margin-left: 30px;
    }
    
    .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 h2{
        font-size: 20px;
    }

    
    .exp a h2{
        font-size: 20px;
    }

    .course{
        font-size: 22px;
    }
    .course p{
        font-size: 9px;
    }

    #certif{
        margin: 0 50px;
    }
    footer a{
        font-size: 13px;
    }
}

@media (max-width: 1070px){

    .bio div p{
        font-size: 14px;
    }
}

@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;
    }

    #slogan h2 {
        font-size: 28px;
    }

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

    .bio{
        margin-top: 20px;
    }

    .bio div img{

        width: 450px;

    }
    .bio div h2{
        font-size: 22px;
    }
    .bio div p{
        font-size: 13px;
    }

    .path_sec h2{
        margin-top: 30px;
        font-size: 28px;
    }
    .path_sec a h3{
        font-size: 17px;
    }
    .exp h2 {
        font-size: 28px;
    }

    .exp div h2{
        font-size: 14px;
    }

    .exp div h2 span{
        font-size: 13px;
    }

    .exp div p{
        font-size: 12px;
    }

    .exp a h2 {
        font-size: 18px;
    }
    #projects h2 {
        margin-top: 50px;

    }

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

    #projects a h2 {
        font-size: 18px;

    }

    #certif h2#cer_but {
        font-size: 18px;
    }
    #projects h3{
        font-size: 15px;
    }

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

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

    .project-item .fmm{
        margin: 7px auto;
    }

    .project-item img{
        width: 200px;
    }
    .project-grid{
        margin: 0;
        margin-left: 30px;
    }

    .project-item.item2 #img1{
        text-align: center;
        margin-top: 40px;
        margin-bottom: 60px;
    }
    .courses-item.item2{
        max-width: 100%;
        grid-column: 1/ span 3;
    }

    .courses-item.item1
    {
        display: none;
    }

    .course{
        font-size: 27px;
    }
    .course p{
        font-size: 12px;
    }

    #certif h2{
        font-size: 28px;
        text-decoration: underline;
        
    }

    #courses h2{
        font-size: 28px;
        text-decoration: underline;
        margin-top: 100px;
    }
    
}

@media (max-width: 1000px)
{
    .t1{
        display: none;
    }
    .bio div h2{
        font-size: 22px;
    }
    .bio div p{
        font-size: 15px;
    }
}
@media (max-width: 900px)
{

    .bio div h2{
        font-size: 22px;
    }
    .bio div p{
        font-size: 14px;
    }
}

@media (max-width: 840px)
{
    .bio div p{
        font-size: 13px;
    }
}
@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 */
    }

    #slogan h2 {
        font-size: 25px;
    }

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

    .bio div img{

        width: 400px;

    }
    .bio div h2{
        font-size: 18px;
    }
    .bio div p{
        font-size: 12px;
    }
    .path_sec h2{
        font-size: 22px;
        margin-top: 20px;
    }
    .path_sec a h3{
        font-size: 14px;
    }

    .paths h3:hover {
        transform: initial;
        transform: initial; /* Moves the button up by 5px */
        box-shadow: initial; /* Adds a subtle shadow */
        text-shadow: initial; /* Adds a glowing text-shadow */

    }

    .cyber:hover{
        color: initial; 
    }
    .ai:hover{
        color: initial; 
    }
    .swe:hover{
        color: initial; 
    }

    .exp h2 {
        font-size: 22px;
        margin-top: 0px;
    }

    .exp .h2{
        margin-top: 30px;
    }

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


    .exp div h2{
        font-size: 16px;
    }

    .exp div h2 span{
        font-size: 14px;
    }

    .exp div p{
        font-size: 12px;
    }

    .exp a h2 {
        font-size: 13px;
    }

    .exp div{
        margin-bottom: 4px;
    }

    .exp a{
        margin: 0 auto;
    }
    #projects {
        margin-top: 25px;

    }

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

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


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

    }

    #certif h2#cer_but {
        font-size: 13px;
    }
    #projects h3{
        font-size: 16px;
    }

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

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

    .project-item .fmm{
        margin: 7px auto;
    }
    .certif-grid a{
        grid-column: auto/ span 2;
        margin-bottom: 20px;
    }
    #certif h2{
        font-size: 22px;
        text-decoration: underline;
        
    }

    #courses h2{
        font-size: 22px;
        text-decoration: underline;
        margin-top: 20px;
    }

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

    footer a{
        font-size: 15px;
    }
    footer p{
        font-size: 20px;
    }
    .exp a:hover h2 {
        transform: initial; /* Slightly increases the text size */
        text-shadow: initial; /* Adds a glowing effect */
        color: #006d77; /* Optional: Darkens the text color on hover */
    }
    .project-item a:hover h2 {
        transform: initial; /* Slightly increases the text size */
        text-shadow: initial; /* Adds a glowing effect */
        color: #006d77; /* Optional: Darkens the text color on hover */
    }


}


@media (max-width: 700px)
{
    .bio div h2{
        font-size: 17px;
        margin: 0;
    }
    .bio div p{
        font-size: 11px;
    }
}

@media (max-width: 640px)
{
    .t2{
        display: none;
    }
    .bio div h2{
        font-size: 17px;
        margin: 0;
    }
    .bio div p{
        font-size: 13px;
    }
}

@media (max-width: 590px)
{

    .bio div h2{
        font-size: 17px;
        margin: 0;
    }
    .bio div p{
        font-size: 12px;
    }
}

@media (max-width: 540px)
{

    .bio div h2{
        font-size: 17px;
        margin: 0;
    }
    .bio div p{
        font-size: 11px;
    }
}

@media (max-width: 508px)
{

    .bio div h2{
        font-size: 17px;
        margin: 0;
    }
    .bio div p{
        font-size: 10px;
    }
}


@media (max-width: 480px)
{

    body {
    
        margin-top: 60px;
        
    }
    header h1{
        font-size: 28px;
        margin-left: 0px;
        margin-right: 40px;
    }
    header img {
        display: none;
    }

    #slogan h2 {
        font-size: 20px;
    }

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

    .bio div img{

        display: none;

    }
    .bio div{
        margin-top: 0;
        grid-column: auto/ span 2;
    }

    .bio div h2{
        text-align: center;
        font-size: 18px;
        margin: 0;
    }
    .bio div p{
        text-align: center;
        font-size: 12px;
    }

    .path_sec h2{
        font-size: 18px;
        margin-top: 0px;
    }

    .bio{
        padding: 0 20px;
        padding-top: 10px;
        row-gap: 10px;
    }

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

    .path_sec a h3{
        font-size: 13px;
    }
    .paths a h3{
        margin: 3px;
        padding: 4px;
        text-align: center;
        width: 160px; /* Set a consistent width for all buttons */
    }
    .exp h2 {
        font-size: 18px;
        margin-top: 20px;
    }

    .exp div h2{
        font-size: 15px;
    }

    .exp div h2 span{
        font-size: 13px;
    }

    .exp div p{
        font-size: 10px;
    }

    .exp a h2 {
        font-size: 10px;
    }

    .exp a{
        margin: 5px auto;
    }
    .exp div{
        margin: 5px;
    }
    #projects {
        margin-top: 25px;

    }

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

    


    #projects a h2 {
        font-size: 10px;

    }

    #certif h2#cer_but {
        font-size: 10px;
    }
    #projects h3{
        font-size: 15px;
    }

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

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

    .project-item .fmm{
        margin: 7px auto;
    }
    #certif h2{
        font-size: 18px;
        text-decoration: underline;
        
    }
    #certif{
        margin: 0 30px;
    }

    #courses h2{
        font-size: 18px;
        text-decoration: underline;
        margin-top: 20px;
    }
    .courses-main-grid{
        padding: 0;
    }

    #courses{
        padding: 0 10px;
    }

    .course{
        font-size: 18px;
    }
    .course p{
        font-size: 10px;
    }

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

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

