* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #DAAD60;
  min-height: 100vh;
}

a {
    text-decoration: none;
    color: #7B452A;
}

/* Header Styles */
.header {
  background-color: #E6DBC9;
  color: #7B452A;
  padding: 0.5rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo2 {
  font-weight: 300;
}

#logoimg {
  width: 60px;
  height: 60px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #7B452A;
  text-decoration: none;
}

.nav-item:hover {
  background-color: #DAAD60;
  color: #7B452A;
  transform: translateY(-2px);
}

.nav-item.active {
  background-color: #7B452A;
  color: #E6DBC9;
}

/* Main Content */
.main-content {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-container {
  background-color: #E6DBC9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #7B452A 0%, #DAAD60 100%);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.lead {
  font-size: 1.2rem;
  margin-bottom: 0;
  opacity: 0.9;
}

/* Content Grid */
.content-grid {
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-card {
  background-color: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-icon {
  font-size: 3rem;
  color: #7B452A;
  margin-bottom: 1rem;
  text-align: center;
}

.info-card h3 {
  color: #7B452A;
  margin-bottom: 1rem;
  font-weight: 700;
  text-align: center;
}

.info-card ul {
  padding-left: 1.5rem;
}

.info-card li {
  margin-bottom: 0.5rem;
}

/* Faculty Logo Section */
.faculty-logo-section {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.faculty-logo {
  width: 300px;
  height: 180px;
  object-fit: contain;
  border: 3px solid #7B452A;
  border-radius: 15px;
  padding: 10px;
  background-color: #f8f9fa;
}

.faculty-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #7B452A;
  margin: 0;
}

/* Developer Section */
.developer-section {
  background-color: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.developer-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.developer-section h3 {
  color: #7B452A;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.developer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.developer-image {
  display: flex;
  justify-content: center;
}

.dev-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #7B452A;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Supervisor Section */
.supervisor-section {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #7B452A 0%, #DAAD60 100%);
  color: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.supervisor-section h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.supervisor-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.supervisor-image {
  display: flex;
  justify-content: center;
}

.supervisor-photo {
  width: 240px;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  border-radius: 15px;
  border: 4px solid white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.supervisor-info {
  flex: 1;
  min-width: 300px;
}

.supervisor-section .bio-item {
  background-color: rgba(255,255,255,0.1);
  border-left: 4px solid white;
  color: white;
}

.supervisor-section .bio-item strong {
  color: white;
}

/* Project Info Section */
.project-info-section {
  grid-column: 1 / -1;
  background-color: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-info-section h3 {
  color: #7B452A;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Common Styles */
.biodata-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
  width: 150%;
}

.bio-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #7B452A;
  min-height: 50px;
  gap: 1rem;
}

.bio-item strong {
  color: #7B452A;
  font-weight: 600;
  white-space: nowrap;
  min-width: 60px;
}

.bio-item span {
  text-align: right;
  word-break: break-word;
  overflow-wrap: break-word;
  flex: 1;
}

/* Developer Section Specific Styles */
.developer-section .biodata-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.developer-section .bio-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background-color: #f8f9fa;
  border-radius: 12px;
  border-left: 5px solid #7B452A;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  min-height: 60px;
}

.developer-section .bio-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.developer-section .bio-item strong {
  color: #7B452A;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  width: 40%;
  flex-shrink: 0;
}

.developer-section .bio-item span {
  color: #333;
  font-weight: 500;
  text-align: right;
  width: 55%;
  word-break: break-word;
  overflow-wrap: break-word;
  flex-shrink: 0;
}

/* CTA Section */
.cta-section {
  background-color: #7B452A;
  color: white;
  text-align: center;
  padding: 3rem 2rem;
  margin: 0 2rem 2rem 2rem;
  border-radius: 15px;
}

.cta-section h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-button {
  background-color: #DAAD60;
  border-color: #DAAD60;
  color: #7B452A;
  font-weight: 600;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.cta-button:hover {
  background-color: #E6DBC9;
  border-color: #E6DBC9;
  color: #7B452A;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .nav-menu {
    gap: 1rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .main-content {
    padding: 1rem;
  }

  .content-grid {
    padding: 2rem 1rem;
    grid-template-columns: 1fr;
  }

  .biodata-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .supervisor-content {
    flex-direction: column;
    text-align: center;
  }

  .supervisor-info {
    min-width: auto;
  }

  .developer-content {
    text-align: center;
  }

  .faculty-logo {
    width: 100px;
    height: 100px;
  }

  .dev-photo {
    width: 160px;
    height: 160px;
  }

  .developer-section .biodata-grid {
    max-width: 100%;
  }

  .developer-section .bio-item {
    padding: 1rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .developer-section .bio-item strong {
    min-width: auto;
    font-size: 0.95rem;
  }

  .developer-section .bio-item span {
    font-size: 0.95rem;
    text-align: center;
    margin-left: 0;
  }

  .supervisor-photo {
    width: 200px;
    height: 260px;
  }
}