/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
}

header {
    background: #003366;
    color: #fff;
    padding: 1rem 2rem;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}




/* nav {
    background: #00509e;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
} */

.nav-toggle {
    display: none; /* Hidden on bigger screens */
    font-size: 1.6rem;
    background: transparent;
    border: none;
    color: #fff;
    position: absolute;
    top: 1.2rem;
    right: 2rem;
    cursor: pointer;
  }
  
  #mainNav {
    background: #00509e;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
  }
  
  #mainNav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
  }
  
  #mainNav a:hover {
    text-decoration: underline;
  }


section {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #003366;
    
} */
section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #003366;
    position: relative; /* For positioning the pseudo-element */
}

section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1rem; /* Adjust based on how far you want the line from the text */
    width: 100%;
    height: 5px; /* Adjust the thickness of the line */
    background-color: #003366; /* Color of the line */
}

.about {
    text-align: justify;
}

.skills, .projects, .paper, .experience {
    margin-top: 2rem;
}

.skills ul, .projects ul, .paper ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    gap: 1rem;
    justify-content: center;
}

.skills ul li, .projects ul li, .paper ul li {
    background: #f4f4f4;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    
}


.contact {
    background: black;
    text-align: center;
    margin-top: 2rem;
    color: #fff;
}

/* footer {
    text-align: center;
    background: #003366;
    color: #fff;
    padding: 1rem;
    margin-top: 2rem;
} */

.footer-section {
    background-color: #003366; /* Dark blue background */
    color: white; /* White text */
    text-align: center; /* Center-align all text */
    padding: 2rem; /* Add padding for spacing */
  }
  
  .footer-content h2 {
    font-size: 2rem; /* Size for "Contact Me" */
    margin-bottom: 1rem; /* Space below the heading */
  }
  
  .footer-content hr {
    width: 100%; /* Line is half the width of the section */
    margin: 1rem auto; /* Center the line with auto margin */
    border: 1px solid white; /* White bold line */
  }
  
  .contact-links p {
    margin: 0.5rem 0; /* Add spacing between each line */
    font-size: 1.1rem; /* Slightly larger text */
  }
  
  .contact-links a {
    color: #87CEEB; /* Light blue link color */
    text-decoration: none; /* Remove underline */
  }
  
  .contact-links a:hover {
    text-decoration: underline; /* Underline on hover */
  }
  
  .footer-rights {
    margin-top: 1rem; /* Space above the rights line */
    font-size: 0.9rem; /* Slightly smaller text for the copyright */
  }
  

a {
    color: #00509e;
}

a:hover {
    text-decoration: underline;
}


.profile-photo {
    text-align: center;
    margin: 2rem 0;
}

.profile-photo img {
    width: 250px; /* Increased width */
    height: 350px; /* Increased height (slightly taller than width) */
    border-radius: 15px; /* Rounded corners */
    border: 3px solid #003366; /* Border color */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for better aesthetics */
    object-fit: cover; /* Ensures the image fits well in the rectangle */
}

.social-links {
    margin-top: 1rem; /* Add spacing above the icons */
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: #00509e; /* Custom color for the section */
}

.social-links a img {
    width: 32px; /* Size of the icons */
    height: 32px;
    transition: transform 0.3s ease; /* Smooth hover effect */
}

.social-links a img:hover {
    transform: scale(1.2); /* Slight zoom on hover */
}

/* about section and photo */
.about-content {
    display: flex;
    align-items: center; /* Vertically center the content */
    gap: 80px; /* Adds space between photo and text */
}

.profile-photo img {
    width: 250px; /* Increased width */
    height: 380px; /* Increased height (slightly taller than width) */
    border-radius: 45px; /* Rounded corners */
    border-top-left-radius: 0svb;
    border-bottom-right-radius: 0svb;

    border: 3px solid #003366; /* Border color */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for better aesthetics */
}

.about-text {
    max-width: 600px; /* Control the text box width */
}

/*Educaiton*/
.education table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.education th, .education td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.education th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.education tr:nth-child(even) {
    background-color: #f9f9f9;
}

.education tr:hover {
    background-color: #f1f1f1;
}

/* Certifications */
.certifications ul, .activities ul {
    list-style-type: none;
    padding: 0;
}

.certifications li, .activities li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.certifications strong, .activities strong {
    font-weight: bold;
}

/* Writings/blog */
.writings ul {
    list-style-type: none;
    padding: 0;
}

.writings li {
    margin-bottom: 15px;
}

.writings a {
    font-size: 1.2em;
    color: #007bff;
    text-decoration: none;
}

.writings a:hover {
    text-decoration: underline;
}



/* Responsive Design */
@media (max-width: 1200px) {
    .nav-toggle {
        display: block; /* Show toggle on smaller screens */
      }
      #mainNav {
        display: none; /* Hidden by default, toggled by JS */
        flex-direction: column;
        gap: 0;
      }
      #mainNav a {
        display: block;
        padding: 0.5rem 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
      }
    section {
        padding: 1.5rem;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .skills ul, .projects ul {
        justify-content: flex-start;
        align-items: center;
    }

    .skills ul li, .projects ul li {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* .nav-toggle {
        display: block; 
      }
      #mainNav {
        display: none; 
        flex-direction: column;
        gap: 0;
      }
      #mainNav a {
        display: block;
        padding: 0.5rem 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
      } */



    /*
     nav {
        padding: 0.5rem;
        flex-direction: row;
        gap: 1rem;
        /* display: none; */
  /*  }

    nav a {
        display: none;
    }

   
    nav a:nth-child(1),  
    nav a:nth-child(2),  
    nav a:nth-child(5), 
    
    nav a:nth-child(8),  
    nav a:nth-child(9) { 
        display: block;
    } 
    */
    header h1 {
        font-size: 1.8rem;
    } 

    header p {
        font-size: 1rem;
    }

    .profile-photo img {
        width: 200px;
        height: 280px;
    }

    section {
        padding: 1rem;
    }

    .skills ul, .projects ul {
        flex-direction: column;
        align-items: center;
    }

    .skills ul li, .projects ul li {
        padding: 0.5rem;
        width: 80%;
        text-align: center;
    }

    footer {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px; /* Adjust font size for readability on small screens */
    }

    header h1 {
        font-size: 1.6rem;
    }

    header p {
        font-size: 0.65rem;
    }

    .profile-photo img {
        width: 150px;
        height: 210px;
    }
    .about-content {
    flex-direction: column; 
    text-align: center;       
    }

    /* nav {
        padding: 0.4rem;
    } */

    .skills ul li, .projects ul li {
        padding: 0.4rem;
        width: 100%;
    }

    footer {
        padding: 0.6rem;
    }
}
