/* ============================================================
   PORTFOLIO – Aswin Santhakumar
   Desktop: No Scroll · Mobile: Scroll + Beautiful Layout
   ============================================================ */

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

:root {
  --navy:        #0a0f1e;
  --navy-mid:    #0d1526;
  --navy-card:   #0f1a30;
  --navy-border: #1a2540;
  --gold:        #c9a84c;
  --gold-light:  #e8c76b;
  --gold-dim:    rgba(201,168,76,0.15);
  --white:       #ffffff;
  --text-muted:  #8899b0;
  --text-soft:   #c5d0e0;
}

/* ── BASE ─────────────────────────────────────────── */
html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--white);
}

/* ── BACKGROUND ───────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 50%, rgba(10,25,60,0.85) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(201,168,76,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 50% 100%, rgba(0,20,60,0.6) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}

/* ── PAGE WRAPPER ─────────────────────────────────── */
.page-wrapper {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  height: 100vh; overflow: hidden;
}

/* ── MAIN GRID ────────────────────────────────────── */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 560px;
  flex: 1; min-height: 0; overflow: hidden;
}

/* ═══════════════════════════════════════════════════
   LEFT PANEL
   ═══════════════════════════════════════════════════ */
.left-panel {
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 48px 56px 32px 72px;
  overflow: hidden; position: relative;
}
.left-panel::after {
  content: '';
  position: absolute; right: 0; top: 10%; height: 80%; width: 1px;
  background: linear-gradient(to bottom,
    transparent, var(--navy-border) 30%,
    var(--gold) 50%, var(--navy-border) 70%, transparent);
}

/* Avatar */
.avatar-wrap { width: 88px; height: 88px; margin-bottom: 22px; flex-shrink: 0; }
.avatar {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(201,168,76,0.12), 0 8px 30px rgba(0,0,0,0.5);
}
.avatar-fallback {
  display: none; width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, #1a2540, #0d1a35);
  border: 3px solid var(--gold); box-shadow: 0 0 0 6px rgba(201,168,76,0.12);
  font-size: 26px; font-weight: 700; color: var(--gold); letter-spacing: 2px;
  align-items: center; justify-content: center;
}

/* Name */
.name-block { margin-bottom: 16px; }
.full-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 900; line-height: 1.1; letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 10px;
}
.title-badge {
  display: inline-block; padding: 5px 16px;
  border: 1px solid var(--gold); border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold-light); background: var(--gold-dim);
}

/* Bio */
.bio { font-size: 14px; line-height: 1.75; color: var(--text-soft); max-width: 460px; margin-bottom: 20px; }
.bio strong { color: var(--white); font-weight: 700; }
.bio em     { color: var(--gold-light); font-style: normal; font-weight: 500; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.tag {
  font-size: 12px; font-weight: 500; padding: 5px 13px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--navy-border);
  border-radius: 8px; color: var(--text-soft); transition: all 0.25s ease; cursor: default;
}
.tag:hover { border-color: var(--gold); color: var(--gold-light); background: var(--gold-dim); }

/* Divider */
.divider { width: 50px; height: 2px; background: linear-gradient(to right, var(--gold), transparent); margin-bottom: 22px; border-radius: 2px; }

/* Stats */
.quick-stats { display: flex; align-items: center; gap: 28px; }
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 800; color: var(--gold-light); line-height: 1; }
.stat-label { font-size: 10px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.stat-sep { width: 1px; height: 36px; background: var(--navy-border); }

/* ═══════════════════════════════════════════════════
   RIGHT PANEL
   ═══════════════════════════════════════════════════ */
.right-panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: 28px 36px 24px 44px;
  background: linear-gradient(160deg, rgba(15,22,40,0.98) 0%, rgba(8,14,28,0.99) 100%);
  border-left: 1px solid var(--navy-border);
  gap: 16px; overflow: hidden;
}
.ventures-header { display: flex; align-items: center; gap: 14px; }
.ventures-label { font-size: 11px; font-weight: 700; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; white-space: nowrap; }
.ventures-line { flex: 1; height: 1px; background: linear-gradient(to right, var(--gold-dim), transparent); }

/* Company Card */
.company-card {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px 18px;
  background: linear-gradient(135deg, rgba(20,30,55,0.8), rgba(10,16,30,0.9));
  border: 1px solid var(--navy-border); border-radius: 16px;
  position: relative; overflow: hidden; transition: all 0.3s ease; flex: 1;
}
.company-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.4), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.company-card:hover { border-color: rgba(201,168,76,0.35); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.company-card:hover::before { opacity: 1; }

/* Logo */
.company-logo-wrap {
  flex-shrink: 0; width: 58px; height: 58px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(20,32,60,0.9), rgba(10,18,36,0.95));
  border: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 6px;
}
.company-logo-img { width: 100%; height: 100%; object-fit: contain; }
.swathanthra-logo { border-radius: 8px; background: #fff; padding: 2px; }

/* Info */
.company-info { flex: 1; min-width: 0; }
.company-name { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 3px; letter-spacing: -0.3px; }
.company-role { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); display: block; margin-bottom: 8px; }
.company-desc { font-size: 12.5px; line-height: 1.6; color: var(--text-muted); margin-bottom: 12px; }
.company-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ctag {
  font-size: 9.5px; font-weight: 600; padding: 3px 9px; border-radius: 6px;
  background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2);
  color: var(--gold); letter-spacing: 0.5px; text-transform: uppercase;
}

/* Arrow */
.card-arrow {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--navy-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none; transition: all 0.25s ease;
}
.card-arrow svg { width: 13px; height: 13px; }
.card-arrow:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 60px;
  background: rgba(5,10,20,0.95); border-top: 1px solid var(--navy-border);
  flex-shrink: 0; gap: 20px;
}
.footer-copy    { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.footer-tagline { font-size: 11.5px; color: var(--text-muted); font-style: italic; white-space: nowrap; }
.footer-socials { display: flex; align-items: center; gap: 10px; }
.social-btn {
  display: flex; align-items: center; gap: 6px; padding: 7px 15px;
  border-radius: 999px; border: 1px solid var(--navy-border);
  background: rgba(255,255,255,0.03); color: var(--text-muted);
  text-decoration: none; font-size: 11.5px; font-weight: 500;
  white-space: nowrap; transition: all 0.25s ease;
}
.social-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.social-btn:hover { border-color: var(--gold); color: var(--gold-light); background: var(--gold-dim); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,168,76,0.15); }

/* ── ANIMATIONS ───────────────────────────────────── */
@keyframes fadeUp  { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }

.avatar-wrap               { animation: fadeUp 0.6s ease both 0.1s; }
.name-block                { animation: fadeUp 0.6s ease both 0.2s; }
.bio                       { animation: fadeUp 0.6s ease both 0.3s; }
.tags                      { animation: fadeUp 0.6s ease both 0.38s; }
.divider                   { animation: fadeUp 0.6s ease both 0.44s; }
.quick-stats               { animation: fadeUp 0.6s ease both 0.5s; }
.ventures-header           { animation: fadeIn 0.6s ease both 0.3s; }
.company-card:nth-child(2) { animation: fadeUp 0.6s ease both 0.45s; }
.company-card:nth-child(3) { animation: fadeUp 0.6s ease both 0.6s; }
.footer                    { animation: fadeIn 0.6s ease both 0.65s; }


/* ============================================================
   LARGE DESKTOP (≤1280px)
   ============================================================ */
@media (max-width: 1280px) {
  .main-grid { grid-template-columns: 1fr 460px; }
  .left-panel { padding: 40px 44px 28px 52px; }
  .right-panel { padding: 24px 28px 20px 34px; }
  .footer { padding: 11px 48px; }
}

/* ============================================================
   TABLET LANDSCAPE (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .main-grid { grid-template-columns: 1fr 400px; }
  .left-panel { padding: 32px 36px 24px 42px; }
  .full-name { font-size: clamp(28px, 3.8vw, 42px); }
  .bio { font-size: 13px; margin-bottom: 16px; }
  .avatar-wrap { width: 76px; height: 76px; margin-bottom: 18px; }
  .avatar, .avatar-fallback { width: 76px; height: 76px; font-size: 22px; }
  .stat-num { font-size: 23px; }
  .right-panel { padding: 22px 24px 20px 30px; gap: 14px; }
  .company-card { padding: 16px 14px; gap: 14px; }
  .company-logo-wrap { width: 52px; height: 52px; }
  .company-name { font-size: 15px; }
  .company-desc { font-size: 12px; margin-bottom: 10px; }
  .footer { padding: 11px 40px; }
  .social-btn { padding: 6px 13px; font-size: 11px; }
}


/* ============================================================
   MOBILE & TABLET PORTRAIT (≤768px)
   Full scroll · Beautiful stacked layout
   ============================================================ */
@media (max-width: 768px) {

  /* ── Enable scroll ──────────────────────────────── */
  html, body { height: auto; overflow-x: hidden; overflow-y: auto; }

  .page-wrapper { height: auto; min-height: 100vh; overflow: visible; }

  /* ── Stack panels vertically ────────────────────── */
  .main-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    overflow: visible;
  }

  /* ── LEFT PANEL ─────────────────────────────────── */
  .left-panel {
    padding: 52px 28px 40px 28px;
    align-items: center;
    text-align: center;
    border-bottom: none;
    position: relative;
    overflow: visible;
  }

  /* Remove vertical divider */
  .left-panel::after { display: none; }

  /* Gold bottom glow line under left panel */
  .left-panel::before {
    content: '';
    position: absolute;
    bottom: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(to right, transparent, var(--gold) 50%, transparent);
  }

  /* Center avatar */
  .avatar-wrap {
    width: 110px; height: 110px;
    margin: 0 auto 24px auto;
    position: relative;
  }
  .avatar-wrap::after {
    content: '';
    position: absolute; inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.25);
    animation: pulse-ring 2.5s ease-out infinite;
  }
  @keyframes pulse-ring {
    0%   { transform: scale(0.95); opacity: 0.8; }
    70%  { transform: scale(1.06); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
  }

  .avatar, .avatar-fallback {
    width: 110px; height: 110px; font-size: 32px;
  }

  /* Name centered */
  .name-block { margin-bottom: 20px; }
  .full-name {
    font-size: clamp(30px, 8vw, 44px);
    margin-bottom: 12px;
    text-align: center;
  }
  .title-badge { font-size: 11px; padding: 6px 18px; }

  /* Bio */
  .bio {
    font-size: 14px; line-height: 1.75;
    max-width: 520px; margin: 0 auto 22px auto;
    text-align: center;
  }

  /* Tags centered */
  .tags { justify-content: center; margin-bottom: 24px; gap: 8px; }
  .tag  { font-size: 12px; padding: 6px 14px; }

  /* Divider centered */
  .divider { margin: 0 auto 24px auto; }

  /* Stats row */
  .quick-stats {
    justify-content: center; gap: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--navy-border);
    border-radius: 16px; padding: 18px 24px;
    width: 100%; max-width: 480px; margin: 0 auto;
  }
  .stat { flex: 1; align-items: center; }
  .stat-num { font-size: 28px; }
  .stat-label { font-size: 10px; text-align: center; }
  .stat-sep { height: 40px; }

  /* ── RIGHT PANEL ─────────────────────────────────── */
  .right-panel {
    border-left: none;
    padding: 44px 24px 48px 24px;
    gap: 20px; overflow: visible;
    background: linear-gradient(180deg, rgba(8,14,28,0.98) 0%, rgba(10,16,32,0.96) 100%);
  }

  .ventures-header { margin-bottom: 6px; }
  .ventures-label  { font-size: 12px; }

  /* Cards stack full width */
  .company-card {
    flex-direction: row;
    flex: none;
    padding: 22px 20px;
    gap: 18px;
    border-radius: 18px;
    /* Slight left gold border accent */
    border-left: 3px solid rgba(201,168,76,0.4);
  }
  .company-card:hover { transform: translateY(-3px); }

  .company-logo-wrap { width: 60px; height: 60px; border-radius: 14px; padding: 7px; }
  .company-name { font-size: 17px; }
  .company-role { font-size: 10px; margin-bottom: 8px; }
  .company-desc { font-size: 13px; margin-bottom: 12px; line-height: 1.6; }
  .ctag { font-size: 10px; padding: 3px 10px; }
  .card-arrow { width: 34px; height: 34px; border-radius: 10px; }
  .card-arrow svg { width: 15px; height: 15px; }

  /* ── FOOTER ─────────────────────────────────────── */
  .footer {
    flex-direction: column;
    align-items: center;
    padding: 28px 24px 32px 24px;
    gap: 20px;
    /* No fixed height – let content breathe */
    border-top: 1px solid var(--navy-border);
    background: rgba(4,8,18,0.98);
  }

  .footer-left { order: 3; }
  .footer-socials { order: 1; gap: 12px; flex-wrap: wrap; justify-content: center; }
  .footer-right { order: 2; }

  .social-btn {
    padding: 10px 20px; font-size: 13px; gap: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
  }
  .social-btn svg { width: 16px; height: 16px; }

  .footer-copy    { font-size: 11px; white-space: normal; text-align: center; }
  .footer-tagline { font-size: 12px; white-space: normal; text-align: center; color: var(--gold); font-style: italic; }
}

/* ============================================================
   MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {

  .left-panel { padding: 44px 20px 36px 20px; }

  .avatar-wrap { width: 96px; height: 96px; }
  .avatar, .avatar-fallback { width: 96px; height: 96px; font-size: 28px; }

  .full-name { font-size: clamp(26px, 9vw, 38px); }
  .title-badge { font-size: 10px; padding: 5px 14px; letter-spacing: 1.5px; }

  .bio { font-size: 13.5px; }

  .quick-stats { padding: 16px 20px; }
  .stat-num { font-size: 24px; }

  .right-panel { padding: 36px 16px 44px 16px; }

  .company-card { padding: 18px 16px; gap: 14px; border-radius: 16px; }
  .company-logo-wrap { width: 52px; height: 52px; padding: 6px; border-radius: 12px; }
  .company-name { font-size: 15px; }
  .company-desc { font-size: 12.5px; }

  .footer { padding: 24px 16px 28px 16px; gap: 18px; }
  .social-btn { padding: 10px 18px; font-size: 12.5px; }
}

/* ============================================================
   VERY SMALL (≤360px)
   ============================================================ */
@media (max-width: 360px) {
  .left-panel  { padding: 36px 16px 30px 16px; }
  .right-panel { padding: 28px 14px 36px 14px; }

  .avatar-wrap { width: 84px; height: 84px; }
  .avatar, .avatar-fallback { width: 84px; height: 84px; font-size: 24px; }

  .full-name   { font-size: clamp(22px, 8vw, 30px); }
  .stat-num    { font-size: 20px; }
  .bio         { font-size: 12.5px; }

  .company-card { padding: 16px 14px; gap: 12px; }
  .company-logo-wrap { width: 46px; height: 46px; }
  .company-name { font-size: 14px; }
  .company-desc { font-size: 12px; }

  .footer { padding: 20px 14px 26px 14px; }
  .social-btn { font-size: 11.5px; padding: 9px 14px; }
}
