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

/* ===== CSS VARIABLES - LIGHT MODE (DEFAULT) ===== */
/* Portfolio Loading States */
.portfolio-loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.portfolio-error {
  text-align: center;
  padding: 2rem;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
  border-radius: 0.5rem;
  margin: 1rem;
}

:root {
  /* Primary Colors */
  --primaryTextColor: #1a1a2e;
  --secondaryTextColor: #4a4a5a;

  /* Background Colors */
  --primaryBackgroundColor: #ffffff;
  --secondaryBackgroundColor: #f8f9fc;
  --thirdBackgroundColor: #eef0f5;

  /* Border and Lines */
  --borderColor: #e2e4e9;
  --lineColor: #d1d5db;

  /* Accent Colors - Modern Purple Gradient */
  --primaryIconColor: #6366f1;
  --primaryIconColorHover: #4f46e5;
  --accentGradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);

  /* Glass Effect */
  --glassBackground: rgba(255, 255, 255, 0.8);
  --glassBorder: rgba(255, 255, 255, 0.2);

  /* Shadows */
  --cardShadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --cardShadowHover: 0 12px 40px rgba(99, 102, 241, 0.15);
  --headerShadow: 0 4px 30px rgba(0, 0, 0, 0.08);

  /* Layout */
  --sectionPadding: 6rem 0;
  --itemBorderRadius: 1rem;
  --headerHeight: 80px;

  /* Icon colors */
  --serviceIconColor: #374151;
  --contactIconColor: #4b5563;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== DARK MODE VARIABLES ===== */
[data-theme="dark"] {
  --primaryTextColor: #f1f5f9;
  --secondaryTextColor: #94a3b8;

  --primaryBackgroundColor: #0f172a;
  --secondaryBackgroundColor: #1e293b;
  --thirdBackgroundColor: #334155;

  --borderColor: #334155;
  --lineColor: #475569;

  --primaryIconColor: #818cf8;
  --primaryIconColorHover: #a5b4fc;
  --accentGradient: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #c084fc 100%);

  --glassBackground: rgba(15, 23, 42, 0.85);
  --glassBorder: rgba(255, 255, 255, 0.1);

  --cardShadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --cardShadowHover: 0 12px 40px rgba(129, 140, 248, 0.2);
  --headerShadow: 0 4px 30px rgba(0, 0, 0, 0.3);

  /* Brighter icons for dark mode */
  --serviceIconColor: #e2e8f0;
  --contactIconColor: #cbd5e1;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--primaryBackgroundColor);
  color: var(--secondaryTextColor);
  line-height: 1.6;
  transition: background-color var(--transition-medium), color var(--transition-medium);
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6,
strong {
  color: var(--primaryTextColor);
  font-weight: 600;
  transition: color var(--transition-medium);
}

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--secondaryTextColor);
}

p,
span,
label,
input,
textarea,
li {
  color: var(--secondaryTextColor);
  transition: color var(--transition-medium);
}

a {
  text-decoration: none;
  color: var(--primaryIconColor);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primaryIconColorHover);
}

/* ===== LAYOUT ===== */
.main-container {
  width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media screen and (max-width: 1200px) {
  .main-container {
    width: 90%;
  }
}

/* ===== BUTTONS ===== */
.btn {
  padding: 0.875rem 1.75rem;
  background: var(--primaryBackgroundColor);
  border: 2px solid var(--borderColor);
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  color: var(--primaryTextColor);
}

.btn:hover {
  border-color: var(--primaryIconColor);
  color: var(--primaryIconColor);
  box-shadow: var(--cardShadow);
  transform: translateY(-2px);
}

/* ===== TITLES ===== */
.section-title {
  margin: 1rem 0 3rem;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pre-title {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primaryIconColor);
  position: relative;
  padding-left: 50px;
  width: fit-content;
  font-weight: 600;
  font-size: 0.75rem;
}

.pre-title::before {
  content: "";
  width: 35px;
  height: 2px;
  background: var(--accentGradient);
  position: absolute;
  display: block;
  left: 0;
  top: 50%;
  border-radius: 1px;
}

/* ===== GRID LAYOUTS ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

#portfolios .grid-3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding-bottom: 1rem;
}

#portfolios .grid-3>* {
  width: calc(50% - 1rem);
  flex-shrink: 0;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--primaryBackgroundColor);
  transition: background-color var(--transition-medium);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  position: relative;
}

/* Sticky Header for Desktop */
@media screen and (min-width: 826px) {
  header .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: var(--glassBackground);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glassBorder);
    box-shadow: var(--headerShadow);
    max-width: 100%;
  }

  header .nav>* {
    max-width: 1200px;
  }

  header {
    padding-top: var(--headerHeight);
  }

  .nav .logo,
  .nav nav,
  .nav .theme-toggle {
    position: relative;
  }

  .nav {
    padding-left: calc((100% - 1200px) / 2 + 1rem);
    padding-right: calc((100% - 1200px) / 2 + 1rem);
  }
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.75rem;
}

.logo a {
  background: var(--accentGradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation Menu */
nav ul li {
  display: flex;
  align-items: center;
}

nav ul li a {
  color: var(--primaryTextColor);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accentGradient);
  transition: width var(--transition-fast);
  border-radius: 1px;
}

nav ul li a:hover::after {
  width: 100%;
}

/* ===== NAVIGATION DROPDOWN ===== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-dropdown .dropdown-toggle .icon {
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.nav-dropdown:hover .dropdown-toggle .icon {
  transform: rotate(180deg);
  opacity: 1;
}

/* Invisible bridge to prevent dropdown from closing */
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  min-width: 200px;
  background: var(--glassBackground);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--borderColor);
  border-radius: 1rem;
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--borderColor);
  z-index: 100;
}

/* Arrow indicator */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--glassBackground);
  border-left: 1px solid var(--borderColor);
  border-top: 1px solid var(--borderColor);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  display: block;
}

.dropdown-menu li+li {
  margin-top: 0.25rem;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--primaryTextColor);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 0.625rem;
  transition: all 0.2s ease;
  position: relative;
}

.dropdown-menu li a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accentGradient);
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.dropdown-menu li a::after {
  display: none;
}

.dropdown-menu li a:hover {
  background: var(--thirdBackgroundColor);
  color: var(--primaryIconColor);
  padding-left: 1.25rem;
}

.dropdown-menu li a:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* Divider line between items */
.dropdown-menu li:not(:last-child)::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--borderColor);
  margin: 0.25rem 0.75rem 0;
  opacity: 0.5;
}

/* Dark Mode Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--thirdBackgroundColor);
  border: 1px solid var(--borderColor);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-left: 1rem;
}

.theme-toggle:hover {
  background: var(--primaryIconColor);
  border-color: var(--primaryIconColor);
}

.theme-toggle:hover svg {
  fill: white;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: var(--primaryTextColor);
  transition: fill var(--transition-fast);
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

/* Burger Menu */
.burger div {
  width: 25px;
  height: 2px;
  background-color: var(--primaryTextColor);
  margin: 6px;
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.burger {
  display: none;
  z-index: 1001;
  position: fixed;
  top: 28px;
  right: 35px;
  cursor: pointer;
}

/* Mobile Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 8;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ===== HERO SECTION ===== */
#hero {
  min-height: calc(100vh - var(--headerHeight));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 2rem 0;
}

.hero-name {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0.75rem 0 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-name span {
  background: var(--accentGradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-left p {
  font-size: 1.125rem;
  max-width: 480px;
  margin-top: 0.5rem;
}

.hero-right img {
  width: 100%;
  max-width: 450px;
  border-radius: 1.5rem;
  position: relative;
  z-index: 2;
  transition: transform var(--transition-medium);
}

.hero-right img:hover {
  transform: scale(1.02);
}

.hero-right {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Abstract blob shapes behind hero image */
.hero-right::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  background: var(--accentGradient);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0.6;
  filter: blur(40px);
  animation: blobMorph 8s ease-in-out infinite;
}

.hero-right::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  background: var(--primaryIconColor);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -60%);
  z-index: 0;
  opacity: 0.4;
  filter: blur(50px);
  animation: blobMorph2 10s ease-in-out infinite;
}

@keyframes blobMorph {

  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }

  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

@keyframes blobMorph2 {

  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: translate(-40%, -60%);
  }

  50% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    transform: translate(-60%, -40%);
  }
}

/* ===== ABOUT ME / TENTANG SAYA SECTION ===== */
#about {
  background-color: var(--secondaryBackgroundColor);
  padding: var(--sectionPadding);
  transition: background-color var(--transition-medium);
}

.about .pre-title {
  margin-bottom: 2rem;
}

.about-columns {
  display: flex;
  gap: 4rem;
}

.about-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-item {
  /* Setiap item dalam kolom */
}

.about-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primaryTextColor);
  line-height: 1.3;
}

.about-title em {
  font-style: italic;
  color: var(--primaryIconColor);
}

.about-item p {
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: justify;
}

.about-list {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
}

.about-list li {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  padding-left: 0;
}

.about-list li strong {
  color: var(--primaryTextColor);
}

.about-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.about-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--thirdBackgroundColor);
  color: var(--secondaryTextColor);
  transition: all var(--transition-fast);
}

.about-social a:hover {
  background: var(--accentGradient);
  color: white;
  transform: translateY(-3px);
}

.about-social a .icon {
  color: inherit;
}

/* Responsive About Columns */
@media screen and (max-width: 900px) {
  .about-columns {
    flex-direction: column;
    gap: 2.5rem;
  }
}

/* ===== FLOATING BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accentGradient);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-medium);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.back-to-top .icon {
  color: white;
}

@media screen and (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* ===== PORTFOLIOS SECTION ===== */
#portfolios {
  padding: var(--sectionPadding);
}

.portfolio {
  border-radius: var(--itemBorderRadius);
  overflow: hidden;
  border: 1px solid var(--borderColor);
  display: block;
  text-decoration: none;
  background: var(--primaryBackgroundColor);
  box-shadow: var(--cardShadow);
  transition: all var(--transition-medium);
  cursor: pointer;
}

.portfolio:hover {
  transform: translateY(-8px);
  box-shadow: var(--cardShadowHover);
  border-color: var(--primaryIconColor);
}

.portfolio-cover {
  height: 280px;
  background: var(--thirdBackgroundColor);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-medium);
}

.portfolio:hover img {
  transform: scale(1.02);
}

.portfolio-info {
  padding: 1.75rem 1.5rem;
}

.portfolio-info p {
  text-align: justify;
  font-size: 0.9rem;
  line-height: 1.7;
}

.portfolio-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.portfolio h4 {
  font-weight: 600;
  font-size: 1.125rem;
}

.portfolio-title a svg:hover {
  fill: var(--primaryIconColor);
}

.portfolio-title a svg {
  transition: var(--transition-fast);
}

.portfolio-tags {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  overflow: hidden;
  position: relative;
}

.portfolio-tags-inner {
  display: flex;
  gap: 0.5rem;
  white-space: nowrap;
}

.portfolio:hover .portfolio-tags.scrollable .portfolio-tags-inner {
  animation: scroll-tags 15s linear infinite;
}

@keyframes scroll-tags {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.portfolio-tags div {
  font-size: 0.8rem;
  border: 1px solid var(--borderColor);
  padding: 0.3rem 0.8rem;
  color: var(--secondaryTextColor);
  flex-shrink: 0;
}

/* ===== PORTFOLIO SLIDER/TABS ===== */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.portfolio-tab {
  padding: 0.875rem 2rem;
  background: var(--secondaryBackgroundColor);
  border: 2px solid var(--borderColor);
  border-radius: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondaryTextColor);
  transition: all var(--transition-fast);
  font-family: "Inter", sans-serif;
}

.portfolio-tab:hover {
  border-color: var(--primaryIconColor);
  color: var(--primaryIconColor);
}

.portfolio-tab.active {
  background: var(--accentGradient);
  border-color: transparent;
  color: white;
}

.portfolio-slider {
  position: relative;
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-slides {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-slide {
  min-width: 100%;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.portfolio-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

/* Photography Portfolio Card - Empty State */
.portfolio.empty-card {
  border: 2px dashed var(--borderColor);
  background: var(--secondaryBackgroundColor);
}

.portfolio.empty-card .portfolio-cover {
  background: var(--thirdBackgroundColor);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.portfolio.empty-card .portfolio-cover svg {
  width: 48px;
  height: 48px;
  fill: var(--secondaryTextColor);
  opacity: 0.5;
}

.portfolio.empty-card .portfolio-cover span {
  color: var(--secondaryTextColor);
  font-size: 0.9rem;
  opacity: 0.7;
}

.portfolio.empty-card:hover {
  border-color: var(--primaryIconColor);
  transform: translateY(-4px);
}

/* Photography Portfolio - 3:2 Aspect Ratio for 6000x4000 images */
#photography .portfolio-cover {
  height: auto;
  aspect-ratio: 3 / 2;
}

#photography .portfolio img {
  object-fit: contain;
  background: var(--thirdBackgroundColor);
}

/* ===== PHOTO CAROUSEL IN CARDS ===== */
.photo-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.photo-carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--thirdBackgroundColor);
}

.photo-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

/* Lazy Loading Placeholder */
.photo-carousel-slide img[loading="lazy"] {
  background: linear-gradient(90deg,
      var(--thirdBackgroundColor) 0%,
      var(--secondaryBackgroundColor) 50%,
      var(--thirdBackgroundColor) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.photo-carousel-slide img[loading="lazy"]:not([src=""]) {
  animation: none;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Carousel Navigation Arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--glassBackground);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glassBorder);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all var(--transition-fast);
  z-index: 10;
}

.portfolio:hover .carousel-nav {
  opacity: 1;
}

.carousel-nav:hover {
  background: var(--primaryIconColor);
}

.carousel-nav:hover svg {
  fill: white;
}

.carousel-nav svg {
  width: 16px;
  height: 16px;
  fill: var(--primaryTextColor);
  transition: fill var(--transition-fast);
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}

/* Carousel Dots Indicator */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  background: white;
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: white;
}

/* ===== LIGHTBOX / PHOTO POPUP ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

/* Lightbox Close Button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* Lightbox Main Image Area */
.lightbox-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 60px 80px;
}

.lightbox-image-container {
  max-width: 100%;
  max-height: 100%;
  position: relative;
  overflow: hidden;
}

.lightbox-slides {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-slide img {
  max-width: 90vw;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Lightbox Navigation */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-nav:hover {
  background: var(--primaryIconColor);
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Lightbox Image Counter */
.lightbox-counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
}

/* Lightbox Gallery Thumbnails */
.lightbox-gallery {
  padding: 16px 20px 24px;
  background: rgba(0, 0, 0, 0.8);
  overflow-x: auto;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.lightbox-gallery::-webkit-scrollbar {
  height: 6px;
}

.lightbox-gallery::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.lightbox-gallery::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.lightbox-thumb {
  min-width: 80px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.lightbox-thumb:hover {
  opacity: 0.8;
}

.lightbox-thumb.active {
  opacity: 1;
  border-color: var(--primaryIconColor);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox Responsive */
@media screen and (max-width: 768px) {
  .lightbox-main {
    padding: 60px 20px;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-slide img {
    max-width: 95vw;
    max-height: 60vh;
  }

  .lightbox-thumb {
    min-width: 60px;
    height: 40px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
}

#skills {
  padding: var(--sectionPadding);
  background: var(--secondaryBackgroundColor);
  transition: background-color var(--transition-medium);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.education {
  display: flex;
  gap: 1.25rem;
}

.education .line {
  padding: 0 0.75rem;
}

.education .line div {
  width: 3px;
  height: 100%;
  background: var(--accentGradient);
  position: relative;
  border-radius: 2px;
}

.education-info p {
  margin: 0.75rem 0 1.5rem;
}

.education-years {
  margin-bottom: 3rem;
  color: var(--primaryIconColor);
  font-weight: 600;
}

/* The dot on the line */
.education .line div:before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--accentGradient);
  border-radius: 50%;
  position: absolute;
  left: -5.5px;
  box-shadow: 0 0 0 4px var(--secondaryBackgroundColor);
}

/* Right side of Skills */
.skills-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.5rem;
  gap: 0.5rem;
}

.skills-right ul {
  line-height: 2.25rem;
  padding: 0 1rem;
  list-style: none;
}

.skills-right ul li {
  object-position: center;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination button {
  background: var(--secondaryBackgroundColor);
  color: var(--primaryTextColor);
  border: 1px solid var(--borderColor);
  border-radius: 8px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-short);
  font-weight: 500;
}

.pagination button:hover:not(:disabled) {
  background: var(--accentGradient);
  color: white;
  border-color: transparent;
}

.pagination button.active {
  background: var(--accentGradient);
  color: white;
  border-color: transparent;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== EDUCATION SECTION (DARK BACKGROUND) ===== */
#education {
  padding: 0;
}

.education-section {
  background: #374151;
  padding: var(--sectionPadding);
  text-align: center;
}

.pre-title-light {
  color: #818cf8;
}

.pre-title-light::before {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #c084fc 100%);
}

.section-title-light {
  color: #f1f5f9;
}

.education-subtitle {
  color: #94a3b8;
  font-size: 1rem;
  margin-bottom: 3rem;
}

.edu-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

.edu-logo-item {
  transition: all var(--transition-medium);
}

.edu-logo-item a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.edu-logo-item img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transition: all var(--transition-medium);

  /* Grayscale and slightly transparent by default */
  filter: grayscale(100%) brightness(0.8);
  opacity: 0.6;
}

.edu-logo-item:hover img {
  /* Full color on hover */
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.15);
}

/* Responsive for smaller screens */
@media screen and (max-width: 768px) {
  .edu-logos {
    gap: 2rem;
  }

  .edu-logo-item img {
    width: 80px;
    height: 80px;
  }
}

/* ===== COMMUNITY & ORGANIZATION SECTION ===== */
#community {
  padding: 0;
}

.community-section {
  background: #4f46e5;
  padding: var(--sectionPadding);
  text-align: center;
}

.community-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-bottom: 3rem;
}

.org-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

.org-logo-item {
  transition: all var(--transition-medium);
}

.org-logo-item a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.org-logo-item img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transition: all var(--transition-medium);

  /* Grayscale and slightly transparent by default */
  filter: grayscale(100%) brightness(0.8);
  opacity: 0.6;
}

.org-logo-item:hover img {
  /* Full color on hover */
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.15);
}

/* Responsive for smaller screens */
@media screen and (max-width: 768px) {
  .org-logos {
    gap: 2rem;
  }

  .org-logo-item img {
    width: 80px;
    height: 80px;
  }
}

[data-theme="dark"] .org-logo-item:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

.org-name {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--secondaryTextColor);
  font-weight: 500;
  text-align: center;
  max-width: 180px;
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.org-logo-item:hover .org-name {
  color: var(--primaryIconColor);
}

/* Responsive for smaller screens */
@media screen and (max-width: 768px) {
  .org-logos {
    gap: 2rem;
  }

  .org-logo-item img {
    width: 120px;
    height: 120px;
  }

  .org-name {
    font-size: 0.8rem;
    max-width: 140px;
  }
}

@media screen and (max-width: 480px) {
  .org-logos {
    gap: 1.5rem;
  }

  .org-logo-item img {
    width: 100px;
    height: 100px;
  }
}

/* ===== CONTACT SECTION ===== */
#contact {
  padding: var(--sectionPadding);
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.contact-form div {
  margin-bottom: 1.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  background: var(--secondaryBackgroundColor);
  border: 2px solid var(--borderColor);
  border-radius: 0.75rem;
  resize: none;
  color: var(--primaryTextColor);
  transition: all var(--transition-fast);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--secondaryTextColor);
  opacity: 0.7;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primaryIconColor);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--accentGradient);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: all var(--transition-fast);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* Contact Section - Right Side */
.contact-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--secondaryBackgroundColor);
  border-radius: var(--itemBorderRadius);
  border: 1px solid var(--borderColor);
  transition: all var(--transition-fast);
}

.contact-item:hover {
  border-color: var(--primaryIconColor);
  transform: translateX(8px);
}

.contact-item-icon {
  background: var(--accentGradient);
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg {
  fill: white;
  width: 22px;
  height: 22px;
}

.contact-item-icon .icon {
  color: white;
}

.contact-item-detail h4 {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.contact-item-detail p {
  font-size: 0.9rem;
}

/* ===== FOOTER SECTION ===== */
footer {
  padding: 3rem 0;
  background: var(--secondaryBackgroundColor);
  text-align: center;
  border-top: 1px solid var(--borderColor);
  transition: all var(--transition-medium);
}

.footer-icons {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--thirdBackgroundColor);
  border: 1px solid var(--borderColor);
  transition: all var(--transition-fast);
}

.footer-icons a:hover {
  background: var(--primaryIconColor);
  border-color: var(--primaryIconColor);
  transform: translateY(-3px);
}

.footer-icons svg {
  fill: var(--primaryTextColor);
  width: 18px;
  height: 18px;
  transition: fill var(--transition-fast);
}

.footer-icons .icon {
  color: var(--primaryTextColor);
  transition: color var(--transition-fast);
}

.footer-icons a:hover svg {
  fill: white;
}

.footer-icons a:hover .icon {
  color: white;
}

footer p {
  font-size: 0.9rem;
}

/* ===== NOTIFICATION POPUP ===== */
.notification-popup {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primaryBackgroundColor);
  border: 1px solid var(--primaryIconColor);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  box-shadow: var(--cardShadowHover);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 400px;
}

.notification-popup.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notification-content .icon {
  color: var(--primaryIconColor);
  min-width: 32px;
}

.notification-content p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primaryTextColor);
  line-height: 1.4;
}

@media screen and (max-width: 768px) {
  .notification-popup {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}