body {
    margin: 0;
    padding: 0;
    background-color: #0a0a0a;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    scroll-behavior: smooth;
}

.header {
  position: sticky;
  top: 0;
  background: #0a0a0a;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 255, 136, 0.2);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 100px;
  width: auto;
}

.header h1 {
  font-size: 1.5rem;
  margin: 0;
}

.header nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.3s ease;
}

.header nav a:hover {
  color: #00ff88;
}

.loader {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  height: 120px;
}

.bar {
  width: 15px;
  height: 50px;
  border-radius: 20px;
  background: linear-gradient(to top, cyan, magenta);
  animation: bars 1s ease-in-out infinite;
}

.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.1s; }
.bar:nth-child(3) { animation-delay: 0.2s; }
.bar:nth-child(4) { animation-delay: 0.3s; }
.bar:nth-child(5) { animation-delay: 0.4s; }

.loader:hover .bar {
  animation-play-state: paused;
}

@keyframes bars {
 0%, 100% {
    height: 20px;
    opacity: 0.6;
  }
 50% {
    height: 50px;
    opacity: 1;
  }
}

.header .loader {
  height: 40px;
  margin: 0 1rem;
}

.header .bar {
  height: 30px;
  width: 10px;
}

/* ===== Home Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #0a0a0a;
  color: #fff;
  padding: 2rem;
}

.hero-content {
  max-width: 600px;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00ff88;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.5), 0 0 30px rgba(0, 191, 255, 0.4);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.accent {
  color: #00ff88;
}

.tagline {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  margin: 0 0.5rem;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s ease;
}

.btn.primary {
  background: #00ff88;
  color: #0a0a0a;
  font-weight: 600;
}

.btn.secondary {
  border: 2px solid #00ff88;
  color: #00ff88;
  background: transparent;
}

.btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .header nav a {
    margin: 0 0.75rem;
  }
  
  h1 { 
    font-size: 2rem; 
  }
  
  .hero-buttons { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
  }
  
  .btn {
    width: 100%;
    box-sizing: border-box;
  }
}


/* ===== About Section ===== */
.about {
  padding: 5rem 2rem;
  background: #111;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.about-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-text {
  max-width: 700px;
  text-align: left;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 1.5rem;
}

.skills {
  margin-top: 2.5rem;
}

.skills h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tags span {
  padding: 0.5rem 1rem;
  background: #1a1a1a;
  border: 1px solid #00ff88;
  border-radius: 20px;
  color: #00ff88;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.skill-tags span:hover {
  background: #00ff88;
  color: #0a0a0a;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
  transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .about {
    padding: 3rem 1.5rem;
  }
  
  .about h2 {
    font-size: 2rem;
  }
  
  .about-text {
    text-align: center;
  }
  
  .skill-tags {
    justify-content: center;
  }
}

.inline-link {
  color: #00ff88;
  text-decoration: none;
  border-bottom: 1px solid #00ff88;
  transition: all 0.3s ease;
}

.inline-link:hover {
  color: #00bfff;
  border-bottom-color: #00bfff;
  text-shadow: 0 0 8px rgba(0, 191, 255, 0.6);
}

/* ===== Projects Section ===== */
.projects {
  padding: 5rem 2rem;
  background: #0a0a0a;
  text-align: center;
}

.projects-container {
  max-width: 1100px;
  margin: 0 auto;
}

.projects h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #aaa;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1a1a1a;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
  border-color: #00ff88;
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 1.5rem;
  text-align: left;
}

.project-info h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1.3rem;
}

.project-info p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

/* Mobile */
@media (max-width: 768px) {
  .projects {
    padding: 3rem 1.5rem;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-links {
  display: flex;
  gap: 10px;
}

.view-btn {
  padding: 8px 16px;
  background: #00ff88;
  color: black;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.view-btn:hover {
  background: #e62e2e;
}

/* ===== Contact Section ===== */
.contact {
  padding: 5rem 2rem;
  background: #111;
  text-align: center;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.contact-form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00ff88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.contact-form .btn {
  border: none;
  cursor: pointer;
  font-size: 1rem;
  margin: 0;
}

.contact-links {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-link i {
  font-size: 1.2rem;
}

.contact-link:hover {
  transform: translateY(-3px);
}

/* WhatsApp green */
.contact-link.whatsapp:hover {
  border-color: #25D366;
  color: #25D366;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

/* Phone blue */
.contact-link.call:hover {
  border-color: #00bfff;
  color: #00bfff;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

/* Email green */
.contact-link.email:hover {
  border-color: #00ff88;
  color: #00ff88;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

/* Mobile */
@media (max-width: 768px) {
  .contact-links {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-link {
    width: 80%;
    justify-content: center;
  }
}

#formStatus {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

#formStatus.success {
  color: #00ff88;
}

#formStatus.error {
  color: #ff4444;
}

#formStatus.sending {
  color: #00bfff;
}

section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 0.9rem;
    background: #0a0a0a;
}

@media (hover: none) {
  .skill-badge.active::after,
  .skill-badge.active::before {
    opacity: 1;
    visibility: visible;
  }
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.skill-badge {
  position: relative;
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid #00ff88;
  border-radius: 50px;
  color: #00ff88;
  background: #0a0a0a;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Tooltip */
.skill-badge::after {
  content: attr(data-code);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  border: 1px solid #00ff88;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #00ff88;
  white-space: pre; /* keeps line breaks */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
  min-width: 220px;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

/* Arrow */
.skill-badge::before {
  content: '';
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  border: 6px solid transparent;
  border-top-color: #00ff88;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show on hover */
.skill-badge:hover {
  background: #00ff88;
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.skill-badge:hover::after,
.skill-badge:hover::before {
  opacity: 1;
  visibility: visible;
}



/* FOOTER */
footer {
  background: #0A0A0A;
  border-top: 2px solid var(--gold);
  padding: 18px 8%;
  text-align: center;
  color: var(--gray);
  font-size: 14px;
  position: sticky;
  bottom: 0;
  width: 100%;
  z-index: 99;
}

.footer-line {
  margin: 4px 0;
  line-height: 1.5;
}

.footer-gold {
  color: var(--gold);
  font-weight: bold;
}

/* Your code above... then add: */

@keyframes bars {
 0%, 100% { height: 30px; }
 50% { height: 80px; }
}

.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.4s; }
.bar:nth-child(4) { animation-delay: 0.6s; }
.bar:nth-child(5) { animation-delay: 0.8s; }

/* Sections */
section {
  padding: 80px 2rem;
  max-width: 1100px;
  margin: auto;
}

.accent { color: #00ff88; }

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid #00ff88;
  object-fit: cover;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  margin: 10px;
}

.btn.primary {
  background: #00ff88;
  color: #0a0a0a;
  font-weight: bold;
}

.btn.primary:hover {
  box-shadow: 0 0 20px #00ff88;
  transform: translateY(-2px);
}

.btn.secondary {
  border: 2px solid #00ff88;
  color: #00ff88;
}

/* Skills */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2rem;
}

.skill-badge {
  background: #1a1a1a;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #00ff88;
  cursor: pointer;
  transition: all 0.3s;
}

.skill-badge:hover {
  background: #00ff88;
  color: #0a0a0a;
}

/* Projects grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
  border: 1px solid #333;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: #00ff88;
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: white;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #00ff88;
  outline: none;
}

#formStatus.success { color: #00ff88; }
#formStatus.error { color: #ff4444; }
#formStatus.sending { color: #ffaa00; }

/* Responsive - rubric needs this */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .header nav a {
    margin: 0 0.5rem;
  }
  
  .logo { height: 60px; }
  
  section { padding: 50px 1rem; }
  
  .project-grid { grid-template-columns: 1fr; }
}

section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-badge {
  position: relative;
  overflow: hidden;
}

.skill-badge.active {
  background: #00ff88;
  color: #0a0a0a;
  padding: 15px;
  min-width: 200px;
  white-space: pre;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}