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

:root {
  --bg-primary: #050505;
  --card-bg: rgba(17, 17, 17, 0.7);
  --text-primary: #ffffff;
  --text-secondary: #bdbdbd;
  --accent-color: #3b82f6;
  --accent-hover: #60a5fa;
  --border-color: rgba(255, 255, 255, 0.08);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 9999px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: #333;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  overflow-x: hidden;
}

/* Glassmorphism Styles */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.15);
}

.glass-nav {
  background: rgba(5, 5, 5, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

/* Gradients & Glows */
.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.20;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.1s ease-out;
}

.glow-blue {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
}

/* Custom Input Styling */
.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

/* Custom interactive active/hover states */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.active-nav-link::after {
  width: 100% !important;
}

.active-nav-link {
  color: var(--text-primary) !important;
}

/* Experience Timeline Specific */
.timeline-track-progress {
  transform-origin: top;
}

/* Custom text reveals for GSAP */
.char-reveal {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

/* Hide animations if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .gradient-blob {
    display: none !important;
  }
}

/* LIGHT MODE STYLES */
body.light-mode {
  --bg-primary: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.7);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-color: rgba(15, 23, 42, 0.08);
}

body.light-mode .glass-nav {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.05), inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode .timeline-role,
body.light-mode .timeline-body p strong,
body.light-mode .project-card-title {
  color: #0f172a !important;
}

body.light-mode h1 span.bg-clip-text {
  background-image: linear-gradient(to right, #0f172a, #1e293b, #3b82f6) !important;
}

body.light-mode .nav-link:hover,
body.light-mode .mobile-nav-link:hover {
  color: #0f172a !important;
}

body.light-mode .timeline-body,
body.light-mode .timeline-body li,
body.light-mode .project-card-description {
  color: #475569 !important;
}

body.light-mode .absolute.inset-0.bg-\[radial-gradient\(\#111111_1px\,transparent_1px\)\] {
  background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px) !important;
}

body.light-mode .border-white\/5,
body.light-mode .border-white\/8,
body.light-mode .border-white\/10 {
  border-color: rgba(15, 23, 42, 0.06) !important;
}

body.light-mode .bg-white\/5 {
  background-color: rgba(15, 23, 42, 0.03) !important;
}

body.light-mode .gradient-blob {
  opacity: 0.15;
  filter: blur(160px);
}

body.light-mode .timeline-item > div.rounded-full {
  background-color: var(--card-bg) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

/* Light mode project cards layout details */
body.light-mode .project-media {
  background-color: rgba(15, 23, 42, 0.03) !important;
  border-bottom-color: rgba(15, 23, 42, 0.06) !important;
}

body.light-mode .project-card-tags span {
  color: #0f172a !important;
  background-color: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .project-actions a,
body.light-mode .project-actions span {
  color: #475569 !important;
}

body.light-mode .project-actions a:hover {
  color: #3b82f6 !important;
}

body.light-mode .project-media svg text {
  fill: #0f172a !important;
}

body.light-mode .project-media svg text[fill="#ffffff"] {
  fill: #0f172a !important;
}

body.light-mode .project-media svg line[stroke="#ffffff"],
body.light-mode .project-media svg path[stroke="#ffffff"],
body.light-mode .project-media svg rect[stroke="#ffffff"] {
  stroke: #0f172a !important;
}

body.light-mode .project-media svg path[stroke^="rgba(255"],
body.light-mode .project-media svg line[stroke^="rgba(255"],
body.light-mode .project-media svg circle[stroke^="rgba(255"] {
  stroke: rgba(15, 23, 42, 0.15) !important;
}

body.light-mode .skill-badge {
  color: #0f172a !important;
  background-color: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .skill-badge:hover {
  border-color: rgba(59, 130, 246, 0.4) !important;
  background-color: rgba(59, 130, 246, 0.04) !important;
}
