/* Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

/* Global Reset and Basic Styling */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

/* Root Color Variables */
:root {
  --bg-color: #081b29;
  --second-bg-color: #323946;
  --text-color: #fff;
  --main-color: #0ef;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}

/* Header Section */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  animation: show-content 1.5s linear forwards;
  animation-delay: 1.2s;
}

.header .sticky {
  border-bottom: .1rem solid rgba(0, 0, 0, .2);
}

.logo {
  font-size: 30px;
  font-weight: 700;
  color: var(--main-color);
}
@media (max-width: 991px) {
  .header {
    padding: 2rem 3%;
  }}

  /* Page Title */
.page-title {
  text-align: center;
  font-size: 2.5rem;
  margin: 50px 0;
  color: var(--main-color);
} 

/* Navigation Bar*/
.navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 15px;
  position: sticky;
  margin-bottom: 40px;
  top: 0;
  z-index: 1000;
  background: var(--second-bg-color); 
  transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out;
}

.nav-hidden {
  opacity: 0;
  pointer-events: none; 
  transform: translateY(-10px); 
}

.nav-btn {
  padding: 10px 28px;
  font-size: 20px;
  background: var(--main-color, #0ef);
  color: var(--second-bg-color);
  border: 2px solid var(--main-color);
  border-radius: 40px;
  box-shadow: 0 0 10px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .1rem;
}

.nav-btn:hover {
  background: transparent;
  color: var(--main-color);
  box-shadow: none;
}

/* Default nav links */
.nav-links {
  display: flex;
  gap: 20px;
}

/* Menu toggle (hamburger icon) */
.menu-toggle {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--main-color);
  position: absolute;
  right: 20px;
}
/* Mobile Styles */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide menu by default */
    flex-direction: column;
    background: var(--second-bg-color);
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    border-top: 2px solid var(--main-color);
  }

  .nav-links.active {
    display: flex; /* Show menu when active */
  }

  .menu-toggle {
    display: block; /* Show menu icon on small screens */
  }

  .nav-btn {
    display: block;
    padding: 10px;
  }
}

/* Section Titles */
section h2 {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
  font-size: 21px;
  color: var(--main-color);
}

/* Project Grid Styling */
.all-project-container {
  max-width: 1400px;
  padding: 0 15px;
  margin: 0 auto;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 20px 0;
}

.project-box {
  position: relative;
  padding: 10px;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid var(--bg-color);
  background-color: var(--second-bg-color); 
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column; /* Stack content vertically */
  align-items: center; /* Center text content */
}

.project-box img {
  width: 100%;
  height: 400px;
  display: block;
  object-fit: cover;
  border-radius: 10px; 
  transition: .5s ease;
}

/* Floating effect */
.project-box:hover {
  transform: scale(1.02);
  border-color: var(--main-color);
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.15);
}

.project-box h4 {
  margin: 10px 0; 
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--text-color); 
  padding: 0 10px;
}

.project-box p {
  font-size: 14px;
  color: var(--main-color);
  padding: 0 10px;
}

.project-box .btn {
  display: inline-block;
  margin-top: 10px; 
  padding: 8px 15px;
  font-size: 14px;
  color: var(--second-bg-color);
  background-color: var(--main-color); 
  border-radius: 40px;
  border: 2px solid var(--main-color);
  box-shadow: 0 0 10px;
  cursor: pointer;
}

.project-box .btn:hover {
  background: transparent;
  color: var(--main-color);
  box-shadow: none;
}

/* Publication Table */
.publication-table {
  margin: 20px 0;
  border-collapse: collapse;
}

.publication-table th, .publication-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}
.publication-table td i {
  font-size: 2rem;
  color: var(--main-color);

}

.publication-table th {
  background-color: var(--second-bg-color);
  color: white;
}

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

  .project-box img {
    height: 365px;
  }
}


.project-grid .active {
  display: block;
}


@media screen and (max-width:940px) and (min-width:769px) {
  
  .project-box img {
    height: 220px;
  }
}
@media screen and (max-width:1050px) and (min-width:941px) {
  
  .project-box img {
    height: 280px;
  }
}
@media screen and (max-width:1300px) and (min-width:1051px) {
  
  .project-box img {
    height: 340px;
  }
}

