/* ════════════════════════════════════════
   PORTFOLIO — STYLE.CSS
   Theme: Power (#C3D809) + Slides (#222022)
   ════════════════════════════════════════ */

:root {
  /* ── Palette ── */
  --bg:        #222022;          /* dark slide background */
  --bg2:       #2A282B;          /* subtle alternate dark */
  --surface:   #29252A;          /* dark card surface */
  --surface2:  #302B31;          /* stronger surface tone */
  --border:    rgba(195,216,9,0.18);

  --accent:    #C3D809;          /* neon power green */
  --accent-dim:rgba(195,216,9,0.14);
  --accent-glow:rgba(195,216,9,0.28);
  --accent2:   #A8C402;          /* deep lime accent */

  --text:      #F2F5D5;          /* warm off-white text */
  --text-muted:#BEC78E;          /* muted light green */
  --text-dim:  #91966E;          /* soft dim green */

  --radius:    16px;
  --radius-sm: 10px;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ── RESET ── */
*, *::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-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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");
  opacity: 0.35;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(240,237,229,0.2); border-radius: 2px; }

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 6vw;
  backdrop-filter: blur(18px);
  background: rgba(34,32,34,0.92);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--text-muted); font-size: .9rem; font-weight: 500;
  text-decoration: none; letter-spacing: .5px;
  transition: color .25s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  height: 1px; width: 0; background: var(--accent);
  transition: width .3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 9px 22px; border-radius: 50px;
  border: 1px solid var(--accent); color: var(--accent);
  font-size: .85rem; font-weight: 500; cursor: pointer;
  background: transparent; transition: all .3s;
  font-family: var(--font-body);
  text-decoration: none;
}
.nav-cta:hover {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ══════════════════════════════
   SHARED SECTION STYLES
══════════════════════════════ */
section { position: relative; z-index: 1; padding: 110px 6vw; }

.section-label {
  font-size: .75rem; font-weight: 600; letter-spacing: 3px;
  color: var(--accent2); text-transform: uppercase; margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1;
  color: var(--text); margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem; color: var(--text-muted); max-width: 520px;
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: 120px;
  overflow: hidden;
}

/* Grid lines */
#hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(240,237,229,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,237,229,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Radial glow */
#hero::after {
  content: '';
  position: absolute; top: 10%; left: -10%; z-index: 0;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(195,216,9,0.20) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 50px;
  border: 1px solid var(--border);
  background: rgba(240,237,229,0.05);
  font-size: .78rem; color: var(--accent); font-weight: 500;
  margin-bottom: 28px;
  animation: fadeUp .8s ease both;
}
.hero-badge span.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 6px var(--accent2);
  animation: pulse 2s ease infinite;
}

.hero-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.0;
  letter-spacing: -2px; margin-bottom: 8px;
  animation: fadeUp .8s .1s ease both;
}
.hero-name em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: 1.1rem; color: var(--text-muted); font-weight: 300;
  margin-bottom: 20px; letter-spacing: 1px;
  animation: fadeUp .8s .2s ease both;
}

.hero-tagline {
  font-size: 1rem; color: var(--text-dim); max-width: 420px;
  margin-bottom: 40px; line-height: 1.7;
  animation: fadeUp .8s .3s ease both;
}

.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeUp .8s .4s ease both;
}

/* ── Buttons ── */
.btn-primary {
  padding: 14px 30px; border-radius: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--bg); font-weight: 600; font-size: .9rem;
  border: none; cursor: pointer; font-family: var(--font-body);
  transition: all .3s; text-decoration: none; display: inline-block;
  box-shadow: 0 0 30px rgba(240,237,229,0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(240,237,229,0.35);
}

.btn-outline {
  padding: 14px 30px; border-radius: 50px;
  border: 1px solid var(--border); color: var(--text);
  font-weight: 500; font-size: .9rem; background: var(--surface);
  cursor: pointer; font-family: var(--font-body);
  transition: all .3s; text-decoration: none; display: inline-block;
}
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px);
}

/* ── Hero Visual ── */
.hero-visual {
  position: relative; z-index: 2; display: flex; justify-content: center;
  animation: fadeIn 1s .5s ease both;
}

.avatar-wrap { position: relative; width: 340px; height: 340px; }

.avatar-ring {
  position: absolute; inset: -12px; border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out; mask-composite: exclude;
  animation: spinRing 8s linear infinite;
}
.avatar-ring-2 {
  position: absolute; inset: -28px; border-radius: 50%;
  border: 1px solid rgba(240,237,229,0.08);
  animation: spinRing 12s linear infinite reverse;
}
.avatar-img {
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, var(--surface2) 0%, #003330 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 7rem; overflow: hidden;
  box-shadow: 0 0 60px rgba(0,70,67,0.5);
}
.avatar-img img { width: 100%; height: 100%; object-fit: cover; }

/* Floating chips */
.float-chip {
  position: absolute; padding: 8px 14px; border-radius: 50px;
  background: var(--surface2); border: 1px solid var(--border);
  font-size: .75rem; font-weight: 600; color: var(--accent);
  white-space: nowrap; backdrop-filter: blur(10px);
  animation: float 3s ease-in-out infinite;
}
.float-chip:nth-child(2) { top: 10%; right: -30px; animation-delay: 0s; }
.float-chip:nth-child(3) { bottom: 20%; left: -40px; animation-delay: 1s; }
.float-chip:nth-child(4) { top: 50%; right: -50px; animation-delay: 2s; }

.avatar-glow {
  position: absolute; inset: -30px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,237,229,0.06) 0%, transparent 70%);
}

/* ══════════════════════════════
   STATS BAR
══════════════════════════════ */
.stats-bar {
  position: relative; z-index: 1;
  display: flex; justify-content: center; gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.stats-bar::before {
  content: ''; position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(240,237,229,0.04), transparent);
  animation: shimmer 4s ease infinite;
}
.stat-item {
  flex: 1; padding: 30px 20px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}
.stat-label { font-size: .78rem; color: var(--text-dim); margin-top: 6px; letter-spacing: 1px; }

/* ══════════════════════════════
   ABOUT
══════════════════════════════ */
#about {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  position: relative; overflow: hidden;
}
.about-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), transparent);
}
.about-quote {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--accent); margin-bottom: 16px; line-height: 1.3;
}
.about-bio {
  color: var(--text-muted); font-size: .95rem; line-height: 1.8; margin-bottom: 28px;
}
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.about-tag {
  padding: 5px 14px; border-radius: 50px;
  border: 1px solid var(--border); font-size: .78rem; color: var(--text-dim);
  background: var(--surface2);
}

/* Terminal */
.terminal {
  background: #F4F8FF; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  font-family: 'Courier New', monospace; font-size: .82rem;
  margin-top: 20px;
}
.terminal-bar { display: flex; gap: 6px; margin-bottom: 16px; }
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot:nth-child(1) { background: #ff5f57; }
.t-dot:nth-child(2) { background: #ffbd2e; }
.t-dot:nth-child(3) { background: #28c840; }
.t-line { margin: 5px 0; }
.t-green { color: #28c840; }
.t-accent { color: var(--accent); }
.t-muted { color: var(--text-dim); }
.t-white { color: var(--text); }
.t-cursor {
  display: inline-block; width: 8px; height: 14px;
  background: var(--accent); animation: blink 1s step-end infinite;
  vertical-align: middle;
}

/* ══════════════════════════════
   SKILLS
══════════════════════════════ */
#skills { background: var(--bg2); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px; margin-top: 48px;
}
.skill-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px;
  text-align: center; cursor: default;
  transition: all .3s; position: relative; overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(240,237,229,0.05), transparent);
  opacity: 0; transition: opacity .3s;
}
.skill-card:hover {
  border-color: rgba(240,237,229,0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.skill-card:hover::before { opacity: 1; }
.skill-icon { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.skill-name {
  font-family: var(--font-display); font-size: .95rem; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.skill-bar-wrap { height: 3px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.skill-bar {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 8px rgba(240,237,229,0.3);
  width: 0; transition: width 1.2s cubic-bezier(.4,0,.2,1) .2s;
}
.skill-card.visible .skill-bar { width: var(--pct); }
.skill-pct { font-size: .7rem; color: var(--text-dim); margin-top: 6px; }

/* ══════════════════════════════
   PROJECTS
══════════════════════════════ */
.projects-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .35s;
}
.project-card:hover {
  border-color: rgba(240,237,229,0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 30px rgba(240,237,229,0.05);
}
.project-preview {
  height: 180px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.project-preview .preview-bg {
  position: absolute; inset: 0; transition: transform .4s ease;
}
.project-preview .preview-bg img.project-preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.project-card:hover .preview-bg { transform: scale(1.05); }
.project-preview .preview-overlay {
  position: absolute; inset: 0;
  background: rgba(0,30,28,0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
  cursor: pointer;
}
.project-card:hover .preview-overlay { opacity: 1; }
.preview-eye {
  width: 48px; height: 48px; background: rgba(240,237,229,0.12);
  border: 1px solid var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; backdrop-filter: blur(10px);
}
.project-tag-bar { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.project-tag {
  padding: 3px 10px; border-radius: 50px;
  background: rgba(0,46,44,0.8); backdrop-filter: blur(10px);
  font-size: .7rem; color: var(--accent); border: 1px solid var(--border);
}
.project-body { padding: 24px; }
.project-title {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 8px;
}
.project-desc {
  font-size: .88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px;
}
.project-actions { display: flex; gap: 10px; }

.btn-sm {
  padding: 8px 18px; border-radius: 50px; font-size: .8rem; font-weight: 500;
  cursor: pointer; transition: all .25s; font-family: var(--font-body);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.btn-sm-primary {
  background: rgba(240,237,229,0.1); border: 1px solid rgba(240,237,229,0.2);
  color: var(--accent);
}
.btn-sm-primary:hover { background: var(--accent); color: var(--bg); }
.btn-sm-ghost { border: 1px solid var(--border); color: var(--text-muted); background: transparent; }
.btn-sm-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Project preview bg palettes — all forest/earth toned now */
.prev-1 { background: linear-gradient(135deg, #002e2c, #004643); }
.prev-2 { background: linear-gradient(135deg, #1a1208, #2c1f0d); }
.prev-3 { background: linear-gradient(135deg, #003530, #002a26); }
.prev-4 { background: linear-gradient(135deg, #2c2008, #1f1508); }
.prev-5 { background: linear-gradient(135deg, #002b28, #001e1c); }
.prev-6 { background: linear-gradient(135deg, #1a1a0d, #14140a); }

.preview-mock {
  width: 80%; margin: 0 auto;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 12px;
}
.preview-mock-bar { height: 6px; border-radius: 3px; margin-bottom: 8px; background: rgba(240,237,229,0.15); }
.preview-mock-line { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.07); margin-bottom: 6px; }
.preview-mock-line:last-child { width: 60%; }

/* ══════════════════════════════
   CONTACT
══════════════════════════════ */
#contact { background: var(--bg2); }
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 80px; margin-top: 60px;
}
.contact-info h3 {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800;
  margin-bottom: 16px;
}
.contact-info p { color: var(--text-muted); font-size: .95rem; line-height: 1.7; margin-bottom: 36px; }
.social-links { display: flex; flex-direction: column; gap: 12px; }
.social-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  text-decoration: none; color: var(--text-muted); font-size: .9rem;
  transition: all .3s;
}
.social-link:hover {
  border-color: rgba(240,237,229,0.25); color: var(--accent);
  transform: translateX(6px);
}
.social-link .social-icon {
  font-size: 1.2rem; width: 36px; height: 36px; border-radius: 8px;
  background: var(--surface2); display: flex; align-items: center; justify-content: center;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: .78rem; font-weight: 500; color: var(--text-muted); letter-spacing: .5px; }
.form-input, .form-textarea {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  color: var(--text); font-family: var(--font-body); font-size: .9rem;
  transition: all .3s; resize: none; outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-input:focus, .form-textarea:focus {
  border-color: rgba(240,237,229,0.35);
  background: var(--surface2);
  box-shadow: 0 0 0 3px rgba(240,237,229,0.05);
}
.form-textarea { min-height: 140px; }
.form-submit {
  padding: 16px 36px; border-radius: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--bg); font-weight: 700; font-size: .95rem;
  border: none; cursor: pointer; font-family: var(--font-display);
  transition: all .3s; align-self: flex-start;
  box-shadow: 0 0 30px rgba(240,237,229,0.15);
  letter-spacing: .5px;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(240,237,229,0.28);
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 30px 6vw;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg);
}
footer p { font-size: .82rem; color: var(--text-dim); }
.footer-love { color: var(--accent); }

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}
@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes shimmer {
  to { left: 200%; }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes bar1 {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(.4); }
}

/* ══════════════════════════════
   SCROLL REVEAL
══════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 860px) {
  #hero { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; margin: 0 auto; }
  .avatar-wrap { width: 240px; height: 240px; }
  .hero-tagline { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  #about { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .projects-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-bottom: 1px solid var(--border); }
  nav { padding: 16px 5vw; }
  .nav-links { display: none; }
  .float-chip { display: none; }
  footer { flex-direction: column; gap: 10px; text-align: center; }
}
