/* ============================================================
   HAMID — Portfolio Stylesheet
   Author  : Hamid
   Version : 1.0
   Theme   : Dark (default) / Light toggle via data-theme attr
============================================================ */

/* ===== VARIABLES ===== */
:root {
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Dark theme */
  --bg:           #0C0C10;
  --bg-2:         #0F0F14;
  --bg-3:         #17171E;
  --bg-card:      #15151C;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);
  --text:         #E8E8EC;
  --text-muted:   #7A7A8C;
  --text-faint:   #3A3A4A;
  --accent:       #C9A86C;
  --accent-2:     #8B7CF6;
  --accent-glow:  rgba(201,168,108,0.13);
  --nav-bg:       rgba(12,12,16,0.88);
  --shadow-card:  0 2px 24px rgba(0,0,0,0.35);
}

[data-theme="light"] {
  --bg:           #F5F4F0;
  --bg-2:         #EEECEA;
  --bg-3:         #E5E3DF;
  --bg-card:      #FFFFFF;
  --border:       rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.18);
  --text:         #1A1A20;
  --text-muted:   #6A6A7A;
  --text-faint:   #B0B0C0;
  --accent:       #9B6F2F;
  --accent-2:     #6C4FD4;
  --accent-glow:  rgba(155,111,47,0.1);
  --nav-bg:       rgba(245,244,240,0.9);
  --shadow-card:  0 2px 20px rgba(0,0,0,0.08);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .35s, color .35s;
}
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
::selection               { background: var(--accent); color: var(--bg); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 110px 0; position: relative; }

/* ===== SCROLL REVEAL ===== */
.reveal         { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background .35s, border-color .35s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 24px; max-width: 1140px; margin: 0 auto;
}
.nav-logo  { font-family: var(--font-mono); font-size: .85rem; color: var(--accent); letter-spacing: .05em; }
.nav-links { display: flex; list-style: none; gap: 2px; }
.nav-links a {
  font-size: .78rem; font-weight: 500; color: var(--text-muted);
  letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--border); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; transition: all .2s; flex-shrink: 0;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* Hamburger */
.hamburger {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-3); border: 1px solid var(--border);
  cursor: pointer; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text-muted); transition: all .3s; border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 16px 24px 20px; z-index: 999;
  flex-direction: column; gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: .85rem; color: var(--text-muted);
  padding: 10px 12px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.mobile-menu a:hover { color: var(--text); background: var(--border); }

/* ===== SECTION HEADERS ===== */
.section-header  { margin-bottom: 64px; }
.section-label   { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 12px; }
.section-title   { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); font-weight: 400; line-height: 1.15; color: var(--text); margin-bottom: 16px; }
.section-title em { color: var(--accent); font-style: italic; }
.section-subtitle { font-size: .93rem; color: var(--text-muted); font-weight: 300; max-width: 480px; }
.title-rule       { width: 40px; height: 2px; background: var(--accent); border-radius: 2px; margin-top: 20px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-size: .85rem; font-weight: 500; font-family: var(--font-body);
  cursor: pointer; transition: all .22s; border: none;
}
.btn-primary              { background: var(--accent); color: var(--bg); }
.btn-primary:hover        { opacity: .88; transform: translateY(-1px); }
.btn-outline              { background: transparent; color: var(--text); border: 1px solid var(--border-hover); }
.btn-outline:hover        { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ===== HERO ===== */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 80px; position: relative; overflow: hidden;
}
.hero-bg      { position: absolute; inset: 0; pointer-events: none; }
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px; opacity: .5;
}

/* Gold ambient blobs */
.gold-blob   { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.gold-blob-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(201,168,108,.12) 0%, transparent 70%); top: -100px; right: -80px; }
.gold-blob-2 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(201,168,108,.07) 0%, transparent 70%); bottom: 50px; left: -60px; }

.hero-inner       { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; width: 100%; }
.hero-badge       { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 100px; padding: 6px 14px; font-family: var(--font-mono); font-size: .7rem; color: var(--accent); letter-spacing: .08em; margin-bottom: 28px; }
.hero-badge .dot  { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; animation: pulse-dot 2s ease-in-out infinite; }

@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .5; transform: scale(.8); }
}

.hero-name          { font-family: var(--font-display); font-size: clamp(3.5rem,7vw,5.5rem); font-weight: 400; line-height: 1.05; color: var(--text); margin-bottom: 8px; }
.hero-name em       { font-style: italic; color: var(--accent); }
.hero-title         { font-size: 1rem; font-weight: 400; color: var(--text-muted); margin-bottom: 24px; }
.hero-desc          { font-size: .95rem; font-weight: 300; color: var(--text-muted); line-height: 1.75; margin-bottom: 36px; max-width: 460px; }
.hero-desc strong   { color: var(--text); font-weight: 500; }
.hero-stats-row     { display: flex; gap: 32px; margin-bottom: 40px; }
.stat               { display: flex; flex-direction: column; }
.stat-num           { font-family: var(--font-display); font-size: 2rem; color: var(--accent); line-height: 1; }
.stat-label         { font-size: .72rem; color: var(--text-muted); font-weight: 400; letter-spacing: .04em; margin-top: 4px; }
.stat-divider       { width: 1px; background: var(--border); align-self: stretch; }
.hero-cta           { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-right         { display: flex; justify-content: center; }

/* Avatar */
.avatar-wrap          { position: relative; width: 340px; height: 380px; }
.avatar-frame         { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--border); }
.avatar-frame img     { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(20%); transition: filter .3s; }
.avatar-frame:hover img { filter: grayscale(0%); }
.avatar-frame::after  { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, transparent 50%); pointer-events: none; }
.avatar-tag           { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 18px; display: flex; flex-direction: column; align-items: center; white-space: nowrap; box-shadow: var(--shadow-card); }
.avatar-tag-name      { font-family: var(--font-display); font-size: 1rem; color: var(--text); }
.avatar-tag-role      { font-family: var(--font-mono); font-size: .65rem; color: var(--accent); letter-spacing: .08em; }
.avatar-badge-tl      { position: absolute; top: 14px; right: 14px; z-index: 10; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; font-family: var(--font-mono); font-size: .65rem; color: var(--accent); letter-spacing: .06em; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ===== ABOUT ===== */
#about     { background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }

/* Left panel */
.about-profile-card    { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; margin-bottom: 14px; }
.about-profile-img     { width: 100%; aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--bg-3); }
.about-profile-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(15%); transition: filter .3s; }
.about-profile-img:hover img  { filter: grayscale(0%); }
.about-profile-img::after     { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-card) 0%, transparent 55%); pointer-events: none; }
.about-profile-body    { padding: 18px 20px 20px; }
.about-name-row        { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.about-name-row h3     { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; color: var(--text); }
.about-status          { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: .62rem; color: #4ADE80; letter-spacing: .06em; }
.about-status-dot      { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; animation: pulse-dot 2s ease-in-out infinite; }
.about-role-line       { font-family: var(--font-mono); font-size: .68rem; color: var(--accent); letter-spacing: .07em; margin-bottom: 10px; }
.about-location        { font-size: .78rem; font-weight: 300; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.about-location i      { color: var(--accent); font-size: .7rem; }

/* Info cards */
.about-info-stack { display: flex; flex-direction: column; gap: 10px; }
.info-card        {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 18px;
  transition: border-color .25s, transform .25s;
  display: flex; gap: 14px; align-items: flex-start;
}
.info-card:hover     { border-color: rgba(201,168,108,.28); transform: translateX(3px); }
.info-card-icon      { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-glow); border: 1px solid rgba(201,168,108,.2); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: .8rem; flex-shrink: 0; margin-top: 1px; }
.info-card-label     { font-family: var(--font-mono); font-size: .6rem; font-weight: 500; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.info-card-title     { font-size: .84rem; font-weight: 500; color: var(--text); margin-bottom: 3px; }
.info-card-sub       { font-size: .75rem; font-weight: 300; color: var(--text-muted); line-height: 1.55; }

/* Mini stats */
.about-mini-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 14px; }
.mini-stat        { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 8px; text-align: center; }
.mini-stat-num    { font-family: var(--font-display); font-size: 1.4rem; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.mini-stat-label  { font-size: .65rem; font-weight: 400; color: var(--text-muted); letter-spacing: .03em; }

/* Right text */
.about-text        { font-size: .95rem; font-weight: 300; color: var(--text-muted); line-height: 1.85; margin-bottom: 20px; }
.about-text strong { color: var(--text); font-weight: 500; }
.about-founder     { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-glow); border: 1px solid rgba(201,168,108,.22); border-radius: 8px; padding: 8px 14px; font-size: .8rem; color: var(--accent); font-weight: 500; margin-bottom: 28px; }
.tag-cloud         { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag               { font-size: .75rem; font-weight: 400; color: var(--text-muted); border: 1px solid var(--border); border-radius: 6px; padding: 5px 12px; background: var(--bg-3); letter-spacing: .02em; transition: all .2s; }
.tag:hover         { border-color: var(--accent); color: var(--accent); }

/* ===== SKILLS ===== */
#skills          { background: var(--bg); position: relative; overflow: hidden; }
#skills::before  { content: ''; position: absolute; top: -250px; left: -200px; width: 800px; height: 800px; background: radial-gradient(circle, rgba(201,168,108,.08) 0%, transparent 60%); pointer-events: none; z-index: 0; }
#skills::after   { content: ''; position: absolute; bottom: -200px; right: -150px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(139,124,246,.06) 0%, transparent 60%); pointer-events: none; z-index: 0; }

/* Watermark layer */
.skills-wm       { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.skills-wm .wm-ico {
  position: absolute; color: var(--accent); opacity: .035;
  line-height: 1; user-select: none; font-size: clamp(56px,7vw,100px);
}
.skills-wm .wm-txt {
  position: absolute; font-family: var(--font-mono);
  font-size: clamp(12px,1.5vw,20px); font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); opacity: .04; white-space: nowrap; user-select: none;
}
.skills-gold-line {
  position: absolute; top: 50%; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,108,.12), transparent);
  pointer-events: none; z-index: 0;
}

/* Skills grid */
.skills-grid    { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; position: relative; z-index: 1; }
.skill-card     { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 26px; transition: border-color .28s, transform .28s, box-shadow .28s; position: relative; overflow: hidden; }
.skill-card .card-wm { position: absolute; right: -6px; bottom: -14px; font-size: 5.5rem; color: var(--accent); opacity: .045; pointer-events: none; line-height: 1; transition: opacity .28s; }
.skill-card:hover               { border-color: rgba(201,168,108,.3); transform: translateY(-4px); box-shadow: 0 8px 36px rgba(201,168,108,.08); }
.skill-card:hover .card-wm      { opacity: .09; }
.skill-header       { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.skill-icon-pill    { display: flex; align-items: center; gap: 7px; background: var(--accent-glow); border: 1px solid rgba(201,168,108,.2); border-radius: 8px; padding: 7px 12px; }
.skill-icon-pill i  { color: var(--accent); font-size: .9rem; }
.skill-card h3      { font-size: .9rem; font-weight: 500; color: var(--text); }
.skill-tags         { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.skill-tag          { font-family: var(--font-mono); font-size: .58rem; color: var(--text-faint); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; letter-spacing: .05em; }
.skill-card p       { font-size: .78rem; font-weight: 300; color: var(--text-muted); line-height: 1.65; margin-bottom: 18px; }
.skill-meter        { display: flex; align-items: center; gap: 10px; }
.skill-track        { flex: 1; height: 3px; background: var(--bg-3); border-radius: 4px; overflow: hidden; }
.skill-fill         { height: 100%; background: linear-gradient(90deg, var(--accent), rgba(201,168,108,.55)); border-radius: 4px; width: 0%; transition: width 1.3s cubic-bezier(.4,0,.2,1); }
.skill-pct          { font-family: var(--font-mono); font-size: .68rem; color: var(--accent); min-width: 30px; text-align: right; }

/* ===== TOOLS ARSENAL ===== */
#tools          { background: var(--bg-2); position: relative; overflow: hidden; }
#tools::before  { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 1000px; height: 700px; background: radial-gradient(ellipse, rgba(201,168,108,.07) 0%, transparent 65%); pointer-events: none; z-index: 0; }
#tools::after   { content: ''; position: absolute; top: -150px; left: -150px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(201,168,108,.05) 0%, transparent 65%); pointer-events: none; z-index: 0; }

/* Drifting background constellation */
.tools-canvas          { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.tools-canvas .tc-ico  {
  position: absolute; font-size: clamp(38px,4.5vw,72px);
  opacity: .03; color: var(--accent); user-select: none;
  animation: flt var(--dur,9s) ease-in-out infinite;
  animation-delay: var(--d,0s);
}
.tools-canvas .tc-lbl  {
  position: absolute; font-family: var(--font-mono);
  font-size: clamp(10px,1.1vw,15px); font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); opacity: .04; white-space: nowrap; user-select: none;
}

@keyframes flt {
  0%,100% { transform: translateY(0) rotate(0deg); }
  40%     { transform: translateY(-14px) rotate(2deg); }
  70%     { transform: translateY(7px) rotate(-1.5deg); }
}

.tools-gold-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,108,.2), transparent);
  pointer-events: none; z-index: 1;
}

/* Tools grid */
.tools-grid           { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; position: relative; z-index: 1; }
.tool-card            { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 22px 20px 18px; transition: all .28s; position: relative; overflow: hidden; }
.tool-card::before    { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity .28s; }
.tool-card:hover::before { opacity: 1; }
.tool-card:hover         { border-color: rgba(201,168,108,.28); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.28), 0 0 0 1px rgba(201,168,108,.06); }
.tc-wm                { position: absolute; right: -8px; bottom: -12px; font-size: 4.8rem; color: var(--accent); opacity: .04; pointer-events: none; line-height: 1; transition: opacity .28s; }
.tool-card:hover .tc-wm { opacity: .09; }
.tool-top             { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.tool-logo            { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; border: 1px solid var(--border); background: var(--bg-3); transition: all .28s; position: relative; z-index: 1; }
.tool-card:hover .tool-logo { background: var(--accent-glow); border-color: rgba(201,168,108,.28); }
.tool-badge           { font-family: var(--font-mono); font-size: .58rem; font-weight: 500; color: var(--accent); background: var(--accent-glow); border: 1px solid rgba(201,168,108,.18); border-radius: 5px; padding: 3px 8px; letter-spacing: .08em; }
.tool-card h4         { font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: 6px; position: relative; z-index: 1; }
.tool-card p          { font-size: .73rem; font-weight: 300; color: var(--text-muted); line-height: 1.55; position: relative; z-index: 1; }

/* ===== LINXPLOIT / STARTUP ===== */
#startup          { background: var(--bg); position: relative; overflow: hidden; }
#startup::before  { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 800px; height: 400px; background: radial-gradient(ellipse, rgba(201,168,108,.06) 0%, transparent 70%); pointer-events: none; }

.startup-card          { display: grid; grid-template-columns: 1fr 1.5fr; background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.startup-left          { padding: 48px 36px; background: var(--bg-3); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-right: 1px solid var(--border); }
.startup-logo-slot     { margin-bottom: 18px; position: relative; }
.startup-logo-img      { width: 100px; height: 100px; object-fit: contain; border-radius: 18px; border: 1px solid var(--border); }
.startup-logo-fallback { width: 80px; height: 80px; border-radius: 20px; background: var(--accent-glow); border: 1px solid rgba(201,168,108,.3); display: none; align-items: center; justify-content: center; font-size: 2.2rem; color: var(--accent); margin: 0 auto; }
.startup-name          { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 500; color: var(--text); letter-spacing: .14em; margin-bottom: 4px; }
.startup-domain        { font-size: .75rem; color: var(--text-muted); margin-bottom: 8px; }
.startup-founded       { font-family: var(--font-mono); font-size: .62rem; color: var(--accent); letter-spacing: .1em; background: var(--accent-glow); border: 1px solid rgba(201,168,108,.2); border-radius: 20px; padding: 3px 12px; }
.startup-right         { padding: 48px 44px; }
.startup-right p       { font-size: .92rem; font-weight: 300; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.startup-right p strong { color: var(--text); font-weight: 500; }
.startup-features      { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 32px; }
.sf-item               { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 400; color: var(--text-muted); }
.sf-item i             { color: var(--accent); font-size: .75rem; }

/* ===== PHILOSOPHY ===== */
#psychology         { background: var(--bg-2); }
.psych-grid         { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.quote-card         { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 16px; transition: border-color .25s; }
.quote-card:hover   { border-color: var(--border-hover); }
.quote-mark         { font-family: var(--font-display); font-size: 3rem; color: var(--accent); line-height: 1; margin-bottom: 10px; opacity: .55; }
.quote-card p       { font-family: var(--font-display); font-style: italic; font-size: .95rem; color: var(--text); line-height: 1.6; margin-bottom: 12px; }
.quote-author       { font-family: var(--font-mono); font-size: .65rem; color: var(--accent); letter-spacing: .08em; }
.psych-topics h3    { font-size: .75rem; font-weight: 600; color: var(--text-muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.pt-item            { display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 300; color: var(--text-muted); padding: 10px 0; border-bottom: 1px solid var(--border); }
.pt-item i          { color: var(--accent); font-size: .75rem; width: 16px; }

/* ===== PROJECTS ===== */
#projects           { background: var(--bg); position: relative; overflow: hidden; }
#projects::before   { content: ''; position: absolute; bottom: -100px; left: -100px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(201,168,108,.06) 0%, transparent 65%); pointer-events: none; }

.projects-grid      { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; position: relative; z-index: 1; }
.project-card       { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: all .25s; }
.project-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-card); }

.project-img              { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-3); position: relative; }
.project-img img          { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-card:hover .project-img img { transform: scale(1.04); }

.project-tag-badge        { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: .6rem; font-weight: 500; color: var(--bg); background: var(--accent); border-radius: 5px; padding: 3px 8px; letter-spacing: .08em; }
.project-tag-badge.purple { background: var(--accent-2); }
.project-tag-badge.cyan   { background: #22D3EE; color: #0C0C10; }

.project-info       { padding: 20px; }
.project-info h4    { font-size: .95rem; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.project-info p     { font-size: .78rem; font-weight: 300; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }

/* Tech tags on project cards */
.proj-tech-row      { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.proj-tech          { font-family: var(--font-mono); font-size: .6rem; color: var(--text-faint); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; letter-spacing: .04em; }

.btn-project        { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 500; color: var(--accent); transition: gap .2s; }
.btn-project i      { font-size: .7rem; }
.btn-project:hover  { gap: 10px; }

/* ===== CONTACT ===== */
#contact         { background: var(--bg-2); position: relative; overflow: hidden; }
#contact::before { content: ''; position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(201,168,108,.07) 0%, transparent 65%); pointer-events: none; }

.contact-socials-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 14px; max-width: 900px; margin: 0 auto 28px;
  position: relative; z-index: 1;
}

.contact-social-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px 18px 24px;
  transition: all .28s; cursor: pointer;
  position: relative; overflow: hidden;
}
.contact-social-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .28s;
}
.contact-social-card:hover         { border-color: rgba(201,168,108,.28); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.25); }
.contact-social-card:hover::before { opacity: 1; }

.csc-icon         { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; border: 1px solid; transition: transform .28s; }
.contact-social-card:hover .csc-icon { transform: scale(1.08); }
.csc-label        { font-size: .8rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.csc-handle       { font-family: var(--font-mono); font-size: .65rem; color: var(--text-muted); letter-spacing: .03em; }
.csc-arrow        { font-size: .7rem; color: var(--text-faint); transition: color .2s, transform .2s; }
.contact-social-card:hover .csc-arrow { color: var(--accent); transform: translate(2px,-2px); }

.contact-availability {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .8rem; font-weight: 300; color: var(--text-muted);
  padding: 14px 24px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 100px; max-width: 500px; margin: 0 auto;
  position: relative; z-index: 1;
}
.avail-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; animation: pulse-dot 2s ease-in-out infinite; flex-shrink: 0; }

/* ===== FOOTER ===== */
footer               { background: var(--bg); border-top: 1px solid var(--border); padding: 40px 0 32px; }
.footer-inner        { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
.footer-brand .logo  { font-family: var(--font-mono); font-size: .85rem; color: var(--accent); margin-bottom: 6px; }
.footer-brand p      { font-size: .75rem; color: var(--text-faint); }
.footer-socials      { display: flex; gap: 8px; }
.footer-socials a    { width: 38px; height: 38px; border-radius: 9px; background: var(--bg-3); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .85rem; color: var(--text-muted); transition: all .2s; }
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom       { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 8px; }
.footer-bottom span  { font-size: .75rem; color: var(--text-faint); }

/* ===== QUOTE FAB — bottom LEFT ===== */
.quote-fab           { position: fixed; bottom: 28px; left: 28px; z-index: 500; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: .9rem; cursor: pointer; box-shadow: 0 4px 20px rgba(201,168,108,.4); transition: transform .2s; }
.quote-fab:hover     { transform: scale(1.08); }
.quote-popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 600; display: none; align-items: center; justify-content: center; padding: 20px; }
.quote-popup-overlay.open { display: flex; }
.quote-popup-box     { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 36px; max-width: 420px; width: 100%; position: relative; }
.quote-popup-close   { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .8rem; transition: all .2s; }
.qm                  { font-family: var(--font-display); font-size: 2.5rem; color: var(--accent); line-height: 1; margin-bottom: 8px; opacity: .6; }
.quote-popup-box p   { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--text); line-height: 1.6; margin-bottom: 16px; }
.quote-popup-box .author { font-family: var(--font-mono); font-size: .68rem; color: var(--accent); letter-spacing: .08em; }

/* ===== TUX FAB — bottom RIGHT ===== */
.tux-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 500;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--bg-card); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: fixed;
}
.tux-fab:hover {
  transform: scale(1.1) rotate(-6deg);
  border-color: var(--accent);
  box-shadow: 0 6px 32px rgba(201,168,108,.3);
}
.tux-svg { width: 38px; height: 38px; display: block; }
/* Green pulse ring */
.tux-pulse {
  position: absolute; top: -4px; right: -4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #4ADE80;
  border: 2px solid var(--bg);
  animation: tux-ping 2.5s ease-in-out infinite;
}
@keyframes tux-ping {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: .6; }
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
  position: fixed; bottom: 100px; right: 24px; z-index: 550;
  width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transform: translateY(20px) scale(.97);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s ease;
  max-height: 520px;
}
.chat-widget.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

/* Chat header */
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-header-left  { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-glow); border: 1px solid rgba(201,168,108,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1rem;
}
.chat-header-name   { font-size: .88rem; font-weight: 600; color: var(--text); }
.chat-header-status { display: flex; align-items: center; gap: 5px; font-size: .68rem; color: var(--text-muted); margin-top: 2px; }
.chat-online-dot    { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; flex-shrink: 0; }
.chat-close {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; font-size: .75rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.chat-close:hover { color: var(--text); border-color: var(--border-hover); }

/* Messages */
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }

.chat-msg       { display: flex; flex-direction: column; max-width: 85%; }
.chat-msg.ai    { align-self: flex-start; align-items: flex-start; }
.chat-msg.user  { align-self: flex-end; align-items: flex-end; }

.chat-bubble {
  padding: 10px 14px; border-radius: 14px;
  font-size: .82rem; font-weight: 300; line-height: 1.55;
}
.chat-msg.ai .chat-bubble {
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text); border-bottom-left-radius: 4px;
}
.chat-msg.ai .chat-bubble strong { color: var(--accent); font-weight: 500; }
.chat-msg.user .chat-bubble {
  background: var(--accent); color: var(--bg);
  border-bottom-right-radius: 4px;
  font-weight: 400;
}
.chat-time { font-size: .6rem; color: var(--text-faint); margin-top: 4px; }

/* Typing indicator */
.typing-bubble {
  display: flex; align-items: center; gap: 4px;
  padding: 12px 16px; background: var(--bg-3);
  border: 1px solid var(--border); border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.typing-bubble span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint);
  animation: bounce .9s ease-in-out infinite;
}
.typing-bubble span:nth-child(2) { animation-delay: .15s; }
.typing-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%,80%,100% { transform: translateY(0); }
  40%          { transform: translateY(-6px); background: var(--accent); }
}

/* Suggestions */
.chat-suggestions {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 16px 12px; flex-shrink: 0;
}
.chat-suggestion {
  font-size: .72rem; font-weight: 400;
  color: var(--accent); border: 1px solid rgba(201,168,108,.28);
  background: var(--accent-glow); border-radius: 20px;
  padding: 5px 12px; cursor: pointer;
  transition: all .2s; white-space: nowrap;
  font-family: var(--font-body);
}
.chat-suggestion:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* Input row */
.chat-input-row {
  display: flex; gap: 8px; padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-3); flex-shrink: 0;
}
.chat-input {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
  font-family: var(--font-body); font-size: .82rem;
  font-weight: 300; color: var(--text); outline: none;
  transition: border-color .2s;
}
.chat-input::placeholder { color: var(--text-faint); }
.chat-input:focus        { border-color: var(--accent); }
.chat-send {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent); color: var(--bg);
  border: none; cursor: pointer; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s, transform .2s; flex-shrink: 0;
}
.chat-send:hover    { opacity: .88; transform: scale(1.05); }
.chat-send:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* Mobile chat widget */
@media (max-width: 480px) {
  .chat-widget {
    right: 12px; left: 12px; width: auto;
    bottom: 96px;
  }
  .tux-fab { right: 16px; bottom: 20px; }
  .quote-fab { left: 16px; bottom: 20px; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 768px) {
  .section              { padding: 72px 0; }
  .nav-links            { display: none; }
  .hamburger            { display: flex; }
  .hero-inner           { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-right           { order: -1; }
  .avatar-wrap          { width: 260px; height: 290px; margin: 0 auto; }
  .hero-desc            { margin: 0 auto 32px; }
  .hero-stats-row       { justify-content: center; }
  .hero-cta             { justify-content: center; }
  .about-grid           { grid-template-columns: 1fr; gap: 40px; }
  .about-mini-stats     { grid-template-columns: repeat(2,1fr); }
  .skills-grid          { grid-template-columns: 1fr 1fr; }
  .tools-grid           { grid-template-columns: repeat(2,1fr); }
  .startup-card         { grid-template-columns: 1fr; max-width: 480px; }
  .startup-left         { border-right: none; border-bottom: 1px solid var(--border); padding: 36px 24px; }
  .startup-right        { padding: 32px 24px; }
  .psych-grid           { grid-template-columns: 1fr; }
  .projects-grid        { grid-template-columns: repeat(2,1fr); }
  .contact-socials-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner         { flex-direction: column; align-items: flex-start; }
  .footer-bottom        { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .skills-grid          { grid-template-columns: 1fr; }
  .tools-grid           { grid-template-columns: 1fr; }
  .projects-grid        { grid-template-columns: 1fr; }
  .startup-features     { grid-template-columns: 1fr; }
  .contact-socials-grid { grid-template-columns: 1fr 1fr; }
  .hero-name            { font-size: clamp(2.8rem,10vw,3.5rem); }
  .avatar-wrap          { width: 220px; height: 240px; }
  .btn                  { font-size: .8rem; padding: 11px 18px; }
  .startup-right        { padding: 24px 20px; }
  .startup-left         { padding: 28px 20px; }
  .csc-icon             { width: 46px; height: 46px; font-size: 1.3rem; }
}