/* ===================================================
   profile.css — Premium Colorful Design
   Blackstone Legal Associates
   =================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0a1628;
  --navy2:   #152444;
  --blue:    #1d4ed8;
  --blue2:   #3b82f6;
  --gold:    #f59e0b;
  --gold2:   #fcd34d;
  --emerald: #059669;
  --violet:  #7c3aed;
  --rose:    #e11d48;
  --cyan:    #0891b2;
  --orange:  #ea580c;
  --white:   #ffffff;
  --light:   #f1f5f9;
  --text:    #1e293b;
  --muted:   #64748b;
  --border:  #e2e8f0;
  --radius:  16px;
  --shadow:  0 4px 32px rgba(10,22,40,0.10);
  --shadow-lg: 0 12px 48px rgba(10,22,40,0.18);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #eef2ff 0%, #f1f5f9 50%, #fdf4ff 100%);
  color: var(--text); min-height: 100vh;
}
a { color: var(--blue); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 68px; padding: 0 32px;
  background: linear-gradient(90deg, var(--navy) 0%, #1e3a6e 60%, #1d4ed8 100%);
  border-bottom: 2px solid rgba(245,158,11,0.4);
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 4px 24px rgba(10,22,40,0.35);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 18px; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.25);
}
.logo-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: #fff; }
.logo-sub  { font-size: 0.62rem; color: var(--gold); letter-spacing: 1.2px; display: block; }
.nav-back  {
  display: flex; align-items: center; gap: 8px;
  color: var(--gold2); text-decoration: none; font-size: 0.85rem; font-weight: 700;
  background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3);
  padding: 7px 16px; border-radius: 30px;
  transition: all 0.25s;
}
.nav-back:hover { background: rgba(245,158,11,0.25); gap: 12px; }

/* ============================================================
   HERO BANNER
   ============================================================ */
.profile-hero {
  margin-top: 68px;
  background: linear-gradient(135deg, #0a1628 0%, #1e3a6e 30%, #1d4ed8 65%, #7c3aed 100%);
  position: relative; overflow: hidden;
}
.profile-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(124,58,237,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(245,158,11,0.2) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M40 40 L80 0 L80 80 Z'/%3E%3C/g%3E%3C/svg%3E");
}
.profile-hero-bg { display: none; } /* no longer needed */

.profile-hero-inner {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 64px 36px 58px;
  display: flex; align-items: center; gap: 52px;
}

/* Photo */
.profile-photo-wrap {
  flex-shrink: 0; width: 185px; height: 215px;
  border-radius: 20px; overflow: hidden;
  border: 4px solid rgba(245,158,11,0.6);
  box-shadow: 0 0 0 8px rgba(245,158,11,0.12), 0 20px 60px rgba(0,0,0,0.45);
  background: linear-gradient(135deg, #1e3a6e, #7c3aed);
  position: relative;
}
.profile-photo-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.4) 0%, transparent 60%);
  pointer-events: none;
}
.profile-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.profile-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 5.5rem; color: rgba(255,255,255,0.15);
}

.profile-intro { flex: 1; }

.profile-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, rgba(245,158,11,0.25), rgba(252,211,77,0.15));
  border: 1px solid rgba(245,158,11,0.5);
  border-radius: 30px; padding: 6px 18px;
  color: var(--gold2); font-size: 0.78rem; font-weight: 800;
  letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 16px;
}

.profile-intro h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3.8vw, 2.7rem);
  font-weight: 900; color: #fff; line-height: 1.18; margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.profile-subtitle {
  color: rgba(255,255,255,0.78); font-size: 0.95rem;
  line-height: 1.65; margin-bottom: 24px;
}

.profile-contact-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pcontact-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff; text-decoration: none;
  font-size: 0.82rem; font-weight: 600;
  padding: 9px 18px; border-radius: 10px;
  transition: all 0.25s;
  backdrop-filter: blur(6px);
}
.pcontact-btn:hover {
  background: rgba(245,158,11,0.25);
  border-color: var(--gold); color: var(--gold2);
  transform: translateY(-2px);
}
.pcontact-btn i { color: var(--gold2); }

/* ============================================================
   BODY LAYOUT
   ============================================================ */
.profile-body {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 300px 1fr;
  gap: 28px; padding: 36px 32px 90px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.profile-sidebar { display: flex; flex-direction: column; gap: 22px; }

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sidebar-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--gold));
}
.sidebar-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.sidebar-card h3 {
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.3px; color: var(--navy); margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid #eef2ff;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-card h3 i {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.75rem;
}
.sidebar-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

.sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.sidebar-list li {
  font-size: 0.84rem; color: var(--text); line-height: 1.5;
  padding: 6px 10px 6px 28px; position: relative;
  border-radius: 6px; transition: background 0.15s;
}
.sidebar-list li:hover { background: #f1f5f9; }
.sidebar-list li::before {
  content: '▸';
  position: absolute; left: 10px;
  color: var(--blue); font-size: 0.72rem; top: 8px;
}
.sidebar-list a { color: var(--blue); text-decoration: none; word-break: break-all; }
.sidebar-list a:hover { text-decoration: underline; }
.edu-note { font-size: 0.76rem; color: var(--muted); display: block; margin-top: 2px; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.profile-main { display: flex; flex-direction: column; gap: 26px; }

/* Each section block gets a unique colored left accent */
.section-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 5px solid var(--blue);
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.section-block::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(29,78,216,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.section-block:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Color variety per section type */
.section-block:nth-child(1) { border-left-color: var(--blue);    }
.section-block:nth-child(1)::after { background: radial-gradient(circle, rgba(29,78,216,0.05) 0%, transparent 70%); }
.section-block:nth-child(2) { border-left-color: var(--emerald); }
.section-block:nth-child(2)::after { background: radial-gradient(circle, rgba(5,150,105,0.05) 0%, transparent 70%); }
.section-block:nth-child(3) { border-left-color: var(--violet);  }
.section-block:nth-child(3)::after { background: radial-gradient(circle, rgba(124,58,237,0.05) 0%, transparent 70%); }
.section-block:nth-child(4) { border-left-color: var(--gold);    }
.section-block:nth-child(4)::after { background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%); }
.section-block:nth-child(5) { border-left-color: var(--cyan);    }
.section-block:nth-child(5)::after { background: radial-gradient(circle, rgba(8,145,178,0.05) 0%, transparent 70%); }
.section-block:nth-child(6) { border-left-color: var(--rose);    }
.section-block:nth-child(6)::after { background: radial-gradient(circle, rgba(225,29,72,0.04) 0%, transparent 70%); }
.section-block:nth-child(7) { border-left-color: var(--orange);  }
.section-block:nth-child(8) { border-left-color: var(--blue);    }
.section-block:nth-child(9) { border-left-color: var(--emerald); }
.section-block:nth-child(10){ border-left-color: var(--violet);  }

.section-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.22rem; font-weight: 800; color: var(--navy);
  margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 2px solid #f1f5f9;
  display: flex; align-items: center; gap: 12px;
}
.section-block h2 i {
  width: 34px; height: 34px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: #fff; flex-shrink: 0;
}

/* Icon backgrounds per section */
.section-block:nth-child(1)  h2 i { background: linear-gradient(135deg, var(--blue),   #60a5fa); }
.section-block:nth-child(2)  h2 i { background: linear-gradient(135deg, var(--emerald), #34d399); }
.section-block:nth-child(3)  h2 i { background: linear-gradient(135deg, var(--violet),  #a78bfa); }
.section-block:nth-child(4)  h2 i { background: linear-gradient(135deg, var(--gold),    var(--gold2)); color: var(--navy); }
.section-block:nth-child(5)  h2 i { background: linear-gradient(135deg, var(--cyan),    #38bdf8); }
.section-block:nth-child(6)  h2 i { background: linear-gradient(135deg, var(--rose),    #fb7185); }
.section-block:nth-child(7)  h2 i { background: linear-gradient(135deg, var(--orange),  #fb923c); }
.section-block:nth-child(8)  h2 i { background: linear-gradient(135deg, var(--blue),    var(--violet)); }
.section-block:nth-child(9)  h2 i { background: linear-gradient(135deg, var(--emerald), var(--cyan)); }
.section-block:nth-child(10) h2 i { background: linear-gradient(135deg, var(--violet),  var(--rose)); }

.section-block > p { font-size: 0.9rem; color: var(--muted); line-height: 1.8; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { display: flex; flex-direction: column; gap: 0; padding-left: 4px; }
.tl-item {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 16px; position: relative; padding-bottom: 24px;
}
.tl-item::before {
  content: '';
  position: absolute; left: 119px; top: 10px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--violet), transparent);
}
.tl-item::after {
  content: '';
  position: absolute; left: 111px; top: 6px;
  width: 16px; height: 16px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(29,78,216,0.25);
  z-index: 1;
}
.tl-date {
  font-size: 0.75rem; font-weight: 800; color: var(--blue);
  padding-top: 2px; line-height: 1.4;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tl-content { font-size: 0.88rem; color: var(--text); line-height: 1.65; padding-left: 22px; }
.tl-content strong { display: block; color: var(--navy); font-size: 0.93rem; margin-bottom: 3px; }

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-grid { display: flex; flex-direction: column; gap: 14px; }
.edu-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border-radius: 12px;
  border-left: 4px solid var(--violet);
  transition: transform 0.2s;
}
.edu-item:hover { transform: translateX(4px); }
.edu-year {
  font-size: 0.8rem; font-weight: 900; white-space: nowrap;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: #fff; padding: 5px 12px; border-radius: 20px;
  letter-spacing: 0.3px;
}
.edu-item > div { font-size: 0.88rem; color: var(--text); line-height: 1.6; }
.edu-item strong { color: var(--navy); font-size: 0.93rem; }
.edu-note { font-size: 0.76rem; color: var(--emerald); font-weight: 600; display: block; margin-top: 3px; }

/* ============================================================
   EXPERIENCE
   ============================================================ */
.exp-list { display: flex; flex-direction: column; gap: 0; }
.exp-item {
  padding: 20px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.exp-item:last-child { border-bottom: none; padding-bottom: 0; }

.exp-item.highlight {
  background: linear-gradient(135deg, #fffbeb, #fef9c3);
  border-radius: 12px; padding: 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(245,158,11,0.25);
  border-bottom: 1px solid rgba(245,158,11,0.25);
  border-left: 4px solid var(--gold);
}

.exp-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.exp-header strong { color: var(--navy); font-size: 0.95rem; }
.exp-header div   { font-size: 0.88rem; color: var(--text); }
.exp-date {
  font-size: 0.73rem; font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff; padding: 4px 12px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(29,78,216,0.25);
}
.exp-item p { font-size: 0.87rem; color: var(--muted); line-height: 1.75; }

/* ============================================================
   AWARDS
   ============================================================ */
.awards-list { display: flex; flex-direction: column; gap: 12px; }
.award-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-radius: 12px;
  border-left: 4px solid var(--gold);
  transition: transform 0.2s;
}
.award-item:hover { transform: translateX(4px); }
.award-item > i { color: var(--gold); font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.award-item > div { font-size: 0.875rem; color: var(--text); line-height: 1.6; }
.award-item strong { color: var(--navy); }

/* ============================================================
   PUBLICATIONS
   ============================================================ */
.pub-list { display: flex; flex-direction: column; gap: 10px; }
.pub-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.87rem; color: var(--text); line-height: 1.65;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-radius: 10px;
  border-left: 3px solid var(--emerald);
  transition: transform 0.2s;
}
.pub-item:hover { transform: translateX(4px); }
.pub-item > i { color: var(--emerald); flex-shrink: 0; margin-top: 3px; }
.pub-item em { font-style: italic; color: var(--navy); font-weight: 600; }

/* ============================================================
   SKILLS
   ============================================================ */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 10px; }
.skill-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.84rem; color: var(--text);
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border-radius: 10px; padding: 11px 14px;
  border: 1px solid rgba(124,58,237,0.12);
  transition: all 0.2s;
}
.skill-item:hover { background: linear-gradient(135deg, #e0e7ff, #ede9fe); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(124,58,237,0.15); }
.skill-item > i {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.7rem; flex-shrink: 0;
}

/* ============================================================
   INFO GRID
   ============================================================ */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 12px; }
.info-item {
  display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 10px; padding: 14px 16px;
  font-size: 0.87rem;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.info-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.info-label {
  font-weight: 800; font-size: 0.7rem;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase; letter-spacing: 0.8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.page-footer {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a6e 100%);
  color: rgba(255,255,255,0.55); text-align: center;
  padding: 28px 24px; font-size: 0.82rem;
  border-top: 2px solid rgba(245,158,11,0.3);
}
.page-footer a { color: var(--gold); text-decoration: none; }
.page-footer a:hover { color: var(--gold2); }

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .profile-hero-inner { flex-direction: column; gap: 28px; text-align: center; padding: 52px 24px 48px; }
  .profile-contact-row { justify-content: center; }
  .profile-body { grid-template-columns: 1fr; padding: 24px 20px 70px; }
  /* Profile text FIRST, sidebar AFTER */
  .profile-main    { order: 1; }
  .profile-sidebar { order: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); }
  .tl-item { grid-template-columns: 100px 1fr; }
  .tl-item::before { left: 110px; }
  .tl-item::after  { left: 102px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  .navbar { padding: 0 16px; }
  .nav-back span { display: none; }
  .profile-hero-inner { padding: 36px 16px 32px; }
  .profile-photo-wrap { width: 140px; height: 170px; }
  .profile-photo-wrap img { object-position: center 15%; }
  .section-block { padding: 22px 18px; border-left-width: 4px; }
  .profile-sidebar { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .exp-header { flex-direction: column; gap: 6px; }
  .tl-item { grid-template-columns: 90px 1fr; }
  .tl-item::before { left: 98px; }
  .tl-item::after  { left: 90px; }
  .profile-body { gap: 20px; }
}
