@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --dark: #111827;
  --dark-soft: #1f2937;
  --light: #f9fafb;
  --text: #374151;
  --accent: #facc15;
  --accent-dark: #eab308;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: var(--light);
}

/* NAVBAR */
.navbar {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  transition: 0.3s ease;
  padding: 15px 0;
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(17, 24, 39, 0.96);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-link {
  font-weight: 500;
  margin-left: 10px;
  transition: 0.3s;
}

.nav-link:hover {
  color: var(--accent) !important;
}

/* HERO */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(31, 41, 55, 0.9)),
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.25), transparent 35%);
  color: white;
  padding-top: 90px;
}

.hero-label {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--accent);
}

.hero-text {
  font-size: 1.1rem;
  max-width: 580px;
  margin: 20px 0 30px;
  color: #e5e7eb;
}

.hero-buttons .btn {
  margin-right: 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 600;
}

.hero-img {
  width: 310px;
  height: 310px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(250, 204, 21, 0.8);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

/* SECTIONS */
section {
  scroll-margin-top: 80px;
}

.section-title {
  font-weight: 700;
  color: var(--dark);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 4px;
  background: var(--accent);
  margin: 10px auto 0;
  border-radius: 10px;
}

.bg-dark .section-title {
  color: white;
}

/* ABOUT */
.about-img {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

#about p {
  font-size: 1rem;
  line-height: 1.8;
}

/* SKILLS */
.skill-card {
  background: white;
  padding: 18px;
  border-radius: 18px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
  background: var(--dark);
  color: white;
}

/* PROJECTS */
.project-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
  transition: 0.35s ease;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.16);
}

.project-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.project-content {
  padding: 25px;
}

.project-content h4 {
  font-weight: 700;
  color: var(--dark);
}

.project-content p {
  line-height: 1.7;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  background: #f3f4f6;
  color: var(--dark-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* BUTTONS */
.btn-warning {
  background: var(--accent);
  border: none;
}

.btn-warning:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-outline-light:hover,
.btn-outline-dark:hover {
  transform: translateY(-2px);
}

/* CONTACT */
#contact {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.95));
}

.contact-links .btn {
  margin: 5px;
  border-radius: 999px;
  padding: 10px 24px;
}

/* FOOTER */
footer {
  background: #0b1120;
  color: #d1d5db;
}

/* ANIMATIONS */
.hidden {
  opacity: 0;
  transform: translateY(35px);
  transition: 0.8s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    text-align: center;
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-img {
    width: 230px;
    height: 230px;
    margin-top: 35px;
  }

  .project-img {
    height: 210px;
  }

  .navbar-nav {
    text-align: center;
    padding-top: 15px;
  }

  .nav-link {
    margin-left: 0;
  }
}