:root {
  --bg-color: #050505;
  --bg-panel: #111111;
  --primary-color: #39ff14;
  /* Neon Green */
  --primary-glow: rgba(57, 255, 20, 0.5);
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --border-color: #333;
  --font-main: 'Inter', sans-serif;
  --font-display: 'Orbitron', sans-serif;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-shadow: 0 0 10px var(--primary-glow);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(57, 255, 20, 0.1);
}

/* SoC Indicator */
#soc-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#soc-bar {
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-glow);
  transition: height 0.1s ease-out;
}

#soc-text {
  position: fixed;
  top: 0;
  right: 15px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--primary-color);
  text-shadow: 0 0 5px var(--primary-glow);
  z-index: 2000;
  background: rgba(5, 5, 5, 0.8);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(57, 255, 20, 0.3);
  pointer-events: none;
  transition: transform 0.1s ease-out, top 0.1s ease-out;
  white-space: nowrap;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-glow);
  letter-spacing: 2px;
}

.logo-subtitle {
  font-size: 0.6rem;
  font-weight: 500;
  color: #ffffff !important;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  opacity: 0.9;
}

.charging-battery {
  width: 16px;
  height: 9px;
  border: 1.5px solid var(--primary-color);
  border-radius: 1px;
  position: relative;
  display: inline-block;
  margin-left: 2px;
  box-shadow: 0 0 5px var(--primary-glow);
}

.charging-battery::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  bottom: 1px;
  background: var(--primary-color);
  animation: chargeLevel 2s infinite;
}

.charging-battery::before {
  content: '';
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 0 1px 1px 0;
}

@keyframes chargeLevel {
  0% {
    width: 0%;
  }

  100% {
    width: calc(100% - 2px);
  }
}

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

.nav-links a {
  color: var(--text-main);
  font-size: 0.9rem;
}

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

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.1) 0%, rgba(0, 0, 0, 0) 60%);
  top: -50%;
  left: -50%;
  animation: pulseBg 10s infinite alternate;
  pointer-events: none;
}

.hero-content {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.profile-img-container {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 1rem;
  position: relative;
  /* Removed padding and background here */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Spinning outer ring */
.profile-img-container::before {
  content: '';
  position: absolute;
  inset: -5px;
  /* Creates the border thickness */
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--primary-color));
  animation: spin 4s linear infinite;
  z-index: 0;
}

/* Inner masking circle (optional, but good for clean separation) */
.profile-img-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg-color);
  /* Matches body bg to mask inner part of gradient */
  z-index: 0;
  /* Sit above the spinner but below image */
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  /* Sit above everything */
  border: 4px solid var(--bg-color);
  /* Small inner border for clean look */
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.btn:hover {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 20px var(--primary-glow);
}

/* Sections General */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: var(--text-main);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 1rem auto 0;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Experience Layout */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
  width: 50%;
  padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--bg-color);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: 0;
  right: -10px;
  box-shadow: 0 0 10px var(--primary-glow);
  z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-content {
  background: var(--bg-panel);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #222;
  transition: transform 0.3s;
  text-align: left;
  /* Force left alignment for text inside cards */
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.company {
  color: var(--primary-color);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.role {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: monospace;
  margin-bottom: 1rem;
  display: block;
}

/* Features Grid (Skills) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-panel);
  padding: 2rem;
  border: 1px solid #222;
  border-radius: 8px;
  text-align: center;
  transition: 0.3s;
}

.card:hover {
  border-color: var(--primary-color);
  box-shadow: inset 0 0 20px rgba(57, 255, 20, 0.05);
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--text-main);
}

/* Contact */
.contact-container {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-icon {
  font-size: 2rem;
  color: var(--text-muted);
}

.social-icon:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

/* Footer */
footer {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid #222;
  margin-top: 4rem;
}

/* Animations */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

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

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

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transition: 0.4s ease-in-out;
    border-left: 1px solid rgba(57, 255, 20, 0.1);
  }

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

  .logo-title {
    font-size: 1.2rem;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0;
    padding-left: 50px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-dot {
    left: 10px !important;
    right: auto;
  }

  #soc-text {
    font-size: 0.6rem;
    padding: 3px 6px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .logo-title {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .profile-img-container {
    width: 150px;
    height: 150px;
  }
}