/* ===================================================
   ===== Hero Section =====
=================================================== */
.hero {
  background: url('/images/hero.png') no-repeat center/cover;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: rgb(201, 238, 99);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 12px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin: 1rem 0;
  opacity: 0.9;
  max-width: 650px;
}

.hero .btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  background: #ff9800;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
}

.hero .btn:hover {
  background: #e68900;
  transform: translateY(-3px);
}

/* ===================================================
   ===== Experience Section =====
=================================================== */
#experience {
  /* background: #fff; */
  background-color: #e9ecef;
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* ===================================================
   ===== Skills Section =====
=================================================== */
#skills {
  text-align: center;
  background-color: #dee2e6;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}

.skill-card {
  background: #fff;
  padding: 1.5rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #ff9800;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ===================================================
   ===== Projects Section =====
=================================================== */
#projects {
  text-align: center;
  background-color: #ced4da;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.project-card a {
  text-decoration: none;
  color: black;
}

.project-card a:hover {
  color: blue;
}

body.dark .project-card a {
  color: white;
}

body.dark .project-card a:hover {
  color: #467db4;
}

/* ===================================================
   ===== Portfolio Section =====
=================================================== */
#portfolio {
  text-align: center;
  /* height: 20vh; */
}

.portfolio .btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  background: #ff9800;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
}

.portfolio .btn:hover {
  background: #e68900;
  transform: translateY(-3px);
}

.portfolio-card {
  background: rgba(179, 105, 105, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 60px;
  margin: 20px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

body.dark .portfolio-card {
  background-color: #467db4;
  color: #000;
}

/* ===================================================
   ===== Dark Mode =====
=================================================== */
body.dark {
  background: #181818;
  color: #e0e0e0;
}

body.dark header.navbar {
  background: #111;
}

body.dark nav ul li a {
  color: rgb(201, 238, 99);
}

body.dark nav ul li a:hover {
  color: #ff9800;
}

body.dark #experience,
body.dark #skills,
body.dark #projects {
  background-color: #467db4;
  color: #000;
}

body.dark .skill-card,
body.dark .project-card {
  background: #242424;
  color: #e0e0e0;
}

body.dark footer {
  background: #111;
}

body.dark .hero::after {
  background: rgba(0, 0, 0, 0.7);
}

/* ===== Dark Mode Override ===== */
body.dark #scrollTopBtn {
  background-color: #ff9800;
  color: #fff;
}

body.dark #scrollTopBtn:hover {
  background-color: #e68900;
}

/* Dark mode appearance */
body.dark #darkModeToggle {
  background: #00bcd4;
  /* Cyan glow in dark mode */
  color: #000;
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.4);
}

body.dark #darkModeToggle:hover {
  background: #3ce8ff;
}

/* Wrapper for centering counter horizontally */
.counter-container {
  display: flex;
  justify-content: center;
  width: 100%;
  /* margin-top: 10px; */
}

/* CTA Section */
.cta-section {
  text-align: center;
  margin-top: 50px;
}

.cta-section a.btn {
  background: #ff9800;
  color: #fff;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-section a.btn:hover {
  background: #ff5722;
  transform: scale(1.05);
}