/* ================= Smooth Scroll ================= */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* navbar offset */
}

/* ================= General Styles ================= */
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  transition: background-color 0.3s, color 0.3s;
  margin: 0;
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
  margin-bottom: 1rem;
}

section {
  padding: 80px 0;
}

/* ================= Navbar ================= */
.navbar {
  padding: 1rem 2rem;
  transition: background-color 0.3s;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

/* Dark mode navbar */
body.dark-mode .navbar {
  background-color: #1f1f1f !important;
}

/* ================= Buttons ================= */
button.btn,
a.btn {
  transition: all 0.3s ease;
}

button.btn:hover,
a.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* ================= Project Cards ================= */
.projects-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.projects-wrapper::-webkit-scrollbar {
  display: none;
}

.project-card {
  min-width: 280px;
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Dark mode project cards */
body.dark-mode .project-card {
  background-color: #2c2c2c;
  color: #fff;
}

/* ================= Certificates ================= */
.cert-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.cert-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
}

.cert-container::-webkit-scrollbar {
  display: none;
}

.cert-card {
  min-width: 260px;
  background-color: #fff;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.cert-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

body.dark-mode .cert-card {
  background-color: #2c2c2c;
  color: #fff;
}

/* Arrow Buttons */
.scroll-btn {
  background: #0d6efd;
  color: white;
  border: none;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.scroll-btn:hover {
  background: #084298;
}

/* ================= Skills Section ================= */
#skills i {
  font-size: 2rem;
  color: #0d6efd;
}

#skills p {
  font-size: 0.9rem;
  margin-top: 5px;
}

/* ================= Contact Form ================= */
form input, form textarea {
  border-radius: 8px;
  transition: all 0.3s;
}

form input:focus, form textarea:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 8px rgba(13,110,253,0.3);
}

/* ================= Footer ================= */
footer {
  background-color: #212121;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: #fff;
  margin: 0 10px;
  transition: color 0.3s;
}

footer a:hover {
  color: #0d6efd;
}

/* ================= Back to Top ================= */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  z-index: 1000;
}

/* ================= Dark Mode ================= */
body.dark-mode {
  background-color: #121212;
  color: #eee;
}

body.dark-mode input,
body.dark-mode textarea {
  background-color: #333;
  color: #fff;
  border-color: #444;
}

/* ================= Enhanced Skills Section ================= */

.skill-category {
  margin-bottom: 35px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.skill-category.show {
  opacity: 1;
  transform: translateY(0);
}

.skill-category h4 {
  font-weight: 600;
  margin-bottom: 12px;
}

.skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-badge {
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.skill-badge:hover {
  transform: translateY(-3px);
}

.skill-badge i {
  font-size: 14px;
  color: #0d6efd;
}

.skill-badge.highlight {
  background: #0d6efd;
  color: #fff;
  font-weight: 600;
}

.skill-badge.highlight i {
  color: #fff;
}

/* Dark Mode */
body.dark-mode #skills {
  background-color: #121212 !important;
}

body.dark-mode .skill-badge {
  background: #2c2c2c;
  color: #eee;
  box-shadow: none;
}

body.dark-mode .skill-badge i {
  color: #6ea8fe;
}

body.dark-mode .skill-badge.highlight {
  background: #2563eb;
  color: #fff;
}

