@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&family=Poppins:wght@300;400;500&display=swap');

:root {
  --bg: #0a0a0f;
  --card: #1a1a28;
  --card2: #111120;
  --accent: #6c63ff;
  --accent2: #ff6584;
  --accent3: #43e97b;
  --gold: #ffd700;
  --text: #f0f0f8;
  --muted: #9090aa;
  --border: rgba(108,99,255,0.2);
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 56px;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 900;
}
.nav-logo span { color: var(--accent); }

.nav-right a {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.nav-right a:hover { color: var(--accent); }

/* ===== HERO ===== */
.about-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px 60px;
  position: relative;
  overflow: hidden;
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(108,99,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(255,101,132,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.about-hero-inner {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1100px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ===== CIRCULAR PHOTO ===== */
.about-photo-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  position: relative;
  z-index: 3;
  display: block;
  border: 4px solid var(--bg);
}

.photo-ring-outer {
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -62%);
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
  z-index: 2;
  animation: ringRotate 5s linear infinite;
  opacity: 0.9;
}

.photo-ring-inner {
  position: absolute;
  width: 292px;
  height: 292px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -62%);
  background: var(--bg);
  z-index: 2;
}

@keyframes ringRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.photo-name-tag {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  position: relative;
  z-index: 3;
}

/* ===== HERO TEXT ===== */
.about-hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
}

.about-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 2px;
}

.about-title span {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.about-quick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  transition: border-color 0.3s;
}

.quick-item:hover { border-color: var(--accent); }
.quick-item span { font-size: 1.4rem; }

.quick-item p {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

/* ===== SOCIAL BUTTONS ===== */
.social-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.linkedin-btn,
.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
  width: auto;
  align-self: auto;
}

.linkedin-btn {
  background: #0077B5;
  color: #fff;
  border: 1px solid #0077B5;
}

.linkedin-btn:hover {
  background: #005fa3;
  box-shadow: 0 0 16px rgba(0,119,181,0.5);
  transform: translateY(-2px);
}

.github-btn {
  background: #161b22;
  color: #f0f0f8;
  border: 1px solid rgba(240,240,248,0.2);
}

.github-btn:hover {
  background: #238636;
  border-color: #238636;
  box-shadow: 0 0 16px rgba(35,134,54,0.4);
  transform: translateY(-2px);
}

/* ===== CARDS GRID ===== */
.about-grid-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 60px 60px 100px;
  max-width: 1300px;
  margin: 0 auto;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s, box-shadow 0.3s;
}

.about-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(108,99,255,0.12);
}

.card-icon { font-size: 2.4rem; line-height: 1; }

.card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  align-self: flex-start;
}

.about-card h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.about-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
}

.about-card strong { color: var(--text); font-weight: 600; }

.card-name:hover     { border-color: var(--accent); }
.card-family:hover   { border-color: var(--accent2); }
.card-edu:hover      { border-color: var(--gold); }
.card-hobbies:hover  { border-color: var(--accent3); }
.card-strength:hover { border-color: var(--accent3); }
.card-weakness:hover { border-color: #50c8ff; }
.card-rolemodel:hover{ border-color: var(--gold); }
.card-aim:hover      { border-color: var(--accent); }

/* ===== FAMILY ===== */
.family-list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }

.family-member {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card2);
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
}

.family-member span { font-size: 1.4rem; flex-shrink: 0; }
.family-member strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.family-member p { font-size: 0.78rem; color: var(--muted); line-height: 1.5; margin: 0; }

/* ===== EDUCATION ===== */
.edu-stats {
  display: flex;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 8px;
}

.edu-stat { flex: 1; text-align: center; padding: 12px 8px; border-right: 1px solid var(--border); }
.edu-stat:last-child { border-right: none; }
.edu-stat span { display: block; font-family: var(--font-head); font-size: 1.1rem; font-weight: 900; color: var(--gold); }
.edu-stat p { font-size: 0.68rem; color: var(--muted); letter-spacing: 1px; margin: 0; }

/* ===== HOBBIES ===== */
.hobbies-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.hobby-chip {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 30px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--card2);
  transition: all 0.3s;
  cursor: default;
}

.hobby-chip:hover { border-color: var(--accent3); color: var(--text); background: rgba(67,233,123,0.08); }

/* ===== STRENGTHS ===== */
.strength-list { display: flex; flex-direction: column; gap: 14px; }
.strength-item { display: flex; gap: 14px; align-items: flex-start; }

.strength-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent3);
  flex-shrink: 0;
  margin-top: 5px;
  box-shadow: 0 0 10px rgba(67,233,123,0.5);
}

.strength-item strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.strength-item p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* ===== WEAKNESS ===== */
.weakness-text { font-size: 0.92rem; line-height: 1.8; }
.weakness-note { font-size: 0.8rem; font-style: italic; color: var(--accent); opacity: 0.8; }

/* ===== ROLE MODEL ===== */
.dhoni-quote {
  background: var(--card2);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
}

.dhoni-quote p { font-size: 0.88rem; font-style: italic; color: var(--muted); line-height: 1.7; }
.rolemodel-why { font-size: 0.85rem; line-height: 1.8; }
.dhoni-traits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.dhoni-traits span {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--gold);
  background: rgba(255,215,0,0.06);
}

/* ===== AIM ===== */
.card-aim { grid-column: span 2; }

.aim-options {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-top: 4px;
}

.aim-opt { display: flex; align-items: flex-start; gap: 12px; flex: 1; }
.aim-opt span { font-size: 1.8rem; }
.aim-opt strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.aim-opt p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; margin: 0; }
.aim-divider { font-family: var(--font-head); font-size: 0.85rem; font-weight: 900; color: var(--muted); letter-spacing: 2px; flex-shrink: 0; }
.aim-bottom { font-size: 0.9rem; color: var(--muted); line-height: 1.7; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 28px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer a { color: var(--accent); }
.footer a:hover { color: var(--text); }

/* ===== AOS ===== */
[data-aos] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid-section { grid-template-columns: repeat(2,1fr); padding: 40px 24px 80px; }
  .card-aim { grid-column: span 2; }
}

@media (max-width: 768px) {
  .about-hero { padding: 80px 20px 40px; }
  .about-hero-inner { flex-direction: column; text-align: center; gap: 40px; }
  .about-sub { text-align: left; }
  .about-quick { grid-template-columns: repeat(2,1fr); }
  .about-grid-section { grid-template-columns: 1fr; padding: 40px 20px 60px; }
  .card-aim { grid-column: span 1; }
  .aim-options { flex-direction: column; }
  .footer { flex-direction: column; gap: 10px; text-align: center; padding: 24px 20px; }
  .social-buttons { flex-direction: column; align-items: stretch; }
}

@media (max-width: 400px) {
  .about-title { font-size: 32px; }
  .about-photo { width: 220px; height: 220px; }
  .photo-ring-outer { width: 250px; height: 250px; }
  .photo-ring-inner { width: 232px; height: 232px; }
  .about-quick { grid-template-columns: 1fr; }
}