/* Reset some basic elements */
body, h1, h2, p, ul {
    margin: 0;
    padding: 0;
    list-style: none; /* Removes default bullet points */
}

/* Basic styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

#summary {
    background-color: #d3d3d3; /* Light gray background color */
    border-radius: 15px;
}

#summary .profile-header {
    /* Ensure there's no excessive padding or margin */
    padding: 20px; /* Adjust as needed */
    margin: 0;
    /* Other styles... */
}

header {
    /*background: rgba(51, 51, 51, 0.9); /* Transparency effect */
    background: #2E4053;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    z-index: 1000; /* Ensures the header stays above other content */
}

nav#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand {
    font-size: 1.5em;
    font-weight: bold;
}

.nav-items a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.nav-items a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Hover effect */
    border-radius: 5px; /* Rounded corners for hover effect */
}

main {
    padding: 20px;
    padding-top: 70px; /* Add padding to account for fixed header */
}

section {
    margin-bottom: 20px;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: relative;
    z-index: 1000; /* Ensures the footer stays above other content */
}

#projects {
  padding: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  background-color: rgba(229, 229, 229, 0.47);
}

.project-image {
  height: 200px;
  overflow: hidden;
  background-color: #565656; /* Add this line to set a black background */
  display: flex; /* Add this line */
  align-items: center; /* Add this line */
  justify-content: center; /* Add this line */
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Change this from 'cover' to 'contain' */
}

.project-content {
  padding: 1.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.primary-tag,
.secondary-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 50px;
}

.primary-tag {
  color: #fff;
  font-weight: bold;
}

.secondary-tag {
  background-color: #f0f0f0;
  color: #2E4053;
}

.project-date {
  font-size: 0.9rem;
  color: #666;
  display: block;
  margin-bottom: 0.5rem;
}

.project-card h2 {
  margin: 0.5rem 0;
  font-size: 1.25rem;
  color: #333;
}

.project-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.project-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #2E4053;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}
.project-link-github {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #6e5494;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.project-link:hover {
  background-color: #0056b3;
}

.project-link-github:hover {
  background-color: #463057;
}

/* Category-specific colors */
.game-dev .primary-tag {
  background-color: #FF6B6B;
}

.machine-learning .primary-tag {
  background-color: #4ECDC4;
}

.networks .primary-tag {
  background-color: #45B7D1;
}

.security .primary-tag {
  background-color: #FF8C42;
}

.hardware .primary-tag {
  background-color: #98C379;
}

/* Responsive design */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* New and updated styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #D5D8DC;
}

.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 20px;
}

/* Card styles */
.card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Profile header styles */
.profile-header {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-pic {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin-right: 20px;
}

.profile-header h1 {
    font-size: 1.7em;
    margin-bottom: 10px;
}

/* Grid layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.column-3 {
    flex: 1;
    padding: 10px;
    min-width: 300px;
}

/* List styles */
.styled-bullets {
    list-style-type: none;
    padding-left: 0;
}

.styled-bullets li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.styled-bullets li::before {
    content: '•';
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Experience and Education sections */
.experience-item, .education-item {
    margin-bottom: 20px;
}

.experience-item h3, .education-item h3 {
    font-size: 1.4em;
    margin-bottom: 5px;
}

.experience-item p, .education-item p {
    margin-bottom: 5px;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

/* Responsive design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-pic {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .column-3 {
        flex: 100%;
    }
}

/* New styles for the Art section */
.art-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.art-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
}

.art-item:hover {
    transform: scale(1.05);
}

.art-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-grow: 1;
}

.art-description {
    padding: 10px;
    background-color: #f8f8f8;
    flex-shrink: 0;
}

.art-description h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1em;
}

.art-description p {
    margin: 0;
    color: #666;
    font-size: 0.8em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fullscreen-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.fullscreen-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
}

.fullscreen-image-container {
    max-width: 100%;
    max-height: calc(100vh - 100px); /* Adjust this value as needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

#fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fullscreen-description {
    color: white;
    text-align: center;
    margin-top: 20px;
    max-width: 600px;
}

.fullscreen-description h3 {
    margin-bottom: 10px;
}

.gallery-button {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 20px;
    cursor: pointer;
}

#prev-button {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#next-button {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#close-button {
    top: 20px;
    right: 20px;
}

/* Responsive design for art section */
@media (max-width: 768px) {
    .art-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 450px) {
    .art-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {
    #c3 {
        margin-left: -35px;
    }

    .image-gallery {
        position: relative;
        width: 90%; /* Adjust as per your requirement */
        height: 170px; /* Adjust as per your requirement */
    }
}

@media (min-width: 1200px) {
    .row {
        max-width: 64%; /* Adjust column width for larger screens */
        margin-left: 18%;
        margin-right: auto;
    }
    #projects {
        /*width: 64%;*/
        margin-left: auto;
        margin-right: auto;
    }

    #summary {
        width: 64%;
        margin-left: 18%;
        margin-right: auto;
        /* Other styles... */
    }
    #c3 {
        margin-left: -35px;
    }
}


/* ... Additional styles ... */
.styled-bullets {
    list-style: none; /* Hides default bullets */
    padding-left: 0; /* Aligns items with the rest of the content */
    color: black;
}

/*Main page gallery */
.image-gallery {
    border-radius: 10px;
    position: relative;
    width: 100%; /* Adjust as per your requirement */
    height: 300px; /* Adjust as per your requirement */
    background-color: black; /* Black background for the gallery */
    margin-bottom: 20px; /* Space for the dots */
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

.image-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none; /* Hide initially */
    overflow: hidden; /* Hide overflow */
    text-align: center; /* Horizontal centering for inline elements */
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
}

.gallery-dots {
    position: absolute;
    bottom: -20px; /* Positioning dots below the container */
    left: 50%;
    transform: translateX(-50%); /* Centering dots */
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.show-image {
    display: block;
}

.active, .dot:hover {
    opacity: 0.6;
}

/* Styling links */
.link {
    color: #2E4053; /* Slightly lighter blue color */
    text-decoration: none; /* Removes the underline */
    transition: color 0.3s ease; /* Smooth transition for hover effect */
}

.link:hover {
    color: #2E4053; /* Darker blue on hover */
    text-decoration: underline; /* Underline appears on hover */
}

.experience-item p {
    color: #7e7e7e;
}
.education-item p {
    color: #7e7e7e;
}

.grades-table thead tr {
    background-color: #F1C40F;
    color: #2E4053;
    text-align: left;
    font-weight: bold;
}

.grades-table th, .grades-table td {
    padding: 8px 10px; /* Reduced padding to make the table more compact */
    border-bottom: 1px solid #D5D8DC;
    
}

.grades-table tbody tr {
    border-bottom: 1px solid #D5D8DC;
    
}

.grades-table tbody tr:hover {
    background-color: #D5D8DC;
}

@media (max-width: 600px) {
    .grades-table th:nth-child(2),
    .grades-table td:nth-child(2) {
        display: none;
    }
}

/* Grades */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    font-size: 0.85em;
}

.grade-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    background: white;
}

.grade-card .course {
    font-weight: bold;
    margin-bottom: 4px;
}

.grade-card .details {
    color: #666;
    font-size: 0.9em;
}

.grade-card .grade {
    float: right;
    font-weight: bold;
    color: #007bff;
}
