/* ═══════════════════════════════════════════════════════════
   PORTFOLIO.CSS  —  Shubham Mali
   Premium dark DevOps portfolio — shared across all pages
   ═══════════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
img  { max-width:100%; display:block; }

/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:          #06060f;
  --bg-raised:   #0b0b18;
  --bg-card:     rgba(255,255,255,0.028);

  /* Borders */
  --border:      rgba(255,255,255,0.08);
  --border-hi:   rgba(139,92,246,0.5);

  /* Brand colours */
  --primary:        #6D28D9;
  --primary-lt:     #A78BFA;
  --primary-glow:   rgba(109,40,217,0.35);
  --violet:         #7C3AED;
  --cyan:           #06B6D4;
  --cyan-lt:        #67E8F9;
  --emerald:        #10B981;
  --emerald-lt:     #6EE7B7;
  --amber:          #F59E0B;
  --rose:           #F43F5E;

  /* Text */
  --text:    #F1F5F9;
  --muted:   #94A3B8;
  --subtle:  #475569;

  /* Shape */
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ─────────────────────────────────────────────
   BASE
───────────────────────────────────────────── */
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ─────────────────────────────────────────────
   SCROLL PROGRESS BAR
───────────────────────────────────────────── */
#scrollBar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  z-index: 9999; transition: width 0.08s linear;
  box-shadow: 0 0 8px var(--primary-glow);
}

/* ─────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(6,6,15,0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}
nav.scrolled {
  background: rgba(6,6,15,0.96);
  border-bottom-color: rgba(255,255,255,0.1);
}

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex; align-items: center; gap: 1rem;
}
nav.scrolled .nav-inner { padding: 0.55rem 2rem; }

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; flex-shrink: 0; margin-right: auto;
}
.nav-logo-badge {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.85rem; color: white;
  letter-spacing: -1px;
  box-shadow: 0 4px 12px rgba(109,40,217,0.4);
}
.nav-logo-name { font-weight: 700; font-size: 0.95rem; color: var(--text); letter-spacing: -0.01em; }

/* Links */
.nav-links { display: flex; align-items: center; gap: 0.15rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-weight: 500; font-size: 0.875rem;
  padding: 0.45rem 0.8rem; border-radius: 8px;
  transition: all 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 1.5px; background: var(--primary-lt); border-radius: 1px;
  transition: all 0.2s;
}
.nav-links a:hover          { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a:hover::after,
.nav-links a.active::after  { left: 0.8rem; right: 0.8rem; }
.nav-links a.active         { color: var(--primary-lt); }

/* CTA button */
.nav-cta { flex-shrink: 0; margin-left: 0.5rem; }
.btn-hire {
  background: linear-gradient(135deg, var(--violet), var(--primary));
  color: white !important; text-decoration: none;
  padding: 0.45rem 1.15rem; border-radius: 8px;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.01em;
  display: inline-block; transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(109,40,217,0.4);
}
.btn-hire:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(109,40,217,0.55);
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column;
  justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px; z-index: 10;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--muted); border-radius: 2px;
  transition: all 0.28s cubic-bezier(.23,1,.32,1);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); background: var(--primary-lt); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); background: var(--primary-lt); }

/* ─────────────────────────────────────────────
   CONTAINER
───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ─────────────────────────────────────────────
   SECTION HEADER
───────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary-lt);
  background: rgba(109,40,217,0.12);
  border: 1px solid rgba(109,40,217,0.25);
  padding: 0.28rem 0.9rem; border-radius: 50px; margin-bottom: 0.9rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; letter-spacing: -0.035em; margin-bottom: 0.7rem;
}
.section-header p { color: var(--muted); font-size: 0.95rem; max-width: 480px; margin: 0 auto; }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.5rem; border-radius: var(--radius);
  font-weight: 700; font-size: 0.88rem; text-decoration: none;
  border: none; cursor: pointer; transition: all 0.25s;
  white-space: nowrap; letter-spacing: 0.01em; font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--primary));
  color: white;
  box-shadow: 0 4px 18px rgba(109,40,217,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(109,40,217,0.55); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover { border-color: rgba(139,92,246,0.5); color: var(--primary-lt); transform: translateY(-2px); }

/* ─────────────────────────────────────────────
   BADGES/CHIPS
───────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 0.18rem 0.6rem;
  border-radius: 6px; font-size: 0.68rem; font-weight: 600;
  background: rgba(255,255,255,0.05); color: var(--muted);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none; transition: all 0.2s;
}
.badge:hover { border-color: rgba(139,92,246,0.4); color: var(--primary-lt); }
.badge-violet  { background: rgba(109,40,217,0.14); color: var(--primary-lt);  border-color: rgba(109,40,217,0.28); }
.badge-cyan    { background: rgba(6,182,212,0.12);  color: var(--cyan-lt);     border-color: rgba(6,182,212,0.28); }
.badge-emerald { background: rgba(16,185,129,0.12); color: var(--emerald-lt);  border-color: rgba(16,185,129,0.28); }
.badge-amber   { background: rgba(245,158,11,0.12); color: #FCD34D;            border-color: rgba(245,158,11,0.28); }
.badge-rose    { background: rgba(244,63,94,0.12);  color: #FDA4AF;            border-color: rgba(244,63,94,0.28); }

/* ─────────────────────────────────────────────
   UTILITIES
───────────────────────────────────────────── */
.grad-text {
  background: linear-gradient(135deg, #fff 0%, var(--primary-lt) 50%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.dot-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.orb-violet { background: rgba(109,40,217,0.2); }
.orb-cyan   { background: rgba(6,182,212,0.13); }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1.25rem;
}
.footer-left p { color: var(--muted); font-size: 0.83rem; }
.footer-left span { color: var(--primary-lt); }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); text-decoration: none; font-size: 0.88rem;
  transition: all 0.22s;
}
.footer-social a:hover {
  background: linear-gradient(135deg, var(--violet), var(--primary));
  color: white; border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(109,40,217,0.4);
}

/* ─────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink    { 50% { opacity: 0; } }
@keyframes floatY   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes gradBorder {
  0%,100% { border-color: rgba(109,40,217,0.28); }
  50%     { border-color: rgba(6,182,212,0.35); }
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(109,40,217,0.4); }
  50%     { box-shadow: 0 0 0 8px rgba(109,40,217,0); }
}
@keyframes shimmer {
  0%   { background-position:-200% center; }
  100% { background-position: 200% center; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll-reveal utility (JS adds .revealed class) */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(.22,.61,.36,1),
              transform 0.65s cubic-bezier(.22,.61,.36,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Page load animations */
.anim-1 { animation: fadeInUp 0.6s 0.00s ease both; }
.anim-2 { animation: fadeInUp 0.6s 0.10s ease both; }
.anim-3 { animation: fadeInUp 0.6s 0.20s ease both; }
.anim-4 { animation: fadeInUp 0.6s 0.30s ease both; }
.anim-5 { animation: fadeInUp 0.6s 0.40s ease both; }

/* ═══════════════════════════════════════════
   RESPONSIVE: TABLET  ≤ 1024px
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .container { padding: 0 1.5rem; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE: MOBILE  ≤ 768px
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav */
  .hamburger { display: flex; }
  .nav-cta   { display: none; }

  .nav-links {
    display: none; list-style: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(6,6,15,0.98);
    backdrop-filter: blur(24px);
    flex-direction: column; align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 999;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  }
  .nav-links.open { display: flex; animation: fadeInUp 0.22s ease both; }
  .nav-links a    { padding: 0.8rem 1rem; font-size: 0.95rem; border-radius: 10px; }
  .nav-links a::after { display: none; }
  .nav-links a:hover  { background: rgba(109,40,217,0.12); color: var(--primary-lt); }
  .nav-links a.active { background: rgba(109,40,217,0.1); }

  /* Shared */
  .container { padding: 0 1.25rem; }
  .section-header { margin-bottom: 2.25rem; }
  .section-header h2 { font-size: 1.75rem; }
  .section-header p  { font-size: 0.88rem; }

  /* Buttons */
  .btn { padding: 0.65rem 1.2rem; font-size: 0.85rem; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; gap: 1rem; }
  .footer-social { justify-content: center; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE: SMALL PHONE  ≤ 480px
═══════════════════════════════════════════ */
@media (max-width: 480px) {
  .container { padding: 0 0.875rem; }
  .nav-inner  { padding: 0.8rem 1rem; }
  .nav-logo-name { font-size: 0.88rem; }
}
