/* ============================================================
   person.css 
   ============================================================ */

:root {
  --primary: #f58217;
  --text: #1a1a1a;
  --bg: #fafafa;
  --card: #ffffff;
  --radius: 1.4rem;
  --gap: 3rem;
  --transition: 0.4s ease;
}

.dark {
  --bg: #0a0a0a;
  --card: #111;
  --text: #e0e0e0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
  font-family: 'Inter', sans-serif; 
  background: var(--bg); 
  color: var(--text); 
  line-height: 1.7; 
  overflow-x: hidden;
}
.container { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 0 1.5rem; 
}
section { padding: var(--gap) 0; }

/* ============================================================
   HEADER & BACK BUTTON
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  z-index: 1000;
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary);
  text-decoration: none;
  line-height: 1;
}

/* BACK BUTTON – GLOW ONLY */
.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--card);
  color: var(--text);
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  height: 40px;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.back-btn i {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--primary);
}

.back-btn:hover {
  border-color: var(--primary);
  background: rgba(245, 130, 23, 0.1);
}

.dark .back-btn {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(17, 17, 17, 0.8);
  color: #e0e0e0;
}
.dark .back-btn:hover {
  background: rgba(245, 130, 23, 0.15);
  border-color: var(--primary);
}

/* ============================================================
   HERO – SQUARE PHOTO
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 7rem;
  gap: 1.8rem;
}

.photo-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 1.4rem;
  overflow: hidden;
  border: 7px solid #fff;
  box-shadow: 0 15px 45px rgba(0,0,0,0.18);
  margin: 0 auto;
  transition: var(--transition);
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-glow-js {
  position: absolute;
  width: 32px;
  height: 32px;
  background: radial-gradient(circle, var(--primary), rgba(245,130,23,.6), transparent);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
  filter: blur(12px);
  transform: translate(130px, 0);
  transition: opacity .3s, filter .3s;
  z-index: -1;
}

.photo-wrapper:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 25px 60px rgba(245,130,23,.25);
}

/* INFO */
.info h1 { 
  font-size: 2.8rem; 
  font-weight: 700; 
  margin: 0; 
  color: var(--primary); 
}
.role { 
  font-size: 1.25rem; 
  font-weight: 600; 
  margin: 0.5rem 0; 
  opacity: 0.9; 
}
.location { 
  font-size: 1rem; 
  opacity: 0.7; 
  margin: 0.5rem 0; 
}

/* SOCIALS – CENTERED */
.socials {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1rem;
  width: 100%;
}
/* SOCIAL ICONS – FLOAT + GLOW */
.icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.icon:hover {
  background: var(--primary);
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 12px 25px rgba(245,130,23,.3);
}

/* QUOTE */
.quote {
  text-align: center;
  font-size: 1.3rem;
  font-style: italic;
  color: #444;
  padding: 2.5rem 2rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin: 0 1rem;
  position: relative;
}
.quote::before, .quote::after {
  content: '"';
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  font-family: serif;
}
.quote::before { top: 0; left: 1rem; }
.quote::after { bottom: -1rem; right: 1rem; }
cite {
  display: block;
  margin-top: 1.5rem;
  font-weight: 600;
  font-style: normal;
  color: var(--primary);
}

/* SECTION HEADINGS */
.expertise h2, .timeline h2, .achievements h2, .certs h2, .testimonial h2, .contact h2 {
  font-size: 1.7rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
  color: var(--text);
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

/* CARD & ACHIEVEMENT */
.card, .achievement {
  background: var(--card);
  padding: 1.6rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0,0,0,.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card i {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
  display: block;
}

/* ACHIEVEMENTS GRID */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.achievement i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.achievement h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.achievement p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* STATS – BIG + BOLD */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
  max-width: 900px;
  margin: 0 auto;
}
.stat {
  text-align: center;
}
.num {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.label {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: 0.4rem;
  display: block;
}

/* TIMELINE */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 3rem;
}
.tl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.7s ease forwards;
}
.tl-item:nth-child(1) { animation-delay: .15s; }
.tl-item:nth-child(2) { animation-delay: .30s; }
.tl-item:nth-child(3) { animation-delay: .45s; }
.tl-item:nth-child(4) { animation-delay: .60s; }
@keyframes fadeInUp { to { opacity:1; transform:translateY(0); } }

.tl-year {
  min-width: 148px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .94rem;
  white-space: nowrap;
  margin-bottom: .6rem;
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
}
.tl-content {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 540px;
}
@media (min-width:768px) {
  .tl-item {
    flex-direction: row;
    justify-content: center;
    gap: 2.5rem;
    text-align: left;
  }
  .tl-year { min-width: 170px; margin-bottom: 0; }
  .tl-content { flex: 1; }
}

/* CERTS */
.certs { background: transparent; padding: var(--gap) 0; }
.certs h2 { color: var(--text); }

/* TESTIMONIAL */
.testimonial {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin: 2rem 1rem;
}
.testimonial blockquote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1rem;
}
.testimonial cite {
  color: var(--primary);
  font-weight: 600;
}

/* CONTACT */
.contact {
  text-align: center;
  padding: 4rem 0;
}
.btn {
  display: inline-block;
  padding: 1.1rem 2.8rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1.5rem;
  box-shadow: 0 8px 25px rgba(245,130,23,0.3);
  transition: var(--transition);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(245,130,23,0.4);
}

/* FOOTER */
.footer {
  padding: 3rem 1.5rem 2rem !important;
  text-align: center;
  background: var(--bg);
  margin-top: auto;
}
.footer__title { font-size: 2rem; margin-bottom: 1rem; }
.footer__social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.footer__icon {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text);
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
}
.footer__icon span {
  max-width: 0;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}
.footer__icon:hover span {
  max-width: 120px;
  opacity: 1;
  margin-left: 0.5rem;
}

/* ============================================================
   DARK MODE TOGGLE – ANIMATED
   ============================================================ */
.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.6rem;
  color: #1a1a1a;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 9999;
  overflow: hidden;
  border: 3px solid transparent;
  backdrop-filter: blur(12px);
}

.theme-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(245, 130, 23, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.theme-toggle:hover::before { opacity: 1; }

.theme-toggle i {
  position: absolute;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-size: 1.6rem;
}

.theme-toggle .bx-moon { opacity: 1; transform: translateY(0) rotate(0deg); color: #ffd43b; }
.theme-toggle .bx-sun { opacity: 0; transform: translateY(20px) rotate(180deg); color: #ff6b35; }
.theme-toggle.active .bx-moon { opacity: 0; transform: translateY(-20px) rotate(-180deg); }
.theme-toggle.active .bx-sun { opacity: 1; transform: translateY(0) rotate(0deg); }

.theme-toggle:active { transform: scale(0.92); }

.theme-toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #f58217;
  opacity: 0;
  transform: scale(0.8);
  animation: pulse-ring 1.5s infinite;
  pointer-events: none;
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.6; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

.theme-toggle:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(245, 130, 23, 0.3);
}

.dark .theme-toggle {
  background: #111;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}
.dark .theme-toggle:hover { box-shadow: 0 12px 40px rgba(255, 255, 255, 0.1); }

/* GLOW HOVER – NOW WORKS ON SOCIALS, TIMELINE, BACK BTN */
.glow-hover {
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  background: var(--card);
  color: var(--text);
}

.glow-hover::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245,130,23,.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: 0;
}

.glow-hover:hover::before {
  opacity: 1;
}

.glow-hover:hover {
  transform: translateY(-12px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(245,130,23,.25);
  z-index: 1;
}

.dark .glow-hover:hover {
  box-shadow: 0 20px 40px rgba(245,130,23,.3),
              0 0 20px rgba(245,130,23,.4);
}

/* DARK MODE */
.dark { background: #0a0a0a; color: #e0e0e0; }
.dark .header,
.dark .quote,
.dark .testimonial,
.dark .photo-wrapper { background: #111; }
.dark .photo-wrapper { border-color: #222; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .header { height: 64px; padding: 0 1rem; }
  .back-btn { height: 36px; font-size: 0.9rem; padding: 0.5rem 1rem; }
  .logo { font-size: 1.25rem; }
  .socials { gap: 1rem; }
}

/* LOGO HEADER */
.nav__logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: inherit;
  text-decoration: none;
}
.nav__logo .logo-img {
  height: 170px;
  margin-bottom: -7px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}
.nav__logo:hover .logo-img { transform: scale(1.05); }
@media (max-width: 768px) {
  .nav__logo .logo-img { height: 150px; }
}

/* 3. FOOTER LOGO – IDENTICAL size everywhere */
.footer-logo-img,
.footer__logo img,
#footer-logo,
footer img {
  height: 160px !important;
  width: auto !important;
  padding: 0 !important;
  margin: 2rem auto 1.5rem auto !important;
  display: block;
}
@media (max-width: 768px) {
  .footer-logo-img,
  .footer__logo img,
  #footer-logo,
  footer img {
    height: 130px !important;
  }
}

/* Header logo – IDENTICAL size everywhere */
.nav__logo img,
.header .logo-img,
#nav-logo,
nav img.logo-img {
  height: 110px !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block;
}
@media (max-width: 768px) {
  .nav__logo img,
  .header .logo-img,
  #nav-logo,
  nav img.logo-img {
    height: 80px !important;
  }
}

/*====================================================================
  FOOTER
====================================================================*/
.footer {
  padding: 3rem 1.5rem 2rem !important;
  text-align: center;
  background: var(--footer-bg);
  margin-top: auto;
}
.footer__title { font-size:2rem; margin-bottom:var(--mb-4); }
.footer__social { display:flex; justify-content:center; gap:.5rem;
  align-items:center; margin-bottom:var(--mb-4); }
.footer__icon {
  display:flex; align-items:center; gap:.25rem; color:var(--text);
  font-size:1.5rem; transition:all .3s; overflow:hidden; white-space:nowrap;
}
.footer__icon span { max-width:0; opacity:0; transition:all .3s; font-size:.875rem; }
.footer__icon:hover span { max-width:120px; opacity:1; margin-left:.5rem; }
.footer__icon.facebook:hover   { color:#1877F2; }
.footer__icon.instagram:hover  { color:#E1306C; }
.footer__icon.twitter:hover    { color:#1DA1F2; }
.footer__icon.youtube:hover    { color:#f50606; }
.footer__icon.linkedin:hover   { color:#018afa; }
.footer__copy { font-size:var(--smaller-font-size); }
