/* ============================================================
   JV Portfolio – Stylesheet
   Dark modern UI | Neon blue accent | Smooth animations
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg:          #080c14;
  --bg-2:        #0d1220;
  --bg-card:     #0f1623;
  --border:      rgba(0, 170, 255, 0.12);
  --border-hover:rgba(0, 170, 255, 0.35);
  --blue:        #00aaff;
  --blue-dim:    #0077cc;
  --blue-glow:   rgba(0, 170, 255, 0.15);
  --text:        #e8edf5;
  --text-muted:  #7a8aa0;
  --white:       #ffffff;
  --radius:      14px;
  --radius-sm:   8px;
  --transition:  0.3s ease;
  --font-body:   'Inter', sans-serif;
  --font-head:   'Space Grotesk', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Utility ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.mt-2 { margin-top: 2rem; }

.gradient-text {
  background: linear-gradient(135deg, #00aaff, #00e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  background: var(--blue-glow);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-sub { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #00aaff, #0077cc);
  color: #fff;
  box-shadow: 0 0 24px rgba(0, 170, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0, 170, 255, 0.5);
}

.btn-outline {
  border: 1.5px solid var(--blue);
  color: var(--blue);
  background: transparent;
}
.btn-outline:hover {
  background: var(--blue-glow);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}
.nav-logo .dot { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: linear-gradient(135deg, #00aaff, #0077cc) !important;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.9; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 4px;
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.18;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 12, 20, 0.5) 0%,
    rgba(8, 12, 20, 0.3) 50%,
    rgba(8, 12, 20, 0.95) 100%
  );
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,170,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,170,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--blue);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
  background: var(--blue-glow);
  animation: fadeDown 0.8s ease both;
}
.badge-dot {
  width: 8px; height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeUp 0.9s ease 0.1s both;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  animation: fadeUp 0.9s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeUp 0.9s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  animation: fadeUp 0.9s ease 0.4s both;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
  animation: fadeIn 1.5s ease 1s both;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 48px;
}

/* Photo */
.about-photo {
  position: relative;
  display: flex;
  justify-content: center;
}
.photo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(0,170,255,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.about-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  /* blend dark edges into background */
  mask-image: radial-gradient(ellipse 90% 95% at 50% 45%, black 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 95% at 50% 45%, black 55%, transparent 100%);
  filter: drop-shadow(0 0 32px rgba(0, 170, 255, 0.25));
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 16px;
}
.about-text strong { color: var(--text); }

/* Cards row */
.about-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}
.about-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 170, 255, 0.08);
}
.about-card-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.about-card h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.about-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 170, 255, 0.1);
}
.service-card:hover::before { opacity: 1; }

.service-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0, 170, 255, 0.08);
  line-height: 1;
  margin-bottom: 16px;
}
.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.service-card > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.service-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-list li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   TOOLS
   ============================================================ */
.tools { background: var(--bg-2); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

.tool-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all var(--transition);
  cursor: default;
}
.tool-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 170, 255, 0.1);
  background: rgba(0, 170, 255, 0.04);
}
.tool-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter var(--transition);
}
.tool-item:hover img { filter: brightness(1); }
.tool-item span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 170, 255, 0.1);
}

.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-glow);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
  width: fit-content;
}
.project-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.project-card > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 20px;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.project-stack span {
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 50px;
}
.project-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
}
.project-link:hover { opacity: 0.8; }

/* ============================================================
   WHY ME
   ============================================================ */
.whyme { background: var(--bg-2); }

.whyme-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.whyme-inner .section-title { margin-bottom: 48px; }

.whyme-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.whyme-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: all var(--transition);
}
.whyme-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 170, 255, 0.07);
}
.whyme-check {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #00aaff, #0077cc);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.whyme-item h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.whyme-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: 100px 0;
  background: radial-gradient(ellipse at center, rgba(0,170,255,0.08) 0%, transparent 70%),
              var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-content {
  text-align: center;
}
.cta-content .section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 16px;
}
.cta-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 36px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-left p {
  color: var(--text-muted);
  margin-bottom: 32px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.contact-icon { font-size: 1.1rem; }

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(122,138,160,0.5); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.1);
}
.form-group select option { background: var(--bg); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.85rem;
  color: var(--blue);
  text-align: center;
  min-height: 20px;
}

/* ============================================================
   SOCIAL LINKS
   ============================================================ */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-card);
  transition: all var(--transition);
}
.social-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-glow);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 170, 255, 0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-right .social-links {
  margin-top: 0;
}
.footer-right .social-btn {
  width: 34px;
  height: 34px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--blue); }

/* ============================================================
   CARD TILT – smooth transition out
   ============================================================ */
.service-card, .project-card, .about-card {
  transition: transform 0.15s ease, border-color var(--transition),
              box-shadow var(--transition);
}

/* ============================================================
   ANIMATED GRADIENT BORDER on hero badge
   ============================================================ */
@keyframes borderSpin {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-badge {
  background: linear-gradient(270deg, rgba(0,170,255,0.15), rgba(0,229,255,0.08), rgba(0,119,204,0.15));
  background-size: 300% 300%;
  animation: borderSpin 4s ease infinite;
}

/* ============================================================
   NEON GLOW PULSE on primary buttons
   ============================================================ */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,170,255,0.3); }
  50%       { box-shadow: 0 0 40px rgba(0,170,255,0.6), 0 0 80px rgba(0,170,255,0.2); }
}
.btn-primary {
  animation: glowPulse 3s ease-in-out infinite;
}
.btn-primary:hover {
  animation: none;
  box-shadow: 0 0 48px rgba(0,170,255,0.6);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.15); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .about-photo { max-width: 340px; margin: 0 auto; }

  .services-grid,
  .projects-grid { grid-template-columns: 1fr; }

  .about-cards-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Nav mobile */
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(8, 12, 20, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 20px;
    transition: right 0.35s ease;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; color: var(--text); }
  .hamburger { display: flex; z-index: 1001; }

  .services-grid,
  .projects-grid { grid-template-columns: 1fr; }

  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.4rem; }

  .footer-inner { flex-direction: column; text-align: center; }

  .contact-form { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .about-cards-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-divider { display: none; }
  .cta-actions { flex-direction: column; align-items: center; }
}
