html {
    scroll-behavior: smooth;
}


/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* General Body Style */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding-top: 65px; 
    background: #f4f4f4;
    color: #333;
}
a {
    color: #9a7bb9;
    transition: color 0.3s;
}

a:hover {
    color: #46385b;
}


table {
    width: 100%;
    border-collapse: collapse; /* Makes borders collapse into a single border */
    border: 2px solid black; /* Add a black border around the table */
}

th, td {
    border: 1px solid black; /* Add a black border to each cell */
    padding: 8px; /* Adds some padding inside the cells */
    text-align: left; /* Optional, but helps make the text align neatly */
}

thead {
    background-color: #f2f2f2; /* Optional: Adds a background color to the header */
}


/* Header Section */
header {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: #333;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav a {
    color: #9a7bb9;
    margin: 0 1rem;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav .nav-links a:hover {
    color: #b8a2d8;
}

nav .menu-icon {
    display: none;  /* Hidden by default on large screens */
    font-size: 2rem;
    cursor: pointer;
}

nav a:hover {
    background-color: #444;
}

/* Fix layout when navigation is active */
nav.active .nav-links a:hover {
    background-color: #444;
}


/* Profile Section Styling */
.profile-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.bio {
    flex: 1;
}

/* Information Section (Education & Trainings) */
.info-section {
    display: flex;
    gap: 20px;
    margin-top: 1rem;
}

.education, .trainings {
    flex: 1;
    background-color: #fff;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Custom Bullet Points for Education Section */
.education ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0; /* Remove left padding */
}

.education ul li {
    position: relative;
    padding-left: 1.5rem; /* Space for the emoji */
    margin-bottom: 0.5rem;
}

.education ul li::before {
    content: "🎓 "; /* Emoji as bullet point */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

/* Custom Bullet Points for Training Section */
.trainings ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0; /* Remove left padding */
}

.trainings ul li {
    position: relative;
    padding-left: 1.5rem; /* Space for the emoji */
    margin-bottom: 0.5rem;
}

.trainings ul li::before {
    content: "🛠️  "; /* Emoji as bullet point */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

#blog-posts {
    padding: 2rem; /* Same as other sections for alignment */
    max-width: 1200px;
    margin: 0 auto;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px; /* Adjusts padding between carousel buttons and blog items */
}

/* Wrapper to hold blog items in a row */
.carousel-wrapper {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 1rem; 

}

.carousel-wrapper::-webkit-scrollbar {
    display: none; /* Optional: Hides scrollbar for cleaner UI */
}

/* Individual Blog Item */
.blog-item {
    flex: 0 0 calc(33.33% - 1rem);
    max-width: 300px; 
    text-decoration: none; 
    color: inherit; 
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    scroll-snap-align: start;
}

.blog-item:a {
    text-decoration: none; 

}


.blog-item:hover {
    transform: scale(1.05);
    border-color: #9a7bb9;
    box-shadow: 0 4px 12px rgba(154, 123, 185, 0.2);
}


/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #333;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10; 
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 1dvb;
}

.carousel-btn:hover {
    color: #9a7bb9;
}




/* Projects Section */
#projects {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-buttons {
    text-align: center;
    margin-bottom: 1rem;
}

.filter-buttons button {
    padding: 0.5rem 1rem;
    margin: 0.3rem;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-buttons button:hover {
    background-color: #555;
}


.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.project-card {
    text-decoration: none; 
    color: inherit; 
    background: #fff;
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    overflow: hidden;
}

.project-card a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.project-card:hover {
    transform: scale(1.05);
    border-color: #9a7bb9;
    box-shadow: 0 4px 12px rgba(154, 123, 185, 0.2);
}

/* "Used in" Section */
.used-in {
    list-style-type: disc;
    padding-left: 1rem; 
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.used-in li {
    margin-bottom: 0.3rem;
}

.used-in a {
    color: #9a7bb9;
    text-decoration: none;
    transition: color 0.3s;
}

.used-in a:hover {
    color: #b8a2d8;
    
}

/* Tag Styling */
.tags {
    margin-top: 1rem;
}

.tags span {
    display: inline-block;
    background: linear-gradient(135deg, #9a7bb9, #b8a2d8); /* Lavender gradient */
    color: #fff;
    padding: 0.3rem 0.6rem;
    margin: 0.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.tags span:hover {
    background: linear-gradient(135deg, #b8a2d8, #9a7bb9);
}

/* Publication Section */
#publications {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-decoration: none;
}

.pub {
    text-decoration: none;
    color: inherit;
}
.pub:hover {
    transform: scale(1.05);
    border-color: #9a7bb9;
    box-shadow: 0 4px 12px rgba(154, 123, 185, 0.2);
}
/* Footer Section */
footer {
    background-color: #333;
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.social-links a {
    color: #9a7bb9;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #b8a2d8;
}

/* blog page and blogs */

.blog-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Creates responsive grid */
    gap: 1.5rem; /* Space between the grid items */
    padding: 2rem 3rem;
  }

  .blog-grid-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .blog-grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  }
  
  .blog-grid-item h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  .blog-grid-item p {
    font-size: 1rem;
    color: #555;
  }
  
  .blog-grid-item p strong {
    font-weight: bold;
  }
  


/* blogs */


article {
    margin: 0;
    padding: 20px;
    background: white; /* Optional: Adds a background to the article */
    border-radius: 8px;
}

.post-header{
    text-align: center;
    padding: 2rem 1rem;
    font-size: 2.5rem;
    margin-bottom: 5px;
}
.post-meta {
    text-align: center;
    font-size: 1rem;
    color: #888;
  }
  
  .post-meta span {
    font-weight: bold;
  }
  
  h2, h3 {
    margin-top: 1.5rem;
  }

  pre {
    background-color: #2d2d2d;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
  }
  
  code {
    font-family: 'Courier New', monospace;
  }
  
  .callout {
    background-color: #d9c9ea;
    border-left: 5px solid #772dc0;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 5px;
  }
  
  .callout h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
  }
  
  .post-footer {
    font-size: 1rem;
    color: #555;
    margin-top: 2rem;
  }
  
/* Responsive Design */
@media (max-width: 768px) {

    .blog-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Adjusts the columns for smaller screens */
      }

    .profile-section, .info-section {
        flex-direction: column;
        align-items: left;
        text-align: left;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

     /* Show the hamburger icon and hide the navigation links */
     nav .menu-icon {
        display: block;
        font-size: 2rem;
        cursor: pointer;
    }

    /* Hide the navigation links initially on small screens */
    nav .nav-links {
        display: none;
 
    }

    /* When the menu is active, show the links in a column */
    nav.active .nav-links {
        display: block;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #333;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    nav.active .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #444;
    }

    nav.active .nav-links a:hover {
        background-color: #444;
    }



    .carousel-wrapper {
        flex-wrap: nowrap; 
    }

    .blog-item {
        flex: 0 0 100%; /* One item per row on small screens */
    }

    .carousel-container {
        padding: 0 20px; /* Ensure there's padding to prevent overflow */
    }
}



/* Mid-size Screens: Show two items per view */
@media (max-width: 900px) {
    .blog-item {
        flex: 0 0 calc(50% - 1rem); /* Two items per row on medium screens */
    }
}


/* Basic desktop and tablet screen styles */
@media (min-width: 769px) {
    nav .menu-icon {
        display: none; /* Hide the hamburger icon on larger screens */
    }

    nav .nav-links {
        display: flex; /* Show the nav links in a row on larger screens */
    }

    nav .nav-links a {
        padding: 0.5rem 1rem;
    }
}