/* =========================  PRELOADER / SPLASH SCREEN ========================= */
/* ==================== 1) CONTAINER ==================== */
#preloader {
  position: fixed;
  inset: 0;
  background-color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease, background 1.5s ease;
  overflow: hidden;
}


/* ==================== 2) STATE ==================== */
#preloader.fade-out {
  background-color: #fff !important;
  opacity: 0;
}


/* ==================== 3) ELEMENTS ==================== */
.preloader-logo {
  width: 160px;
  height: 160px;
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInApple 1.5s ease forwards;
  animation-delay: 0.5s;
}

.preloader-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: #fff;
  margin-top: 1.8rem;
  opacity: 0;
  animation: fadeInApple 1.5s ease forwards;
  animation-delay: 1.2s;
}


/* ==================== 4) BREAKPOINTS ==================== */
@media (max-width: 600px) {
  .preloader-logo {
    width: 80px;
    height: 80px;
  }

  .preloader-subtitle {
    font-size: 1.2rem;
    text-align: center;
    padding: 0 1rem;
  }
}



/* =========================  TOGGLE TEMA GELAP DAN TERANG ========================= */
/* ==================== 1) WRAPPER ==================== */
.nav__btns{
  display:flex;align-items:center;gap:1rem;
}

/* ==================== 2) CORE SWITCH ==================== */
.theme-switch{
  position:relative;display:inline-block;width:64px;height:34px;
  margin-right:var(--mb-1);-webkit-tap-highlight-color:transparent;
}
.theme-switch input{opacity:0;width:0;height:0;}

.slider{
  position:absolute;inset:0;border-radius:999px;cursor:pointer;
  background:#cbd5e1;overflow:hidden;
  transition:background-color .35s ease, box-shadow .35s ease;
  box-shadow:inset 0 2px 4px rgba(0,0,0,.1),0 2px 6px rgba(0,0,0,.05);
}
.slider::before{
  content:"";position:absolute;left:4px;top:4px;height:26px;width:26px;border-radius:50%;
  background:#fff;z-index:2;
  box-shadow:0 3px 6px rgba(0,0,0,.2),0 0 6px rgba(255,255,255,.4);
  transition:transform .4s ease, box-shadow .3s ease;
}

/* checked */
.theme-switch input:checked + .slider{
  background:linear-gradient(145deg,#2563eb,#1e3a8a);
  box-shadow:0 0 12px rgba(59,130,246,.5);
}
.theme-switch input:checked + .slider::before{
  transform:translateX(30px);
  box-shadow:0 4px 12px rgba(0,0,0,.4),0 0 12px rgba(59,130,246,.6);
}

/* ==================== 3) ICONS ==================== */
.slider .icon{
  position:absolute;top:50%;transform:translateY(-50%);
  width:18px;height:18px;pointer-events:none;opacity:.88;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.15));
  transition:transform .3s ease;
}
.slider .icon.left{left:6px;color:#facc15;}
.slider .icon.right{right:6px;color:#a5b4fc;}

/* ==================== 4) PAGE TRANSITION (opsional cepat) ==================== */
/* Hanya aktif saat class ini dipasang via JS — tidak membuat delay default */
html.theme-transition, body.theme-transition{
  transition:background-color .15s ease, color .15s ease;
}

/* ==================== 5) BREAKPOINTS ==================== */
@media (max-width:480px){
  .theme-switch{width:52px;height:28px;}
  .slider::before{height:22px;width:22px;top:3px;left:3px;}
  .theme-switch input:checked + .slider::before{transform:translateX(24px);}
}

/* ==================== 6) REDUCED MOTION ==================== */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none !important;}
}

/* ==================== 7) HOVER ==================== */
.theme-switch:hover .slider::before{
  box-shadow:0 4px 8px rgba(0,0,0,.25),0 0 8px rgba(255,255,255,.6);
}

/* ==================== 8) NO-ANIM KILLER (untuk switch instan) ==================== */
.no-anim, .no-anim *{transition:none !important;}



/* =========================  DATA DIRI / PERSONAL HIGHLIGHTS ========================= */
/* ==================== 1) TEXT HIGHLIGHT ==================== */
.highlight-name {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  transition: all 0.4s ease-in-out;
  cursor: default;
}
.highlight-name:hover {
  background: linear-gradient(135deg, #ee1313, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stylish-text {
  color: var(--first-color);
  font-weight: 600;
  text-shadow: 0 0 4px var(--first-color-light);
}


/* ==================== 2) BUTTON (GLOW) ==================== */
.button--glow {
  background: linear-gradient(135deg, var(--first-color), #ff8c00);
  color: #fff;
  padding: 0.8rem 1.7rem;
  border-radius: 2rem;
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.4);
  transition: all 0.3s ease-in-out;
}
.button--glow:hover {
  box-shadow: 0 0 18px rgba(255, 140, 0, 0.7), 0 0 36px rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
}


/* ==================== 3) ANIMATIONS ==================== */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}



/* =========================  HEADER  ========================= */
/* ========== 1) NAV CONTAINER ========== */
.nav {
  max-width: 968px;
  height: var(--header-height);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}


/* ========== 2) NAV LINKS ========== */
.nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 0.5rem 0.75rem;
  letter-spacing: 0.3px;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #f9d423, #ff4e50);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
  opacity: 0.9;
}

.nav__link:hover {
  color: var(--first-color);
  transform: translateY(-2px);
}

.dark-theme .nav__link:hover {
  color: #ffffff;
}

.nav__link:hover::after,
.nav__link.active-link::after {
  transform: scaleX(1);
}

.nav__link.active-link {
  color: var(--first-color);
}

.dark-theme .nav__link.active-link {
  color: #ffffff;
}


/* ========== 3) LOGO / TOGGLE / VERIFIED BADGE ========== */
.nav__logo,
.nav__toggle {
  color: var(--title-color);
  font-weight: var(--font-medium);
  font-size: 1.1rem;
}

.nav__toggle:hover .nav__icon-img {
  background: linear-gradient(90deg, #f9d423, #ff4e50);
  padding: 0.35rem;
  border-radius: 50%;
  animation: pulseGlowMenu 1.4s infinite ease-in-out;
  transition: all 0.3s ease-in-out;
  filter: brightness(1.1);
}

.dark-theme .nav__toggle:hover .nav__icon-img {
  filter: brightness(1.2) invert(1);
  animation: pulseGlowMenu 1.4s infinite ease-in-out;
}

.verified-badge {
  display: inline-block;
  margin-left: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1DA1F2, #0d8ddf);
  position: relative;
  box-shadow: 0 0 8px rgba(29, 161, 242, 0.6);
  animation: pulseGlow 1.6s infinite ease-in-out;
  vertical-align: middle;
  transform: translateY(-1px);
}

.verified-badge::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: white;
  font-size: 0.75rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


/* ========== 4) HEADER (FIXED) + SCROLL STATE ========== */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
  padding: 0.75rem 1rem;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
  box-shadow: none;
  backdrop-filter: none;
  animation: headerFadeIn 0.8s ease-out;
}

.scroll-header {
  background-color: var(--body-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dark-theme .scroll-header {
  background-color: rgba(18, 18, 18, 0.85);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}


/* ========== 5) ANIMATIONS ========== */
@keyframes pulseGlowMenu {
  0%   { box-shadow: 0 0 0 rgba(255, 78, 80, 0.0); transform: scale(1); }
  50%  { box-shadow: 0 0 10px rgba(255, 78, 80, 0.6),
                  0 0 20px rgba(255, 78, 80, 0.3); transform: scale(1.1); }
  100% { box-shadow: 0 0 0 rgba(255, 78, 80, 0.0); transform: scale(1); }
}

@keyframes headerFadeIn {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ========== 6) BREAKPOINT HEADER ========== */
@media screen and (max-width: 767px) {
  .header { padding: 0.75rem 1rem; }
}

@media screen and (min-width: 768px) {
  .header { padding: 1rem 2.5rem; }
}

@media screen and (min-width: 1200px) {
  .header { padding: 1.5rem 4rem; }
}

@media (max-width: 575.98px) {
}

@media (min-width: 576px) and (max-width: 767.98px) {
}

@media (min-width: 768px) and (max-width: 991.98px) {
}

@media (min-width: 992px) {
}


/* ========== 7) MOBILE MENU (≤767.98px) ========== */
@media (max-width: 767.98px){
  .nav__menu{
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 120%);
    width: 100%;
    max-width: 100vw;
    padding: 0;
    margin: 0;
    background: transparent;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: transform .35s ease, opacity .25s ease;
  }
  .nav__menu.show-menu{
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__list{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: .6rem;
    padding: .6rem .8rem calc(.7rem + env(safe-area-inset-bottom));
    margin: 0 auto;
    width: min(96vw, 560px);
    background: transparent;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav__list::-webkit-scrollbar{ display: none; }

  .nav__items{ list-style: none; flex: 0 0 auto; }

  .nav__link{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .5rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    background: transparent;
    border: 0;
    text-decoration: none;
    color: var(--text-color);
    transition: transform .15s ease, opacity .15s ease;
  }
  .nav__link:active{ transform: scale(.97); opacity: .9; }

  .nav__link span{ display: none; }

  .nav__icon-img{
    width: 26px;
    height: 26px;
    display: block;
    margin: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.18));
    transition: transform .15s ease;
  }
  .nav__link:active .nav__icon-img{ transform: scale(1.06); }

  .nav__link.active-link{
    outline: 2px solid var(--first-color);
    outline-offset: 2px;
  }

  .dark-theme .nav__icon-img{
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,.4));
  }

  .nav__menu,
  .nav__menu.show-menu{
    right: auto; top: auto;
    box-shadow: none;
    border-radius: 0;
  }
}



/* =========================  HOME ( <MAIN ) ========================= */
/* ==================== 1) HOME CONTAINER & GRID ==================== */
.home__container {
  gap: 1rem;
}

.home__content {
  grid-template-columns: 0.5fr 3fr;
  padding-top: 3.5rem;
  align-items: center;
}

.home__data {
  grid-column: 1 / 3;
}


/* ==================== 2) HOME SOCIAL ==================== */
.home__social {
  display: grid;
  grid-template-columns: max-content;
  row-gap: 1rem;
}

.home__social-icon {
  font-size: 1.25rem;
  color: var(--first-color);
  transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.home__social-icon:hover {
  transform: scale(1.15);
  color: var(--first-color-alt);
}


/* ==================== 3) HOME BLOB / IMAGE ==================== */
.home__blob {
  width: 220px;
  fill: var(--first-color);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              filter 0.8s ease-in-out,
              box-shadow 0.8s ease;
  will-change: transform, filter;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25))
          drop-shadow(0 0 8px rgba(255, 215, 0, 0.2));
}

.home__blob:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 30px rgba(0, 136, 255, 0.25))
          drop-shadow(0 0 15px rgba(255, 255, 255, 0.08));
}

.home__blob-img {
  width: 180px;
  opacity: 0;
  transform: translateY(30px) scale(0.85);
  animation: fadeInUpScale 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.6s;
  transition: transform 0.6s ease-in-out, filter 0.6s ease;
  will-change: transform, filter;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
  animation-timing-function: ease-in-out;
}

.home__img:hover .home__blob-img {
  transform: translateY(-4px) scale(1.03);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.05));
}


/* ==================== 4) HOME TEXT ==================== */
.home__title {
  font-size: var(--big-font-size);
}

.home__subtitle {
  font-size: var(--h3-font-size);
  color: var(--text-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-75);
}

.home__description {
  margin-bottom: var(--mb-2);
}


/* ==================== 5) HOME SCROLL CUE ==================== */
.home__scroll-button {
  color: var(--first-color);
  transition: 0.3s;
}

.home__scroll-button:hover {
  transform: translateY(0.25rem);
}

.home__scroll-mouse,
.home__scroll-arrow {
  width: 1.4rem;
  height: 1.4rem;
  object-fit: contain;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.home__scroll-mouse {
  animation: scrollBounce 1.6s infinite ease-in-out;
}

.home__scroll-name {
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
  margin-left: 0.5rem;
  margin-right: var(--mb-0-25);
}

.home__scroll-button:hover .home__scroll-arrow {
  transform: translateY(4px);
}

.dark-theme .home__scroll-mouse,
.dark-theme .home__scroll-arrow,
.dark-theme .scrollup__icon {
  filter: brightness(0) invert(1);
}


/* ==================== 6) ANIMATIONS ==================== */
@keyframes fadeInUpScale {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.85);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}


/* ==================== 7) BREAKPOINTS ==================== */
@media screen and (max-width: 350px) {
  .home__content { grid-template-columns: 0.25fr 3fr; }
  .home__blob { width: 180px; }
}

@media screen and (max-width: 812px) and (orientation: landscape) {
  .home__content {
    flex-direction: row;
    align-items: center;
  }
}

@media screen and (min-width: 568px) {
  .home__content { grid-template-columns: max-content 1fr 1fr; }
  .home__data { grid-column: initial; }
  .home__img { order: 1; justify-self: center; }
}

@media screen and (min-width: 768px) {
  .home__container { row-gap: 5rem; }
  .home__content { padding-top: 5.5rem; column-gap: 2rem; }
  .home__blob { padding-top: 5.5rem; }
  .home { display: block; }
  .home__scroll-button { margin-left: 3rem; }
}

@media screen and (min-width: 1024px) {
  .home__blob { width: 320px; }
  .home__social { transform: translateX(-6rem); }
}



/* =========================  ABOUT (MAIN) ========================= */
/* ==================== 1) ABOUT CONTAINER & LAYOUT ==================== */
.about__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2.5rem;
  padding-top: 2rem;
}


/* ==================== 2) ABOUT IMAGE ==================== */
.about__img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  transition: transform 0.6s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about__img-wrapper:hover {
  transform: scale(1.03);
}

.about__img {
  width: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.05);
}

.about__img-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 70%);
  animation: glowPulse 2.8s ease-in-out infinite;
  pointer-events: none;
}


/* ==================== 3) ABOUT DESCRIPTION ==================== */
.about__description {
  text-align: justify;
  margin-bottom: var(--mb-2-5);
  line-height: 1.85;
  font-size: 1rem;
  color: var(--text-color);
  animation: fadeInDesc 1.2s ease both;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

html[data-theme="dark"] .about__description {
  color: #e0e0e0;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.05);
}

.about__description:hover {
  color: var(--gold);
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
}

.about__description strong {
  color: #ffc107;
  font-weight: 700;
  transition: all 0.3s ease;
  text-shadow: 0 0 3px rgba(255, 193, 7, 0.3);
}

.about__description strong:hover {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 223, 0, 0.5);
  cursor: default;
}


/* ==================== 4) ABOUT STATS ==================== */
.about_info {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  margin-bottom: var(--mb-2);
  animation: fadeInStats 1s ease-in-out both;
}

.about__info-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--first-color);
  text-shadow: 0 0 4px rgba(255, 193, 7, 0.4);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

html[data-theme="dark"] .about__info-title {
  color: #ffc107;
  text-shadow: 0 0 6px rgba(255, 193, 7, 0.5);
}

.about__info-title:hover {
  color: var(--first-color);
  text-shadow: 0 0 8px var(--first-color), 0 0 12px var(--first-color);
}

.about__info-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-color-light);
  line-height: 1.3;
  transition: color 0.3s ease;
}

html[data-theme="dark"] .about__info-name {
  color: #ccc;
}

.about__info-name:hover {
  color: var(--first-color);
}


/* ==================== 5) ANIMATIONS ==================== */
@keyframes glowPulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.6; }
}

@keyframes fadeInDesc {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInStats {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ==================== 6) BREAKPOINTS ==================== */
@media screen and (min-width: 568px) {
  .about__container { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (min-width: 768px) {
  .about__container { column-gap: 5rem; }
  .about__img { width: 350px; }
  .about__description { text-align: initial; }
  .about__info { justify-content: space-between; }
  .about__buttons { justify-content: initial; }
}



/* =========================  SKILLS (MAIN) ========================= */
/* ==================== 1) SKILLS CONTAINER & TITLES ==================== */
.skills {
  text-align: center;
  padding: 4rem 1rem;
}

.skill-category {
  margin-bottom: 3rem;
}

.skill-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  animation: fadeSlideDown 1s ease both;
}


/* ==================== 2) GRID & ITEM ==================== */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.skill-item {
  width: 100px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: transform 0.4s ease;
  animation: floatIn 1.5s ease;
  background: none;
  border: none;
  box-shadow: none;
  cursor: none;
}

.skill-item img {
  width: var(--skill-img-size);
  height: var(--skill-img-size);
  margin-bottom: 0.5rem;
  animation: floatingIcon 3s ease-in-out infinite;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.skill-item p {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--title-color);
}


/* ==================== 3) ANIMATIONS (keyframes) ==================== */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(50px) rotate(3deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes floatingIcon {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes jumpLoop {
  0%, 100% { transform: translateY(0) scale(1.2) rotate(2deg); }
  50%      { transform: translateY(-12px) scale(1.2) rotate(2deg); }
}

@keyframes glowPulse {
  0%   { filter: drop-shadow(0 0 5px rgba(0, 200, 255, 0.2)); }
  50%  { filter: drop-shadow(0 0 15px rgba(0, 200, 255, 0.6)); }
  100% { filter: drop-shadow(0 0 5px rgba(0, 200, 255, 0.2)); }
}


/* ==================== 4) RESPONSIVE ==================== */
@media screen and (max-width: 768px) {
  .skill-item {
    width: 90px;
    height: 100px;
  }

  .skill-item img {
    width: 35px;
    height: 35px;
    animation: floatingIcon 3s ease-in-out infinite;
    transition: transform 0.4s ease, filter 0.3s ease, box-shadow 0.4s ease;
  }
}

@media screen and (max-width: 350px) {
  .skills__title {
    font-size: var(--normal-font-size);
  }
}

@media screen and (min-width: 568px) {
  .skills__container {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==================== 5) VARIABLES & HOVER ==================== */
:root {
  --skill-img-size: 48px;
}

.skill-item:hover img {
  animation: jumpLoop 0.6s ease-in-out infinite, glowPulse 1.5s ease-in-out infinite;
  transform-origin: center;
}



/* =========================  BLOG (MAIN) ========================= */
/* ==================== 1) BLOG CONTAINER ==================== */
.blog__container {
  position: relative;
  padding-top: 2rem;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}


/* ==================== 2) BLOG CARD (iOS style) ==================== */
.blog__card-ios {
  background: linear-gradient(to bottom right, #121212, #1f1f1f);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  max-width: 100%;
  text-align: left;
}

.blog__card-ios:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(255, 94, 0, 0.4);
  background: linear-gradient(to bottom right, #1a1a1a, #282828);
}

.blog__card-ios h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.blog__card-ios p {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 1rem;
  line-height: 1.5;
}


/* ==================== 3) BLOG BUTTON (CTA) ==================== */
.blog__btn-ios {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(to right, #ff8c00, #ff5e00);
  color: #fff;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(255, 94, 0, 0.3);
  transition: background 0.3s ease, transform 0.2s ease;
}

.blog__btn-ios:hover {
  background: linear-gradient(to right, #ff5e00, #ff8c00);
  transform: scale(1.03);
}


/* ==================== 4) SWIPER NAVIGATION ==================== */
.swiper-button-next,
.swiper-button-prev {
  color: #ff5e00;
  top: 50%;
  transform: translateY(-50%);
}


/* ==================== 5) THEME (Dark) ==================== */
html[data-bs-theme="dark"] .blog__card-ios {
  background: linear-gradient(to bottom right, #1a1a1a, #2b2b2b);
}


/* ==================== 6) BREAKPOINTS ==================== */
@media screen and (max-width: 768px) {
  .blog__card-ios {
    width: 90%;
    margin: auto;
  }
}



/* =========================  SERVICES (MAIN) ========================= */
/* ==================== 1) GRID / CONTAINER ==================== */
.services__container {
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

/* ==================== 2) CARD CONTENT & ICON ==================== */
.services__content {
  position: relative;
  background-color: var(--container-color);
  padding: 3.5rem 0.5rem 1.25rem 1.5rem;
  border-radius: 0.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.services__content:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.services__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--first-color);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.2));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.services__content:hover .services__icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px var(--first-color));
}

.services__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
}


/* ==================== 3) CTA ("View More") ==================== */
.services__button {
  cursor: none;
  font-size: var(--small-font-size);
}

.services__button:hover .button__icon {
  transform: translateX(0.25rem);
}


/* ==================== 4) MODAL (overlay + content) ==================== */
.services__modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.services__modal-content {
  position: relative;
  background: var(--container-color);
  padding: 2rem 1.8rem;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 480px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.4s ease;
}

.active-modal {
  opacity: 1;
  visibility: visible;
}
.active-modal .services__modal-content {
  transform: translateY(0);
  opacity: 1;
}

.services__modal-title {
  font-size: var(--h3-font-size);
  font-weight: 600;
  color: var(--title-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.services__modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 1.4rem;
  color: var(--first-color);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.services__modal-close:hover {
  transform: rotate(90deg);
}

.services__modal-services {
  display: grid;
  row-gap: 1rem;
  padding: 0.5rem 0;
}

.services__modal-icon {
  color: var(--first-color);
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

.service__modal-service {
  display: flex;
  align-items: flex-start;
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.5;
}


/* ==================== 5) THEME (Dark) ==================== */
html[data-theme="dark"] .services__modal-content {
  background: rgba(20, 20, 20, 0.8);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.05);
}


/* ==================== 6) BREAKPOINTS ==================== */
@media screen and (max-width: 350px) {
  .services__container {
    grid-template-columns: max-content;
    justify-content: center;
  }
  .services__content {
    padding-right: 3.5rem;
  }
  .services__modal {
    padding: 0 0.5rem;
  }
}

@media screen and (max-width: 480px) {
  .services__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 1rem;
  }
  .services__content {
    padding: 2rem 1.25rem;
  }
}

@media screen and (min-width: 481px) and (max-width: 767px) {
  .services__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 2rem;
  }
}

@media screen and (min-width: 768px) {
  .services__container {
    grid-template-columns: repeat(3, 218px);
    justify-content: center;
  }
  .services__icon {
    font-size: 2rem;
  }
  .services__content {
    padding: 6rem 0 2rem 2.5rem;
  }
  .services__modal-content {
    width: 450px;
  }
}

@media screen and (min-width: 1024px) {
  .services__container {
    grid-template-columns: repeat(3, 238px);
  }
}



/* =========================  PORTFOLIO (MAIN) ========================= */
/* ==================== 1) CONTAINER & CONTENT ==================== */
.portfolio__container {
  overflow: initial;
}

.portfolio__content {
  padding: 0 1.5rem;
}


/* ==================== 2) CARD / MEDIA / TEXT ==================== */
.portfolio__img {
  width: 265px;
  border-radius: 0.5rem;
  justify-self: center;
}

.portfolio__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.portfolio__description {
  margin-bottom: var(--mb-0-75);
}


/* ==================== 3) BUTTON HOVER ==================== */
.portfolio__button:hover .button__icon {
  transform: translateX(0.25rem);
}


/* ==================== 4) SWIPER NAVIGATION & PAGINATION ==================== */
.swiper-button-prev::after,
.swiper-button-next::after {
  content: '';
}

.swiper-portfolio-icon {
  font-size: 2rem;
  color: var(--first-color);
}

.swiper-button-prev { left: -0.5rem; }
.swiper-button-next { right: -0.5rem; }

.swiper-container-horizontal > .swiper-pagination-bullets {
  bottom: -2.5rem;
}

.swiper-pagination-bullet-active {
  background-color: var(--first-color);
}

.swiper-button-prev,
.swiper-button-next,
.swiper-pagination-bullet {
  outline: none;
}


/* ==================== 5) BREAKPOINTS ==================== */
@media screen and (min-width: 568px) {
  .portfolio__content { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (min-width: 768px) {
  .portfolio__img { width: 320px; }
  .portfolio__content { align-items: center; }
}

@media screen and (min-width: 1024px) {
  .swiper-portfolio-icon { font-size: 3.5rem; }
}



/* =========================  PROJECT IN MIND (MAIN) ========================= */
/* ==================== 1) CONTAINER & BASE ==================== */
.project {
  text-align: center;
  padding: 2rem 1rem;
}


/* ==================== 2) BACKGROUND CARD (glass) ==================== */
.project__bg {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.12));
  backdrop-filter: blur(20px);
  border-radius: 2rem;
  padding: 3rem 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: background-color 0.4s ease-in-out;
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .project__bg {
  background: linear-gradient(135deg, rgba(28, 28, 28, 0.6), rgba(0, 0, 0, 0.35));
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.05);
}


/* ==================== 3) TEXT (title, description) ==================== */
.project__title {
  font-size: var(--h2-font-size);
  color: #ffd700;
  margin-bottom: 1rem;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

body.dark-mode  { --desc-color: #ffffff; }
body.light-mode { --desc-color: #000000; }

.project__description {
  color: var(--desc-color);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto 2rem auto;
  max-width: 480px;
  padding: 0 1rem;
  transition: color .2s ease;
}


/* ==================== 4) MEDIA (image) ==================== */
.project__img {
  width: 240px;
  justify-self: center;
  animation: floatImage 6s ease-in-out infinite;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
}


/* ==================== 5) CTA BUTTON ==================== */
.project__cta {
  background-color: transparent;
  border: 2px solid #ffd700;
  color: #ffd700;
  padding: 0.75rem 1.6rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease-in-out;
}

.project__cta:hover {
  background-color: #ffd700;
  color: #000;
  box-shadow: 0 0 15px #ffd700, 0 0 30px #ffd70080;
  transform: translateY(-2px);
}


/* ==================== 6) ANIMATIONS (keyframes) ==================== */
@keyframes floatImage {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}


/* ==================== 7) BREAKPOINTS ==================== */
@media screen and (max-width: 350px) {
  .project__img { width: 200px; }
}

@media screen and (min-width: 568px) {
  .project__container { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (min-width: 768px) {
  .project { text-align: initial; }
  .project__bg { background: none; }
  .project__container {
    background-color: var(--first-color-second);
    border-radius: 1rem;
    padding: 3rem 2.5rem 0;
    grid-template-columns: 1fr max-content;
    column-gap: 3rem;
  }
  .project__data { padding-top: 0.8rem; }
}



/* =========================  TESTIMONIAL (MAIN) ========================= */
/* ==================== 1) LAYOUT & ITEM ==================== */
.testimonial__data,
.testimonial__header {
  display: flex;
}

.testimonial__data {
  justify-content: space-between;
  margin-bottom: var(--mb-1);
}


/* ==================== 2) CARD & CONTENT ==================== */
.testimonial__card {
  background: var(--container-color);
  padding: 1.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.testimonial__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}


/* ==================== 3) AVATAR, NAME, META, STARS, TEXT ==================== */
.testimonial__img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: var(--mb-0-75);
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--first-color);
}

.testimonial__name {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

.testimonial__client {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.testimonial__description {
  margin-bottom: var(--mb-2-5);
}

.testimonial__name {
  font-weight: 600;
  font-size: 1rem;
}

.testimonial__client {
  font-size: 0.8rem;
  color: var(--text-color-light);
}

.testimonial__stars {
  font-size: 0.9rem;
  color: gold;
}

.testimonial__desc {
  font-size: 0.95rem;
  line-height: 1.5rem;
  color: var(--text-color);
}


/* ==================== 4) SWIPER PAGINATION ==================== */
.swiper-container .swiper-pagination-testimonial {
  bottom: 0;
}


/* ==================== 5) BREAKPOINTS ==================== */
@media screen and (max-width: 350px) {
  .testimonial__data,
  .testimonial__header {
    flex-direction: column;
    align-items: center;
  }

  .testimonial__img {
    margin-right: 0;
    margin-bottom: var(--mb-0-25);
  }

  .testimonial__description {
    text-align: center;
  }
}



/* =========================  CONTACT ( </MAIN> ) ========================= */
/* ==================== 1) GRID & LAYOUT ==================== */
.contact__container {
  row-gap: 3rem;
}


/* ==================== 2) CONTACT INFO (items & icons) ==================== */
.contact__information {
  display: flex;
  margin-bottom: var(--mb-2);
}

.contact__icon {
  font-size: 2rem;
  color: var(--first-color);
  margin-right: var(--mb-0-75);
}

.contact__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

.contact__subtitle {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}


/* ==================== 3) FORM (inputs + base styles) ==================== */
.contact__content {
  background-color: var(--input-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem 0.25rem;
}

.contact__label {
  font-size: var(--smaller-font-size);
  color: var(--title-color);
}

.contact__input {
  width: 100%;
  background-color: var(--input-color);
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  border: none;
  outline: none;
  padding: 0.25rem 0.5rem 0.5rem 0;
}


/* ==================== 4) GLASS CARDS (info & form) ==================== */
.contact__info-glass,
.contact__form-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.4s ease-in-out;
  will-change: background, box-shadow;
}

html[data-theme="dark"] .contact__info-glass,
html[data-theme="dark"] .contact__form-glass {
  background: rgba(20, 20, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.05);
}

.contact__info-glass:hover,
.contact__form-glass:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .contact__info-glass:hover,
html[data-theme="dark"] .contact__form-glass:hover {
  box-shadow: 0 10px 32px rgba(255, 255, 255, 0.06);
}


/* ==================== 5) LINKS (hover) ==================== */
.link-hover {
  color: var(--first-color);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  font-weight: 500;
}

.link-hover:hover {
  color: #ffd700;
  text-shadow: 0 0 6px #ffd70080, 0 0 10px #ffd70040;
  letter-spacing: 0.3px;
}


/* ==================== 6) SOCIAL ICONS (per-network + animations) ==================== */
.contact__icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease, filter 0.3s ease, color 0.3s ease;
  will-change: transform, filter, color;
}

/* Gmail */
.contact__information i.fa-envelope {
  color: #888;
  background: linear-gradient(135deg,
    #4285F4 0%,
    #34A853 25%,
    #FBBC05 50%,
    #EA4335 75%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: bold;
  transition: transform 0.35s ease, filter 0.35s ease, color 0.35s ease;
  will-change: transform, filter, color;
}
html[data-theme="dark"] .contact__information i.fa-envelope { filter: brightness(1.2); }
.contact__information i.fa-envelope:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(66, 133, 244, 0.2))
          drop-shadow(0 0 6px rgba(234, 67, 53, 0.2))
          drop-shadow(0 0 6px rgba(251, 188, 5, 0.15));
}

/* GitHub */
.contact__information i.fa-github {
  color: #cfcfcf;
  font-size: 1.6rem;
  transition: transform 0.35s ease, filter 0.35s ease, color 0.35s ease;
  will-change: transform, filter, color;
}
html[data-theme="dark"] .contact__information i.fa-github { color: #f0f0f0; }
.contact__information i.fa-github:hover {
  transform: scale(1.18);
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.12))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.08))
    saturate(1.1);
}

/* X (Twitter) */
.contact__information i.fa-x-twitter {
  color: #1a1a1a;
  font-weight: 600;
  transition: transform 0.4s ease, filter 0.4s ease, color 0.4s ease;
  will-change: transform, filter, color;
}
html[data-theme="dark"] .contact__information i.fa-x-twitter { color: #f0f0f0; }
.contact__information i.fa-x-twitter:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.2))
          drop-shadow(0 0 8px rgba(0, 0, 0, 0.35));
}

/* TikTok */
.contact__information i.fa-tiktok {
  color: #00f2ea;
  text-shadow:
    1px 1px 0 #000,
    0 0 4px rgba(255, 0, 80, 0.25),
    0 0 6px rgba(0, 242, 234, 0.2);
  transition: transform 0.35s ease, filter 0.35s ease, color 0.35s ease;
  will-change: transform, filter;
}
html[data-theme="dark"] .contact__information i.fa-tiktok { color: #00f2ea; filter: brightness(1.25); }
.contact__information i.fa-tiktok:hover {
  transform: scale(1.15);
  filter:
    drop-shadow(0 0 6px rgba(255, 0, 80, 0.35))
    drop-shadow(0 0 8px rgba(0, 242, 234, 0.35));
}

/* Instagram */
.contact__information i.fa-instagram {
  color: #e1306c;
  background: radial-gradient(circle at 30% 107%,
    #fdf497 0%,
    #fd5949 45%,
    #d6249f 60%,
    #285AEB 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-size: 1.6rem;
  font-weight: 700;
  transition: transform 0.35s ease, filter 0.35s ease;
  will-change: transform, filter;
}
html[data-theme="dark"] .contact__information i.fa-instagram { filter: brightness(1.2) contrast(1.05); }
.contact__information i.fa-instagram:hover {
  transform: scale(1.18);
  filter:
    drop-shadow(0 0 4px rgba(253, 245, 151, 0.15))
    drop-shadow(0 0 6px rgba(253, 89, 73, 0.2))
    drop-shadow(0 0 8px rgba(40, 90, 235, 0.2));
}

/* LinkedIn */
.contact__information i.fa-linkedin-in {
  color: #0077b5;
  font-size: 1.6rem;
  transition: transform 0.35s ease, filter 0.35s ease, color 0.35s ease;
  will-change: transform, filter, color;
}
html[data-theme="dark"] .contact__information i.fa-linkedin-in { color: #33aaff; }
.contact__information i.fa-linkedin-in:hover {
  transform: scale(1.15);
  filter:
    drop-shadow(0 0 4px rgba(0, 119, 181, 0.2))
    drop-shadow(0 0 6px rgba(0, 119, 181, 0.3));
}

.contact__information i.fa-envelope { animation: gmailShimmer 4s ease-in-out infinite alternate; }
.contact__information i.fa-github   { animation: githubPulse 4.5s ease-in-out infinite alternate; }
.contact__information i.fa-x-twitter{ animation: twitterPulse 3.8s ease-in-out infinite alternate; }
.contact__information i.fa-tiktok   { animation: tiktokGlow 3.6s ease-in-out infinite alternate; }
.contact__information i.fa-instagram{ animation: instaPulse 3.2s ease-in-out infinite alternate; }
.contact__information i.fa-linkedin-in { animation: linkedinGlow 3.6s ease-in-out infinite alternate; }


/* ==================== 7) FLOATING LABEL INPUT ==================== */
.contact__content {
  position: relative;
  margin-bottom: 2rem;
}

.contact__input {
  width: 100%;
  border-radius: 0.75rem;
  padding: 1.2rem 1rem 0.6rem;
  font-size: 0.95rem;
  color: var(--title-color);
  background-color: var(--container-color);
  border: 1.5px solid var(--scroll-bar-color);
  outline: none;
  transition: 0.4s border, 0.4s box-shadow;
}

.contact__input:focus {
  border-color: var(--first-color);
  box-shadow: 0 0 5px rgba(249, 249, 252, 0.3);
}

.floating-label {
  position: absolute;
  left: 0.75rem;
  top: 1.1rem;
  font-size: var(--normal-font-size);
  color: var(--text-color-light);
  pointer-events: none;
  padding: 0 0.25rem;
  transition: 0.3s ease all;
}

.contact__input:focus + .floating-label,
.contact__input:not(:placeholder-shown) + .floating-label {
  top: -0.6rem;
  left: 0.6rem;
  font-size: var(--smaller-font-size);
  color: var(--first-color);
  z-index: 1;
}


/* ==================== 8) BREAKPOINTS ==================== */
@media screen and (max-width: 767px) {
  .contact__container {
    padding-bottom: 2rem !important;
    margin-bottom: 0 !important;
  }
}

@media screen and (min-width: 568px) {
  .contact__container { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (min-width: 1024px) {
  .contact__form { width: 460px; }
  .contact__inputs { grid-template-columns: repeat(2, 1fr); }
}


/* ==================== KEYFRAMES (Social Animations) ==================== */
@keyframes gmailShimmer {
  0%, 100% { transform: translateY(0); filter: brightness(1); }
  50%      { transform: translateY(-1px); filter: brightness(1.2); }
}

@keyframes githubPulse {
  0%   { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255,255,255,0.1)); }
  50%  { transform: scale(1.05); filter: drop-shadow(0 0 8px rgba(255,255,255,0.2)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(255,255,255,0.12)); }
}

@keyframes twitterPulse {
  0%   { transform: rotate(0deg); filter: drop-shadow(0 0 2px rgba(0,0,0,0.1)); }
  50%  { transform: rotate(-2deg); filter: drop-shadow(0 0 6px rgba(0,0,0,0.3)); }
  100% { transform: rotate(0deg); filter: drop-shadow(0 0 3px rgba(0,0,0,0.15)); }
}

@keyframes tiktokGlow {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(255, 0, 80, 0.15))
            drop-shadow(0 0 6px rgba(0, 242, 234, 0.2));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 9px rgba(255, 0, 80, 0.3))
            drop-shadow(0 0 12px rgba(0, 242, 234, 0.3));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 6px rgba(255, 0, 80, 0.25))
            drop-shadow(0 0 10px rgba(0, 242, 234, 0.25));
  }
}

@keyframes instaPulse {
  0%, 100% { transform: scale(1); filter: brightness(1.1); }
  50%      { transform: scale(1.08); filter: brightness(1.3); }
}

@keyframes linkedinGlow {
  0%   { transform: translateY(0); filter: drop-shadow(0 0 2px rgba(0,119,181,0.15)); }
  50%  { transform: translateY(-1px); filter: drop-shadow(0 0 6px rgba(0,119,181,0.35)); }
  100% { transform: translateY(0); filter: drop-shadow(0 0 3px rgba(0,119,181,0.2)); }
}



/* =========================  FOOTER ========================= */
/* ==================== 1) BASE ==================== */
.footer__bg {
  background: linear-gradient(135deg, #1a1a1a, #3b2d00, #3b2d00);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1rem;
  text-align: center;
}

.footer__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.footer__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffd700;
}

.footer__subtitle {
  font-size: 0.9rem;
  color: #ddd;
  margin-top: 0.2rem;
}

.footer__links,
.footer__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.footer__link {
  position: relative;
  font-size: 0.9rem;
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
}

.footer__social {
  font-size: 1.2rem;
  color: #ccc;
  transition: color 0.3s ease, transform 0.3s ease;
}


/* ==================== 2) INTERACTIONS ==================== */
.footer__link:hover {
  color: #ffd700;
  text-shadow: 0 0 4px #ffcc00, 0 0 8px #ff9900, 0 0 12px #ff6600;
}

.footer__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #ffcc00, #ff9900, #ff6600);
  transition: width 0.3s ease;
}

.footer__link:hover::after { width: 100%; }

.footer__social:hover { transform: scale(1.2); }

.footer__social:hover i.fa-instagram {
  color: #e1306c;
  text-shadow: 0 0 4px #e1306c, 0 0 6px #ff99aa;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer__social:hover i.fa-github {
  color: #eaeaea;
  text-shadow: 0 0 2px #ccc, 0 0 4px #777;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer__social:hover i.fa-tiktok {
  color: #25f4ee;
  text-shadow: 0 0 6px #25f4ee, 0 0 10px #f00095;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer__social:hover i.fa-x-twitter {
  color: #121212;
  text-shadow: 0 0 4px #ffffff, 0 0 10px #121212;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer__social:hover i.fa-whatsapp {
  color: #25D366;
  text-shadow: 0 0 4px #25D366, 0 0 8px #128C7E;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}


/* ==================== 3) META ==================== */
.footer__copy,
.footer__love {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  color: #f0f0f0;
  z-index: 2;
  position: relative;
}

.footer__love span {
  color: #ff5c5c;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}


/* ==================== 4) DEFAULT SOCIAL ICON COLORS ==================== */
.footer__social i.fa-instagram { color: #e1306c; }
.footer__social i.fa-github    { color: #ffffff; }
.footer__social i.fa-tiktok    { color: #25f4ee; text-shadow: 0 0 3px #f00095; }
.footer__social i.fa-x-twitter { color: #121212; }
.footer__social i.fa-whatsapp  { color: #25d366; }


/* ==================== 5) CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: var(--scroll-bar-color);
  border-radius: 0.5rem;
}
::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: 0.5rem;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--text-color-light); }


/* ==================== 6) BREAKPOINTS ==================== */
@media screen and (max-width: 767px) {
  .footer__bg { padding-bottom: 2rem !important; margin-bottom: 0 !important; }
}

@media screen and (min-width: 568px) {
  .footer__container { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (min-width: 768px) {
  .footer__container { grid-template-columns: repeat(3, 1fr); }
  .footer__bg { padding: 2rem; }
  .footer__links { flex-direction: row; column-gap: 2rem; }
  .footer__socials { justify-self: flex-end; }
  .footer__copy { margin-top: 1.5rem; }
}

@media screen and (max-width: 600px) {
  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
    justify-content: center;
  }
  .footer__container > div:first-child {
    display: flex; flex-direction: column; align-items: center;
  }
  .footer__title { font-size: 1.2rem; margin-bottom: 0.2rem; text-align: center; }
  .footer__subtitle { font-size: 0.8rem; text-align: center; }
}



/* =========================  SCROLL-UP ========================= */
/* ==================== 1) VARIABLES ==================== */
:root{
  --su-size: 3.2rem;
  --su-right: 1.25rem;
  --su-bottom-hidden: -24%;
  --su-bottom-show: 2.6rem;
  --su-z: 9999;
}


/* ==================== 2) BASE BUTTON ==================== */
.scroll-up{
  position: fixed;
  right: var(--su-right);
  bottom: var(--su-bottom-hidden);
  width: var(--su-size);
  height: var(--su-size);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 0;
  pointer-events: none;
  transition: bottom .35s ease, opacity .3s ease, transform .25s ease;
  z-index: var(--su-z);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}


/* ==================== 3) ICON ==================== */
.scrollup__icon{
  display: block;
  width: 58%;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.28));
  transition: transform .25s ease;
}


/* ==================== 4) INTERACTIONS ==================== */
.scroll-up:hover .scrollup__icon{ transform: translateY(-2px) scale(1.06); }
.scroll-up:active .scrollup__icon{ transform: translateY(-1px) scale(.98); }


/* ==================== 5) VISIBLE STATE + KEYFRAMES ==================== */
.show-scroll{
  bottom: var(--su-bottom-show);
  opacity: 1;
  pointer-events: auto;
  animation: suPop .45s ease;
}
@keyframes suPop{
  from{ transform: translateY(8px) scale(.96); opacity: 0; }
  to  { transform: translateY(0)  scale(1);    opacity: 1; }
}


/* ==================== 6) THEME (light/dark) ==================== */
html[data-bs-theme="dark"]  .scroll-up,
html[data-bs-theme="light"] .scroll-up{ background: transparent; }


/* ==================== 7) BREAKPOINTS ==================== */
@media (max-width: 767.98px){
  :root{
    --su-size: 2.9rem;
    --su-right: .9rem;
    --su-bottom-show: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }
  .scrollup__icon{ width: 62%; }
}

@media (max-width: 812px) and (orientation: landscape){
  :root{
    --su-bottom-show: calc(6rem + env(safe-area-inset-bottom, 0px));
  }
}


/* ==================== 8) REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce){
  .scroll-up{ transition: bottom .2s linear, opacity .2s linear; }
  .scrollup__icon{ transition: none; }
}



/* =========================  NOTIF TOAST ========================= */
/* ==================== 1) TOKENS / OFFSET ==================== */
:root{
  --toast-align-offset: 0rem;
}


/* ==================== 2) BASE ==================== */
.theme-toast {
  position: fixed;
  bottom: calc(var(--su-bottom-show) + var(--toast-align-offset)) !important;

  left: 50%;
  transform: translateX(-50%) translateY(30px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;

  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 85%;
  min-width: 200px;

  transition: opacity 0.4s ease, transform 0.4s ease;

  font-weight: 600;
  border-radius: 1.25rem;
}


/* ==================== 3) THEME ==================== */
html[data-bs-theme="dark"] .theme-toast {
  background: linear-gradient(180deg, rgba(30,41,59,0.92), rgba(15,23,42,0.88));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html[data-bs-theme="light"] .theme-toast {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(240,240,245,0.92));
  color: #111827;
  border: 1px solid rgba(17,24,39,0.08);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.10),
    0 0 6px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


/* ==================== 4) STATE ==================== */
.theme-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}


/* ==================== 5) INNER ELEMENTS ==================== */
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-message { font-size: 15px; font-weight: 600; flex: 1; line-height: 1.4; word-break: break-word; }


/* ==================== 6) BREAKPOINTS ==================== */
@media screen and (max-width: 480px) {
  .theme-toast {
    padding: 0.65rem 1rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    max-width: 95%;
    min-width: 240px;
  }
  .toast-icon { font-size: 16px; }
  .toast-message { font-size: 14px; font-weight: 600; }
}


/* ==================== 7) SWIPER NAV (DESKTOP) ==================== */
@media screen and (min-width: 1024px) {
  .swiper-button-prev { left: -3.5rem; }
  .swiper-button-next { right: -3.5rem; }
}



/* =========================  TOMBOL / BUTTON ========================= */
.btn-premium{
  --btn-bg-1:#0b0f14;
  --btn-bg-2:#121821;
  --btn-fg:#ffffff;
  --btn-border:rgba(255,255,255,.08);
  --btn-glow:rgba(255,255,255,.06);
  --btn-elev:0 10px 24px rgba(0,0,0,.28);

  position:relative;
  display:inline-flex; align-items:center; justify-content:center;
  gap:.5rem;
  padding:1rem 2.2rem;
  border-radius:14px;
  border:1px solid var(--btn-border);
  background:linear-gradient(180deg,var(--btn-bg-1),var(--btn-bg-2));
  color:var(--btn-fg);
  font-weight:600; letter-spacing:.2px;
  font-size:clamp(.95rem,1.2vw,1.05rem);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.35),
    var(--btn-elev);
  transition:transform .22s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  -webkit-tap-highlight-color:transparent;
  text-decoration:none; cursor:pointer; overflow:hidden; z-index:0;
}

.btn-premium::before{
  content:"";
  position:absolute; inset:-42% -30% auto -30%;
  height:150%;
  background:radial-gradient(60% 60% at 50% 0%,rgba(255,255,255,.10),transparent 62%);
  opacity:.9; pointer-events:none; z-index:0;
  transform:translateY(0);
  transition:transform .9s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
}

.btn-premium:hover{
  transform:translateY(-2px);
  box-shadow:
    0 0 0 3px var(--btn-glow),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.40),
    0 16px 34px rgba(0,0,0,.32);
}
.btn-premium:hover::before{ transform:translateY(-6%); }
.btn-premium:active{ transform:translateY(0) scale(.985); }
.btn-premium:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 4px rgba(255,255,255,.14),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 18px 36px rgba(0,0,0,.34);
}

.btn-premium__icon{
  width:1.6rem; height:1.6rem; object-fit:contain;
  filter:brightness(0) invert(1);
  transition:transform .22s ease, filter .25s ease, opacity .25s ease;
  will-change:transform;
}
.btn-premium:hover .btn-premium__icon{ transform:translateX(6px) scale(1.08); }


body.dark-theme .btn-premium{
  --btn-bg-1:#ffffff;
  --btn-bg-2:#f6f8fc;
  --btn-fg:#0b1220;
  --btn-border:rgba(17,24,39,.12);
  --btn-glow:rgba(17,24,39,.10);
  --btn-elev:0 10px 22px rgba(17,24,39,.16);

  background:linear-gradient(180deg,var(--btn-bg-1),var(--btn-bg-2));
  color:var(--btn-fg);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(17,24,39,.06),
    var(--btn-elev);
}
body.dark-theme .btn-premium:hover{
  box-shadow:
    0 0 0 4px var(--btn-glow),
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(17,24,39,.08),
    0 16px 30px rgba(17,24,39,.18);
}
body.dark-theme .btn-premium:focus-visible{
  box-shadow:
    0 0 0 5px rgba(17,24,39,.15),
    inset 0 1px 0 #fff,
    0 18px 34px rgba(17,24,39,.22);
}

body.dark-theme .btn-premium__icon{ filter:none; }

.btn-premium.is-sm{ padding:.7rem 1.2rem; border-radius:12px; font-size:.92rem; }
.btn-premium.is-link{
  background:transparent; color:inherit;
  border:1px dashed var(--btn-border); box-shadow:none;
}
.btn-premium.is-link:hover{ box-shadow:0 0 0 2px var(--btn-glow); }

@media (prefers-reduced-motion: reduce){
  .btn-premium, .btn-premium::before, .btn-premium__icon{ transition:none !important; }
}
