/* Updated portfolio.css */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f8;
    margin: 0;
    padding: 0;
}

header {
    background-color: #003366;
    color: white;
    padding: 60px 0;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    color: #d1d1d1;
}

.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    color: #003366 !important;
}

.nav-link {
    color: #333 !important;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #007bff !important;
    font-weight: bold;
    border-bottom: 2px solid #007bff;
}

section {
    padding: 60px 0;
}

.container h2 {
    color: #003366;
    font-weight: 700;
    margin-bottom: 20px;
}

.card {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-radius: 12px;
    background-color:#fff;
    
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #003366;
}

.card-body ul {
    padding-left: 20px;
    list-style-type: disc;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    border: 4px solid #0000;
}

footer {
    background-color: #003366;
    color: white;
}

.section {
    padding: 60px 0;
}

/* Navbar active section indicator */
.navbar-nav .nav-link.active {
    color: #007bff !important;
    border-bottom: 2px solid #007bff;
}

/* Contact section */
#contact p {
    font-size: 1.1rem;
}

/* LinkedIn button */
.linkedin-link {
    display: block;
    margin-top: 10px;
    text-align: center;
    
}

.linkedin-link a {
    color: #0e76a8;
    font-weight: bold;
    text-decoration: none;
}

.linkedin-link a:hover {
    text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }

    .card-container {
        height: auto;
    }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 20px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  background: #fff;
}

.project-card:hover {
  transform: scale(1.03);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  width: 100%;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.project-card:hover .overlay {
  transform: translateY(0%);
}

.academic-section {
  padding: 60px 20px;
  background-color: whitesmoke;
}

.academic-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.academic-text {
  flex: 1 1 60%;
}

.academic-text h2 {
  font-size: 2rem;
  color: #2c3e50;
  text-align: center;
  margin: 0 auto 20px auto;
}

.academic-text h3, .academic-text h4 {
  color: #37474f;
  margin-top: 1rem;
}

.academic-text ul {
  margin-left: 20px;
  color: #333;
  line-height: 1.6;
  padding-left: 20px;
}

.academic-image {
  flex: 1 1 35%;
  text-align: center;
}

.academic-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

 .dropdown-menu {
            background-color: #f8f9fa;
        }
        .dropdown-item:hover {
            background-color: #e9ecef;
        }

/* Responsive for smaller devices */
@media screen and (max-width: 768px) {
  .academic-content {
    flex-direction: column;
    text-align: left;
  }

  .academic-text,
  .academic-image {
    flex: 1 1 100%;
  }

  .academic-text h2 {
    font-size: 1.5rem;
    text-align: center;
    margin: 0 0 20px 0;
  }

  .academic-image img {
    max-width: 100%;
  }
}
