@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap&font-display=swap");

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #020604;
  color: #ffffff;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
}

/* ==========================================
   GLOBAL GREEN BACKGROUND
========================================== */

.home-section,
.about-section,
.portfolio-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at left center, rgba(10, 115, 40, 0.35), transparent 32%),
    radial-gradient(circle at right center, rgba(8, 90, 32, 0.35), transparent 35%),
    #020604;
}

.home-section::before,
.about-section::before,
.portfolio-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.3;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(18, 160, 55, 0.18);
  filter: blur(80px);
  animation: floatOrb 8s ease-in-out infinite;
  pointer-events: none;
  will-change: transform;
}

.orb-left {
  left: -120px;
  bottom: 120px;
}

.orb-right {
  right: -110px;
  top: 120px;
  animation-delay: 2s;
}

/* ==========================================
   HEADER / NAVIGATION
========================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 6vw;
  pointer-events: none;
}

.logo,
.navbar {
  pointer-events: auto;
}

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

.logo img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 0 8px rgba(46, 204, 113, 0.2))
    drop-shadow(0 0 20px rgba(46, 204, 113, 0.15));
  transition: 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
  filter:
    drop-shadow(0 0 12px rgba(46, 204, 113, 0.35))
    drop-shadow(0 0 30px rgba(46, 204, 113, 0.25));
}

.navbar {
  display: flex;
  justify-content: flex-end;
  gap: 32px;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  padding: 8px 15px;
  border-radius: 999px;
  transition: 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(12, 80, 28, 0.35);
  box-shadow:
    0 0 0 1px rgba(43, 190, 78, 0.45),
    0 0 18px rgba(43, 190, 78, 0.25);
  color: #ffffff;
}

/* ==========================================
   HOME SECTION
========================================== */

.home-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 24px 22px;
  padding-top: 125px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 700px;
  text-align: center;
  transform: scale(0.92);
  transform-origin: center;
  animation: fadeUp 0.9s ease forwards;
}

.profile-ring {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  padding: 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2dbb52, #06270e);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: profileFloat 4s ease-in-out infinite;
  will-change: transform;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: block;
}

h1 {
  margin-top: 22px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.hero-role {
  margin-top: 8px;
  font-size: 15px;
  font-style: italic;
  opacity: 0.9;
}

.hero-description {
  max-width: 690px;
  margin: 24px auto 34px;
  font-size: 18px;
  line-height: 1.45;
  text-align: justify;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  min-width: 215px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-primary {
  background: #0d5019;
  box-shadow: inset 0 0 0 1px rgba(80, 220, 110, 0.2);
}

.btn-outline {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(35, 170, 70, 0.55);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(30, 190, 75, 0.24);
}

.social-links {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-links a {
  color: #ffffff;
  font-size: 34px;
  transition: 0.3s ease;
}

.social-links a:hover {
  color: #54dc75;
  transform: translateY(-4px);
}

/* ==========================================
   ABOUT SECTION
========================================== */

.about-section {
  min-height: 100vh;
  padding: 95px 5.5vw 40px;
}

.about-section::after {
  content: "";
  position: absolute;
  left: -160px;
  bottom: 40px;
  width: 520px;
  height: 520px;
  z-index: 0;
  background: rgba(12, 120, 42, 0.35);
  filter: blur(95px);
  border-radius: 50%;
  pointer-events: none;
}

.about-title,
.about-grid {
  position: relative;
  z-index: 2;
}

.about-title {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 38px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 55px;
  align-items: start;
}

.about-left h3,
.about-right h3 {
  font-size: 25px;
  margin-bottom: 18px;
  font-style: italic;
}

.about-text {
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
  text-align: justify;
  margin-bottom: 16px;
}

.education-title {
  margin-top: 45px;
}

.education-text {
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
}

.stats-container {
  display: flex;
  gap: 34px;
  margin-top: 40px;
}

.stat-card {
  width: 335px;
  height: 115px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow:
    0 12px 35px rgba(0,0,0,0.35),
    inset 0 0 25px rgba(255,255,255,0.03);
}

.stat-card h4 {
  font-size: 34px;
  margin-bottom: 2px;
}

.stat-card p {
  font-size: 28px;
  font-style: italic;
  color: rgba(255,255,255,0.72);
}

.skill {
  margin-bottom: 12px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 7px;
  font-size: 15.5px;
}

.skill-bar {
  height: 7px;
  background: rgba(20, 75, 28, 0.75);
  border-radius: 999px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #114f1e, #1b7a2d, #0f4c1b);
}

/* ==========================================
   PORTFOLIO SECTION
========================================== */

.portfolio-section {
  min-height: 100vh;
  padding: 95px 5vw 60px;
}

.portfolio-title {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 26px;
  font-style: italic;
  margin-bottom: 40px;
}

.portfolio-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 55px;
  align-items: center;
}

.portfolio-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-right: 36px;
  border-right: 1px solid rgba(255,255,255,0.8);
}

.portfolio-filter {
  background: none;
  border: none;
  color: white;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.08;
  cursor: pointer;
  transition: 0.3s ease;
}

.portfolio-filter:hover,
.portfolio-filter.active {
  color: #4dff78;
  transform: translateX(5px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  justify-content: center;
  align-items: start;
  width: 100%;
}

.portfolio-card {
  width: 100%;
  padding: 16px 16px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
  cursor: pointer;
  position: relative;
  z-index: 3;
  overflow: hidden;
  transition: 0.35s ease;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(35,190,75,0.22);
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  pointer-events: none;
}

.portfolio-card h3 {
  margin-top: 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: white;
  text-shadow: 0 0 14px rgba(255,255,255,0.7);
  pointer-events: none;
}

.portfolio-card.locked img {
  filter: brightness(0.55);
}

.lock {
  position: absolute;
  inset: 44px 0 auto;
  text-align: center;
  font-size: 64px;
  z-index: 2;
  pointer-events: none;
}

/* ==========================================
   PROJECT POPUP + CAROUSEL
========================================== */

.project-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.project-popup.active {
  display: flex;
  pointer-events: auto;
}

.project-popup-box {
  width: min(96vw, 1180px);
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  padding: 52px 56px 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(rgba(8, 18, 10, 0.95), rgba(8, 18, 10, 0.95)),
    radial-gradient(circle at left, rgba(34, 139, 55, 0.3), transparent 35%);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.7);
}

.project-close {
  position: absolute;
  top: 12px;
  left: 18px;
  background: none;
  border: none;
  color: white;
  font-size: 34px;
  font-weight: 800;
  cursor: pointer;
}

.project-popup-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 38px;
}

.project-text h2 {
  font-size: 31px;
  font-style: italic;
  margin-bottom: 24px;
  text-shadow: 0 0 12px rgba(255,255,255,0.6);
}

.project-meta {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 700;
  margin-bottom: 22px;
}

.project-text p,
.project-text li {
  font-size: 14px;
  line-height: 1.55;
  text-align: justify;
  font-weight: 600;
}

.project-text h4 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 15px;
}

.project-text ul {
  padding-left: 22px;
}

.project-carousel {
  position: relative;
  width: 100%;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-main-image {
  position: relative;
  z-index: 3;
  width: 72%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.5);
}

.carousel-preview {
  position: absolute;
  z-index: 1;
  width: 46%;
  max-height: 350px;
  object-fit: contain;
  border-radius: 14px;
  opacity: 0.28;
  filter: blur(0.5px) brightness(0.8);
  transform: scale(0.88);
  transition: 0.3s ease;
}

.preview-left {
  left: -10%;
}

.preview-right {
  right: -10%;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(5,20,8,0.78);
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 5;
  transition: 0.25s ease;
}

.carousel-btn:hover {
  background: rgba(30,160,65,0.9);
  box-shadow: 0 0 18px rgba(60,220,95,0.35);
}

.prev {
  left: 16px;
}

.next {
  right: 16px;
}

@media (max-width: 768px) {
  .project-carousel {
    min-height: 340px;
  }

  .carousel-main-image {
    width: 82%;
    max-height: 340px;
  }

  .carousel-preview {
    width: 50%;
    max-height: 260px;
    opacity: 0.18;
  }

  .preview-left {
    left: -22%;
  }

  .preview-right {
    right: -22%;
  }
}
/* ==========================================
   ANIMATIONS
========================================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes profileFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatOrb {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-25px) scale(1.08);
  }
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-height: 760px) {
  .home-section {
    padding-top: 78px;
    padding-bottom: 16px;
  }

  .hero-content {
    transform: scale(0.84);
  }
}

@media (max-width: 1100px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .stats-container {
    flex-wrap: wrap;
  }

  .stat-card {
    flex: 1;
    min-width: 240px;
  }

  .portfolio-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .portfolio-sidebar {
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding-right: 0;
    padding-bottom: 18px;
  }

  .portfolio-filter {
    white-space: nowrap;
    font-size: 17px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 850px) {
  .project-popup-box {
    padding: 48px 28px 36px;
    border-radius: 20px;
  }

  .project-popup-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
    padding: 20px 18px;
  }

  .logo img {
    height: 52px;
  }

  .navbar {
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 14px;
    padding: 7px 12px;
  }

  .home-section {
    padding-top: 135px;
    padding-bottom: 40px;
  }

  .hero-content {
    transform: scale(1);
  }

  .profile-ring {
    width: 180px;
    height: 180px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-description {
    font-size: 16px;
    text-align: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 600px) {
  .about-section,
  .portfolio-section {
    padding: 135px 24px 60px;
  }

  .about-title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .about-left h3,
  .about-right h3 {
    font-size: 23px;
  }

  .about-text,
  .education-text {
    font-size: 16px;
    text-align: left;
  }

  .stats-container {
    flex-direction: column;
    gap: 18px;
  }

  .stat-card {
    width: 100%;
    height: 105px;
  }

  .stat-card h4 {
    font-size: 30px;
  }

  .stat-card p {
    font-size: 22px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .portfolio-card {
    max-width: 100%;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 46px;
  }

  .home-section {
    min-height: auto;
    padding-top: 145px;
    padding-bottom: 50px;
  }

  .profile-ring {
    width: 155px;
    height: 155px;
  }

  h1 {
    font-size: 34px;
    margin-top: 18px;
  }

  .hero-role {
    font-size: 13px;
  }

  .hero-description {
    margin: 22px auto 28px;
    font-size: 15px;
    line-height: 1.5;
  }

  .social-links {
    margin-top: 28px;
  }
}

/* FIX CAROUSEL OVERFLOW + TEXT COVERING */

.project-popup-box {
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 28px;
}

.project-popup-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
}

.project-text,
.project-carousel {
  min-width: 0;
}

.project-text {
  position: relative;
  z-index: 3;
}

.project-carousel {
  position: relative;
  width: 100%;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-main-image {
  position: relative;
  z-index: 3;
  width: 68%;
  max-height: 430px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.5);
}

.carousel-preview {
  position: absolute;
  z-index: 1;
  width: 42%;
  max-height: 330px;
  object-fit: contain;
  border-radius: 14px;
  opacity: 0.22;
  filter: blur(0.5px) brightness(0.75);
  transform: scale(0.88);
  pointer-events: none;
}

.preview-left {
  left: 0;
}

.preview-right {
  right: 0;
}

.carousel-btn {
  z-index: 5;
}

.prev {
  left: 14px;
}

.next {
  right: 14px;
}

@media (max-width: 900px) {
  .project-popup-content {
    grid-template-columns: 1fr;
  }

  .project-carousel {
    min-height: 340px;
  }

  .carousel-main-image {
    width: 76%;
    max-height: 340px;
  }

  .carousel-preview {
    width: 44%;
    max-height: 250px;
    opacity: 0.18;
  }
}

/* FIX PROJECT POPUP TITLE WRAPPING */

.project-popup-box {
  width: min(96vw, 1280px);
  border-radius: 28px;
  padding: 52px 56px 48px;
}

.project-popup-content {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  align-items: center;
}

.project-text h2 {
  font-size: 34px;
  line-height: 1.18;
  max-width: 650px;
  margin-bottom: 24px;
}

.carousel-media {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-media img,
.carousel-media iframe {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.carousel-media iframe {
  height: 430px;
  border: none;
  background: #000;
}

.facebook-video-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.facebook-video-box iframe {
  width: 100%;
  height: 430px;
  border: none;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.facebook-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  background: rgba(24, 119, 242, 0.85);
  box-shadow: 0 0 20px rgba(24, 119, 242, 0.25);
  transition: 0.3s ease;
}

.facebook-watch-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(24, 119, 242, 0.45);
}

/* ==========================================
   PREMIUM GRADIENT NAVIGATION FIX
========================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 92px;
  z-index: 999;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 6vw;

  background:
    linear-gradient(
      180deg,
      rgba(2, 12, 5, 0.92) 0%,
      rgba(4, 28, 11, 0.72) 55%,
      rgba(2, 6, 4, 0.08) 100%
    );

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(70, 220, 105, 0.08);
}

/* logo/icon area */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  height: 62px;
  width: auto;

  padding: 6px;

  border-radius: 18px;

  background:
    radial-gradient(circle at center, rgba(72, 255, 120, 0.16), transparent 65%);

  filter:
    drop-shadow(0 0 10px rgba(80, 255, 120, 0.28))
    drop-shadow(0 0 24px rgba(30, 180, 70, 0.2));

  transition: 0.3s ease;
}

.logo img:hover {
  transform: scale(1.06) rotate(-2deg);

  filter:
    drop-shadow(0 0 14px rgba(80, 255, 120, 0.45))
    drop-shadow(0 0 34px rgba(30, 180, 70, 0.35));
}

/* nav container */
.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;

  padding: 10px 16px;

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.045),
      rgba(39, 180, 72, 0.08)
    );

  border: 1px solid rgba(80, 220, 105, 0.12);

  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.025),
    0 12px 32px rgba(0, 0, 0, 0.24);
}

/* nav links */
.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;

  font-size: 15px;
  font-weight: 500;

  padding: 8px 16px;
  border-radius: 999px;

  transition: 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      rgba(23, 115, 42, 0.95),
      rgba(9, 65, 25, 0.88)
    );

  box-shadow:
    0 0 0 1px rgba(95, 255, 125, 0.22),
    0 0 18px rgba(58, 220, 90, 0.28),
    inset 0 0 14px rgba(255, 255, 255, 0.05);
}

/* give sections room so fixed nav does not cover content */
.home-section,
.about-section,
.portfolio-section {
  scroll-margin-top: 110px;
}

/* desktop/laptop fit */
@media (max-width: 1100px) {
  .site-header {
    height: auto;
    padding: 16px 24px;
  }

  .navbar {
    gap: 10px;
  }

  .nav-link {
    font-size: 14px;
    padding: 8px 12px;
  }

  .logo img {
    height: 54px;
  }
}

/* mobile */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px 16px;
  }

  .navbar {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px;
  }

  .nav-link {
    font-size: 13px;
    padding: 7px 10px;
  }

  .logo img {
    height: 46px;
  }
}

/* FIX NAVIGATION SCROLL POSITION */

.home-section,
.about-section,
.portfolio-section {
  scroll-margin-top: 0;
}

/* keep enough top spacing manually */
.about-section {
  padding-top: 95px;
}

.portfolio-section {
  padding-top: 95px;
}

/* ==========================================
   CREATIVE WORKS VIEW
========================================== */

.hidden {
  display: none !important;
}

.creative-view {
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creative-content {
  width: 100%;
  max-width: 920px;
  text-align: center;
}

.creative-content h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 42px;
}

.creative-content p {
  max-width: 780px;
  margin: 0 auto 28px;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

.creative-collage {
  width: 6000px;          /* change size here */
  max-width: 100%;
  display: block;

  margin-top: -80px;     /* move down */
  margin-left: -10px;   /* move left */
  margin-right: auto;

  object-fit: contain;
}

@keyframes creativeFloat {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@media (max-width: 900px) {
  .creative-content h3 {
    margin-bottom: 28px;
  }

  .creative-content p {
    font-size: 15px;
  }

  .creative-collage {
    max-width: 100%;
  }
}

/* ==========================================
   CREATIVE WORKS CLEAN FIX
========================================== */

/* keep sidebar stable when switching views */
.portfolio-layout {
  align-items: start;
}

.portfolio-sidebar {
  align-self: start;
  min-width: 170px;
}

/* remove duplicate "My Portfolio" inside Creative Works */
.creative-content h3 {
  display: none;
}

/* paragraph goes to the left */
.creative-content {
  text-align: left;
  max-width: 950px;
}

.creative-content p {
  max-width: 760px;
  margin: 0 0 24px 0;
  text-align: left;
  margin-left: 60px;   /* move left */
  margin-right: auto;
}

/* stop collage from moving */
.creative-collage {
  animation: none !important;
  transform: none !important;
  margin-left: 0;
}

/* keep creative view aligned nicely beside sidebar */
.creative-view {
  align-items: flex-start;
  justify-content: flex-start;
}

/* STABLE PORTFOLIO SIDE NAVIGATION */

.portfolio-layout {
  align-items: start;
}

.portfolio-sidebar {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);

  align-self: start;
  justify-content: center;

  margin-top: 0;
}

/* ==========================================
   CREATIVE WORKS LONG SCROLL SECTION
========================================== */

.creative-view {
  width: 100%;
  display: block;
}

.creative-content {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  text-align: left;
}

.creative-intro {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: left;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

.creative-collage {
  width: 920px;
  max-width: 100%;
  display: block;
  margin: 0 auto 110px;
  object-fit: contain;
  animation: none !important;
  transform: none !important;
  filter:
    drop-shadow(0 25px 60px rgba(0,0,0,0.55))
    drop-shadow(0 0 35px rgba(40,160,75,0.18));
}

.creative-project {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 130px;
}

.creative-project-left {
  grid-template-columns: 1.05fr 1fr;
}

.creative-project-text h3 {
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 6px;
}

.creative-project-text span {
  display: block;
  font-size: 14px;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
}

.creative-project-text p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.9);
  text-align: justify;
}

.creative-project-text h4 {
  font-size: 15px;
  margin: 22px 0 8px;
}

.creative-project-text ul {
  padding-left: 22px;
  margin-bottom: 18px;
}

.creative-project-text li {
  font-size: 14px;
  line-height: 1.5;
}

.two-column-list {
  columns: 2;
}

.creative-project-image img {
  width: 100%;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 25px 60px rgba(0,0,0,0.55))
    drop-shadow(0 0 35px rgba(70,120,255,0.12));
}

/* allow Creative Works to scroll naturally */
.portfolio-section {
  min-height: 100vh;
  height: auto;
}

/* keep sidebar stable */
.portfolio-layout {
  align-items: start;
}

.portfolio-sidebar {
  align-self: start;
}

@media (max-width: 900px) {
  .creative-project,
  .creative-project-left {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 90px;
  }

  .creative-project-left .creative-project-image {
    order: 2;
  }

  .creative-project-left .creative-project-text {
    order: 1;
  }

  .two-column-list {
    columns: 1;
  }

  .creative-collage {
    margin-bottom: 70px;
  }
}

/* FIX CREATIVE WORKS PROJECT TITLES */

.creative-content > h3 {
  display: none;
}

.creative-project-text h3 {
  display: block !important;
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255,255,255,0.35);
}

/* STICKY PORTFOLIO SIDE NAVIGATION */

.portfolio-layout {
  align-items: start;
}

.portfolio-sidebar {
  position: sticky;
  top: 400px;
  align-self: start;
  height: fit-content;
  z-index: 20;
}

@media (max-width: 1100px) {
  .portfolio-sidebar {
    position: relative;
    top: 0;
  }
}

/* SAFE PORTFOLIO SIDEBAR RESET + STICKY */

@media (min-width: 1101px) {
  .portfolio-layout {
    display: grid !important;
    grid-template-columns: 170px 1fr !important;
    gap: 55px !important;
    align-items: start !important;
  }

  .portfolio-sidebar {
    position: sticky !important;
    top: 155px !important;
    left: auto !important;
    transform: none !important;

    width: 170px !important;
    align-self: start !important;
    height: fit-content !important;

    margin: 0 !important;
    z-index: 20 !important;
  }

  .portfolio-grid,
  .creative-view {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* ONLY MOVE CREATIVE WORKS INTRO + COLLAGE */

.portfolio-section.creative-active .creative-view {
  grid-column: 1 / -1;
  width: 100%;
}

.portfolio-section.creative-active .creative-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 5vw;
}

/* only the paragraph moves to the right of the sidebar divider */
.portfolio-section.creative-active .creative-intro {
  max-width: 820px;
  margin-left: 225px;
  margin-right: auto;
  margin-top: -40px;
  margin-bottom: 28px;
  text-align: left;
}

/* only creative-works.png moves to the right of the sidebar divider */
.portfolio-section.creative-active .creative-collage {
  width: 1180px;
  max-width: calc(140% - 225px);
  margin-left: 135px;
  margin-right: auto;
  margin-top: -480px;
  margin-bottom: 100px;
}

/* keep the lower creative project sections normal/full */
.portfolio-section.creative-active .creative-project {
  max-width: 1350px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-section.creative-active .creative-intro {
  transform: translate(0px, 140px);
}

/* ==========================================
   PHOTOGRAPHY VIEW
========================================== */

.photography-view {
  grid-column: 2 / 3;
  width: 100%;
}

.photography-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.photography-intro {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 110px;
}

.photography-intro p {
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  margin-bottom: 24px;
}

.photo-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.photo-mini-grid img {
  width: 100%;
  aspect-ratio: 1 / 0.8;
  object-fit: cover;
  border-radius: 8px;
  filter: brightness(0.85);
}

.photography-profile img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.photography-profile p {
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
  opacity: 0.85;
}

/* individual photography sections */

.photo-section {
  margin-bottom: 120px;
}

.photo-section-title {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 28px;
}

.photo-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 48px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Slide animation keyframes */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.photo-main-frame {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 4 / 3;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}

.photo-main-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

/* Animate the main frame image on slide */
.photo-main-frame.slide-right img {
  animation: slideInRight 0.3s ease forwards;
}

.photo-main-frame.slide-left img {
  animation: slideInLeft 0.3s ease forwards;
}

.photo-side-preview {
  position: absolute;
  width: clamp(80px, 15%, 180px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  opacity: 0.3;
  filter: brightness(0.7);
  z-index: 1;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.photo-side-preview.left {
  left: 48px;
}

.photo-side-preview.right {
  right: 48px;
}

.photo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(5, 20, 8, 0.72);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  transition: 0.25s ease;
}

.photo-arrow:hover {
  color: #5cff82;
  background: rgba(20, 100, 40, 0.85);
  border-color: rgba(92, 255, 130, 0.4);
  transform: translateY(-50%) scale(1.08);
}

.photo-arrow.left {
  left: 6px;
}

.photo-arrow.right {
  right: 6px;
}

/* Responsive photography carousel */
@media (max-width: 768px) {
  .photo-carousel {
    padding: 0 40px;
  }

  .photo-side-preview {
    display: none;
  }

  .photo-arrow {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .photo-carousel {
    padding: 0 36px;
  }

  .photo-main-frame {
    aspect-ratio: 4 / 3;
  }
}

.photo-gallery-btn {
  position: absolute;
  left: 0;
  bottom: 30px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: white;
  font-size: 25px;
  cursor: pointer;
  z-index: 6;
  transition: 0.25s ease;
}

.photo-gallery-btn:hover {
  color: #5cff82;
  transform: scale(1.1);
}

.photo-counter {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
}

.photo-details {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.photo-details p {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.88);
}

.photo-details strong {
  color: white;
}

.photo-desc {
  grid-column: span 2;
}

/* gallery modal */

.photo-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(14px);
  padding: 30px;
}

.photo-gallery-modal.active {
  display: flex;
}

.photo-gallery-box {
  width: min(1100px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(4, 18, 8, 0.96);
  border: 1px solid rgba(90,255,125,0.16);
  border-radius: 26px;
  padding: 34px;
  position: relative;
  box-shadow: 0 0 70px rgba(0,0,0,0.7);
}

.photo-gallery-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 34px;
  cursor: pointer;
}

.photo-gallery-box h2 {
  text-align: center;
  margin-bottom: 28px;
  font-size: 26px;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* KEEP GALLERY PHOTOS NOT STRETCHED OR CROPPED */

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.photo-gallery-grid img {
  width: 100% !important;
  height: auto !important;

  max-width: 100% !important;
  max-height: none !important;

  object-fit: contain !important;
  border-radius: 14px;
  display: block;

  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 15px 35px rgba(0,0,0,0.45);
}

/* responsive */

@media (max-width: 1000px) {
  .photography-view {
    grid-column: 1 / -1;
  }

  .photography-intro {
    grid-template-columns: 1fr;
  }

  .photo-side-preview {
    display: none;
  }

  .photo-main-frame {
    width: 82%;
  }

  .photo-details {
    grid-template-columns: 1fr;
  }

  .photo-desc {
    grid-column: span 1;
  }

  .photo-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .photo-main-frame {
    width: 100%;
  }

  .photo-main-frame img {
    height: 260px;
  }

  .photo-arrow.left {
    left: -12px;
  }

  .photo-arrow.right {
    right: -12px;
  }

  .photo-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.photography-preview-img {
  width: 120%;
  max-width: 570px;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 20px 45px rgba(0,0,0,0.45))
    drop-shadow(0 0 28px rgba(40,160,75,0.16));
}

/* PHOTOGRAPHY: INTRO STAYS BESIDE SIDEBAR, CAROUSELS CENTERED */

.portfolio-section.photography-active .photography-view {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.portfolio-section.photography-active .photography-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.portfolio-section.photography-active .photography-intro {
  width: calc(100% - 260px) !important;
  max-width: 1250px !important;
  margin-left: 260px !important;
  margin-right: auto !important;
}

.portfolio-section.photography-active #photographySections {
  width: 100% !important;
}

.portfolio-section.photography-active .photo-section:last-child {
  width: 100% !important;
}

.portfolio-section.photography-active .photo-section {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.portfolio-section.photography-active .photo-carousel {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
}

.portfolio-section.photography-active .photo-details {
  width: 900px !important;
  max-width: 90% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.portfolio-section.photography-active .photography-intro {
  margin-top: -310px !important;
}

/* ==========================================
   CONTACT SECTION
========================================== */

.contact-section {
  min-height: 100vh;
  width: 100%;
  padding: 135px 8vw 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 35%, rgba(30, 130, 55, 0.35), transparent 32%),
    radial-gradient(circle at 85% 42%, rgba(30, 130, 55, 0.32), transparent 34%),
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08), transparent 28%),
    #020804;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0.16;
  pointer-events: none;
}

.contact-container {
  position: relative;
  z-index: 2;
  max-width: 1350px;
  margin: 0 auto;
}

.contact-heading {
  text-align: center;
  margin-bottom: 55px;
}

.contact-heading h2 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 0 18px rgba(255,255,255,0.22);
  margin-bottom: 20px;
}

.contact-heading p {
  font-size: clamp(18px, 2vw, 27px);
  color: rgba(255,255,255,0.88);
  font-weight: 500;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.contact-form {
  width: 100%;
}

.form-group {
  margin-bottom: 26px;
}

.form-group label {
  display: block;
  color: #ffffff;
  font-size: 25px;
  font-weight: 600;
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 18px;
  border-radius: 28px;
  padding: 21px 32px;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,0.18),
      rgba(255,255,255,0.04),
      rgba(255,255,255,0.14)
    );
  box-shadow:
    inset 0 0 35px rgba(255,255,255,0.07),
    0 18px 40px rgba(0,0,0,0.25);
  backdrop-filter: blur(14px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.28);
}

.form-group textarea {
  height: 190px;
  resize: none;
  border-radius: 28px;
}

.contact-submit {
  margin-top: 5px;
  border: none;
  cursor: pointer;
  padding: 17px 34px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  background: linear-gradient(135deg, #137a32, #27bd56);
  box-shadow:
    0 0 18px rgba(39,189,86,0.35),
    0 15px 35px rgba(0,0,0,0.35);
  transition: 0.25s ease;
}

.contact-submit:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 25px rgba(39,189,86,0.55),
    0 18px 40px rgba(0,0,0,0.45);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 42px;
  align-items: flex-start;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 25px;
  width: 100%;
  max-width: 520px;
  padding: 14px 32px 14px 18px;
  border-radius: 27px;
  text-decoration: none;
  color: #ffffff;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,0.18),
      rgba(255,255,255,0.04),
      rgba(255,255,255,0.14)
    );
  box-shadow:
    inset 0 0 30px rgba(255,255,255,0.08),
    0 18px 40px rgba(0,0,0,0.28);
  backdrop-filter: blur(14px);
}

.contact-card-small {
  max-width: 420px;
}

.contact-icon {
  width: 78px;
  height: 78px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 41px;
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(180,255,190,0.20);
  box-shadow:
    inset 0 0 18px rgba(255,255,255,0.10),
    0 0 20px rgba(80,255,120,0.35);
}

.contact-card span {
  font-size: 25px;
  font-weight: 500;
  word-break: break-word;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 30px rgba(255,255,255,0.08),
    0 0 25px rgba(57,255,105,0.22),
    0 18px 40px rgba(0,0,0,0.35);
}

/* responsive */

@media (max-width: 1000px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .contact-info {
    align-items: stretch;
  }

  .contact-card,
  .contact-card-small {
    min-width: 0;
    width: 100%;
  }

  .contact-card span {
    white-space: normal;
    font-size: 21px;
  }
}

@media (max-width: 600px) {
  .contact-section {
    padding: 120px 6vw 70px;
  }

  .form-group label {
    font-size: 20px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px;
    padding: 18px 24px;
  }

  .contact-icon {
    width: 62px;
    height: 62px;
    font-size: 31px;
  }

  .contact-card {
    gap: 18px;
    padding: 13px 20px 13px 14px;
  }

  .contact-card span {
    font-size: 18px;
  }
}

/* CONTACT PAGE SIZE FIX - SMALLER VERSION */

.contact-section {
  padding: 120px 9vw 70px !important;
}

.contact-heading {
  margin-bottom: 38px !important;
}

.contact-heading h2 {
  font-size: 46px !important;
  margin-bottom: 12px !important;
}

.contact-heading p {
  font-size: 20px !important;
}

.contact-layout {
  max-width: 1050px !important;
  margin: 0 auto !important;
  gap: 55px !important;
  align-items: start !important;
}

.form-group {
  margin-bottom: 18px !important;
}

.form-group label {
  font-size: 19px !important;
  margin-bottom: 10px !important;
}

.form-group input,
.form-group textarea {
  font-size: 15px !important;
  padding: 15px 24px !important;
  border-radius: 22px !important;
}

.form-group textarea {
  height: 145px !important;
}

.contact-submit {
  font-size: 15px !important;
  padding: 13px 28px !important;
}

.contact-info {
  gap: 28px !important;
  padding-top: 30px !important;
}

.contact-card {
  min-width: 360px !important;
  padding: 11px 24px 11px 14px !important;
  gap: 18px !important;
  border-radius: 22px !important;
}

.contact-card-small {
  min-width: 300px !important;
}

.contact-icon {
  width: 58px !important;
  height: 58px !important;
  font-size: 28px !important;
}

.contact-card span {
  font-size: 18px !important;
}

/* PROJECT POPUP CAROUSEL COUNTER */

.project-counter {
  margin-top: 12px;
  text-align: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(255,255,255,0.35);
}

/* PROJECT POPUP COUNTER BELOW IMAGE/VIDEO */

.project-media-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.project-counter {
  margin-top: 10px !important;
  text-align: center !important;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(255,255,255,0.35);
}

/* ==========================================
   EXPERIENCES SECTION
========================================== */

.experiences-section {
  min-height: 100vh;
  width: 100%;
  padding: 120px 8vw 90px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 22%, rgba(31, 128, 52, 0.38), transparent 28%),
    radial-gradient(circle at 82% 30%, rgba(35, 135, 55, 0.35), transparent 32%),
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(180deg, #020804 0%, #041006 50%, #021006 100%);
}

.experiences-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0.14;
  pointer-events: none;
}

.experiences-container {
  position: relative;
  z-index: 2;
  max-width: 1250px;
  margin: 0 auto;
}

.experiences-heading {
  text-align: center;
  margin-bottom: 70px;
}

.experiences-heading h2 {
  font-size: 48px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.experiences-heading p {
  font-size: 16px;
  color: rgba(255,255,255,0.88);
}

.experience-timeline {
  position: relative;
  width: 100%;
  padding: 10px 0 30px;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    #66ff79,
    #5bff76,
    #64ff8a
  );
  box-shadow: 0 0 18px rgba(95,255,126,0.75);
}

.timeline-line::before {
  content: "!";
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  color: #62ff75;
  font-size: 32px;
  font-weight: 900;
  text-shadow: 0 0 15px rgba(100,255,120,0.85);
}

.timeline-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, #9aff9d 0 4px, transparent 5px) center 0 / 100% 250px repeat-y;
}

.experience-item {
  position: relative;
  width: 50%;
  min-height: 355px;
  display: flex;
}

.experience-item.left {
  left: 0;
  justify-content: flex-end;
  padding-right: 65px;
}

.experience-item.right {
  left: 50%;
  justify-content: flex-start;
  padding-left: 65px;
}

.experience-item::before {
  content: "";
  position: absolute;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7dff87;
  box-shadow: 0 0 18px rgba(120,255,135,0.9);
  z-index: 3;
}

.experience-item.left::before {
  right: -6px;
}

.experience-item.right::before {
  left: -6px;
}

.experience-card {
  width: 100%;
  max-width: 405px;
  min-height: 270px;
  padding: 28px 34px;
  border-radius: 24px;
  color: #ffffff;
  background:
    linear-gradient(
      115deg,
      rgba(255,255,255,0.16),
      rgba(255,255,255,0.04),
      rgba(255,255,255,0.12)
    );
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 0 35px rgba(255,255,255,0.06),
    0 25px 55px rgba(0,0,0,0.42),
    0 0 35px rgba(65,170,80,0.12);
}

.experience-date {
  text-align: right;
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 10px;
}

.experience-card h3 {
  font-size: 21px;
  line-height: 1.08;
  font-weight: 850;
  text-align: center;
  margin-bottom: 14px;
  color: #ffffff;
}

.experience-card h4 {
  font-size: 15px;
  font-weight: 500;
  text-align: right;
  color: rgba(255,255,255,0.72);
  margin-bottom: 18px;
}

.experience-card ul {
  padding-left: 18px;
  margin: 0;
}

.experience-card li {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
  margin-bottom: 5px;
  text-align: justify;
}

/* responsive */

@media (max-width: 950px) {
  .timeline-line {
    left: 20px;
  }

  .experience-item,
  .experience-item.left,
  .experience-item.right {
    width: 100%;
    left: 0;
    justify-content: flex-start;
    padding-left: 55px;
    padding-right: 0;
    min-height: auto;
    margin-bottom: 45px;
  }

  .experience-item.left::before,
  .experience-item.right::before {
    left: 14px;
    right: auto;
  }

  .experience-card {
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 600px) {
  .experiences-section {
    padding: 110px 6vw 70px;
  }

  .experiences-heading h2 {
    font-size: 38px;
  }

  .experiences-heading p {
    font-size: 14px;
  }

  .experience-card {
    padding: 24px 24px;
  }

  .experience-card h3 {
    font-size: 18px;
  }

  .experience-card li {
    font-size: 11px;
  }
}

/* EXPERIENCE CARD TEXT ALIGN FIX */

.experience-card h3 {
  text-align: left !important;
  padding-left: 18px !important;
}

.experience-card h4 {
  text-align: left !important;
  padding-left: 18px !important;
}

.experience-date {
  text-align: left !important;
  padding-left: 18px !important;
}

.experience-card ul {
  padding-left: 34px !important;
}

/* REMOVE HUGE GAP BETWEEN PHOTOGRAPHY AND EXPERIENCES */

.portfolio-section {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.portfolio-section.photography-active #photographySections {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.portfolio-section.photography-active .photo-section:last-child {
  margin-bottom: 30px !important;
  padding-bottom: 0 !important;
}

.experiences-section {
  margin-top: 0 !important;
  padding-top: 75px !important;
}

/* EXPERIENCE TOP SPACING FIX */

.experiences-section {
  padding-top: 135px !important;
}

.experiences-heading {
  margin-bottom: 80px !important;
}

/* FIX GAP BETWEEN EXPERIENCES AND CONTACT */

.experiences-section {
  min-height: auto !important;
  padding-bottom: 25px !important;
  margin-bottom: 0 !important;
}

.experience-timeline {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.experience-item:last-child {
  min-height: auto !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.contact-section {
  margin-top: 0 !important;
  padding-top: 75px !important;
}

/* CONTACT PAGE FIT IN ONE SCREEN */

.contact-section {
  min-height: 100vh !important;
  height: 100vh !important;
  padding: 110px 8vw 35px !important;
  overflow: hidden !important;
}

.contact-container {
  max-width: 1100px !important;
  height: 100% !important;
  margin: 0 auto !important;
}

.contact-heading {
  margin-bottom: 28px !important;
}

.contact-heading h2 {
  font-size: 42px !important;
  margin-bottom: 8px !important;
  line-height: 1 !important;
}

.contact-heading p {
  font-size: 18px !important;
  line-height: 1.2 !important;
}

.contact-layout {
  max-width: 1050px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1.05fr 0.95fr !important;
  gap: 55px !important;
  align-items: start !important;
}

.form-group {
  margin-bottom: 13px !important;
}

.form-group label {
  font-size: 18px !important;
  margin-bottom: 7px !important;
}

.form-group input,
.form-group textarea {
  font-size: 14px !important;
  padding: 13px 24px !important;
  border-radius: 21px !important;
}

.form-group input {
  height: 48px !important;
}

.form-group textarea {
  height: 115px !important;
  resize: none !important;
}

.contact-submit {
  margin-top: 3px !important;
  font-size: 14px !important;
  padding: 12px 28px !important;
}

.contact-info {
  gap: 24px !important;
  padding-top: 38px !important;
}

.contact-card {
  min-width: 350px !important;
  height: 74px !important;
  padding: 10px 22px 10px 14px !important;
  gap: 18px !important;
  border-radius: 22px !important;
}

.contact-card-small {
  min-width: 300px !important;
}

.contact-icon {
  width: 56px !important;
  height: 56px !important;
  font-size: 27px !important;
}

.contact-card span {
  font-size: 17px !important;
}


/* ==========================================
   MOBILE FIXES — overrides everything above
========================================== */

@media (max-width: 768px) {

  /* NAV: single row, compact, no wrap */
  .site-header {
    flex-direction: column;
    align-items: center;
    padding: 12px 16px 10px;
    gap: 8px;
    height: auto;
  }

  .logo img {
    height: 40px;
  }

  .navbar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 16px;
  }

  .nav-link {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* HOME: give room below nav */
  .home-section {
    padding-top: 140px;
    padding-bottom: 48px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .profile-ring {
    width: 140px;
    height: 140px;
  }

  h1 {
    font-size: 32px;
  }

  .hero-role {
    font-size: 13px;
  }

  .hero-description {
    font-size: 15px;
    text-align: center;
    margin: 16px auto 24px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    min-width: unset;
  }

  /* ABOUT */
  .about-section {
    padding: 130px 20px 50px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-title {
    font-size: 22px;
  }

  .about-text,
  .education-text {
    font-size: 15px;
    text-align: left;
  }

  .stats-container {
    flex-direction: column;
    gap: 12px;
  }

  .stat-card {
    width: 100%;
    height: auto;
    padding: 18px;
  }

  /* PORTFOLIO */
  .portfolio-section {
    padding: 120px 16px 50px !important;
  }

  .portfolio-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .portfolio-sidebar {
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.3) !important;
    padding-right: 0 !important;
    padding-bottom: 12px !important;
    width: 100% !important;
    min-width: unset !important;
    gap: 16px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .portfolio-sidebar::-webkit-scrollbar {
    display: none;
  }

  .portfolio-filter {
    white-space: nowrap;
    font-size: 15px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .portfolio-card h3 {
    font-size: 14px;
  }

  /* PROJECT POPUP — mobile full screen */
  .project-popup {
    padding: 0 !important;
    align-items: flex-end !important;
  }

  .project-popup-box {
    width: 100% !important;
    max-height: 92vh !important;
    border-radius: 24px 24px 0 0 !important;
    padding: 44px 20px 32px !important;
    overflow-y: auto !important;
  }

  .project-popup-content {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .project-text h2 {
    font-size: 20px !important;
    line-height: 1.25 !important;
  }

  .project-meta {
    font-size: 13px !important;
  }

  .project-text p,
  .project-text li {
    font-size: 13px !important;
  }

  .carousel-media img,
  .carousel-media iframe {
    max-height: 240px !important;
  }

  /* CREATIVE WORKS */
  .creative-view {
    display: block !important;
  }

  .creative-project,
  .creative-project-left {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin-bottom: 60px !important;
  }

  .portfolio-section.creative-active .creative-intro {
    margin-left: 0 !important;
    margin-top: 0 !important;
    max-width: 100% !important;
    transform: none !important;
  }

  .portfolio-section.creative-active .creative-collage {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
  }

  .creative-intro {
    transform: none !important;
  }

  /* PHOTOGRAPHY */
  .portfolio-section.photography-active .photography-intro {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    grid-template-columns: 1fr !important;
  }

  .photography-intro {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin-bottom: 48px !important;
  }

  .photo-carousel {
    padding: 0 40px !important;
    width: 100% !important;
    justify-content: center !important;
    margin-left: 0 !important;
  }

  .photo-main-frame {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 4 / 3 !important;
  }

  .photo-side-preview {
    display: none !important;
  }

  .photo-arrow.left {
    left: 4px !important;
  }

  .photo-arrow.right {
    right: 4px !important;
  }

  .photo-gallery-btn {
    left: 4px !important;
    bottom: -36px !important;
  }

  .photo-details {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .photo-desc {
    grid-column: span 1 !important;
  }

  .portfolio-section.photography-active .photo-details {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* CONTACT */
  .contact-section {
    height: auto !important;
    min-height: 100vh !important;
    padding: 130px 20px 60px !important;
    overflow: visible !important;
  }

  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .contact-heading h2 {
    font-size: 32px !important;
  }

  .contact-heading p {
    font-size: 16px !important;
  }

  .contact-info {
    padding-top: 0 !important;
    gap: 16px !important;
  }

  .contact-card {
    min-width: unset !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    padding: 12px 16px !important;
    gap: 14px !important;
  }

  .contact-card-small {
    min-width: unset !important;
  }

  .contact-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 22px !important;
    flex-shrink: 0;
  }

  .contact-card span {
    font-size: 14px !important;
    word-break: break-all !important;
  }

  .form-group label {
    font-size: 16px !important;
  }

  .form-group input,
  .form-group textarea {
    font-size: 14px !important;
    padding: 12px 18px !important;
  }

  .form-group textarea {
    height: 120px !important;
  }

  /* PHOTO GALLERY MODAL */
  .photo-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .photo-gallery-box {
    padding: 20px !important;
    border-radius: 16px !important;
  }
}

/* Very small phones */
@media (max-width: 390px) {
  .portfolio-grid {
    grid-template-columns: 1fr !important;
  }

  .nav-link {
    font-size: 11px;
    padding: 5px 8px;
  }
}


/* ==========================================
   FORCE HIDDEN VIEWS TO NOT BLEED
========================================== */

.creative-view.hidden,
.photography-view.hidden {
  display: none !important;
  visibility: hidden !important;
  overflow: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

.creative-view.hidden *,
.photography-view.hidden * {
  transform: none !important;
  visibility: hidden !important;
}


/* ==========================================
   TABLET FIXES (769px - 1100px)
========================================== */

@media (min-width: 769px) and (max-width: 1100px) {

  /* Portfolio sidebar goes horizontal on tablet */
  .portfolio-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .portfolio-sidebar {
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.3) !important;
    padding-right: 0 !important;
    padding-bottom: 14px !important;
    width: 100% !important;
    gap: 16px !important;
  }

  .portfolio-filter {
    white-space: nowrap;
    font-size: 16px;
  }

  /* Photography intro: reset all the desktop pixel offsets */
  .portfolio-section.photography-active .photography-intro {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
  }

  .photography-intro {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    margin-bottom: 60px !important;
  }

  /* Creative works: reset desktop pixel offsets */
  .portfolio-section.creative-active .creative-intro {
    margin-left: 0 !important;
    margin-top: 0 !important;
    max-width: 100% !important;
    transform: none !important;
  }

  .portfolio-section.creative-active .creative-collage {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
  }

  .creative-intro {
    transform: none !important;
  }

  /* Photo carousel */
  .portfolio-section.photography-active .photo-details {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Portfolio grid 2 cols on tablet */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }

  /* Project popup stacks on tablet */
  .project-popup-content {
    grid-template-columns: 1fr !important;
  }

  .project-popup-box {
    padding: 48px 36px 40px !important;
  }
}

/* ==========================================
   PORTFOLIO NAVIGATION ON TOP
   Put category buttons below "My Portfolio"
========================================== */

.portfolio-title {
  margin-bottom: 22px !important;
}

/* remove left-sidebar grid */
.portfolio-layout {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  width: 100% !important;
}

/* make portfolio nav horizontal under title */
.portfolio-sidebar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;

  width: min(100%, 920px) !important;
  min-width: 0 !important;
  height: auto !important;

  margin: 0 auto 48px !important;
  padding: 0 0 18px !important;

  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;

  gap: 28px !important;

  border-right: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.55) !important;

  z-index: 20 !important;
}

.portfolio-filter {
  text-align: center !important;
  font-size: 16px !important;
  white-space: nowrap !important;
  transform: none !important;
}

.portfolio-filter:hover,
.portfolio-filter.active {
  color: #4dff78 !important;
  transform: translateY(-2px) !important;
}

/* projects stay centered below top portfolio nav */
.portfolio-grid {
  width: 100% !important;
  max-width: 1050px !important;
  margin: 0 auto !important;

  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
}

/* creative and photography content also starts below top nav */
.creative-view,
.photography-view {
  width: 100% !important;
  grid-column: auto !important;
  margin: 0 auto !important;
}

/* remove old left-sidebar offsets for Creative Works */
.portfolio-section.creative-active .creative-view {
  grid-column: auto !important;
  width: 100% !important;
}

.portfolio-section.creative-active .creative-content {
  width: 100% !important;
  max-width: 1050px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.portfolio-section.creative-active .creative-intro {
  max-width: 760px !important;
  margin: 0 auto 32px !important;
  transform: none !important;
  text-align: left !important;
}

.portfolio-section.creative-active .creative-collage {
  width: 920px !important;
  max-width: 100% !important;
  margin: 0 auto 110px !important;
}

/* remove old left-sidebar offsets for Photography */
.portfolio-section.photography-active .photography-view {
  grid-column: auto !important;
  width: 100% !important;
}

.portfolio-section.photography-active .photography-content {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
}

.portfolio-section.photography-active .photography-intro {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto 90px !important;
}

/* tablet */
@media (max-width: 900px) {
  .portfolio-sidebar {
    width: 100% !important;
    gap: 18px !important;
    margin-bottom: 36px !important;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* mobile */
@media (max-width: 600px) {
  .portfolio-sidebar {
    gap: 12px !important;
  }

  .portfolio-filter {
    font-size: 13px !important;
  }

  .portfolio-grid {
    grid-template-columns: 1fr !important;
    max-width: 340px !important;
  }
}

/* FIX: PROJECT CARDS MUST HIDE ON OTHER PORTFOLIO TABS */

.portfolio-grid.hidden,
.creative-view.hidden,
.photography-view.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* when visible, restore correct display */
.portfolio-grid:not(.hidden) {
  display: grid !important;
}

.creative-view:not(.hidden),
.photography-view:not(.hidden) {
  display: block !important;
}

/* ==========================================
   SCROLL DOWN TOAST POPUP
========================================== */

.scroll-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) translateY(40px);

  z-index: 99999;

  padding: 13px 28px;
  border-radius: 999px;

  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;

  background:
    linear-gradient(
      135deg,
      rgba(10, 75, 25, 0.95),
      rgba(35, 150, 60, 0.92)
    );

  border: 1px solid rgba(120, 255, 145, 0.35);

  box-shadow:
    0 0 22px rgba(70, 255, 105, 0.35),
    0 18px 38px rgba(0, 0, 0, 0.45);

  opacity: 0;
  pointer-events: none;

  transition: 0.35s ease;
}

.scroll-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* FIX PORTFOLIO CLICK POSITION UNDER FIXED HEADER */

#portfolio {
  scroll-margin-top: 90px !important;
}

.portfolio-section {
  padding-top: 30px !important;
}