/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    font-family: Arial, sans-serif;
    color: #333;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
}

.sidebar {
    background-color: #111;
    color: #fff;
    width: 300px;
    height: 100vh;
    position: fixed;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.content {
    flex: 1; /* Take the remaining space */
    overflow: hidden;
}

.profile-img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 10px;
}

.sidebar h2 {
    margin: 10px 0;
    font-size: 24px;
}

.socialLinks a {
    color: #fff;
    margin: 0 8px;
    text-decoration: none;
    font-size: 20px;
}
.socialLinks2 a {
    display: none;
    color: #000000;
    margin: 0 8px;
    text-decoration: none;
    font-size: 20px;
    align-items: center;
    justify-content: center;
}

.navMenu ul {
    list-style: none;
    margin-top: 20px;
}

.navMenu ul li {
    margin: 15px 0;
}

.navMenu ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
}

.navMenu ul li.active a,
.navMenu ul li a:hover {
    color: #00aaff;
}

/* Main Content Styling */
.content {
    margin-left: 300px;
    padding: 50px;
    background-color: #f8f9fa;
    height: 100%;
}

.about {
    background: #f8f9fa;
    padding-bottom: 75px;
}

.about h1 {
    font-size: 32px;
    border-bottom: 2px solid #00aaff;
    display: inline-block;
    padding-bottom: 10px;
}

.about p {
    margin: 20px 0;
    line-height: 1.8;
    color: #555;
}

.aboutContent {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
}

.about-img {
    width: 350px;
    border-radius: 10px;
    margin-right: 30px;
}

.skill-img {
    width: 30px;
}

.details h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.aboutDescription {
    font-style: italic;
    color: #777;
    margin-bottom: 20px;
}

.infoList {
    list-style: none;
}

.infoList li {
    margin: 10px 0;
    font-size: 16px;
}

.infoList strong {
    color: #00aaff;
}

.btn-download {
    display: inline-block;
    padding: 20px 20px;
    margin-left: 80px;
    font-size: 16px;
    color: #fff;
    background-color: #00aaff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-download:hover {
    background-color: #0077cc;
    cursor: pointer;
}

/* Skills Section */

.skills {
    background-color: #bed8f2; /* Background color */
    padding: 20px;
    width: calc(100vw - 300px); /* Adjusted width to exclude sidebar */
    margin-left: -50px; /* Aligned with the rest of the content */
    box-sizing: border-box;
}

.skills h1 {
    font-size: 32px;
    border-bottom: 2px solid #00aaff;
    display: inline-block;
    padding-bottom: 10px;
    margin-left: 25px;
}

.skillsContainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
    margin: 20px auto;
}

.skill-item {
    position: relative; /* Make the container relative for absolute positioning */
    width: 80px;
    height: 80px;
    background-color: #333;
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    background-color: #00aaff;
    cursor: pointer;
}

/* Skill Text */
.skill-text {
    position: absolute;
    top: -30px; 
    font-size: 14px;
    font-weight: bold;
    color: #333;
    background-color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    opacity: 0; 
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.skill-item:hover .skill-text {
    opacity: 1;
    transform: translateY(-5px);
}

/* Education Section */

.education h1 {
    font-size: 32px;
    border-bottom: 2px solid #00aaff;
    display: inline-block;
    padding-bottom: 10px;
}

.education {
    margin: 20px 0;
    padding-bottom: 50px;
}

.educationItem {
    background-color: #2c2c2c;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-left: 150px;
}

.educationItem h2 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: bold;
}

.educationItem h3 {
    font-size: 1rem;
    font-weight: bold;
    margin: 10px 0;
}

.educationItem p {
    font-size: 0.9rem;
    margin: 5px 0;
}

.educationItem-content {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between text and image */
}

.ExperienceAndProjects {
    background-color: #bed8f2; /* Background color */
    padding: 20px;
    width: calc(100vw - 300px); /* Adjusted width to exclude sidebar */
    margin-left: -50px; /* Aligned with the rest of the content */
    box-sizing: border-box;
}


.ExperienceAndProjects h1 {
    font-size: 32px;
    border-bottom: 2px solid #00aaff;
    display: inline-block;
    padding-bottom: 10px;
}

.container2 {
    display: flex;
    width: 86%;
    max-width: 1400px;
    margin-left: 160px;
    margin-top: 55px;
  }
  
.sidebar2 {
    background-color: #222;
    padding: 20px;
    width: 25%;
    display: flex;
    flex-direction: column;
  }
  
.tabButton {
    background-color: #333;
    color: #f5f5f5;
    border: none;
    padding: 10px 15px;
    margin-bottom: 10px;
    cursor: pointer;
    text-align: left;
  }
  
.tabButton.active {
    background-color: #3998e7;
    color: #000;
  }
  
.tabButton:hover {
    background-color: #444;
  }
  
.content2 {
    background-color: #1e1e1e;
    width: 75%;
    padding: 20px;
    border-left: 2px solid #333;
  }
  
.tabContent {
    display: none;
  }
  
.tabContent.active {
    display: block;
  }

  .educationBox {
    background-color: #333;
    padding: 15px;
    margin-top: 10px;
    border-radius: 5px;
    opacity: 1; 
    animation: fadeIn 0.8s ease backwards;
  }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.educationBox:nth-child(1) {
    animation-delay: 0.1s;
}

.educationBox:nth-child(2) {
    animation-delay: 0.2s;
}

.educationBox:nth-child(3) {
    animation-delay: 0.3s;
}

.educationBox:nth-child(4) {
    animation-delay: 0.4s;
}

.educationBox:nth-child(5) {
    animation-delay: 0.5s;
}

.educationBox:nth-child(6) {
    animation-delay: 0.6s;
}

.educationBox:nth-child(7) {
    animation-delay: 0.7s;
}


#p5 {
    color: whitesmoke;
}

#p6 {
    color: whitesmoke;
    text-align: center;
}

#OneH2 {
    color:whitesmoke
}

#OneH3 {
    color:whitesmoke
}

.Contact {
    background-color: #f9f9f9;
}

.Contact h1 {
    font-size: 32px;
    border-bottom: 2px solid #00aaff;
    display: inline-block;
    padding-bottom: 10px;
    padding-top: 20px;
}

.Contact p {
    text-align: center;
    padding-bottom: 20px;
    padding-top: 30px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    text-align: left;
}

label {
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

.btn-submit {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-submit:hover {
    background-color: #0056b3;
}

.fade-in {
    opacity: 0; 
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1; 
    transform: translateY(0); 
}

@media screen and (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        transform: translateY(-100%);
        width: 100%; /* Full width for mobile */
        transition: transform 0.3s ease-in-out;
    }

    .sidebar.show {
        transform: translateY(0);
    }

    .content {
        margin-left: 0;
        padding: 15px;
        flex: 1; /* Takes available space */
        margin-top: 70px; /* Adjust for the toggle button height */
    }

    /* Adjust Skills Section */
    .skills {
        width: 100%;
        margin-left: 0;
        padding: 10px;
    }

    .skillsContainer {
        grid-template-columns: repeat(2, 1fr); /* Adjusted grid for small screens */
        gap: 15px;
    }

    /* Education Section */
    .education {
        margin: 10px 0;
        padding: 20px;
    }

    .educationItem {
        margin-left: 0;
    }

    /* Experience and Projects Section */
    .ExperienceAndProjects {
        width: 100%;
        margin-left: 0;
        padding: 15px;
    }

    .container2 {
        flex-direction: column;
        margin-left: 0;
        margin-top: 20px;
    }

    .sidebar2,
    .content2 {
        width: 100%;
    }

    /* Contact Section */
    .contact-form {
        padding: 10px;
    }

    /* About Section */
    .aboutContent {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-img {
        margin-right: 0;
        margin-bottom: 20px;
    }

    /* General Adjustments */
    h1, h2, h3 {
        font-size: 1.5rem;
        text-align: center;
    }

    .btn-download {
        display: block;
        text-align: center;
        justify-content: center; 
        align-items: center; 
        margin: 0 auto;
        
    }

    .tabButton:hover {
        background-color: #3998e7;
      }

    .socialLinks2 {
        display: flex; 
        flex-direction: row; 
        justify-content: center; 
        align-items: center; 
        gap: 10px; 
        margin-top: 15px; 
    }

    .socialLinks2 a {
        display: inline-block; 
        color: #000000;
        font-size: 40px;
        text-decoration: none; 
    }


}