/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Navbar */
.navbar {
  background: linear-gradient(45deg, #007acc, #005f99);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);*/
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}
.navbar h1 a {
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
}
.navbar nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.navbar nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition:
    background 0.3s,
    color 0.3s;
}
.navbar nav ul li a:hover {
  background: #fff;
  color: #007acc;
}


header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    color: #2a3d66;
}

header p {
    font-size: 1.2em;
    font-weight: bold;
    color: #5a6a7b;
}



.bio h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #2a3d66;
}

.bio p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: white;
}

.cta {
    text-align: center;
    margin-top: 30px;
}

.cta p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #2a3d66;
}

.cta button {
    background-color: #2a3d66;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
}

.cta button:hover {
    background-color: #3c4d78;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  background: url("images/profile.jpg") no-repeat center center/cover;
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.hero .btn-primary {
  background: #ff6f61;
  padding: 0.7rem 1.5rem;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}
.hero .btn-primary:hover {
  background: #ff3e2e;
}

/* Footer */
footer {
  background: #333;
  color: white;
  text-align: center;
  position: static; /* Always at bottom */
  padding: 1rem 0;
}

/* Section Styling */
section {
  padding: 2rem 1rem;
}
section h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #007acc;
}
.container {
  width: 80%;
  margin: auto;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
.card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.card:hover {
  transform: scale(1.05);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-content {
  padding: 1rem;
  text-align: center;
}
.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.card-content p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.card-content a {
  color: #007acc;
  text-decoration: none;
  font-weight: bold;
}
.card-content a:hover {
  color: #005f99;
}

/* Gallery Section */
.gallery {
  padding: 2rem 1rem;
  text-align: center;
}
.gallery h2 {
  font-size: 2rem;
  color: #007acc;
  margin-bottom: 1rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  justify-items: center;
}
.gallery-item {
  width: 200px; /* Set fixed width */
  height: 200px; /* Set fixed height */
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f4f4f4; /* Placeholder background for empty space */
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images cover the container without distortion */
  border-radius: 10px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.gallery-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Scrollable Gallery Section */
.gallery-scrollable {
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
}
.gallery-scrollable h2 {
  font-size: 2rem;
  color: #007acc;
  margin-bottom: 1rem;
}
.scroll-container {
  display: flex;
  align-items: center;
  position: relative;
}
.scroll-btn {
  background-color: #007acc;
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  border-radius: 50%;
  transition: background-color 0.3s;
}
.scroll-btn:hover {
  background-color: #005f99;
}
.scroll-btn.left {
  left: 0;
}
.scroll-btn.right {
  right: 0;
}
.scroll-content {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  padding: 1rem 0;
}
.scroll-content::-webkit-scrollbar {
  display: none; /* Hides the scrollbar for a clean look */
}
.gallery-item {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.gallery-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Carousel Gallery Section */
.gallery-carousel {
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
}
.gallery-carousel h2 {
  font-size: 2rem;
  color: #007acc;
  margin-bottom: 1rem;
}
.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.carousel-content {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 300px; /* Show one image at a time */
}
.carousel-content::-webkit-scrollbar {
  display: none; /* Hides the scrollbar for a clean look */
}
.carousel-item {
  flex: 0 0 100%; /* Only one item is visible at a time */
  width: 200px;
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s;
}
.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}
.carousel-btn {
  background-color: #007acc;
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  border-radius: 50%;
  transition: background-color 0.3s;
}
.carousel-btn:hover {
  background-color: #005f99;
}
.carousel-btn.left {
  left: 0;
}
.carousel-btn.right {
  right: 0;
}

.papers-section {
  padding: 2rem 1rem;
}
.papers-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #007acc;
}
#papers-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  justify-content: center;
}
.paper-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.paper-card:hover {
  transform: scale(1.05);
}
.paper-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #007acc;
  margin-bottom: 0.5rem;
  text-decoration: none;
}
.paper-title:hover {
  text-decoration: underline;
}
.paper-authors {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.5rem;
}

/* Papers Section */
.papers-section {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
#papers-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
.paper-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.paper-card:hover {
  transform: scale(1.05);
}
.paper-title {
  font-size: 1.2rem;
  color: #007acc;
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
}
.paper-title:hover {
  text-decoration: underline;
}
.paper-authors {
  font-size: 0.9rem;
  color: #555;
}

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(
    to right,
    white,
    #3498db
  ); /* Gradient from dark to light blue */
  color: white; /* Text color */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header,
footer {
  background: linear-gradient(to right, #34495e, #2c3e50);
  padding: 10px 0;
  position: sticky;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 2rem;
}

/* Biography Section */
.biography-section {
  padding: 40px 20px;
  background: linear-gradient(
    to bottom,
    #3498db,
    #2ecc71
  ); /* Blue to green gradient */
  display: flex;
  justify-content: center;
  align-items: center;
}

.biography-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.bio-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%; /* Circular image */
  object-fit: cover;
  margin-right: 20px;
}

.bio-content {
  max-width: 600px;
}

.bio-content h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #f1c40f;
}

footer p {
  margin: 0;
  padding: 10px;
}

/* Optional: Gradient for specific sections */
.biography-section {
  background: linear-gradient(
    to bottom,
    #3498db,
    #2ecc71
  ); /* Blue to green gradient */
  padding: 50px 10px;
  color: white; /* Ensures text is visible on gradient */
}

header,
footer {
  background: linear-gradient(
    to right,
    #34495e,
    #2c3e50
  ); /* Darker gradient for navbar/footer */
  color: white;
  padding: 10px 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); /* Adds subtle shadow */
}

.bio-content h2 {
  color: #f1c40f; /* Bright yellow text for headings */
}

/* Optional: Add hover effects to buttons or links */
a {
  color: #f39c12; /* Orange links */
  transition: color 0.3s ease;
}

a:hover {
  color: #e74c3c; /* Red on hover */
}

/* Biography Section */





.biography-section {
  position: relative;
padding: 4rem 1rem;
  background: url("history-of-universe-and-qgp-2-2.jpg") no-repeat center
    center/cover; 
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: white;
  width: 98%;
}

/* Biography Container */
.biography-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1000px;
  background: rgba(
    0,
    0,
    0,
    0.3
  ); /* Semi-transparent dark background for readability */
  border-radius: 10px;
  padding: 2rem;
  gap: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}


/* Left: Circular Picture */
.bio-image {
  flex: 1;
  text-align: center;
}
.bio-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%; /* Circular shape */
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
}

.bio-image img {
  width: 200px; /* Ensure a fixed width */
  height: 200px; /* Ensure a fixed height (same as width for circular shape) */
  border-radius: 50%; /* Makes the image circular */
  object-fit: cover; /* Ensures the image fills the circular area */
  border: 4px solid white; /* Adds a white border for styling */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); /* Adds a shadow for depth */
  transition: transform 0.3s ease; /* Smooth zoom effect on hover */
}

.bio-image img:hover {
  transform: scale(1.1); /* Zoom effect when hovering over the image */
}

/* Hover Effect on the Profile Picture */
.bio-image img:hover {
  transform: scale(1.1);
}

/* Right: Biography Text */
.bio-content {
  flex: 2;
  color: white;
  text-align: left;
}
.bio-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #00d4ff; /* Light blue heading */
}
.bio-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: justify;
}

.header {
    position: relative;
    height: 100vh;
    background-image: url('history-of-universe-and-qgp-2-2.jpg'); /* Replace with your background image */
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for better readability */
    display: flex;
    justify-content: center;
    align-items: center;
}

.bio-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    max-width: 1200px;
    padding: 20px;
}

.bio-text {
    width: 60%;
    padding-right: 20px;
    color: white;
}

h1 {
    font-size: 3em;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

p {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    margin-bottom: 15px;
}

.bio-image {
    width: 30%;
    text-align: center;
}

.bio-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.cta {
    text-align: center;
    margin-top: 30px;
}

.cta p {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #2a3d66;
}

.cta button {
    background-color: #2a3d66;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
}

.cta button:hover {
    background-color: #3c4d78;
}

/* Navbar General Styling */
.navbar {
    background-color: #333; /* Dark background color */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Container for Navbar */
.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.logo-image {
    width: 40px; /* Logo width */
    height: 40px; /* Logo height (same as width for circular shape) */
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Ensures the image fills the circle */
    margin-right: 10px; /* Spacing between logo and title */
    border: 2px solid white; /* Optional: Add a border for better visibility */
}

/* Title Styling */
.nav-title {
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap; /* Prevents text wrapping */
}

/* Navigation Links Styling */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00bcd4; /* Hover color */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and HTML */
html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    min-height: 100%; /* Ensures the page takes full height */
    display: flex;
    flex-direction: column; /* Makes the body behave like a flex container */
}

/* Navbar */
.navbar {
    background-color: #333;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed; /* Fixed at the top */
    top: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 70px;
  padding: 15px 20px;
}

/* Content Wrapper */
.content {
    flex: 1; /* Ensures content grows to fill available space */
    margin-top: 60px; /* Prevents overlap with fixed navbar */
    padding: 20px;
}


footer {
    background-color: #333;
    color: white;
    text-align: center;

  padding: 15px 20px;
    width: 100%;
    position: fixed; /* Normal flow footer */
    bottom: 0;
  margin-top: 50px;
}
.navbar {
    background-color: #333;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px; /* Fixed height for the navbar */
    width: 100%;
    position: relative; /* Ensures navbar stays at the top */
    top: 0;
    z-index: 1000; /* Ensures it stays above other elements */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

section {
    padding: 50px;
}

section:nth-of-type(2) {
    margin-top: 50px; /* Adds space only above the second section */
}


.biography-section {
    position: relative; /* Enables positioning for overlay */
    padding: 4rem 1rem; /* Adds space inside the section */
    color: white; /* Ensures text is readable */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh; /* Ensures the section has enough height */
    background: url('history-of-universe-and-qgp-2-2.jpg') no-repeat center center; /* Positions the background image */
    background-size: cover; /* Ensures the image covers the entire section */
    overflow: hidden; /* Prevents content overflow */
}

/* Overlay for Transparency */
.biography-section::before {
    content: ""; /* Creates the overlay */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Black overlay with 50% transparency */
    z-index: 1; /* Places the overlay behind the content */
}

/* Content in Biography Section */
.biography-container {
    position: relative; /* Keeps content above the overlay */
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*width: 90%;*/
    max-width: 1800px;
    background: rgba(0, 0, 0, 0.6); /* Adds a transparent background to the content box */
    border-radius: 10px;
    padding: 2rem;
    gap: 2rem;
    z-index: 2; /* Places content above the overlay */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Biography Image */
.bio-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Circular image */
    object-fit: cover;
    border: 4px solid white;
}

/* Biography Text */
.bio-content {
    flex: 2;
    color: white;
    text-align: justify;
}
.bio-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #f1c40f; /* Bright yellow heading */
}
.bio-content p {
    font-size: 1.2rem;
    line-height: 1.6;
}




/* Responsive Design for Smaller Screens */
@media screen and (max-width: 768px) {
  .biography-container {
    flex-direction: column;
    text-align: center;
  }
  .bio-image img {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 768px) {
    .navbar .nav-links {
        flex-direction: column; /* Stack links vertically */
        gap: 10px; /* Reduce gap between links */
    }

    footer {
        font-size: 14px; /* Adjust font size for compact screens */
        padding: 10px;
    }
}

