/* =========================
   ABOUT PAGE
========================= */
html {
  background: #1a1a1a;
  position: relative;
  z-index: 1;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  color: #eaeaea;
  position: relative;
  overflow-x: hidden;
  line-height: 1.7;
  animation: pageLoad 0.5s ease-out;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/logo.webp') center center no-repeat;
  background-size: 100%;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
  animation: logoPulse 8s ease-in-out infinite, logoFadeIn 1.2s ease-out;
}

/* =========================
   ABOUT SECTION
========================= */

.about {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 60px 80px;
  min-height: 100vh;
  animation: contentSlideIn 0.8s ease-out;
}

/* =========================
   PAGE HEADER
========================= */

.page-header {
  text-align: center;
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease-out;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #d4a574, #c08552);
  margin: 0 auto;
  border-radius: 2px;
  animation: expandWidth 1s ease-out 0.6s backwards;
}

/* =========================
   INTRO SECTION
========================= */

.intro {
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 15px;
  color: #f5f5f5;
}

.intro p {
  font-size: 1rem;
  line-height: 1.7;
  color: #c0c0c0;
  font-weight: 300;
}

/* =========================
   PROPRIETOR SECTION
========================= */

.proprietor-section {
  margin-bottom: 60px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  align-items: stretch;
  animation: scaleIn 0.8s ease-out 0.4s backwards;
}

.proprietor-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 50px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  flex: 1;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.proprietor-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 70px rgba(212, 165, 116, 0.4);
  border-color: rgba(212, 165, 116, 0.5);
}

.proprietor-section .proprietor-card:nth-child(1) {
  animation: scaleIn 0.8s ease-out 0.4s backwards;
}
.proprietor-section .proprietor-card:nth-child(2) {
  animation: scaleIn 0.8s ease-out 0.6s backwards;
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #d4a574, #c08552);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-wrapper i {
  font-size: 1.8rem;
  color: #fff;
}

.proprietor-card:hover .icon-wrapper {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 12px 30px rgba(212, 165, 116, 0.5);
}

.title-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 15px;
  height: 3.6rem;
}

.title-stack h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #d4a574;
  margin: 0;
  line-height: 1.6;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.proprietor-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #d4a574;
  margin-bottom: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proprietor-card .name {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 8px 0 !important;
  font-family: 'Inter', sans-serif;
}

.proprietor-card .degree {
  font-size: 0.95rem;
  color: #aaaaaa;
  margin-bottom: 15px;
  font-family: 'Inter', sans-serif;
}

.proprietor-card .credentials {
  margin-top: auto;
  min-height: 0.5rem;
}

.credentials {
  font-size: 0.85rem;
  color: #c0c0c0;
  line-height: 1.6;
  white-space: nowrap;
}

.separator {
  margin: 0 10px;
  color: #666;
}

/* =========================
   TEAM GRID
========================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 45px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
}

.team-card:hover {
  transform: translateY(-12px) scale(1.03) rotateY(5deg);
  box-shadow: 0 25px 70px rgba(212, 165, 116, 0.3);
  border-color: rgba(212, 165, 116, 0.4);
}

.team-card:nth-child(1) { animation: flipIn 0.7s ease-out 0.6s backwards; }
.team-card:nth-child(2) { animation: flipIn 0.7s ease-out 0.8s backwards; }
.team-card:nth-child(3) { animation: flipIn 0.7s ease-out 1s backwards; }

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.card-header i {
  font-size: 1.8rem;
  color: #d4a574;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .card-header i {
  transform: scale(1.2) rotate(360deg);
  color: #e6b88a;
}

.card-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #ffffff;
  font-weight: 500;
}

/* =========================
   TEAM LIST
========================= */

.team-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 10px;
}

.team-list li:last-child {
  border-bottom: none;
}

.team-list li:hover {
  padding-left: 15px;
  background: linear-gradient(90deg, rgba(212, 165, 116, 0.1), transparent);
  border-left: 3px solid #d4a574;
}

.team-list .name {
  font-size: 1rem;
  color: #e0e0e0;
  font-weight: 400;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 0;
}

.team-list li:hover .name {
  color: #ffffff;
  font-weight: 500;
  transform: translateX(5px);
}

.team-list .qualification {
  font-size: 0.85rem;
  color: #888;
  font-weight: 300;
  white-space: nowrap;
  flex-shrink: 0;
}

/* =========================
   ANIMATIONS
========================= */

.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@keyframes pageLoad {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes logoFadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 0.12; transform: scale(1); }
}

@keyframes contentSlideIn {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes flipIn {
  from { opacity: 0; transform: perspective(1000px) rotateY(-90deg); }
  to   { opacity: 1; transform: perspective(1000px) rotateY(0deg); }
}

@keyframes expandWidth {
  from { width: 0; }
  to   { width: 80px; }
}

@keyframes logoPulse {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50%       { opacity: 0.08; transform: scale(1.02); }
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
  .page-header h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
  .about { padding: 120px 20px 60px; }
  .page-header h1 { font-size: 2.5rem; }
  .intro h2 { font-size: 1.6rem; }
  .intro p { font-size: 0.95rem; }

  .proprietor-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .proprietor-card {
    max-width: 100%;
    padding: 30px 25px;
  }

  .proprietor-card .name { font-size: 1.5rem; }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
  }

  .team-card { padding: 30px 25px; }
  .card-header h3 { font-size: 1.2rem; }
  .credentials { font-size: 0.85rem; }
  .separator { display: block; margin: 5px 0; opacity: 0; }
}

@media (max-width: 480px) {
  .about { padding: 100px 15px 40px; }
  .page-header h1 { font-size: 2rem; }
  .proprietor-card { padding: 25px 20px; }
  .proprietor-card .name { font-size: 1.3rem; }
  .icon-wrapper { width: 60px; height: 60px; }
  .icon-wrapper i { font-size: 1.5rem; }
  .team-card { padding: 25px 20px; }
  .team-list .name { font-size: 0.9rem; }           /* ← added */
  .team-list .qualification { font-size: 0.75rem; } /* ← keeps on same line */
}

/* =========================
   FOOTER
========================= */

footer {
  background: #111;
  color: #777;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0 40px;
}

.footer-content p { margin: 0; }
.social-links { display: flex; gap: 15px; }

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4a574;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.social-icon:hover {
  background: #d4a574;
  color: #111;
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 10px 25px rgba(212, 165, 116, 0.4);
  border-color: #d4a574;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
  }
  .social-links { justify-content: center; }
}
