/*CSS for the literal header*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
header {
    background-color: #dc1919;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}
header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1rem;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem;
    gap: 2rem;
    flex: 1;
}

.profile-image {
    flex: 1;
    max-width: 300px;
}

.profile-image img {
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-content {
    flex: 2;
    max-width: 600px;
    text-align: center;
}

.profile-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #dc1919;
}

.profile-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/*Style for the navigation bar*/
.topnav {
    overflow: hidden;
    background-color: #333;
  }
  #button-top, #button-mid, #button-bot {
      height: 4px; /* Adjusted height */
      width: 25px; /* Adjusted width */
      background: white;
      margin: 4px 0; /* Adjusted margin */
      border-radius: 10px;
  }
  
  .topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
  }
  
  .topnav a:hover {
    background-color: #ddd;
    color: black;
  }
  
  .topnav a.active {
    background-color: #dc1919;
    color: white;
  }
  
  .topnav .icon {
    display: none;
  }

/*Detecting and reformatting nav bar/page based on device user is using*/
@media screen and (max-width: 600px) {
    .topnav a:not(:first-child) {display: none;}
    .topnav a.icon {
        float: right;
        display: block;
    }
}
  
@media screen and (max-width: 600px) {
    .topnav.responsive {position: relative;}
    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
}

.footer {
    text-align: center;
    padding: 1rem;
    background-color: #dc1919;
    color: #fff;
    margin-top: auto;
}

.footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 1.2rem;
}

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

/*CSS for Form*/
  /* Getting user input */
  .contact-form {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}
.contact-form h2 {
    margin-bottom: 20px;
}
.contact-form .form-group {
    margin-bottom: 15px;
}
.contact-form .form-group label {
    display: block;
    margin-bottom: 5px;
}
.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 90%;
    padding: 10px;
    border: 1px solid #000000;
    border-radius: 4px;
}
.contact-form .form-group textarea {
    resize: vertical;
    height: 150px;
}
.contact-form .form-group button {
    padding: 10px 150px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.contact-form .form-group button:hover {
    background-color: #0056b3;
}

p1{
    text-align: left;
}
section h2 {
    font-size: 20px;
    margin: 0 0 10px 0;
}

/*Styles for Project Page*/
/* CSS for the "Projects" Page */
.project {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-width: 800px;
    margin: auto;
}
.project img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(201, 122, 122, 0.2);
    object-fit: cover;
    margin: 0 auto;
}
.project h2 {
    margin-top: 0;
    font-size: 1.5rem;
}
.project p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 10px 0;
}
.content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 40px;
    padding: 20px;
    justify-items: stretch;
}
.button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    background-color: #dc1919;
    color: white;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow to buttons */
}
.button:hover {
    background-color: #d67d7d;
}

/* Project Page Styling */
.project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
}

.project-header h2 {
    color: #dc1919;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.project-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    padding: 2rem;
    text-align: center;
}

.project-section h3 {
    color: #dc1919;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.project-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #dc1919;
    width: 100%;
}

.project-section img {
    max-width: 700px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin: 1.5rem auto;
    display: block;
}

.project-section p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 1rem auto;
    max-width: 800px;
    text-align: center;
}

.project-section video {
    max-width: 700px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin: 1.5rem auto;
    display: block;
}

/*CSS used in BLE page*/
/*CSS used in BLE Projects Page*/
section {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0px 0px 5px #ccc;
    margin: 10px;
    padding: 30px;
    width: 500px;
}

.box {
    display: flex;
    justify-content: space-around; /* Evenly spaces the boxes */
    gap: 2rem;
    padding: 4rem;
    flex-wrap: wrap; /* Ensures responsiveness */
}
.nice-link {
    color: white; 
    background-color: #dc1919; 
    padding: 10px 20px; 
    text-decoration: none; 
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.nice-link:hover {
    background-color: #dc1919;
    transform: scale(1.05);
}
.embedded-content { /*Controls the size and characteristics of Award image*/
    width: 100%;
    height: 300px;
    border: none;
    margin-top: 10px;
}
.embedded-content2 { /*Controls the size and characteristics of Award image*/
    width: 160%;
    height: 300px;
    border: none;
    margin-top: 10px;
}

.left-align {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    width: 90%; /*Edit this for how much the text will spell across in a single line*/
}
.right-align {
    text-align: right;
    margin-right: 20px;
}
/*BLE page end*/

/*BGP Page Begin*/
/* Content container */
.BGPcontent {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem auto;
    max-width: 1200px;
}

/* Image container styles */
.image-container {
    margin: 1rem;
    text-align: center;
}

.image-container img {
    object-fit: fill; /* Maintain aspect ratio and crop excess */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Video container styles */
.video-container {
    margin: 2rem;
    text-align: center;
}

.video-container video {
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/*BGP Page ends*/

/*Resume Page CSS begins*/
.resumeimagebackground {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}
.resume {
    max-width: 100%;
    height: auto;
}
.resume-container {
    padding: 10px;
}
.download-container {
    text-align: center;
}

.download-container a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #dc1919;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.download-container a:hover {
    background-color: #059669;
}

/*Windows Active Directory Page Begin*/
.wadimagebackground {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    text-align: center;
}
.screenshot{
    text-align: center;
    margin: 20px 0;
}

.screenshot img {
    width: 50%;
    border-radius: 8px;
}

.video-container{
    text-align: center;
    margin: 20px 0;
}

.video-container video {
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
}

footer {
    text-align: center;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    position: relative;
    bottom: 0;
    width: 100%;
}
/*Success page CSS*/
.success-body {
    font-family: Arial, sans-serif;
    background-color: #f9fafb;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.success-container {
    text-align: center;
    background: #ffffff;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.success-container h1 {
    color: #dc1919;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.success-container p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.success-container a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #dc1919;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}
.success-container a:hover {
    background-color: #9d2626;
}
/*CSS for Kali*/
.kalibody {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #ffffff;
    text-align: center;
}

.kaliheader {
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
}

.kalimedia {
    width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow:  100 15px rgba(255, 255, 255, 0.2);
}

.kaliimages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 20px 0;
    align-items: center;
    justify-content: center;
}

.kaliimages img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.kaliimages img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.kalivideo {
    margin: 20px 0;
}

kalivideo {
    width: 100%;
    max-width: 800px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/*CSS for about page*/
.aboutprofile-image {
    flex: 1;
    max-width: 200px;
}

.aboutprofile-image img {
    width: 100%;
    border-radius: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.aboutprofile-content {
    flex: 2;
    max-width: 1000px;
    text-align: left;
}

.aboutprofile-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #dc1919;
    text-align: center;
}

.profile-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Machine Learning Project Styles */
.ml-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

.ml-content {
    background: transparent;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.ml-project {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ml-project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.ml-project-image {
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
    flex-grow: 1;
}

.ml-project img {
    max-width: 100%;
    width: 100%;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    object-fit: contain;
    margin: 0 auto;
}

.ml-project-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.ml-project h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.ml-project h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100px;
    height: 3px;
    background-color: #dc1919;
    transform: translateX(-50%);
}

.ml-project p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ml-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #dc1919;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid #dc1919;
    margin-top: auto;
}

.ml-button:hover {
    background-color: transparent;
    color: #dc1919;
}

.ml-project video {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Responsive design for smaller screens */
@media screen and (max-width: 768px) {
    .ml-content {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design Rules */
@media screen and (max-width: 768px) {
    /* General Layout Adjustments */
    .main-container {
        padding: 1rem;
        flex-direction: column;
    }

    .profile-image {
        max-width: 200px;
        margin: 0 auto;
    }

    .profile-content {
        max-width: 100%;
        text-align: center;
    }

    /* Navigation Adjustments */
    .topnav {
        padding: 0;
    }

    .topnav a {
        padding: 12px 16px;
        font-size: 16px;
    }

    /* Project Page Adjustments */
    .content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .project {
        max-width: 100%;
    }

    .project img {
        max-width: 100%;
    }

    /* Publications Page Adjustments */
    .ml-content {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .ml-project {
        padding: 15px;
        margin-bottom: 20px;
    }

    .ml-project img {
        height: 250px;
    }

    .ml-project h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .ml-project p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .ml-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Contact Form Adjustments */
    .contact-form {
        padding: 15px;
        margin: 10px;
    }

    .contact-form .form-group input,
    .contact-form .form-group textarea {
        width: 100%;
    }

    .contact-form .form-group button {
        padding: 10px 100px;
    }

    /* Resume Page Adjustments */
    .resumeimagebackground {
        padding: 10px;
    }

    .resume {
        max-width: 100%;
    }

    /* BLE Page Adjustments */
    .box {
        padding: 1rem;
        gap: 1rem;
    }

    section {
        width: 100%;
        margin: 10px 0;
    }

    /* BGP Page Adjustments */
    .BGPcontent {
        padding: 10px;
    }

    .image-container,
    .video-container {
        margin: 10px 0;
    }

    .image-container img,
    .video-container video {
        max-width: 100%;
    }
}

/* Additional mobile optimizations for very small screens */
@media screen and (max-width: 480px) {
    /* Header Adjustments */
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 0.9rem;
    }

    /* Project Page Adjustments */
    .project-header h2 {
        font-size: 2rem;
    }

    .project-section h3 {
        font-size: 1.5rem;
    }

    /* Publications Page Adjustments */
    .ml-project img {
        height: 200px;
    }

    .ml-project h2 {
        font-size: 18px;
    }

    .ml-project p {
        font-size: 13px;
    }

    .ml-button {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Contact Form Adjustments */
    .contact-form .form-group button {
        padding: 8px 80px;
    }

    /* Footer Adjustments */
    .footer {
        padding: 0.8rem;
    }

    .footer a {
        font-size: 1rem;
        margin: 0 0.3rem;
    }
}

/* Ensure images don't overflow on mobile */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure videos are responsive */
video {
    max-width: 100%;
    height: auto;
}