/* ----------- Root variables ----------- */
:root {
  --primary-color: #39ff14; /* neon green */
  --accent-color: #39ff14;  /* neon green */
  --background-light: #000000; /* pure black background */
  --background-dark: #000000; /* dark mode bg stays black */
  --text-dark: #ffffff;       /* white text */
  --text-light: #39ff14;      /* neon green for highlights */
  --font-primary: 'Poppins', sans-serif;
  --btn-bg: var(--primary-color);
  --btn-hover-bg: #1eff52; /* slightly lighter neon green */
  --btn-text: #000000; /* black text on neon buttons for contrast */
}

/* ----------- Reset & base ----------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--background-light);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  scroll-behavior: smooth;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

/* Container stays same */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ----------- Navbar ----------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  position: sticky;
  top: 0;
  background: #000000cc; /* translucent black */
  /* stronger neon green glow shadow */
  box-shadow:
    0 0 8px #39ff14,
    0 0 15px #39ff14,
    0 0 25px #39ff14,
    0 0 35px #39ff14,
    0 4px 15px rgba(57, 255, 20, 0.8);
  z-index: 1000;

  border-radius: 15px; /* add this line */
}



.navbar ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.navbar a {
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  color: var(--text-dark);
  padding: 5px 0;
  transition: color 0.3s ease;
}

.navbar a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
  position: absolute;
  bottom: -6px;
  left: 0;
  border-radius: 2px;
}

.navbar a:hover,
.navbar a:focus {
  color: var(--accent-color);
}

.navbar a:hover::after,
.navbar a:focus::after {
  width: 100%;
}

/* ----------- Buttons ----------- */
.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.4s ease, transform 0.3s ease;
  user-select: none;
  text-align: center;
  box-shadow: 0 0 8px var(--primary-color);
}

.btn:hover {
  background: var(--btn-hover-bg);
  transform: scale(1.05);
  box-shadow: 0 0 16px var(--accent-color);
}


/* ----------- Header Animations ----------- */
.animated-header {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--accent-color);
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--accent-color); }
}

/* ----------- Section Headings ----------- */
h1, h2, h3 {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  justify-content: center;
  align-items: center;
}

/* ----------- About Page ----------- */
.about-bio {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--text-dark);
  max-width: 700px;
  line-height: 1.8;
}

.about-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.about-section {
  flex: 1 1 300px;
  background: #111111;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 6px 18px rgba(57, 255, 20, 0.2);
}

.about-section h3 {
  margin-bottom: 12px;
  color: var(--primary-color);
}

.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-list li {
  background: var(--accent-color);
  color: #000;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ----------- Projects Page ----------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: #111111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(57, 255, 20, 0.15);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(57, 255, 20, 0.5);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #222;
}

.project-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.project-desc {
  flex: 1;
  font-size: 1rem;
  color: #eee;
  margin-bottom: 16px;
}

.project-link {
  align-self: flex-start;
  background: var(--primary-color);
  color: #000;
  padding: 8px 18px;
  border-radius: 25px;
  font-weight: 600;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 6px var(--primary-color);
}

.project-link:hover {
  background: var(--accent-color);
  color: #000;
  box-shadow: 0 0 12px var(--accent-color);
}

/* ----------- Articles Page ----------- */
.article-card {
  background: #111111;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(57, 255, 20, 0.15);
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.article-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(57, 255, 20, 0.4);
}

.article-card img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--primary-color);
}

.article-card h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.article-card p {
  margin-bottom: 15px;
  color: #eee;
}

.article-card .btn {
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 600;
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 8px var(--primary-color);
  transition: background-color 0.3s ease;
}

.article-card .btn:hover {
  background: var(--accent-color);
  box-shadow: 0 0 12px var(--accent-color);
}

/* ----------- Contact Page ----------- */
.social-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.social-icon:hover {
  transform: scale(1.15);
  color: var(--accent-color);
}

form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--primary-color);
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #222;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
  background: #000;
  color: #eee;
  transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* ----------- Responsive ----------- */
@media (max-width: 768px) {
  .navbar ul {
    gap: 15px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .about-sections {
    flex-direction: column;
  }

  .article-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-card img {
    width: 100%;
    height: auto;
    border-radius: 12px 12px 0 0;
  }
}

@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}
.navbar-scrolled {
  background: #000000ee !important; /* Slightly more solid bg */
  box-shadow: 0 4px 12px rgba(57, 255, 20, 0.6);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
