:root {
  --bg-0: #0b1220;
  --bg-1: #111b2e;
  --bg-2: #17263b;
  --surface: #1a2a42;
  --surface-soft: #213753;
  --line: rgba(151, 173, 198, 0.25);
  --text-0: #f4f7fb;
  --text-1: #d0dcea;
  --text-2: #9fb2c8;
  --brand: #5fb3a5;
  --brand-strong: #3f8f84;
  --ok: #8fd6a2;
  --warning: #efbc7a;
  --shadow-lg: 0 20px 42px rgba(2, 10, 21, 0.45);
}

html {
  scroll-behavior: smooth;
}

body.portfolio-modern {
  font-family: "Manrope", sans-serif;
  color: var(--text-1);
  background:
    radial-gradient(1200px 600px at 90% -20%, rgba(95, 179, 165, 0.2), transparent 65%),
    radial-gradient(900px 500px at -15% 10%, rgba(239, 188, 122, 0.11), transparent 58%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 40%, var(--bg-2));
  min-height: 100vh;
}

.portfolio-modern .app-wrapper {
  background: transparent;
}

.portfolio-modern .app-header.navbar,
.portfolio-modern .app-footer .app-header.navbar {
  background: rgba(8, 20, 35, 0.84) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.portfolio-modern .app-footer .app-header.navbar {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.portfolio-modern .app-header .nav-link,
.portfolio-modern .app-footer .nav-link {
  color: var(--text-1) !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

.portfolio-modern .app-header .nav-link:hover,
.portfolio-modern .app-footer .nav-link:hover {
  color: var(--brand) !important;
  transform: translateY(-1px);
}

.portfolio-modern .app-sidebar {
  background: linear-gradient(180deg, #061220 0%, #0d233a 60%, #0b1f33 100%) !important;
  border-right: 1px solid var(--line);
}

.portfolio-modern .sidebar-brand {
  border-bottom: 1px solid var(--line);
}

.portfolio-modern .brand-text {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.06em;
  font-weight: 600 !important;
  color: var(--text-0);
}

.portfolio-modern .nav.sidebar-menu .nav-link {
  border-radius: 10px;
  margin: 4px 10px;
  color: var(--text-1);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.portfolio-modern .nav.sidebar-menu .nav-link:hover {
  color: var(--text-0);
  border-color: var(--line);
  background: rgba(95, 179, 165, 0.12);
}

.portfolio-modern .study-now {
  margin: 22px 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(25, 46, 68, 0.72);
  color: var(--text-1);
  font-size: 0.9rem;
  line-height: 1.45;
  border: 1px solid var(--line);
}

.portfolio-modern .app-main {
  background: transparent;
}

.portfolio-modern .app-content {
  padding-bottom: 2rem;
}

.portfolio-modern .app-content .container-fluid {
  max-width: 1280px;
}

.portfolio-modern .hero-v2 {
  position: relative;
  margin: 0.6rem 0 1rem;
  padding: 1.4rem;
  border: 1px solid rgba(146, 193, 183, 0.4);
  border-radius: 22px;
  background:
    radial-gradient(650px 300px at 100% 0, rgba(143, 214, 162, 0.14), transparent 60%),
    radial-gradient(560px 240px at 0 100%, rgba(95, 179, 165, 0.16), transparent 58%),
    linear-gradient(175deg, rgba(18, 43, 67, 0.94), rgba(11, 30, 49, 0.95));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.portfolio-modern .hero-v2::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(95, 179, 165, 0.14);
  filter: blur(2px);
}

.portfolio-modern .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.1rem;
  align-items: stretch;
}

.portfolio-modern .hero-kicker {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  color: #b8d7d0;
}

.portfolio-modern .hero-main h1 {
  margin: 0.6rem 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  line-height: 1.2;
  color: var(--text-0);
  max-width: 19ch;
}

.portfolio-modern .hero-lead {
  margin: 0;
  max-width: 64ch;
  color: var(--text-1);
  line-height: 1.75;
}

.portfolio-modern .hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.portfolio-modern .hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.portfolio-modern .hero-btn-primary {
  background: linear-gradient(130deg, var(--brand), #7bc3b7);
  color: #0d2429;
}

.portfolio-modern .hero-btn-primary:hover {
  color: #091d22;
  transform: translateY(-1px);
}

.portfolio-modern .hero-btn-ghost {
  border-color: var(--line);
  background: rgba(12, 35, 56, 0.55);
  color: var(--text-0);
}

.portfolio-modern .hero-btn-ghost:hover {
  border-color: rgba(151, 201, 193, 0.62);
  color: #e4f4ef;
}

.portfolio-modern .hero-panel {
  position: relative;
  z-index: 1;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 28, 45, 0.72);
}

.portfolio-modern .hero-panel h2 {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c4ddd8;
  font-family: "Space Grotesk", sans-serif;
}

.portfolio-modern .hero-panel ul {
  margin: 0;
  padding-left: 1rem;
  line-height: 1.6;
}

.portfolio-modern .hero-tags {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.portfolio-modern .hero-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  color: #e4f4ef;
  border: 1px solid rgba(151, 198, 189, 0.35);
  background: rgba(31, 64, 74, 0.68);
}

.portfolio-modern .hero-quicknav {
  position: relative;
  z-index: 1;
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.portfolio-modern .hero-quicknav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  padding: 0.6rem 0.7rem;
  border-radius: 11px;
  border: 1px solid rgba(148, 190, 185, 0.34);
  background: rgba(26, 50, 70, 0.84);
  color: var(--text-1);
  font-size: 0.84rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.portfolio-modern .hero-quicknav a:hover {
  background: rgba(36, 70, 88, 0.92);
  color: #e3f4ef;
  border-color: rgba(165, 208, 199, 0.62);
  transform: translateY(-1px);
}

.portfolio-modern .projects-heading {
  margin: 1.35rem 0 0.7rem;
}

.portfolio-modern .projects-heading .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.portfolio-modern .projects-heading h3 {
  text-align: left !important;
  margin-bottom: 0.2rem !important;
}

.portfolio-modern .projects-heading p {
  margin: 0;
  color: var(--text-2);
}

.portfolio-modern .row[id] {
  margin-top: 1rem !important;
  animation: fadeUp 0.65s ease both;
}

.portfolio-modern .row[id]:nth-of-type(2) { animation-delay: 0.03s; }
.portfolio-modern .row[id]:nth-of-type(3) { animation-delay: 0.06s; }
.portfolio-modern .row[id]:nth-of-type(4) { animation-delay: 0.09s; }
.portfolio-modern .row[id]:nth-of-type(5) { animation-delay: 0.12s; }

.portfolio-modern .app-content h3 {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.96rem;
  color: var(--brand) !important;
}

.portfolio-modern .card {
  background: linear-gradient(170deg, rgba(22, 47, 73, 0.92), rgba(14, 34, 55, 0.92)) !important;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text-1) !important;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.portfolio-modern #intro .card {
  background:
    linear-gradient(145deg, rgba(5, 103, 170, 0.28), transparent 58%),
    linear-gradient(175deg, rgba(20, 46, 72, 0.94), rgba(13, 32, 52, 0.94)) !important;
  border-color: rgba(82, 176, 229, 0.5);
}

.portfolio-modern .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.2rem;
}

.portfolio-modern .card-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-0);
}

.portfolio-modern .btn.btn-tool {
  color: var(--text-1);
}

.portfolio-modern .card-body {
  color: var(--text-1) !important;
  line-height: 1.75;
}

.portfolio-modern p,
.portfolio-modern li,
.portfolio-modern div {
  color: inherit;
}

.portfolio-modern a {
  color: #9cd7cb;
  text-decoration: none;
}

.portfolio-modern a:hover {
  color: #bce9df;
}

.portfolio-modern ul {
  padding-left: 1.25rem;
}

.portfolio-modern .card.card-success {
  margin-top: 1rem;
  border: 0;
  box-shadow: none;
  background: transparent !important;
}

.portfolio-modern .card.card-success .card-body {
  padding: 0.6rem 0.3rem 0.2rem;
}

.portfolio-modern .card.card-success .card.mb-2 {
  border-radius: 14px;
  border: 1px solid rgba(154, 197, 231, 0.28);
  background: rgba(19, 41, 63, 0.82) !important;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(2, 12, 22, 0.38);
}

.portfolio-modern .card.card-success img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.portfolio-modern .card.card-success .card.mb-2:hover img {
  transform: scale(1.03);
}

.portfolio-modern .text-primary {
  color: var(--ok) !important;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.02em;
}

.portfolio-modern .dropdown-menu {
  background: rgba(10, 24, 40, 0.98);
  border: 1px solid var(--line);
}

.portfolio-modern .dropdown-menu .user-header {
  background: linear-gradient(125deg, var(--brand-strong), #0f9ed6) !important;
}

.portfolio-modern .float-end {
  color: var(--text-2);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .portfolio-modern .app-content .container-fluid {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .portfolio-modern .card {
    border-radius: 14px;
  }

  .portfolio-modern .card-header {
    padding: 0.9rem 0.9rem;
  }

  .portfolio-modern .card-body {
    padding: 0.9rem;
    font-size: 0.96rem;
  }

  .portfolio-modern .hero-v2 {
    padding: 1rem;
    border-radius: 16px;
  }

  .portfolio-modern .hero-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .portfolio-modern .hero-main h1 {
    max-width: 100%;
    font-size: 1.45rem;
  }

  .portfolio-modern .hero-quicknav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-modern .hero-quicknav a {
    font-size: 0.8rem;
    padding: 0.55rem 0.45rem;
  }
}

@media (max-width: 575px) {
  .portfolio-modern .hero-quicknav {
    grid-template-columns: 1fr;
  }
}
