/* General styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    margin-left: 15%;
    margin-right: 15%;
}

/* Navigation bar styles */
.nav {
    
    color: white;
    padding: 10px 0;
    height: 100%;

   
}

.nav-bar {
    text-align: center;
    position: fixed;
    background-color: crimson;
    top: 0; /* Ensures the nav bar stays at the top */
    left: 15%; /* Matches the left margin of body */
    width: 70%; /* Adjusted to match body width minus margins */
    height: 6%;
    margin-bottom: 5%;
}
/* Hamburger menu - hidden on desktop */
.hamburger-menu {
    display: none; /* Default: hide */
    font-size: 1.8em;
    cursor: pointer;
    color: white;
}
.nav-bar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav-bar ul li {
    display: inline;
    margin-right: 20px;
   
    
}

.nav-bar ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    margin-top: 20px;
  
}

.nav-bar ul li a:hover {
    text-decoration: underline;
}

/* Home section styles */
.home {
    text-align: center;
    padding: 50px;
    background-color: #fff;
    /* margin-bottom: 20px; */
    height: 100%;
    display: flex;
   
}

.home h2 {
    color: crimson;
    font-size: 2.5em;
}

.home p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15%;
}
.home .abtimage {
    flex: 0 0 auto;
    margin-left: 20px;
}

.home .abtimage img {
   
    max-width: 90%; /* Adjust this value as needed */
    height: 100%;
}
/* About section styles */
#about {
    background-color: #ccc;
    padding: 50px;
    text-align: center;
    display: flex;
}

#about .card1 {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

#about .card1 h1 {
    color: crimson;
    font-size: 2em;
}

#about .card1 p {
    font-size: 1.1em;
    line-height: 1.6;
}
#about .img{
    margin-right: 5%;
}
/* #about .img img {
    max-width: 100%;
    border-radius: 8px;
} */
#about .img img {
  
    max-width: 600px; /* Adjust this value as needed */
    height: auto;
    
}

/* Services section styles */
.services {
    background-color: lightpink;
    padding: 50px;
    text-align: center;
}

.services h1 {
    color: crimson;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.services .service {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.services .card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 0 10px 20px;
    max-width: 30%;
}
.services .card:hover {
    background-color:antiquewhite ;
   
}
.services .card h2 {
    color: crimson;
    font-size: 1.8em;
    font-weight: bold;
}

.services .card p {
    font-size: 1.1em;
    line-height: 1.6;
}

.certificates {
    background-color: lightpink;
    padding: 50px;
    text-align: center;
}

.certificates h1 {
    color: crimson;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.certificates .certificates {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.certificates .card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 5px 10px 0;
    max-width: 20%;
    text-align: center;
}

.certificates .card img {
    width: 100%; /* Ensure the image fits within the card's width */
    height: auto; /* Maintain aspect ratio */
    max-height: 150px; /* Limit maximum height to prevent oversized images */
    object-fit: contain; /* Ensure images are scaled proportionally */
    margin-top: 10px;
    border-radius: 5px;
}

.certificates .card:hover {
    background-color: antiquewhite;
}

.certificates .card h2 {
    color: crimson;
    font-size: 1.8em;
    font-weight: bold;
}

.certificates .card p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Projects section styles */
/* Projects section styles */
.projects {
    background-color: #ccc;
    padding: 50px;
    text-align: center;
}

.projects h1 {
    color: crimson;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.projects .proj {
    display: flex;
    justify-content: space-around;
    gap: 20px; /* Adjust this value for spacing between the cards */
}

.projects .project-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1; /* Ensures that all cards are of equal width */
    margin-bottom: 20px;
}

.projects .project-card:hover {
    background-color:antiquewhite ;
   
}
.projects .project-card h2 {
    color: crimson;
    font-size: 1.8em;
    font-weight: bold;
}

.projects .project-card p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Skills section styles */
.skills {
    background-color: #ccc;
    padding: 50px;
    text-align: center;
}

.skills h1 {
    color: crimson;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.skill-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.skill-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 10px;
    width: 60%;
}
.skill-card:hover {
    background-color:antiquewhite ;
   
}


.skill-card h2 {
    color: crimson;
    font-size: 1.5em;
    font-weight: bold;
}
.copyright {
    font-size: 12px;
    color: grey;
    line-height: 1.6;
    margin: 30px 20px;
}

/* Button styles */
/* Button styles */
.cv-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2em;
    color: white;
    background-color: crimson;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cv-button:hover {
    background-color: darkred;
}

/* General media query for devices with width 768px or smaller (tablets) */
@media (max-width: 768px) {
    body {
        margin-left:none;
        margin-right:none;
    }

    /* Navbar adjustments */
    .nav-links {
        display: none;
    }

    .hamburger-menu {
        display: block;
        position: absolute;
    top: 20px; /* Adjust as needed */
    right: 20px; /* Adjust as needed */

    }

    .nav-links {
        display: none; /* Hide nav links on smaller screens */
    }
/* Side Navigation Panel */
.side-nav {
    height: 50%;
    width: 0; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    background-color: crimson;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px; /* Space for close button */
    z-index: 1000;
}

/* Side navigation links */
.side-nav a {
    padding: 10px 20px;
    text-decoration: none;
    font-size: 1.5em;
    color: white;
    display: block; /* Stack links vertically */
    transition: 0.3s;
}

/* Hover effect for side nav links */
.side-nav a:hover {
    background-color: darkred;
}

/* Close button styling */
.side-nav .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2em;
    cursor: pointer;
}
    /* Home Section */
    .home {
        flex-direction: column; /* Stack items vertically */
        text-align: center;
    }

    .home .abtimage img {
        max-width: 100%;
        height: auto;
        margin-bottom: 20px; /* Add spacing below the image */
    }

    /* About Section */
    #about {
        flex-direction: column; /* Stack content */
        text-align: center;
    }

    #about .img img {
        max-width: 90%;
        height: auto;
        margin-bottom: 20px; /* Add spacing below the image */
    }

    #about .card1 {
        padding: 20px;
    }

    /* Services Section */
    .services .service {
        flex-direction: column; /* Stack services */
    }

    .services .card {
        max-width: 100%; /* Full width */
        margin: 10px 0; /* Add spacing between cards */
    }

    /* Projects Section */
    .projects .proj {
        flex-direction: column; /* Stack projects */
    }

    .projects .project-card {
        max-width: 100%; /* Full width */
        margin: 10px 0;
    }

    .skill-card {
        display: block; /* Make each skill a block */
        margin: 5px 0; /* Add spacing between items */
        background: none; /* Remove background color */
        box-shadow: none; /* Remove shadow effect */
        text-align: left; /* Align text to the left */
        font-size: 1.2em; /* Adjust font size */
        padding: 0; /* Remove padding */
    }

    /* Optional: Add bullet points for a list look */
    .skill-card::before {
        /* Add a bullet point before each skill */
        color: crimson;
        font-size: 1.5em;
        margin-right: 5px; /* Space between bullet and text */
    }

    /* Center the section */
    .skill-list {
        text-align: center; /* Center-align the overall list */
        padding: 0;
        margin: 0 auto;
    }

    .certificates {
        flex-direction: column; /* Stack certificates */
        font-size: small;
        padding: none;
        text-align: center;
        background-color: none;
        
    }
    /* Certificates Section */
    .certificates .certificates {
        flex-direction: column; /* Stack certificates */
        font-size: small;
        padding: none;
        text-align: center;
        background-color: none;
        
    }
 
    .certificates .card {
        max-width: fit-content; /* Full width */
        margin: 0 20px 20px 5px;


    }

    .certificates .card img {
        max-height: 120px; /* Reduce image size */
    }
    .certificates .card .cv-button{
        font-size: 0.5rem;
    }
}

/* Media query for devices with width 480px or smaller (smartphones) */
@media (max-width: 480px) {
    body {
        margin-left: 2%;
        margin-right: 2%;
    }

    .nav-bar {
        font-size: 0.8em;
        padding: 10px;
    }

    /* Reduce font sizes */
    h1, h2 {
        font-size: 1.8em;
    }

    p {
        font-size: 1em;
    }

    /* Home Section */
    .home h2 {
        font-size: 1.5em;
    }

    .home p {
        font-size: 0.9em;
    }

    /* Reduce button size */
    .cv-button {
        padding: 10px 20px;
        font-size: 1em;
    }

    /* Services, Projects, and Skills */
    .services .card,
    .projects .project-card,
    .skill-card {
        padding: 15px;
        font-size: 0.9em;
    }

    /* Certificates Section */
    .certificates .card img {
        max-height: 100px; /* Further reduce image size */
    }

    /* Footer */
    .copyright {
        font-size: 10px;
        text-align: center;
    }
}
