:root {
  /* Dark Mode (Default) */
  --bg-primary: #050b14;
  --bg-secondary: #0d1522;
  --glass-bg: rgba(13, 21, 34, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-primary: #00d2ff;
  --accent-primary-rgb: 0, 210, 255;
  --accent-secondary: #3a7bd5;
  --glow: 0 0 25px rgba(0, 210, 255, 0.2);
  --line-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-primary: #0ea5e9;
  --accent-primary-rgb: 14, 165, 233;
  --accent-secondary: #1d4ed8;
  --glow: 0 10px 25px rgba(14, 165, 233, 0.1);
  --line-color: rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.glow-mesh {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, rgba(var(--accent-primary-rgb), 0.05) 0%, transparent 50%);
  pointer-events: none;
  animation: pulseMesh 15s infinite alternate;
}

@keyframes pulseMesh {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  transition: padding 0.3s ease, background 0.4s ease;
}

.navbar.scrolled {
  padding: 15px 0;
}

.nav-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 1px;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-item:hover {
  color: var(--accent-primary);
}

.theme-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: color 0.3s, background 0.3s;
}

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

[data-theme="dark"] .moon-icon {
  display: none;
}

[data-theme="light"] .sun-icon {
  display: none;
}

/* Main Wrapper */
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  padding-top: 100px;
}

/* Typography styles */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Sections */
section {
  padding: 50px 0;
  scroll-margin-top: 120px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 40px;
}

.section-num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-primary);
  font-size: 1.2rem;
  font-weight: 700;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 60px;
}

/* Hero Section */
.hero-section {
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 150px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.1);
  padding: 6px 15px;
  border-radius: 20px;
  border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
  margin-bottom: 25px;
  width: fit-content;
}

.status-badge span {
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--accent-primary-rgb), 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(var(--accent-primary-rgb), 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-primary-rgb), 0);
  }
}

.greeting-handwritten {
  font-family: 'Caveat', cursive;
  font-size: 3.2rem;
  color: var(--text-secondary);
  margin-bottom: -5px;
  line-height: 1;
  opacity: 0;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  animation: revealHandwriting 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.3s;
  transform: rotate(-2deg);
  transform-origin: left center;
  width: fit-content;
}

@keyframes revealHandwriting {
  0% {
    opacity: 1;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  100% {
    opacity: 1;
    clip-path: polygon(0 0, 150% 0, 150% 100%, 0 100%);
  }
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn.primary {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.1);
}

.btn.primary:hover {
  background: rgba(var(--accent-primary-rgb), 0.1);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.arrow {
  transition: transform 0.3s ease;
}

.btn:hover .arrow {
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

/* About Section */
.about-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.skill-category h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  padding: 5px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.skill-tags span:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.1);
  transform: translateY(-2px);
}

/* Experience Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  height: 100%;
  width: 1px;
  background: var(--line-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

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

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.5);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateX(5px);
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-bottom: 10px;
  display: block;
}

.role {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.company {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 20px;
}

.duties {
  list-style-type: none;
}

.duties li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.duties li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-primary);
}

/* Education Grid */
.edu-grid {
  display: grid;
  gap: 20px;
}

.edu-card {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  transition: all 0.3s;
}

.edu-card:hover {
  border-color: rgba(var(--accent-secondary), 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.edu-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.edu-info h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.edu-info h4 {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 5px;
}

.edu-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 10px;
}

.edu-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px 15vh 20px;
  border-top: 1px solid var(--glass-border);
  margin-top: 60px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

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

.copyright {
  margin-top: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Extra Elements */
.aka-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: -15px;
  margin-bottom: 25px;
  font-style: italic;
}

.portfolio-coming-soon {
  text-align: center;
  padding: 40px 20px;
}

.coming-soon-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  animation: float 3s ease-in-out infinite;
  display: inline-block;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.portfolio-coming-soon h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.portfolio-coming-soon p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.handwritten-note {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  color: var(--accent-primary);
  opacity: 0;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transform: translateX(40px) rotate(-4deg);
  margin-bottom: 15px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.fade-in-up .handwritten-note {
  animation: revealHandwriting 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.6s;
}

.handwritten-signature {
  font-family: 'Caveat', cursive;
  font-size: 3rem;
  color: var(--text-secondary);
  opacity: 0;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transform: rotate(-2deg);
  margin-top: 15px;
  margin-bottom: 5px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.fade-in-up .handwritten-signature {
  animation: revealHandwriting 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.4s;
}

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

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

/* Responsive */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .greeting-handwritten {
    font-size: 2.2rem;
    margin-bottom: 5px;
  }

  .handwritten-note {
    font-size: 1.8rem;
    transform: translateX(20px) rotate(-4deg);
  }

  .handwritten-signature {
    font-size: 2.2rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .mobile-toggle {
    display: block;
    z-index: 1000;
  }

  .nav-content {
    justify-content: space-between;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70vw;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-primary);
    border-left: 1px solid var(--glass-border);
    transition: right 0.3s ease;
    z-index: 900;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-item {
    font-size: 1.2rem;
  }

  section {
    padding: 30px 0;
    scroll-margin-top: 90px;
  }

  .glass-panel {
    padding: 30px 20px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }
}