/* ============================================
   PRADIP MARASINI — PORTFOLIO STYLES
   Aesthetic: Dark editorial / brutalist-refined
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --surface: #161616;
  --border: #242424;
  --text: #e8e3d9;
  --text-muted: #6b6560;
  --text-dim: #9a9490;
  --accent: #f0c040;
  --accent2: #e05a2b;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::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-mono);
  font-size: 15px;
  line-height: 1.7;
  cursor: none;
  overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ---- NOISE ---- */
.noise {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' 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.45;
}

/* ---- CURSOR ---- */
.cursor {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; z-index: 10000;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease), width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}
.cursor-trail {
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: fixed; z-index: 9998;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.12s var(--ease), top 0.12s var(--ease), width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0.5;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 20px; height: 20px; }

/* ---- NAV ---- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s;
}
#navbar.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.nav-links {
  list-style: none;
  display: flex; gap: 36px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 260px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240,192,64,0.06);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(240,192,64,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,192,64,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }

.hero-tag {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.2s forwards;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(54px, 9vw, 110px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-name .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s var(--ease) forwards;
}
.hero-name .line:nth-child(1) { animation-delay: 0.35s; }
.hero-name .line:nth-child(2) { animation-delay: 0.48s; }
.hero-name .accent { color: var(--accent); }

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 44px;
  min-height: 1.6em;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.65s forwards;
}
.cursor-blink { animation: blink 0.9s step-end infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.8s forwards;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: #0a0a0a;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none; cursor: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-back), box-shadow 0.2s;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent2);
  transform: translateX(-101%);
  transition: transform 0.3s var(--ease);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(240,192,64,0.25); }
.btn-primary span, .btn-primary { position: relative; }
.btn-primary.full-width { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease-back);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 48px;
  display: flex; align-items: center; gap: 16px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 1.1s forwards;
}
.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 60px; height: 1px;
  background: var(--border);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0% { left: -100%; } 100% { left: 100%; } }

/* ---- SECTIONS ---- */
.section {
  padding: 120px 48px;
  position: relative;
}
.section.alt { background: var(--bg-alt); }

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::after {
  content: '';
  flex: 1; max-width: 60px; height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 40px;
}
.section-title em { font-style: normal; color: var(--accent); }
.section-title.centered { text-align: center; }

/* ---- ABOUT ---- */
.about-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}
.about-image-wrap { position: relative; }
.about-image {
  width: 280px; height: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.avatar-placeholder {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
}
.about-image-border {
  position: absolute;
  top: 16px; left: 16px;
  width: 280px; height: 340px;
  border: 1px solid var(--accent);
  opacity: 0.3;
  z-index: -1;
  transition: transform 0.4s var(--ease);
}
.about-image-wrap:hover .about-image-border {
  transform: translate(6px, 6px);
}
.about-badge {
  position: absolute;
  bottom: -16px; right: -16px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.4); } 50% { box-shadow: 0 0 0 5px rgba(74,222,128,0); } }

.about-text p {
  color: var(--text-dim);
  margin-bottom: 16px;
  max-width: 520px;
}
.about-stats {
  display: flex; gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- SKILLS ---- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.skill-card {
  background: var(--surface);
  padding: 32px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.skill-card::before {
  content: attr(data-category);
  position: absolute;
  top: 16px; right: 16px;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.skill-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.skill-icon { font-size: 2rem; margin-bottom: 16px; }
.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.skill-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.skill-bar {
  height: 2px;
  background: var(--border);
  position: relative;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0;
  transition: width 1s var(--ease);
}

/* ---- PROJECTS ---- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.project-card.featured {
  grid-column: 1 / -1;
  background: var(--surface);
  border-color: rgba(240,192,64,0.2);
}
.project-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.project-card:hover::after { transform: scaleX(1); }
.project-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.project-tag {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(240,192,64,0.3);
  padding: 4px 10px;
  margin-bottom: 16px;
}
.project-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--border);
  position: absolute;
  top: 20px; right: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color 0.3s;
}
.project-card:hover .project-number { color: rgba(240,192,64,0.15); }
.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.project-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 480px;
}
.project-tech {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.project-tech span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--border);
  color: var(--text-dim);
  padding: 4px 10px;
}
.proj-link {
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: letter-spacing 0.3s;
}
.proj-link:hover { letter-spacing: 0.12em; }

/* ---- CONTACT ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-left p {
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 360px;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.contact-icon { font-size: 1rem; }

.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { position: relative; }
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 18px 16px 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  resize: none;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group label {
  position: absolute;
  top: 14px; left: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  pointer-events: none;
  transition: top 0.2s, font-size 0.2s, color 0.2s;
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: 5px;
  font-size: 0.62rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.form-success {
  display: none;
  color: #4ade80;
  font-size: 0.78rem;
  text-align: center;
  padding: 12px;
  border: 1px solid rgba(74,222,128,0.3);
  background: rgba(74,222,128,0.05);
}
.form-success.show { display: block; animation: fadeUp 0.4s var(--ease); }

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.footer-right { display: flex; gap: 24px; }
.footer-right a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-right a:hover { color: var(--accent); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; gap: 60px; }
  .about-image { width: 220px; height: 270px; }
  .about-image-border { width: 220px; height: 270px; }
}
@media (max-width: 768px) {
  #navbar { padding: 18px 24px; }
  .nav-links { gap: 20px; }
  .hero { padding: 100px 24px 60px; }
  .section { padding: 80px 24px; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: 1; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer { flex-direction: column; gap: 12px; text-align: center; padding: 24px; }
  .about-stats { flex-wrap: wrap; gap: 24px; }
}
