@import url('https://fonts.googleapis.com/css2?family=Ruda:wght@400;700&display=swap');
:root {
  --primary-color: #F46B45;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --shadow: 0 2px 4px rgba(0,0,0,0.1);
  --border-radius: 20px;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --container-padding: 8%;

  --responsive-unit: clamp(0.8rem, 1vw, 1.2rem);
  --container-width: min(1800px, 95vw);
  --content-width: min(1200px, 90vw);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Ruda';
}
html {
  font-size: 16px;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 max(20px, var(--container-padding));
}
/* Typography Responsive Scales */
html {
  font-size: 16px;
}
/* Navbar Styles */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 10px 0; 
  z-index: 1000;
  height: 113px; 
  display: flex;
  align-items: center; 
  justify-content: center;
  background-color: #FFFFFF;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.navcontainer{
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 20px;
}
.navbar .navcontainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%; 
}

.logo {
  color: var(--text-color);
  text-decoration: none;
  width: clamp(100px, 15vw, 300px);
  font-size: 1.5rem; 
  font-weight: bold;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5.25rem; 
}

.nav-link {
  color: #424242;
  font-weight: 500;
  text-decoration: none;
  font-size: 1.0625rem; 
  transition: color 0.3s ease;
  white-space: nowrap; 
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.bar {
  width: 25px;
  height: 3px;
  background-color: #424242;
  margin: 4px 0;
  transition: 0.4s;
}

/* .hamburger span {
  width: 25px;
  height: 3px;
  background-color: #424242;
  transition: all 0.3s ease;
} */

.nav-link:hover {
  color: #F2644C;
}

.navbar.scrolled .nav-link {
  color: #000000; 
}

.navbar.scrolled .nav-link:hover {
  color: #F2644C; 
}


.contact-btn {
  background-color: var(--primary-color);
  color: #FFFFFF;
  padding: 8px 16px; 
  border-radius: 53px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-size: 1rem; 
  white-space: nowrap; 
  display: flex;
  justify-content: center;
  align-items: center;
  width: 165.45px;
  height: 52.87px;
}

.contact-btn:hover {
  background-color: #ff836f;
}
/* Hero Section */
.hero {
  background:  url('aboutassets/mainbg.svg');
  background-size: cover;
  background-position: center;
  min-height: 226px;
  height: clamp(226px, 35vh, 600px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: var(--spacing-md);
  margin-top: 6rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 800px;
}

/* Content Section */
.content {
  padding: var(--spacing-xl) var(--container-padding);
  display: flex;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}
.content-text{
  width: min(979px, 100%);
}

.content-text h2 {
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  font-size: 43px;
}

.content-text p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  width: min(959px, 100%);
  text-align: justify;
}

.content-image img {
  width: 100%;
  border-radius: var(--border-radius);
  height: auto;
}
.label{
  background: linear-gradient(to right, #ff6b5b 40%, #fcf3f2);
    color: #fff;
    padding: 0.5rem 1rem;
    width: 250px;
    font-size: 1rem;
    display: inline-block;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Values Section */
.values-section {
  padding: var(--spacing-xl) var(--container-padding);
  display: flex;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  width: 100%;
}

.value-card {
  width: min(444px, 100%);
  height: auto;
  min-height: 442px;
  padding: clamp(1rem, 2vw, var(--spacing-lg));
  text-align: center;
  border-radius: var(--border-radius);
  background: white;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center; 
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-card.middle {
  background: var(--primary-color);
  color: white;
}

.value-card h3 {
  color: #F2644C;
  font-size: 24px;
  margin: 0 0 var(--spacing-md) 0; 
}

.value-card.middle h3 {
  color: white; 
}

.value-card p,
.value-card .value-list {
  font-size: 16px;
  text-align: center;
  margin: 0;
  line-height: 26px;
}
.value-card .value-list {
  list-style: none;
  padding: 0;
}

.value-card .value-list li {
  margin-bottom: var(--spacing-sm);
}
.icon {
  width: 100px;
  height: 100px;
  background: var(--primary-color);
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
  display: flex;
  justify-content: center;
  align-content: center;
}

.middle .icon {
  background: white;
}

.value-list {
  list-style: none;
  text-align: left;
  margin-top: var(--spacing-md);
  line-height: 32px;
}

.value-list li {
  margin-bottom: var(--spacing-sm);
  padding-left: var(--spacing-md);
  position: relative;
}

.value-list li::before {
  content: "•";
  position: absolute;
  left: 0;
}
/* IIT Section */
.full-width-iit-section {
  width: 100vw; 
  margin-left: calc(-50vw + 50%); 
  background: var(--bg-light); 
  padding: var(--spacing-xl) 0; 
}

.full-width-iit-section .container {
  max-width: 1800px; 
  margin: 0 auto; 
  padding: 0 var(--container-padding); 
}
.iit-section {
  padding: var(--spacing-xl) var(--container-padding);
  background: var(--bg-light);
  position: relative; 
  overflow: hidden; 
}

/* Background Designs */
.iit-section::before,
.iit-section::after,
.gallery::before,
.gallery::after {
  content: '';
  position: absolute;
  background: url('aboutassets/designbg1.svg') no-repeat; 
  opacity: 0.9; 
  z-index: 1; 
}

/* Right Top Corner */
.iit-section::before {
  top: 0;
  right: 0;
  width: 129px; 
  height: 179px; 
  background-size: contain;
}

/*  Right of Image 1 */
.gallery::before {
  top: -6%; 
  right: -10%; 
  width: 417px; 
  height: 417px; 
  background: url('aboutassets/designbg2.svg') no-repeat;
  background-size: contain;
}

/*Left of Image 1 */
.gallery::after {
  top: 13%; 
  background: url('aboutassets/designbg1.svg') no-repeat;
  left: -11%; 
  width: 129px; 
  height: 179px; 
  background-size: contain;
}

/*Left Bottom Corner Near Image 4 */
.iit-section::after {
  bottom: 0;
  left: 0;
  background: url('aboutassets/designbg2.svg') no-repeat;
  width: 417px; 
  height: 417px; 
  background-size: contain;
}

.about-iit {
  text-align: center;
  max-width: min(1133px, 90%);
  margin: 0 auto var(--spacing-xl);
}

.about-iit h2 {
  font-size: 43px;
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

.about-iit p {
  font-size: clamp(16px, 1.2vw, 18px);
  text-align: center;
  width: min(1173px, 100%);
  line-height: 32px;
}

.gallery {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md); 
  position: relative; 
}

.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2; 
}
.image-3{
  max-height: 314px;
}

.gallery img:hover {
  transform: scale(1.02);
}

.gallery-row {
  display: grid;
  gap: var(--spacing-md);
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

.gallery-main {
  grid-column: 1 / -1;
}

.gallery-row.special-row {
  grid-template-columns: 2fr 1fr;
}

.gallery-row:not(.special-row) {
  grid-template-columns: repeat(3, 1fr);
}
/* Faculty Section */
.faculty-section {
  padding: 10px 0 20px 0;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.header-tag {
  background: linear-gradient(to right, 
        #fcf3f2 0%,    
        #ff6b5b 50%,   
        #fcf3f2 100%);
  color: #fff;
  font-size: 16px;
  padding: 0.5rem 1rem;
  width: 250px;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.faculty-grid {
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(442px, 100%), 1fr));
  width: 100%;
}

.faculty-card {
  background: var(--bg-light);
  padding: clamp(1rem, 2vw, var(--spacing-lg));
  border-radius: var(--border-radius);
  text-align: center;
  transition: transform 0.3s ease;
  min-height: 325px;
  margin: 0 auto;
}
.faculty-card h3{
  font-size: 22px;
  font-weight: 600;
  color: #F2644C;
}

.faculty-card p{
  font-size: 14px;
  line-height: 20px;
}
.position {
  margin-top: 16px;
}
.description {
  text-align: left;
}
.faculty-card:hover {
  transform: translateY(-5px);
}
.faculty-card hr {
  border: 0; 
  height: 1px; 
  background-color: #F2644C; 
  margin: var(--spacing-md) 0; 
}

.profile-image {
  width: 150px;
  height: 150px;
  margin: 0 auto var(--spacing-md);
}

.profile-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Footer */
.footer-container1{
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 max(20px, var(--container-padding));
}
.footer-background {
  width: 100%; 
  background: url('aboutassets/footerbg.png'); 
}

.footer-bottom-background {
  width: 100%; 
  background-color: #898989; 
}
.site-footer {
  background: var(--bg-light);
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  position: relative; 
  bottom: 0;
}

.footer-content {
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-items: center;
  text-align: start;
  margin-top: 40px;
  padding: clamp(1rem, 2vw, var(--spacing-lg));
  width: 100%;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: start;
  max-width: 718px;
}

.footer-logo img {
  width: 150px; 
  height: auto;
}

.footer-logo p {
  font-size: 16px;
  line-height: 1.6;
  margin-top: var(--spacing-md);
}
.footer-logo a{
  color: #F2644C;
  text-decoration: none;
}

.contact-header {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: var(--spacing-md);
  justify-content: left;
}

.footer-contact p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: start;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.1);
}

.footer-bottom {
  background-color: #898989;
  width: 100%;
  height: 76px; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.footer-bottom p{
  color: #FFFFFF;
}
.footer-links a{
  color: #FFFFFF;
  text-decoration: none;
}

.footer-bottom .footer-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between; 
  align-items: center;
}

.footer-container p {
  font-size: 16px;
  color: #FFFFFF;
  margin: 0; 
}

.footer-container .footer-links {
  display: flex;
  gap: var(--spacing-md); 
}
.separator {
  color: #FFFFFF;
}

.footer-container a {
  font-size: 14px;
  color: #FFFFFF;
  text-decoration: none;
  margin: 0; 
}

/* Responsive Styles for Screens Less Than 1200px */
@media (max-width: 1600px) {
  .nav-links {
      gap: 1rem;
  }
  .hero{
    margin-top: 5rem;
  }
}

@media (max-width: 1200px) {
  /* .navbar {
    height: auto; 
    padding: 10px 0;
  }

  .navcontainer {
    align-items: flex-start;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 10px;
  }

  .nav-link {
    font-size: 0.9rem; 
  }
  .contact-btn {
    margin-top: 10px;
  } */

  .navbar {
    height: auto; 
    padding: 10px 0;
  }

  .navcontainer {
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 10px;
  }

  .nav-link {
    font-size: 0.9rem; 
  }

  .contact-btn {
    margin-top: 10px;
  }
  .content {
    flex-direction: column; 
    padding: var(--spacing-lg);
  }

  .content-text {
    width: 100%;
  }

  .content-image {
    margin-top: var(--spacing-lg); 
  }
  .hero{
    margin-top: 3rem;
  }

  .values-section {
    flex-direction: column; 
    align-items: center;
  }

  .value-card {
    width: 100%;
    margin-bottom: var(--spacing-lg); 
  }

  .gallery-row {
    grid-template-columns: repeat(2, 1fr); 
  }

  .gallery-row.special-row {
    grid-template-columns: 1fr; 
  }
  .footer-content {
    text-align: center;
  }

  .footer-logo {
    align-items: center;
  }

  .footer-contact {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column; 
    text-align: center;
    padding: var(--spacing-md);
  }

  .footer-links {
    flex-direction: column; 
    gap: var(--spacing-sm);
  }
}
/* Responsive Styles for Screens Less Than 768px */
@media (max-width: 768px) {
  .navbar {
    padding: 5px 0;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-link {
    font-size: 0.7rem; 
  }

  .contact-btn {
    font-size: 0.9rem; 
    padding: 6px 12px; 
    width: 140px; 
    height: 40px; 
  }
  .hero{
    margin-top: 1rem;
  }
}
@media (max-width: 600px){
  .navbar {
    height: auto;
    padding: 10px 0;
}

  .nav-links {
      display: none; 
      flex-direction: column;
      gap: 10px;
  }

  .hamburger {
      display: flex; 
  }
  .nav-links.active {
    display: flex;
    }
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #FFFFFF;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    padding: 10px 0;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 10px;
  }
  .logo{
    width: 10rem;
  }

  .contact-btn {
    width: auto;
    padding: 8px 14px;
    height: 40px;
    margin-top: 0px;
  }
}

/* Responsive Styles for Screens Less Than 480px */
@media (max-width: 480px) {
  /* .navbar {
    padding: 5px 0;
  }
  .navcontainer{
    padding: 0;
  }

  .nav-links {
    gap: 0.25rem;
  }

  .nav-link {
    font-size: 0.4rem; 
  } */
  .hamburger {
    display: flex; 
}
  /* .logo{
    width: 90px;
    margin-top: 0.6rem;
  } */

  .contact-btn {
    font-size: 0.6rem; 
    padding: 4px 8px; 
    width: 70px; 
    height: 30px; 
  }
  .hero{
    margin-top: 2rem;
  }
  .iit-section::before{
    z-index: -1;
  }
  .content-text h2{
    font-size: 30px;
  }
  .label{
    width: 185px;
  }
}
@media (max-width: 420px) {
  /* .navbar {
    padding: 5px 0;
  }
  .navcontainer{
    padding: 0;
  }
  .nav-links {
    gap: 0.20rem;
  }

  .nav-link {
    font-size: 0.3rem; 
  }
  .logo{
    width: 60px;
    margin-top: 0.7rem;
  }

  .contact-btn {
    font-size: 0.4rem; 
    padding: 4px 8px; 
    width: 50px; 
    height: 30px; 
  } */
  .iit-section::before{
    z-index: -1;
  }
}
