/* =========================
   RESPONSIVE BREAKPOINTS
========================= */

/* ≤1300px */
@media (max-width: 1300px) {
   /* Hero section */
  .hero-text-box {
    width: 55%;
  }

  .hero-main--header {
    font-size: 4.8rem;
  }

  .hero-brand-name {
    font-size: 6rem;
  }

  .hero-subtitle {
    font-size: 3.4rem;
  }

  .hero-location {
    font-size: 2.4rem;
    min-height: 1.1em;
  }

  .hero-description {
    font-size: 2rem;
  }

  .partners-container {
    gap: 3rem;
  }

  .logo-img {
    height: 3.8rem;
  }
}

/* ≤1200px */
@media (max-width: 1200px) {
    /* hero section */
  .hero-main--header {
    font-size: 4.2rem;
  }

  .hero-brand-name {
    font-size: 5.4rem;
  }

  .hero-subtitle {
    font-size: 3rem;
  }

  .hero-location {
    font-size: 2.2rem;
    min-height: 1.1em;
  }

  .hero-description {
    font-size: 1.7rem;
  }

  .partners-container {
    gap: 2rem;
  }

  .logo-name {
    font-size: 1rem;
  }

  .partners-container {
    gap: 2.5rem;
  }

  .logo-img {
    height: 3.5rem;
  }

  .hero {
    padding: 0 2rem;
  }

  /* icons */  
  .link-icons{
    height:3.2rem;
    width: 3.2rem;
    display: inline-block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }


  /* about section */
  .about-description{
    font-size:1.7rem;
  }

  .about-stats{
    gap:3rem;
  }

   .about-icon {
    width: 6.4rem;
    height: 6.4rem;
  }

  /* news section */
  .news-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
  }

  .news-heading {
    font-size: 2.2rem;
  }

  .news-brief-desc {
    font-size: 1.5rem;
  }

  /* Publications */
  .main-publications {
    gap: 3rem;
  }

  .publication-card {
    padding: 2.4rem;
  }

  .pub-title {
    font-size: 1.9rem;
  }

  .pub-desc {
    font-size: 1.5rem;
  }

  /* People section */
  .grid--5--cols {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.4rem;
  }

  .inherheader {
    font-size: 2.2rem;
  }

  .contributor-name {
    font-size: 1.7rem;
  }


}

/* ≤950px */
@media (max-width: 950px) {
    /* hero section */
  .hero {
    text-align: center;
  }

  .header{
    height:7.6rem;
  }

  .hero-text-box {
    width: 80%;
    margin: 0 auto;
  }

  .hero-btn {
    gap: 2rem;
    flex-direction: column;
  }

  .hero-main--header {
    font-size: 4.2rem;
  }

  .hero-brand-name {
    font-size: 5.6rem;
  }

  .hero-subtitle {
    font-size: 2.8rem;
  }

  .hero-location {
    font-size: 2rem;
    min-height: 1.1em;
  }


  .hero-description {
    font-size: 1.8rem;
  }

  
  .link-icons{
    height:2rem;
    width: 2rem;
    display: inline-block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }


  /* Hamburger button */
  .btn-mobile-nav {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 4.8rem;
    height: 4.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10002;
    gap: 0.4rem;
  }

  /* Hamburger lines */
  .hamburger-line {
    display: block;
    width: 2.5rem;
    height: 0.3rem;
    background-color: #707e93ff;
    border-radius: 2px;
    transition: all 0.4s ease;
  }

  /* Animate lines on nav-open */
  .nav-open .line1 {
    transform: rotate(45deg) translate(0.6rem, 0.6rem);
  }

  .nav-open .line2 {
    opacity: 0;
  }

  .nav-open .line3 {
    transform: rotate(-45deg) translate(0.6rem, -0.6rem);
  }

  /* Main nav overlay */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
  }

  /* Open menu */
  .nav-open .main-nav {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Menu items */
  .main-nav-list li {
    font-size: 3rem;
    margin: 2rem 0;
    color: #fff;
    opacity: 0;
    transform: scale(0.8);
    animation: menuItemIn 0.5s forwards;
  }

  /* Menu Links */
  .main-nav-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }

  /* Staggered animation */
  .nav-open .main-nav-list li:nth-child(1) { animation-delay: 0.1s; }
  .nav-open .main-nav-list li:nth-child(2) { animation-delay: 0.2s; }
  .nav-open .main-nav-list li:nth-child(3) { animation-delay: 0.3s; }
  .nav-open .main-nav-list li:nth-child(4) { animation-delay: 0.4s; }
  .nav-open .main-nav-list li:nth-child(5) { animation-delay: 0.5s; }
  .nav-open .main-nav-list li:nth-child(6) { animation-delay: 0.6s; }

  @keyframes menuItemIn {
    to {
      opacity: 1;
      transform: scale(1);
    }
  }





  /* about section */
  .about-stats {
    gap: 3.2rem;
  }

  .about-stats-number {
    font-size: 2.6rem;
  }

  .icon-desc {
    font-size: 1.6rem;
    text-align: center;
    line-height: 1.3;
  }

  .subheading {
    font-size: 3rem;
  }

  /* News section */
   .main-news {
    gap: 3.6rem;
  }

  .news-img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
  }

  .news-content {
    align-items: center;
  }

  .news-heading {
    font-size: 2.2rem;
  }

  .news-year {
    font-size: 1.3rem;
  }

  .news-brief-desc {
    font-size: 1.5rem;
  }

  .read-details {
    font-size: 1.5rem;
  }


  /* Blogs section */

  .sub-blog-card {
    grid-template-columns: 1fr 2fr;
  }

  .blog-title {
    font-size: 1.8rem;
  }

  .blog-desc {
    font-size: 1.4rem;
  }

  /* Projects section */
   .grid--3--cols {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .project-card-text-box {
    padding: 2.4rem 3.2rem;
  }

  .project-topics {
    font-size: 2.1rem;
  }

  .project-detials {
    font-size: 1.6rem;
  }

  .project-card-member {
    height: 4rem;
    width: 4rem;
  }


  /* people */
  .grid--5--cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
  }

  .contributor-text {
    padding: 1.6rem;
  }

  .contributor-name {
    font-size: 1.6rem;
  }

  .contributor-batch {
    font-size: 1.3rem;
  }

  /* footer */
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 6.4rem;
  }

  .footer-heading {
    font-size: 1.7rem;
    margin-bottom: 3rem;
  }

  .footer-desc,
  .contacts,
  .footer-link {
    font-size: 1.5rem;
  }

  .social-icon {
    height: 2.8rem;
    width: 2.8rem;
  }

  .footer-line{
    margin-top: 3rem;
  }

}


/* ≤700px */
@media (max-width: 700px) {
  .hero-main--header {
    font-size: 4.2rem;
  }

  .hero-brand-name {
    font-size: 4.6rem;
  }

  .hero-subtitle {
    font-size: 2.4rem;
  }

  .hero-location {
    font-size: 1.8rem;
    min-height: 1.1em;
  }

  .hero-description {
    font-size: 1.6rem;
  }

  .hero-partners {
    margin-bottom: 3rem;
  }

  .partners-container {
    gap: 1.5rem;
  }

  .partner-logo {
    min-width: 9rem;
    padding: 0.8rem;
  }

  .logo-img {
    height: 3rem;
  }

  .logo-name {
    font-size: 0.9rem;
  }

  .hero-learn-btn {
    font-size: 1.4rem;
    padding: 1rem 2.2rem;
    width: 100%;
    max-width: 250px;
  }

  .hero-learn-btn:link,
  .hero-learn-btn:visited{
    font-size: 1.4rem;
    padding: 1rem 2.2rem;
  }

  .explore-more-icon{
    height: 1.6rem;
    width: 1.6rem;
  }

  /* about-section */
  .subheading {
    font-size: 2.8rem;
  }

  .about-description {
    font-size: 1.6rem;
    margin-bottom: 3.2rem;
  }

  .about-stats {
    gap: 2.4rem;
  }

  .stat {
    padding: 2.4rem 1.8rem;
  }

  .about-icon {
    width: 5.6rem;
    height: 5.6rem;
  }

  .about-stats-number {
    font-size: 2.4rem;
  }

  .icon-desc {
    font-size: 1.5rem;
    text-align: center;
    line-height: 1.3;
  }


  /* News Section */

  .news-grid {
    gap: 1.8rem;
    padding: 1.6rem;
    grid-template-columns: 1fr;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 30rem;
  }

  .news-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    border-radius: 1rem;
    z-index: 1;
  }

  .news-img {
    display: none;
  }

  .news-content {
    position: relative;
    z-index: 2;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 2rem;
  }

  .news-heading {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.8rem;
  }

  .news-year {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
  }

  .news-brief-desc {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
  }

  .read-details {
    font-size: 1.4rem;
    color: white;
    font-weight: 600;
  }

  .read-details:hover {
    color: #4a90e2;
  }

  .view-more-btn {
    font-size: 1.4rem;
    padding: 1rem 2rem;
  }

  /* Publications */

   .section-publications {
    padding: 7.2rem 0;
  }
  .main-publications {
    grid-template-columns: 1fr;
    gap: 2.8rem;
  }

  .publication-card {
    text-align: center;
  }

  .pub-content {
    align-items: center;
  }

  .pub-title {
    font-size: 1.8rem;
  }

  .pub-desc {
    font-size: 1.4rem;
  }

  .pub-link {
    font-size: 1.4rem;
  }

  /* Blogs section */
  .blog-grid{
    grid-template-columns:1fr;
  }
  .blog-img {
    margin: 0 auto;
  }

  .blog-title {
    font-size: 1.7rem;
  }

  .blog-meta {
    flex-direction: column;
    gap: 0.8rem;
  }

  .blog-desc {
    padding: 0 1.2rem;
  }

  .blog-read-more-btn {
    padding: 0.5rem 1rem;
  }

  .btn-read-more {
    font-size: 1.6rem;
  }
  .read-more-icon{
    height:1.8rem;
    width:1.8rem;
  }


  /* projects */
   .grid--3--cols {
    grid-template-columns: 1fr;
    gap: 4.8rem;
  }


  .project-card-text-box {
    padding: 2rem;
    text-align: center;
  }

  .project-tags {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
  }

  .project-detials {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .project-card-contributors {
    justify-content: center;
  }

  .more-details {
    font-size: 1.5rem;
  }

  /* people */
  .grid--5--cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem;
  }

  /* footer */
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 3.2rem;
    row-gap: 4.8rem;
  }

  .footer {
    padding: 6rem 0 3rem 0;
  }

  .footer-desc {
    font-size: 1.4rem;
  }

  .footer-heading {
    font-size: 1.6rem;
  }

  .footer-link {
    font-size: 1.4rem;
  }

  .social-icon {
    height: 2.6rem;
    width: 2.6rem;
  }

  .footer-logo {
    justify-content: center;
  }

}

/* ≤540px */
@media (max-width: 540px) {
  .hero-text-box {
    width: 90%;
  }

  .hero-main--header {
    font-size: 2.6rem;
  }

  .hero-brand-name {
    font-size: 3.6rem;
  }

  .hero-subtitle {
    font-size: 1.8rem;
  }

  .hero-location {
    font-size: 1.4rem;
    min-height: 1.1em;
  }

  .hero-description {
    font-size: 1.4rem;
  }

  .hero-partners {
    margin-bottom: 2.5rem;
  }

  .partners-container {
    gap: 1.2rem;
  }

  .partner-logo {
    min-width: 8rem;
    padding: 0.6rem;
  }

  .logo-img {
    height: 2.5rem;
  }

  .logo-name {
    font-size: 0.8rem;
  }

  .hero-learn-btn {
    font-size: 1.4rem;
    padding: 0.8rem 1.8rem;
  }
  
  .link-icons{
    height:1.6rem;
    width: 1.6rem;
    display: inline-block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }


  /* section about */
  .section-about {
    padding: 6.4rem 3%;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .stat {
    padding: 2rem 1.6rem;
  }

  .about-icon {
    width: 5rem;
    height: 5rem;
  }

  .about-stats-number {
    font-size: 2.2rem;
  }

  .icon-desc {
    font-size: 1.4rem;
    text-align: center;
    line-height: 1.3;
  }

  .about-description {
    font-size: 1.5rem;
  }

  /* news section */

    .section-news {
    padding: 6.4rem 0;
  }

  .subheading {
    font-size: 2.2rem;
  }

  .main-news {
    gap: 2.4rem;
  }

  .news-heading {
    font-size: 1.8rem;
  }

  .news-brief-desc {
    font-size: 1.3rem;
  }

  .view-more-btn {
    padding: 0.8rem 1.6rem;
  }

  /* Blogs section */
  .section-blogs {
    padding: 6rem 0;
  }

  .blog-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .blog-title {
    font-size: 1.6rem;
  }

  .blog-desc {
    font-size: 1.3rem;
  }

  .btn-read-more {
    font-size: 1.4rem;
  }


  /* projects */
  .section-projects {
    padding: 6.4rem 0;
  }

  .project-topics {
    font-size: 1.8rem;
  }

  .project-detials {
    font-size: 1.4rem;
  }

  .project-card-member {
    height: 3.6rem;
    width: 3.6rem;
    border-width: 2px;
  }

  .tag {
    font-size: 1rem;
    padding: 0.3rem 0.6rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align:center;
    row-gap: 4rem;
  }

  .footer {
    padding: 6rem 0 3rem 0;
  }

  .footer-heading {
    font-size: 1.5rem;
    text-align: center;
  }

  .footer-desc,
  .contacts,
  .footer-link {
    text-align: center;
    font-size: 1.3rem;
  }

  .social-links {
    justify-content: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .copyright {
    font-size: 1.3rem;
  }
  .footer-heading {
    border:none;
  }

}
