* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #fcfaf7;
  color: #1f1f1f;
  line-height: 1.6;
  scroll-behavior: smooth;
  transition: background-color 0.2s;
}

/* typography */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}
.section-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #b56576, #e56b6f);
  border-radius: 4px;
}

/* navbar */
.navbar-modern {
  background-color: rgba(252, 250, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
  padding: 1.2rem 0;
  transition: all 0.3s;
}
.navbar-modern .nav-link {
  font-weight: 500;
  color: #2d2d2d;
  margin: 0 1rem;
  position: relative;
  padding: 0.3rem 0;
}
.navbar-modern .nav-link.active {
  color: #b56576;
}
.navbar-modern .nav-link::before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #b56576;
  transition: width 0.25s ease;
}
.navbar-modern .nav-link:hover::before,
.navbar-modern .nav-link.active::before {
  width: 100%;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
  color: #1f1f1f;
  font-family: "Playfair Display", serif;
}

/* hero */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 3rem;
}
.hero-name {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
}
.hero-role {
  font-size: 1.4rem;
  color: #6c757d;
  border-left: 5px solid #b56576;
  padding-left: 1.5rem;
  margin: 1.8rem 0 2rem;
}
.hero-img {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(145deg, #e9d8d4, #dcc2bc);
  width: 90%;
  max-width: 380px;
  aspect-ratio: 1/1;
  object-fit: cover;
  box-shadow: 25px 25px 40px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.hero-img:hover {
  transform: scale(1.02) rotate(1deg);
}

/* buttons */
.btn-soft {
  background: #ffffffd6;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #1f1f1f;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  font-weight: 500;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
}
.btn-soft:hover {
  background: white;
  border-color: #b56576;
  color: #b56576;
  transform: translateY(-4px);
}
.btn-primary-custom {
  background: #1f1f1f;
  color: white;
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: 40px;
  font-weight: 600;
  box-shadow: 0 15px 25px -8px rgba(31, 31, 31, 0.3);
  transition: 0.2s;
}
.btn-primary-custom:hover {
  background: #b56576;
  color: white;
  transform: translateY(-4px);
}

/* project cards */
.project-card {
  background: white;
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.05);
  transition: 0.25s ease;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.02);
}
.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 45px -15px rgba(181, 101, 118, 0.2);
}
.project-icon {
  font-size: 2.5rem;
  color: #b56576;
  margin-bottom: 1.2rem;
}
.project-tags span {
  background: #f1eae7;
  font-size: 0.8rem;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  margin-right: 0.5rem;
  color: #4f4f4f;
}

/* skill pills */
.skill-pill {
  background: white;
  border: 1px solid #eae0dc;
  color: #1f1f1f;
  padding: 0.8rem 2rem;
  border-radius: 60px;
  font-weight: 500;
  margin: 0.3rem;
  display: inline-block;
  transition: 0.15s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
}
.skill-pill:hover {
  background: #b56576;
  border-color: #b56576;
  color: white;
  transform: scale(1.02);
}

/* certificate image */
.certificate-img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #eee;
  transition: 0.3s;
}

/* hover effect */
.certificate-card:hover .certificate-img {
  transform: scale(1.05);
}

/* dark mode fix */
.dark-mode .certificate-img {
  border: 1px solid #333;
}

/* about section */
.about-img {
  border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1/1;
  object-fit: cover;
  filter: grayscale(10%);
}

/* stat numbers */
.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: #b56576;
  line-height: 1;
}

/* footer */
.footer-links a {
  color: #2d2d2d;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: #b56576;
}

/* back to top button (JS) */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1f1f1f;
  color: white;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
  z-index: 99;
}
#backToTop.show {
  opacity: 1;
  visibility: visible;
}
#backToTop:hover {
  background: #b56576;
  transform: scale(1.1);
}

/* scroll reveal effect (fade + up) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

section[id] {
  scroll-margin-top: 80px;
}

/* ===== DARK MODE FULL FIX ===== */

.dark-mode {
  background-color: #121212 !important;
  color: #e4e4e4;
}

/* text */
.dark-mode p,
.dark-mode span,
.dark-mode div {
  color: #e4e4e4;
}

.dark-mode .nav-link {
  color: #e4e4e4;
}

.dark-mode .text-secondary {
  color: #b0b0b0 !important;
}

/* navbar */
.dark-mode .navbar-modern {
  background-color: rgba(20, 20, 20, 0.9) !important;
}

.dark-mode .navbar-brand {
  color: #ffffff;
}

/* hero */
.dark-mode .hero-role {
  color: #b0b0b0;
}

/* project cards */
.dark-mode .project-card {
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  box-shadow: none;
}

.dark-mode .project-card:hover {
  box-shadow: 0 20px 40px rgba(181, 101, 118, 0.2);
}

/* project tags */
.dark-mode .project-tags span {
  background: #2a2a2a;
  color: #ddd;
}

/* skill pills */
.dark-mode .skill-pill {
  background: #1e1e1e;
  border: 1px solid #333;
  color: #ddd;
}

.dark-mode .skill-pill:hover {
  background: #b56576;
  color: white;
}

/* buttons */
.dark-mode .btn-soft {
  background: #1e1e1e;
  border: 1px solid #333;
  color: #eee;
}

.dark-mode .btn-soft:hover {
  background: #2a2a2a;
}

/* sections background fix */
.dark-mode section {
  background-color: #121212 !important;
}

/* specific sections override */
.dark-mode #work,
.dark-mode #certificates {
  background-color: #181818 !important;
}

.dark-mode #about {
  background-color: #1a1a1a !important;
}

.dark-mode #contact {
  background-color: #1c1c1c !important;
}

.dark-mode a > i {
  color: #e4e4e4;
}

/* footer */
.dark-mode footer {
  background-color: #121212;
}

.dark-mode .footer-links a {
  color: #ccc;
}

/* back to top */
.dark-mode #backToTop {
  background: #333;
}

.dark-mode #backToTop:hover {
  background: #b56576;
}
