:root {
  --accent: #ff6b00;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #111;
  color: #f3f3f3;
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.intro-text {
  color: #ccc;
  margin-top: 1rem;
  font-size: clamp(1rem, 1vw + 0.5rem, 1.2rem);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero {
  background: linear-gradient(135deg, #000, #222);
  text-align: center;
  padding: 4rem 1rem 5rem;
  position: relative;
}

.hero-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-nav ul li a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.hero-nav ul li a:hover {
  background-color: rgba(255, 107, 0, 0.15);
}

.hero h1 {
  color: var(--accent);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0.5rem 0;
}

.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin: 1rem 0 2rem;
  color: #ccc;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-buttons .btn-glow {
  padding: 0.75rem 1.5rem;
  color: var(--accent);
  border: 2px solid #ff6b00;
  border-radius: 30px;
  background: transparent;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-size: 1rem;
}



.btn-glow:hover {
  background: var(--accent);
  color: #111;
  box-shadow: 0 0 10px var(--accent), 0 0 40px var(--accent);
}

section h2 {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  margin-bottom: 1rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

section p,
ul {
  color: #ccc;
}

.project-grid,
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card,
.experience-card {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover,
.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--accent);
}

.project-card h3,
.experience-card h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.project-card h3 a {
  color: inherit;
  text-decoration: none;
}

.project-card h3 a:hover {
  text-decoration: underline;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem 0;
}

.skills-list li {
  background: #222;
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.skills-list li:hover::after {
  content: attr(data-skill);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #111;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  box-shadow: 0 0 10px var(--accent);
  opacity: 1;
  pointer-events: none;
}

.skills-list li::after {
  content: '';
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
  color: #ccc;
  justify-content: center;
  margin-top: 2rem;
}

.contact-line span a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-line span a:hover {
  text-decoration: underline;
}

.tools-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.tool {
  background: #222;
  color: var(--accent);
  border: 1px solid #333;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.certificate-card {
  padding-top: 1rem;
  text-align: center;
}

.cert-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 0.6rem;
}

.btn-badge {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-badge:hover {
  background: #ff5c00;
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .skills-list {
    justify-content: center;
  }

  .tools-grid {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* Toggle Button – top-right on mobile */
.nav-toggle {
  display: none;
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #ff6b00;
  cursor: pointer;
  z-index: 110;
}

/* Base nav styles */
.hero-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #000;
  padding: 1rem;
  z-index: 100;
}

/* Nav link styles */
.hero-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-nav ul li a {
  color: #ff6b00;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.hero-nav ul li a:hover {
  background-color: rgba(255, 107, 0, 0.15);
}

/* === Mobile View: sidebar from right === */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .hero-nav {
    position: fixed;
    top: 0;
    right: -250px;
    width: 220px;
    height: 100%;
    background-color: #000;
    padding-top: 5rem;
    transition: right 0.3s ease;
  }

  .hero-nav.open {
    right: 0;
  }

  .hero-nav ul {
    flex-direction: column;
    gap: 1.2rem;
    padding-left: 1.5rem;
  }
}

/* === Desktop View: navbar floats right === */
@media (min-width: 769px) {
  .hero-nav {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    flex-direction: row;
    background: transparent;
    padding: 0;
  }

  .hero-nav ul {
    flex-direction: row;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 buttons per row on mobile */
    gap: 1rem;
    justify-content: center;
  }
}

@media (min-width: 769px) {
  .hero-buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .contact-line {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    text-align: center;
    padding: 0 1rem;
  }

  .contact-line span {
    flex: 1 1 auto;
    min-width: fit-content;
  }
}
