:root {
  --green: #0a2b1d;
  --green-hover: #1a4a35;
  --accent: #7cffb2;
  --gray-50: #f9fafb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --nav-h: 4rem;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--gray-900);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page main {
  flex: 1;
}

/* Navbar */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .nav-inner {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .nav-inner {
    padding: 0 2rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  margin-left: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--gray-700);
  padding: 0.5rem 0.75rem;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--gray-900);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  bottom: 0;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: var(--gray-700);
  cursor: pointer;
}

.nav-toggle:hover {
  color: var(--gray-900);
}

.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.nav-toggle .icon-close {
  display: none;
}

.nav.is-open .icon-menu {
  display: none;
}

.nav.is-open .icon-close {
  display: block;
}

.nav-mobile {
  display: none;
  background: rgba(255, 255, 255, 0.98);
  padding: 0.5rem 1rem 1rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.nav.is-open .nav-mobile {
  display: block;
}

.nav-mobile .nav-link {
  display: block;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle,
  .nav-mobile {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #05140e;
  background-image: url("../images/bannerWebVerticalHomePage.png");
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(124, 255, 178, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(5, 20, 14, 0.35), rgba(10, 43, 29, 0.55));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-title {
  flex: 1;
  text-align: center;
  color: var(--white);
  padding: 0 1rem;
  margin-top: 7rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title p {
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.025em;
  line-height: 1.625;
  font-size: 1.75rem;
}

.social-links-container {
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .hero-title {
    margin-top: 8rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    margin-top: 10rem;
  }

  .hero-title p {
    font-size: 1.875rem;
  }

  .social-links-container {
    margin-bottom: 6rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    margin-top: 12rem;
  }

  .hero-title p {
    font-size: 2.25rem;
  }
}

/* Social */
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
}

.social-links a {
  color: var(--white);
  display: inline-flex;
  transition: transform 0.2s, color 0.2s;
}

.social-links a:hover {
  transform: scale(1.1);
}

.social-links a[aria-label="YouTube"]:hover { color: #dc2626; }
.social-links a[aria-label="LinkedIn"]:hover { color: #2563eb; }
.social-links a[aria-label="Twitter"]:hover { color: #000; }
.social-links a[aria-label="Instagram"]:hover { color: #db2777; }
.social-links a[aria-label="TikTok"]:hover { color: #000; }
.social-links a[aria-label="GitHub"]:hover { color: #1f2937; }

.social-links svg {
  width: 32px;
  height: 32px;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-white {
  background: var(--white);
}

.section-muted {
  background: var(--gray-50);
}

.container {
  margin: 0 auto;
  padding: 0 1rem;
}

.container-sm { max-width: 56rem; }
.container-md { max-width: 64rem; }
.container-lg { max-width: 72rem; }
.container-xl { max-width: 80rem; }

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.section-title {
  margin: 0 0 3rem;
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--gray-700);
  text-align: justify;
  margin: 0 0 1.5rem;
}

.lead:last-child {
  margin-bottom: 0;
}

.center-text {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.btn:hover {
  background: var(--green-hover);
}

.btn-spotify {
  background: #16a34a;
}

.btn-spotify:hover {
  background: #15803d;
}

/* About layout */
.about-row {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-photo {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.about-photo img {
  width: 12rem;
  height: 12rem;
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: var(--shadow);
  background: var(--green);
}

.about-copy {
  width: 100%;
}

.about-card {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: inset 0 4px 10px rgba(0, 128, 0, 0.15);
}

@media (min-width: 768px) {
  .about-row {
    flex-direction: row;
    align-items: center;
  }

  .about-photo {
    width: 33.333%;
    margin-bottom: 0;
  }

  .about-copy {
    width: 66.666%;
  }
}

/* Cards / grids */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s;
}

.card-hover:hover {
  transform: scale(1.05);
}

.card-media-link {
  display: block;
  width: 100%;
  height: 12rem;
  overflow: hidden;
  line-height: 0;
}

.card-media {
  width: 100%;
  height: 12rem;
  display: block;
  object-fit: cover;
  background: var(--green);
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.card-body p {
  margin: 0 0 1rem;
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cert-card {
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.cert-card .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cert-card img {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
  margin-bottom: 1rem;
}

.cert-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  text-align: center;
}

.cert-card p {
  color: var(--gray-500);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Contact */
.contact-list {
  display: grid;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: box-shadow 0.3s, color 0.2s;
}

.contact-item:hover {
  box-shadow: var(--shadow);
}

.contact-item.email:hover { color: #ef4444; }
.contact-item.linkedin:hover { color: #2563eb; }

.contact-item svg {
  width: 24px;
  height: 24px;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-item h3 {
  margin: 0;
  font-weight: 600;
}

.contact-item p {
  margin: 0;
  color: var(--gray-600);
}

.intro-actions {
  text-align: center;
  margin-top: 0.5rem;
}

/* Project detail */
.detail {
  padding-top: calc(6rem + var(--nav-h));
  min-height: 100vh;
}

.embed-card {
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.embed-card h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.embed-frame {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  overflow: hidden;
}

.embed-frame iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
}

.detail-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--green);
  color: var(--white);
  padding: 3rem 0;
}

.footer-rule {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--green-hover);
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-rule {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copy {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .footer-copy {
    margin-bottom: 0;
  }
}
