/* ═══════════════════════════════════════════
   RESET & VARIABLES
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0a0a;
  --surface:     #111111;
  --surface2:    #1a1a1a;
  --accent:      #AD0000;
  --accent-dim:  rgba(173,0,0,0.10);
  --accent-glow: rgba(173,0,0,0.25);
  --text:        #f0f0f0;
  --muted:       #777;
  --radius:      12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* subtle grain overlay */
body::after {
  content:'';
  position:fixed; inset:0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events:none; z-index:999;
}

/* ═══════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 48px;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 3px;
  text-decoration: none;
}
.nav-links { display:flex; gap:32px; list-style:none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: color .3s;
}
.nav-links a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 68vh;
  display: flex; align-items: center;
  justify-content: flex-start;
  padding: 48px;
  position: relative;
}
.hero::before {
  content:'';
  position:absolute;
  width:650px; height:650px;
  top:-180px; right:-120px;
  background: radial-gradient(circle, rgba(173,0,0,0.12) 0%, transparent 70%);
  pointer-events:none;
  filter: blur(50px);
}

.hero-badge {
  display: inline-flex; align-items:center; gap:8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 30px;
  width: fit-content;
  margin-bottom: 24px;
  animation: fadeUp .7s .25s both;
}
.badge-dot {
  width:7px; height:7px;
  background: var(--accent);
  border-radius:50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.93;
  letter-spacing: -1px;
  color: var(--text);
  animation: fadeUp .8s .45s both;
}
.hero h1 .accent { color: var(--accent); }

.hero-sub {
  margin-top: 26px;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 500px;
  font-weight: 300;
  line-height: 1.7;
  animation: fadeUp .8s .65s both;
}

.hero-links {
  margin-top: 38px;
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeUp .8s .85s both;
}

.hero-inner {
  display: flex; align-items: center; gap: 48px;
  width: 100%; max-width: 1200px; margin: 0 auto;
}
.hero-content { flex: 1; min-width:0; }
.hero-avatar { flex: 0 0 260px; display:flex; align-items:center; justify-content:center; }
.hero-avatar-img {
  width: 220px; height: 220px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(173,0,0,0.16); box-shadow: 0 6px 24px rgba(0,0,0,0.6);
}
.btn {
  display:inline-flex; align-items:center; gap:8px;
  text-decoration:none;
  font-weight:600;
  font-size:0.78rem;
  letter-spacing:1px;
  text-transform:uppercase;
  padding:13px 26px;
  border-radius:6px;
  transition: transform .25s, box-shadow .25s;
}
.btn:hover { transform:translateY(-2px); }
.btn--primary { background: var(--accent); color: #0a0a0a; }
.btn--primary:hover { box-shadow: 0 6px 28px var(--accent-glow); }
.btn--ghost { border: 1px solid rgba(255,255,255,0.15); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { width:15px; height:15px; }

.scroll-line {
  position:absolute; bottom:32px; left:48px;
  width:1px; height:48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s infinite;
}

/* ═══════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════ */
section { padding: 110px 48px; }
.sec-header {
  display:flex; align-items:center; gap:14px;
  margin-bottom:52px;
}
.sec-header .num { font-size:0.68rem; color:var(--accent); font-weight:600; letter-spacing:2px; }
.sec-header .title { font-family:'Bebas Neue',sans-serif; font-size:2.5rem; letter-spacing:3px; }
.sec-header .line { flex:1; height:1px; background: linear-gradient(to right, var(--surface2), transparent); }

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about-grid {
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap:80px;
  align-items:center;
}
.about-text p {
  color:var(--muted); font-size:1rem; font-weight:300;
  margin-bottom:16px; line-height:1.85;
}
.about-text p strong { color:var(--text); font-weight:500; }

.stat-row { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:36px; }
.stat {
  background:var(--surface);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:var(--radius);
  padding:22px 18px;
  text-align:center;
  transition: border-color .3s;
}
.stat:hover { border-color: var(--accent); }
.stat .val { font-family:'Bebas Neue',sans-serif; font-size:1.8rem; color:var(--accent); letter-spacing:1px; }
.stat .lbl { font-size:0.65rem; color:var(--muted); text-transform:uppercase; letter-spacing:1px; margin-top:4px; }

.about-visual { display:flex; align-items:center; justify-content:center; position:relative; }
.avatar-ring {
  width:280px; height:280px; border-radius:50%;
  border:2px solid rgba(173,0,0,0.18);
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.avatar-img {
  width:240px; height:240px; border-radius:50%;
  object-fit:cover; object-position:center top;
  display:block;
}
.orbit-dot {
  position:absolute; background:var(--accent); border-radius:50%;
  box-shadow: 0 0 10px rgba(173,0,0,0.5);
}
.orbit-dot--1 { width:10px; height:10px; top:-5px; left:50%; margin-left:-5px; animation: orbitA 5s linear infinite; }
.orbit-dot--2 { width:7px; height:7px; top:50%; right:-4px; margin-top:-4px; animation: orbitB 7s linear infinite; }
.orbit-dot--3 { width:5px; height:5px; bottom:25%; left:-3px; animation: orbitC 9s linear infinite; }

/* ═══════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════ */
.skills-wrap { display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:start; }

.skill-list { display:flex; flex-direction:column; gap:22px; }
.skill-row { display:flex; align-items:center; gap:16px; }
.skill-icon {
  width:42px; height:42px; border-radius:10px;
  background:var(--surface); border:1px solid rgba(255,255,255,0.07);
  display:flex; align-items:center; justify-content:center;
  font-size:1.15rem; flex-shrink:0;
}
.skill-info { flex:1; min-width:0; }
.skill-info .name { font-size:0.88rem; font-weight:500; margin-bottom:7px; }
.skill-track { height:3px; background:var(--surface2); border-radius:2px; overflow:hidden; }
.skill-fill {
  height:100%; background:var(--accent); border-radius:2px;
  width:var(--w);
  animation: fillBar 1.4s cubic-bezier(.25,.46,.45,.94) .3s both;
}

.tag-cloud { display:flex; flex-wrap:wrap; gap:10px; padding-top:10px; }
.tag {
  padding:10px 20px; border-radius:8px;
  font-size:0.8rem; font-weight:500; letter-spacing:.4px;
  background:var(--surface); border:1px solid rgba(255,255,255,0.07);
  color:var(--muted); transition: all .3s;
}
.tag:hover { border-color:var(--accent); color:var(--accent); background:var(--accent-dim); }
.tag--hi { border-color:rgba(173,0,0,0.22); color:var(--text); }

/* ═══════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════ */
.projects-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px,1fr)); gap:22px; }
.project-card {
  background:var(--surface); border:1px solid rgba(255,255,255,0.06);
  border-radius:var(--radius); padding:34px;
  position:relative; overflow:hidden;
  transition: transform .3s, border-color .3s;
}
.project-card:hover { transform:translateY(-4px); border-color:rgba(173,0,0,0.3); }
.project-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:var(--accent); transform:scaleX(0); transform-origin:left;
  transition:transform .4s;
}
.project-card:hover::before { transform:scaleX(1); }

.project-num {
  font-family:'Bebas Neue',sans-serif; font-size:3.6rem;
  color:rgba(173,0,0,0.07);
  position:absolute; top:14px; right:24px; line-height:1;
  user-select:none;
}
.project-tags { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.project-tags .tag {
  font-size:0.64rem; padding:4px 10px; border-radius:4px;
  color:var(--accent); background:var(--accent-dim);
  border:none; font-weight:600; letter-spacing:.8px; text-transform:uppercase;
}
.project-card h3 { font-size:1.15rem; font-weight:600; margin-bottom:10px; }
.project-card p  { font-size:0.86rem; color:var(--muted); font-weight:300; line-height:1.7; }
.project-link {
  display:inline-flex; align-items:center; gap:6px;
  margin-top:18px; color:var(--accent); text-decoration:none;
  font-size:0.72rem; font-weight:600; letter-spacing:1px;
  text-transform:uppercase; transition:gap .3s;
}
.project-link:hover { gap:12px; }
.project-link svg { width:13px; height:13px; }

/* ═══════════════════════════════════════════
   EXPERIENCE (timeline)
   ═══════════════════════════════════════════ */
.timeline { position:relative; padding-left:38px; }
.timeline::before {
  content:''; position:absolute; left:0; top:6px; bottom:0;
  width:1px; background:linear-gradient(to bottom, var(--accent), var(--surface2));
}
.exp-item { position:relative; margin-bottom:44px; }
.exp-item:last-child { margin-bottom:0; }
.exp-dot {
  position:absolute; left:-38px; top:7px;
  width:9px; height:9px; background:var(--accent); border-radius:50%;
  box-shadow: 0 0 8px rgba(173,0,0,0.45);
  transform:translateX(-4px);
}
.exp-header { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:6px; }
.exp-header h3 { font-size:1.05rem; font-weight:600; }
.exp-date { font-size:0.68rem; color:var(--accent); font-weight:600; letter-spacing:1.2px; text-transform:uppercase; }
.exp-meta { font-size:0.8rem; color:var(--muted); margin-bottom:8px; }
.exp-meta .loc { margin-left:12px; }
.exp-item p { font-size:0.85rem; color:var(--muted); font-weight:300; line-height:1.75; margin-bottom:6px; }

/* ═══════════════════════════════════════════
   ACTIVITIES
   ═══════════════════════════════════════════ */
.activities-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; }
.activity-card {
  background:var(--surface); border:1px solid rgba(255,255,255,0.06);
  border-radius:var(--radius); padding:28px;
  transition: border-color .3s;
}
.activity-card:hover { border-color: rgba(173,0,0,0.25); }
.activity-card h4 { font-size:0.95rem; font-weight:600; margin-bottom:6px; }
.activity-card .date { font-size:0.66rem; color:var(--accent); font-weight:600; letter-spacing:1px; text-transform:uppercase; margin-bottom:10px; }
.activity-card p { font-size:0.84rem; color:var(--muted); font-weight:300; line-height:1.7; }

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact-inner { max-width:680px; margin:0 auto; text-align:center; }
.contact-inner > p { color:var(--muted); font-size:1rem; font-weight:300; line-height:1.8; margin-bottom:42px; }
.contact-links { display:flex; justify-content:center; gap:16px; flex-wrap:wrap; }
.contact-card {
  display:flex; align-items:center; gap:14px;
  background:var(--surface); border:1px solid rgba(255,255,255,0.08);
  border-radius:10px; padding:18px 24px;
  text-decoration:none; color:var(--text);
  transition: border-color .3s, transform .25s;
  min-width:220px;
}
.contact-card:hover { border-color:var(--accent); transform:translateY(-2px); }
.contact-card .icon-wrap {
  width:38px; height:38px; border-radius:8px;
  background:var(--accent-dim);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-card .icon-wrap svg { width:18px; height:18px; color:var(--accent); }
.contact-card .label { font-size:0.68rem; color:var(--muted); text-transform:uppercase; letter-spacing:1px; margin-bottom:2px; }
.contact-card .value { font-size:0.82rem; font-weight:500; text-align:left; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer { text-align:center; padding:36px 48px; border-top:1px solid rgba(255,255,255,0.05); }
footer p { font-size:0.7rem; color:var(--muted); letter-spacing:1px; }

/* ═══════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(22px); }
  to   { opacity:1; transform:translateY(0);    }
}
@keyframes scrollPulse {
  0%,100% { opacity:.4; transform:scaleY(1);   }
  50%     { opacity:1;  transform:scaleY(1.25); }
}
@keyframes pulse {
  0%,100% { opacity:1;  }
  50%     { opacity:.4; }
}
@keyframes fillBar {
  from { width:0; }
  to   { width:var(--w); }
}
@keyframes orbitA {
  0%   { transform:translate(0,0); }
  25%  { transform:translate(50px,28px); }
  50%  { transform:translate(0,56px); }
  75%  { transform:translate(-50px,28px); }
  100% { transform:translate(0,0); }
}
@keyframes orbitB {
  0%   { transform:translate(0,0); }
  33%  { transform:translate(-40px,30px); }
  66%  { transform:translate(-40px,-30px); }
  100% { transform:translate(0,0); }
}
@keyframes orbitC {
  0%   { transform:translate(0,0); }
  50%  { transform:translate(35px,-25px); }
  100% { transform:translate(0,0); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width:768px) {
  nav              { padding:16px 22px; }
  .nav-links       { gap:16px; }
  section          { padding:80px 22px; }
  .hero            { padding:0 22px 70px; }
  .about-grid      { grid-template-columns:1fr; gap:36px; }
  .about-visual    { order:-1; }
  .avatar-ring     { width:200px; height:200px; }
  .avatar-img      { width:170px; height:170px; }
  .stat-row        { grid-template-columns:1fr 1fr; }
  .skills-wrap     { grid-template-columns:1fr; gap:40px; }
  .activities-grid { grid-template-columns:1fr; }
  .exp-header      { flex-direction:column; }
  .contact-links   { flex-direction:column; align-items:center; }

  .hero { padding: 32px 22px; min-height: auto; }
  .hero-inner { flex-direction: column; gap:20px; align-items: flex-start; }
  .hero-avatar { width:100%; display:flex; justify-content:flex-start; }
  .hero-avatar-img { width:140px; height:140px; }
}

/* Additional responsive breakpoints for tablets and phones */
@media (max-width:1024px) {
  .hero { padding: 36px 28px; }
  .hero-inner { gap: 28px; }
  .hero-avatar { flex: 0 0 200px; }
  .hero-avatar-img { width:180px; height:180px; }
  .hero h1 { font-size: clamp(3rem, 9vw, 6rem); }
  .about-grid { gap:48px; }
}

@media (max-width:600px) {
  nav { padding: 12px 16px; }
  .nav-links { gap:12px; font-size:0.72rem; }
  section { padding: 60px 16px; }
  .hero { padding: 22px 16px; min-height: auto; }
  .hero-inner { flex-direction: column; align-items: center; gap:16px; }
  .hero-avatar { width:100%; justify-content:center; }
  .hero-avatar .avatar-ring { width:180px; height:180px; margin:0 auto; }
  .avatar-img, .hero-avatar-img { width:120px; height:120px; margin:0 auto; }
  .hero h1 { font-size: 2.6rem; line-height:1.05; }
  .hero-sub { max-width:100%; margin-top:8px; }
  .hero-links { flex-direction:column; gap:10px; width:100%; }
  .btn { width:100%; justify-content:center; padding:12px; }
  .scroll-line { display:none; }
  .hero::before { display:none; }

  .stat-row { grid-template-columns:1fr 1fr; }
  .activities-grid { grid-template-columns:1fr; }
  .projects-grid { grid-template-columns:1fr; }
  .project-card { padding:22px; }
  .sec-header .title { font-size:1.6rem; }
}

@media (max-width:420px) {
  .nav-links { display:flex; flex-wrap:wrap; gap:8px; }
  .hero h1 { font-size:2.2rem; }
  .avatar-img, .hero-avatar-img { width:100px; height:100px; margin:0 auto; }
  .hero-inner { align-items: center; }
  .hero-badge { font-size:0.65rem; padding:6px 12px; }
}
