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

:root {
  --bg: #09090b;
  --bg-surface: rgba(24, 24, 27, 0.6);
  --bg-surface-solid: #18181b;
  --text-main: #fafafa;
  --text-muted: #a1a1aa;
  --accent: #06b6d4;
  /* Cyan */
  --accent-secondary: #ec4899;
  /* Pink */
  --accent-glow: rgba(6, 182, 212, 0.4);
  --border: rgba(255, 255, 255, 0.08);
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* Background Gradients */
.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  filter: blur(100px);
  opacity: 0.5;
  z-index: -2;
  pointer-events: none;
}

.bg-glow-2 {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
  bottom: -200px;
  left: -200px;
  filter: blur(100px);
  opacity: 0.5;
  z-index: -2;
  pointer-events: none;
}

#glcanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s;
  z-index: 9999;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--text-main);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
  z-index: 10000;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  padding: 1rem 5%;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-main);
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Layout & Typography */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

section {
  padding: 120px 0;
  position: relative;
}

h1,
h2,
h3,
h4 {
  color: var(--text-main);
  line-height: 1.2;
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.highlight {
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Section */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 800px;
}

.hero-mono {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  display: block;
}

.hero-content h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.typewriter-wrapper {
  min-height: 48px;
}

.typewriter {
  font-family: var(--font-mono);
  color: var(--accent-secondary);
  border-right: 2px solid var(--accent-secondary);
  padding-right: 5px;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Shared Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: none;
}

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

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--border);
  color: var(--text-main);
  border-color: var(--text-main);
  box-shadow: none;
}

/* Cards & Glassmorphism */
.card {
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  position: relative;
  width: 100%;
  border-radius: 16px;
}

.about-img img {
  width: 100%;
  border-radius: 16px;
  z-index: 2;
  position: relative;
  filter: grayscale(20%);
  transition: 0.5s;
}

.about-img:hover img {
  filter: grayscale(0%);
}

.about-img::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
  border-radius: 18px;
  z-index: 1;
  opacity: 0.5;
  filter: blur(15px);
  transition: 0.5s;
}

.about-img:hover::before {
  opacity: 0.8;
  filter: blur(20px);
}

/* Skills Progress Bars */
.skill-item {
  margin-bottom: 1.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.progress-bg {
  width: 100%;
  height: 6px;
  background: var(--bg-surface-solid);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  width: 0;
  transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Timeline Setup */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border);
  margin-top: 3rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 4rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.6rem;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 4px solid var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-date {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.timeline-title {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.timeline-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
  font-family: var(--font-mono);
  opacity: 0.8;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Tech Pills */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: 0.3s;
}

.tech-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(6, 182, 212, 0.1);
}

/* Ed & Certs Grid */
.ed-certs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.ec-card {
  padding: 2rem;
  border-left: 3px solid var(--accent);
}

.ec-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.ec-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info div {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.contact-info i {
  color: var(--accent);
  font-size: 1.5rem;
  width: 30px;
  text-align: center;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 1.2rem;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 8px;
  font-family: var(--font-sans);
  transition: 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 15px var(--accent-glow);
}

.input-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: 0.8s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: 0.8s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 900px) {

  .about-grid,
  .ed-certs,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2.2rem;
  }

  nav .nav-links {
    display: none;
  }
}