* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    line-height: 1.6;
    color: #333;
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}
.gap{
    margin-top: 103px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar Styles */
/* Navbar Styles */
.navbar {
  /* This is the default, solid background at the top */
  background-color: #2d3748; /* Solid color */
  
  /* This makes the change smooth */
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;

  /* This fixes it to the top of the screen */
  position: fixed;
  top: 0;
  width: 100%; /* Make sure it spans the full width */
  z-index: 1000;

  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* This class is ADDED BY JAVASCRIPT when you scroll */
.navbar-scrolled {
  /* This is the transparent/blurry style */
  background-color: rgba(45, 55, 72, 0.85); /* 85% opacity */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* For Safari */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  margin-left: 100px;
  margin-right: 20px;
}

.logo img {
  width: 8rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
  opacity: 0.8;
  border-bottom-color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
}
/* Hero Section */
.hero {
  /* This combines the image and a dark overlay */
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/assets/images/nlp.webp");

  /* --- ✅ THIS IS THE KEY --- */
  background-attachment: fixed;
  /* -------------------------- */

  /* These properties ensure it covers the area well */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: white;
  padding: 100px 20px;
  text-align: center;
}
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-content .description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: white;
    color: #af2567;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: #f8f9fa;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

/* Latest News Section */
.latest-news {
    padding: 80px 20px;
}

.latest-news h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #af2567;
}

.news-date {
    color: #af2567;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.read-more {
    color: #af2567;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.read-more:hover {
    text-decoration: underline;
}



/* Page Specific Styles */
/* .page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
} */


/* Shared subtitle style */
        .page-subtitle {
            font-size: 1.15rem;
            font-weight: 300;
            color: rgba(255, 255, 255, 0.8);
            margin-top: 0.5rem;
        }

        /* Base style for Image Background Header */
        .page-header-image-base {
            background: linear-gradient(rgba(45, 55, 72, 0.7), rgba(45, 55, 72, 0.7)), 
                        no-repeat center center; 
            background-size: cover;
            color: white;
            padding: 100px 20px;
            text-align: center;
            min-height: 300px; 
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background-attachment: fixed;
        }
        .page-header-image-base h1 {
            font-size: 3.5rem;
            font-weight: 700;
            margin: 0 0 1rem 0;
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
            max-width: 90%; 
        }
        .page-header-image-base .subtitle {
            max-width: 80%;
        }

        /* * ✅ UPDATED: These now point to your LOCAL images folder.
         * Make sure you have downloaded the images and saved them
         * to 'assets/images/' with these names.
        */
        .header-about {
            background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                              url('../images/header-about.webp');
        }
        .header-people {
            background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                              url('../images/header-people.jpg');
        }
        .header-research {
            background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                              url('../images/header-research.webp');
        }
        .header-resources{
             background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                              url('../images/header-resource.jpg');
        }
         .header-project {
            background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                              url('../images/header-project.jpg');
        }
        .header-publications {
            background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                              url('../images/header-publications.webp');
        }
        .header-events {
            background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                              url('../images/header-events.webp');
        }
        .header-gallery {
            background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                              url('../images/header-gallery.webp');
        }
        .header-contact {
            background-image:linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                              url('../images/header-contact.webp');
        }


        /* --- Placeholder content for sections --- */
        .page-section {
            padding: 4rem 2rem;
            max-width: 1000px;
            margin: 2rem auto;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            line-height: 1.7;
        }
        .page-section h2 {
            font-size: 2rem;
            color: #2d3748;
            margin-bottom: 1.5rem;
            border-bottom: 2px solid #e0e0e0;
            padding-bottom: 1rem;
        }
        .page-section p {
            margin-bottom: 1rem;
        }

       
    

        /*  */

.content-section {
    padding: 60px 20px;
}

.content-section h2 {
    color: #667eea;
    margin-bottom: 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #667eea;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .subtitle {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 80%;
        max-width: 300px;
    }
}


.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 4px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* X Icon on active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}



@media (max-width: 1100px) {
    .hamburger {
        display: flex;
    }

    .logo {
        margin-left: 20px; /* reduce spacing for mid-screen */
    }

    .nav-menu {
        position: absolute;
        top: 150px;
        left: -100%;
        flex-direction: column;
        background: #2d3748ec;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
        display: flex;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }
}



/* Footer */
footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 180px;
}

.footer-section h4{
    font-size: large;
    text-decoration: underline;
}

.footer-section img{
    width: 10rem;
}

.lab-address {
  margin-top: 10px;
  line-height: 1.5;
  font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
}

.social-links a {
    margin-right: 10px;
    font-size: 1.3rem;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a i {
    color: #ffffff;
}

.social-links a:hover i {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-section img {
    margin: 0 auto;
  }
}
