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

:root {
  --bg: #080810;
  --surface: #0f0f1a;
  --surface-hover: #16162a;
  --accent: #6c63ff;
  --accent-secondary: #ff6584;
  --accent-tertiary: #43e8d8;
  --text: #f0f0ff;
  --text-muted: #8888aa;
  --border: rgba(108, 99, 255, 0.15);
  --glow: rgba(108, 99, 255, 0.4);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 0 40px rgba(108, 99, 255, 0.25);
}

/* Base resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important; /* Force custom cursor */
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  opacity: 0.05;
  pointer-events: none;
  z-index: 999999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Cursor */
#cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.3s;
  mix-blend-mode: screen;
}

#cursor-ring {
  width: 36px; height: 36px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
  opacity: 0.6;
}

body.cursor-hover #cursor-ring {
  width: 60px; height: 60px;
  border-color: var(--accent-secondary);
  opacity: 1;
}
body.cursor-hover #cursor-dot {
  background: var(--accent-secondary);
  transform: translate(-50%, -50%) scale(1.5);
}

@media (hover: none) {
  #cursor-dot, #cursor-ring { display: none; }
  *, *::before, *::after { cursor: auto !important; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-secondary));
  border-radius: 3px;
}

/* Loading Bar */
#loading-bar {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-tertiary), var(--accent-secondary));
  z-index: 10000000;
  transition: width 0.4s ease, opacity 0.3s ease;
  box-shadow: 0 0 12px var(--glow);
}

/* Scroll Progress Bar (Pure CSS scroll timeline indicator) */
#scroll-progress {
  position: fixed;
  right: 0; top: 0;
  width: 3px;
  height: 100vh;
  background: linear-gradient(180deg, var(--accent), var(--accent-secondary));
  transform-origin: top;
  transform: scaleY(0);
  z-index: 9999;
}

@supports (animation-timeline: scroll()) {
  #scroll-progress {
    animation: grow-progress auto linear;
    animation-timeline: scroll(root);
  }
}

@keyframes grow-progress {
  to { transform: scaleY(1); }
}

/* Global Typography & Elements */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
}

h1.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: 0.9;
}

p {
  color: var(--text-muted);
  line-height: 1.6;
}

a {
  color: var(--accent-tertiary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent);
}

/* Header Navigation Bar */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(8, 8, 16, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  transition: padding 0.3s;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  text-shadow: 0 0 8px var(--accent);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  border-radius: 1px;
  box-shadow: 0 0 6px var(--accent);
}

/* Availability Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(67, 232, 216, 0.05);
  border: 1px solid rgba(67, 232, 216, 0.15);
  color: var(--accent-tertiary);
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-tertiary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-tertiary);
  animation: status-pulse 1.5s infinite alternate ease-in-out;
}

@keyframes status-pulse {
  0% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 3px var(--accent-tertiary); }
  100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px var(--accent-tertiary); }
}

/* Custom Grid layouts & Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--glow);
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
}
.btn.primary:hover {
  background: transparent;
  border-color: var(--accent);
}

.btn.secondary {
  background: transparent;
  border-color: var(--border);
}
.btn.secondary:hover {
  background: var(--surface-hover);
}

/* Pulsing Glowing Orb Signature */
.orb-container {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glowing-orb {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, rgba(108, 99, 255, 0.4) 40%, transparent 70%);
  filter: blur(10px);
  animation: orb-pulse 8s infinite alternate ease-in-out;
  position: relative;
}

.glowing-orb::after {
  content: "";
  position: absolute;
  top: 15%; left: 15%;
  width: 70%; height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-tertiary) 0%, rgba(67, 232, 216, 0.3) 50%, transparent 80%);
  animation: orb-float 6s infinite alternate ease-in-out;
}

@keyframes orb-pulse {
  0% { transform: scale(1); opacity: 0.6; filter: blur(10px) brightness(0.8); }
  100% { transform: scale(1.15); opacity: 0.95; filter: blur(15px) brightness(1.2); }
}

@keyframes orb-float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(15px, -15px); }
}

/* Skills Ticker / Marquee */
.marquee-container {
  overflow: hidden;
  width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  background: rgba(15, 15, 26, 0.3);
}

.marquee-content {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.marquee-item::before {
  content: "//";
  color: var(--accent-secondary);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Header & Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  background: rgba(15, 15, 26, 0.5);
  text-align: center;
}

footer p {
  font-size: 0.9rem;
}

/* Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--text) 30%, var(--accent) 70%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, var(--text) 30%, var(--accent-tertiary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile Hamburger Menu button */
.mobile-nav-toggle {
  display: none;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .header-nav {
    padding: 14px 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .status-badge {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px; height: 40px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
  }

  .mobile-nav-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(8, 8, 16, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 9998;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.85, 0, 0.15, 1);
  }

  .mobile-nav-overlay.open {
    transform: translateX(0);
  }

  .mobile-nav-overlay a {
    font-size: 2rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: -1px;
  }

  .mobile-nav-overlay a.active {
    color: var(--text);
    text-shadow: 0 0 20px var(--accent);
  }

  .mobile-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px; height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
  }
}

/* Project Cards styling */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 99, 255, 0.4);
  box-shadow: var(--shadow-accent);
}

.project-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #06060c;
  border-bottom: 1px solid var(--border);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card-image img {
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.project-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.project-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

@keyframes card-fade-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   NAV BRANDING
   ======================================== */
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 8px 20px !important;
  border-radius: var(--radius) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  text-shadow: none !important;
  border: 1px solid var(--accent) !important;
}
.nav-cta:hover {
  background: transparent !important;
  box-shadow: 0 0 16px var(--glow) !important;
}
.nav-cta::after { display: none !important; }

/* ========================================
   STATS COUNTER ROW
   ======================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 60px 0;
}

.stat-item {
  background: var(--surface);
  padding: 36px 24px;
  text-align: center;
  transition: background 0.3s;
}

.stat-item:hover { background: var(--surface-hover); }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: border-color 0.4s, box-shadow 0.4s;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: var(--shadow-accent);
}

.testimonial-quote {
  font-size: 3.5rem;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 12px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  font-style: italic;
  flex-grow: 1;
  margin-bottom: 28px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: white;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.testimonial-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   WHY HIRE ME — SERVICE PILLS
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.service-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.service-pill:hover {
  border-color: rgba(108, 99, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.service-pill-icon {
  width: 44px; height: 44px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.service-pill-body h3 {
  font-size: 1rem; font-weight: 600; margin-bottom: 6px;
}

.service-pill-body p {
  font-size: 0.875rem; line-height: 1.55;
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(108,99,255,0.12) 0%, rgba(67,232,216,0.06) 100%);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 80px 0 40px;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 36px;
}

/* Status availability badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(67, 232, 216, 0.05);
  border: 1px solid rgba(67, 232, 216, 0.2);
  color: var(--accent-tertiary);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-dot {
  width: 6px; height: 6px;
  background: var(--accent-tertiary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-tertiary);
  animation: status-pulse 1.5s infinite alternate ease-in-out;
}

@keyframes status-pulse {
  0%   { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--accent-tertiary); }
}

/* Responsive padding for fixed header */
.container { padding-top: 120px; padding-bottom: 80px; }

@media (max-width: 768px) {
  .container { padding-top: 100px; padding-bottom: 60px; }
  .cta-banner { padding: 48px 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   GLOBAL SHARED UTILITIES
   ======================================== */

/* Projects grid — shared between projects page and project-detail */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

/* Skill tag pill — used on about page */
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 20px;
  transition: border-color 0.3s, background 0.3s;
}
.skill-tag:hover {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.14);
}

/* Tag badge — used on project cards */
.tag-badge {
  display: inline-block;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
}

/* Hero responsive stacking */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr !important;
    text-align: center;
    padding-top: 20px;
  }
  .hero-section .hero-actions {
    justify-content: center;
  }
  .hero-right {
    display: none;
  }
  .hero-left p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Footer nav link hover */
footer a:hover {
  color: var(--text) !important;
}
