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

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

:root {
  --bg: #0a0c10;
  --bg-card: #111318;
  --bg-card-hover: #161a22;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.13);
  --text-primary: #f0f2f5;
  --text-secondary: #8b92a0;
  --text-muted: #555d6b;
  --accent-green: #22c55e;
  --accent-blue: #3b82f6;
  --accent-purple: #a78bfa;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --accent-cyan: #06b6d4;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Layout ── */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  position: relative;
}

.profile-avatar {
  width: 150px;         /* Set your desired width */
  height: 150px;        /* Height must match width */
  border-radius: 50%;   /* Makes the container a circle */
  overflow: hidden;     /* Crops the image corners */
}

.profile-avatar img {
  width: 100%;          /* Forces image to fill the container width */
  height: 100%;         /* Forces image to fill the container height */
  object-fit: cover;    /* Prevents stretching if the image isn't square */
}

/* ── Resume Button ── */
.resume-btn-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}

.resume-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: 0.01em;
}

.resume-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.resume-btn svg {
  width: 15px;
  height: 15px;
  opacity: 0.7;
}

/* ── Main Grid ── */
.grid-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 14px;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

/* ── Profile Card ── */
.card-profile {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.profile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.profile-location {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.profile-location .loc-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-location svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.profile-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary);
}

.dot-online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.profile-name {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.profile-title {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
}

.profile-socials {
  display: flex;
  gap: 10px;
  margin-top: 0.2rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.social-icon:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
}

.social-icon svg {
  width: 17px;
  height: 17px;
}

/* ── Education Card ── */
.card-education {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon.blue  { background: rgba(59, 130, 246, 0.15); }
.card-icon.green { background: rgba(34, 197, 94, 0.12); }

.card-icon svg {
  width: 18px;
  height: 18px;
}

.edu-degree {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.edu-school {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.edu-year {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Experience Card ── */
.card-experience {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.exp-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 0.9rem;
}

.exp-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.exp-company {
  font-size: 13px;
  color: var(--text-secondary);
}

.exp-year {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ── Row 2 Left sub-grid ── */
.row2-left {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

/* ── Football Card ── */
.card-Football {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.Football-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 1.2rem;
}

.Football-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.Football-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #1db954;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.Football-icon-wrap svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.Football-song {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.Football-artist {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* ── Reading Card ── */
.card-reading {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.reading-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.reading-label svg {
  width: 13px;
  height: 13px;
}

.reading-content {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.book-cover {
  width: 62px;
  height: 85px;
  border-radius: 4px;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4);
}

.book-cover-inner {
  font-size: 9px;
  font-weight: 700;
  color: white;
  text-align: center;
  padding: 6px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.book-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.book-author {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 5px;
}

/* ── Tech Arsenal ── */
.card-tech {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
  overflow: hidden;
}

.tech-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1rem;
}

.tech-carousel-wrap {
  overflow: hidden;
  position: relative;
}

.tech-carousel-wrap::before,
.tech-carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.tech-carousel-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-card), transparent);
}

.tech-carousel-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-card), transparent);
}

.tech-row {
  display: flex;
  gap: 8px;
  width: max-content;
  padding: 4px 0;
  margin-bottom: 8px;
}

.tech-row.row1 { animation: scroll-left  22s linear infinite; }
.tech-row.row2 { animation: scroll-right 25s linear infinite; }
.tech-row.row3 { animation: scroll-left  20s linear infinite; }

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.tech-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.tech-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Focus Card ── */
.card-focus {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

.focus-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-red);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 1.1rem;
}

.focus-label .target-icon {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--accent-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.focus-label .target-icon::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-red);
}

.focus-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.focus-item:last-child {
  margin-bottom: 0;
}

.focus-ring-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.focus-ring-wrap svg {
  width: 40px;
  height: 40px;
  transform: rotate(-90deg);
}

.focus-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
}

.focus-ring-fill {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}

.focus-task {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
}

.focus-pct {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  font-weight: 500;
}

/* ── Writing Card ── */
.card-writing {
  grid-column: 2 / 4;
  grid-row: 3 / 4;
}

.writing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.writing-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 7px;
}

.writing-label svg {
  width: 14px;
  height: 14px;
}

.writing-arrow {
  color: var(--accent-blue);
  opacity: 0.7;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: opacity 0.2s;
}

.writing-arrow:hover {
  opacity: 1;
}

.writing-arrow svg {
  width: 14px;
  height: 14px;
}

.article {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.article:first-child {
  padding-top: 0;
}

.article:last-of-type {
  border-bottom: none;
}

.article-row1 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 5px;
}

.article-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.article-title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.article-title a {
  color: inherit;
  text-decoration: none;
}

.article-title a:hover {
  text-decoration: underline;
}

.article-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.article-excerpt {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.view-all {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-top: 12px;
  transition: color 0.2s;
}

.view-all:hover {
  color: var(--text-primary);
}

.view-all svg {
  width: 14px;
  height: 14px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-main          { grid-template-columns: 1fr 1fr; }
  .card-profile       { grid-column: 1 / 3; }
  .card-education     { grid-column: 1 / 2; }
  .card-experience    { grid-column: 2 / 3; }
  .card-tech          { grid-column: 1 / 3; }
  .row2-left          { grid-column: 1 / 3; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .card-focus         { grid-column: 1 / 3; }
  .card-writing       { grid-column: 1 / 3; }
}

@media (max-width: 600px) {
  .grid-main          { grid-template-columns: 1fr; }
  .card-profile,
  .card-education,
  .card-experience,
  .card-tech,
  .card-focus,
  .card-writing       { grid-column: 1 / 2; }
  .row2-left          { grid-column: 1 / 2; grid-template-columns: 1fr; }
}
