* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: radial-gradient(circle at top, #1a1f36, #0b0d15);
  color: #e5e7eb;
}

a { color: #8b5cf6; text-decoration: none; }

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.nav {
  padding: 20px 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav a {
  margin-left: 20px;
  color: #cbd5f5;
}

.hero {
  padding: 80px 0;
}

.hero-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 0 40px rgba(139,92,246,0.25);
}

.badge {
  color: #8b5cf6;
  font-weight: 600;
}

.hero h1 {
  font-size: 42px;
  margin: 15px 0;
}

.hero p {
  line-height: 1.7;
  margin-bottom: 25px;
}

.hero-buttons .btn {
  margin-right: 15px;
}

.hero-photo img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(59,130,246,0.4);
}

.btn {
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 600;
}

.btn.primary {
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  color: #fff;
}

.btn.outline {
  border: 1px solid #8b5cf6;
  color: #8b5cf6;
}

.section {
  padding: 80px 0;
}

.center { text-align: center; }

.glass {
  background: rgba(255,255,255,0.05);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
}

.skills-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.skill-card,
.project-card {
  background: rgba(255,255,255,0.06);
  padding: 20px;
  border-radius: 16px;
  text-align: center;
}

.process {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.process li {
  list-style: none;
  background: rgba(139,92,246,0.2);
  padding: 10px 18px;
  border-radius: 20px;
}

.footer {
  text-align: center;
  padding: 30px;
  color: #9ca3af;
}

/* MOBILE */
@media(max-width: 768px) {
  .hero-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.project-card {
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: 18px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.25);
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 15px;
}
/* ===== WORK CATEGORIES ===== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.category-card {
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 45px 20px;
  text-align: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.35s ease;
}

.category-card span {
  display: block;
  margin-top: 12px;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 35px rgba(139,92,246,0.35);
}

.hidden {
  display: none;
}

#backBtn {
  margin: 30px 0;
  background: none;
  border: none;
  color: #8b5cf6;
  font-size: 16px;
  cursor: pointer;
}

/* project cards already exist – ensure consistency */
.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
}
.category-card i {
  font-size: 36px;
  color: #8b5cf6;
  margin-bottom: 12px;
  display: block;
}
/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.slide-up {
  animation: slideUp 0.6s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {

  .category-card {
    padding: 35px 15px;
    font-size: 16px;
  }

  .category-card i {
    font-size: 30px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  #backBtn {
    font-size: 18px;
  }
}
/* =========================
   MOBILE HERO FIX
========================= */

@media (max-width: 768px) {

  /* NAV */
  .nav-inner {
    padding: 0 10px;
  }

  .nav nav a {
    margin-left: 12px;
    font-size: 14px;
  }

  /* HERO SECTION */
  .hero {
    padding: 50px 0;
  }

  .hero-box {
    grid-template-columns: 1fr;
    padding: 30px 20px;
    gap: 25px;
    text-align: center;
  }

  .badge {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  /* BUTTONS */
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  /* PROFILE IMAGE */
  .hero-photo img {
    max-width: 240px;
    margin: 0 auto;
    border-radius: 18px;
  }

}
/* ===== SKILL ICONS ===== */

.skill-card {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.skill-card i {
  font-size: 18px;
  color: #8b5cf6;
}
/* ===== FLOATING 3D ELEMENT ===== */

/* ===== PREMIUM FLOATING 3D ORB ===== */

.floating-3d {
  position: fixed;
  top: 35%;
  left: 6%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;

  background: radial-gradient(
    circle at 30% 30%,
    rgba(139, 92, 246, 0.9),
    rgba(59, 130, 246, 0.7),
    rgba(15, 23, 42, 0.6)
  );

  box-shadow:
    0 0 40px rgba(139, 92, 246, 0.35),
    inset -10px -10px 30px rgba(0, 0, 0, 0.4),
    inset 10px 10px 25px rgba(255, 255, 255, 0.15);

  filter: blur(0.4px);
  opacity: 0.18;

  /* IMPORTANT */
  animation: float3D 22s ease-in-out infinite alternate;
  transform: translate(var(--mx, 0px), var(--my, 0px)) rotate(var(--rot, 0deg)) scale(var(--sc, 1));
}



@keyframes float3D {
  0% {
    --rot: 0deg;
    --sc: 1;
  }
  50% {
    --rot: 120deg;
    --sc: 1.05;
  }
  100% {
    --rot: 240deg;
    --sc: 0.95;
  }
}



@keyframes float3D {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(220px, -160px) rotate(120deg) scale(1.05);
  }
  100% {
    transform: translate(420px, 40px) rotate(240deg) scale(0.95);
  }
}
.floating-3d::after {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 70% 70%,
    rgba(255, 255, 255, 0.35),
    transparent 60%
  );
  filter: blur(6px);
  opacity: 0.6;
}
@media (max-width: 768px) {
  .floating-3d {
    width: 90px;
    height: 90px;
    opacity: 0.12;
    left: -10px;
  }
}
/* =========================
   FLOATING BACKGROUND SHAPES
========================= */

.floating-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.18;
  animation: floatSlow 28s ease-in-out infinite alternate;
}

/* PURPLE ORB */
.orb-1 {
  width: 100px;
  height: 100px;
  top: 30%;
  left: 5%;
  background: radial-gradient(circle at 30% 30%, #8b5cf6, #5b21b6);
  animation-duration: 10s;
}

/* BLUE ORB */
.orb-2 {
  width: 90px;
  height: 90px;
  top: 15%;
  right: 8%;
  background: radial-gradient(circle at 30% 30%, #3b82f6, #1e3a8a);
  animation-duration: 10s;
}

/* PINK / VIOLET ORB */
.orb-3 {
  width: 60px;
  height: 60px;
  bottom: 18%;
  left: 20%;
  background: radial-gradient(circle at 30% 30%, #ec4899, #7c3aed);
  animation-duration: 10s;
}

/* SOFT RING SHAPE */
.ring {
  width: 100px;
  height: 100px;
  bottom: 10%;
  right: 15%;
  border-radius: 50%;

  /* gradient ring */
  border: 3px solid transparent;
  background:
    linear-gradient(#0b0d15, #0b0d15) padding-box,
    linear-gradient(120deg, #8b5cf6, #3b82f6) border-box;

  /* glow */
  box-shadow:
    0 0 25px rgba(139, 92, 246, 0.35),
    inset 0 0 20px rgba(59, 130, 246, 0.25);

  opacity: 0.25;
  animation-duration: 10s;
}


/* FLOAT ANIMATION */
@keyframes floatSlow {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(180px, -140px) rotate(180deg);
  }
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  .orb-1 { width: 110px; height: 110px; }
  .orb-2 { width: 90px; height: 90px; }
  .orb-3 { width: 70px; height: 70px; }
  .ring  { width: 160px; height: 160px; }
}
/* =========================
   SKILLS MARQUEE LOOP
========================= */

.skills-marquee {
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
  position: relative;
}

.skills-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scrollSkills 35s linear infinite;
}

.skill-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;          /* bigger button */
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 16px;             /* bigger text */
  font-weight: 500;
  white-space: nowrap;
  color: #e5e7eb;
}

.skill-pill i {
  color: #8b5cf6;
  font-size: 18px;             /* bigger icon */
}


/* Animation */
@keyframes scrollSkills {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Pause on hover (premium touch) */
.skills-marquee:hover .skills-track {
  animation-play-state: paused;
}

/* Mobile */
@media (max-width: 768px) {
  .skill-pill {
    font-size: 13px;
    padding: 10px 14px;
  }
}
/* =========================
   SECTION TITLE ANIMATION
========================= */

.section-title {
  position: relative;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(25px);
  animation: titleReveal 0.8s ease forwards;
}

/* delay for natural feel */
.section-title {
  animation-delay: 0.15s;
}

/* underline glow */
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  border-radius: 2px;
  opacity: 0.85;
}

/* animation */
@keyframes titleReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile tweak */
@media (max-width: 768px) {
  .section-title {
    font-size: 26px;
  }
}
/* =========================
   HERO FLOATING ICONS
========================= */

.hero-with-icons {
  position: relative;
  display: inline-block;
}

.hero-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b5cf6;
  font-size: 18px;
  backdrop-filter: blur(8px);
  animation: floatIcon 10s ease-in-out infinite alternate;
}

/* Individual positions */
.icon-figma {
  top: -12px;
  right: -14px;
  animation-delay: 0s;
}

.icon-wireframe {
  top: 40%;
  left: -18px;
  animation-delay: 0s;
}

.icon-html {
  bottom: -12px;
  right: 20%;
  animation-delay: 0s;
}

.icon-design {
  bottom: 30%;
  left: -10px;
  animation-delay: 0s;
}

/* Animation */
@keyframes floatIcon {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  30% {
    transform: translate(6px, -10px) rotate(3deg);
  }
  60% {
    transform: translate(-8px, -6px) rotate(-2deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}


/* Mobile tweak */
@media (max-width: 768px) {
  .hero-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
}
.hero-icon {
  animation-timing-function: ease-in-out;
}
/* =========================
   INFOGRAPHIC DESIGN PROCESS
========================= */

.process-infographic {
  position: relative;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* step layout */
.process-step {
  display: flex;
  gap: 30px;
  position: relative;
}


/* content card */
.step-content {
  background: rgba(255, 255, 255, 0.06);
  padding: 26px 28px;
  border-radius: 18px;
  backdrop-filter: blur(12px);
  flex: 1;
  transition: all 0.3s ease;
}

.step-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.25);
}

.step-content i {
  font-size: 22px;
  color: #8b5cf6;
  margin-bottom: 10px;
}

.step-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5f5;
}

/* MOBILE */
@media (max-width: 768px) {
  .process-infographic::before {
    left: 28px;
  }

  .step-number {
    width: 56px;
    height: 56px;
    font-size: 16px;
  }

  .step-content {
    padding: 22px;
  }
}
/* =========================
   PROCESS CONNECTING DOTS
========================= */

/* mobile adjust */
@media (max-width: 768px) {
  .process-step::before {
    left: 20px;
    top: 22px;
  }
}
/* =========================
   SCROLL REVEAL
========================= */

.process-step {
  opacity: 1;
  transform: translateY(0);
}


.process-step.reveal {
  opacity: 1;
  transform: translateY(0);
}
 
/* Keep number above everything */
.step-number {
  position: relative;
  z-index: 3;
}

/* Push pulse dot behind the number */
.process-step::before {
  z-index: 1;
}
/* =========================
   MODERN INFOGRAPHIC PROCESS
========================= */

/* zig-zag layout */
.process-step:nth-child(even) {
  flex-direction: row-reverse;
}

.process-step {
  align-items: center;
}

/* card */
.step-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  padding: 34px 36px;
  border-radius: 22px;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 0 0 rgba(139,92,246,0);
  transition: all 0.4s ease;
}

.step-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(139,92,246,0.25);
}

/* BIG BACKGROUND NUMBER */
.step-bg {
  position: absolute;
  top: -18px;
  right: 20px;
  font-size: 110px;
  font-weight: 800;
  color: rgba(139,92,246,0.08);
  pointer-events: none;
}

/* content */
.step-content i {
  font-size: 26px;
  margin-bottom: 12px;
  color: #8b5cf6;
}

.step-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #cbd5f5;
}

/* connector glow */
.process-infographic::before {
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(139,92,246,0.8),
    transparent
  );
}

/* MOBILE */
@media (max-width: 900px) {
  .process-step,
  .process-step:nth-child(even) {
    flex-direction: column;
  }

  .step-card {
    max-width: 100%;
  }

  .step-bg {
    font-size: 80px;
    right: 14px;
  }
}
/* ===== CONTACT SECTION ===== */

.contact-box {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
}

.contact-sub {
  max-width: 560px;
  margin: 15px auto 40px;
  color: #cbd5f5;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.contact-card {
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 30px 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s ease;
}

.contact-card i {
  font-size: 26px;
  color: #8b5cf6;
  margin-bottom: 12px;
}

.contact-card span {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-card small {
  color: #9ca3af;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 35px rgba(139,92,246,0.35);
}

.contact-cta {
  margin-top: 20px;
}

/* Mobile */
@media (max-width: 768px) {
  .contact-box {
    padding: 40px 20px;
  }
}
/* =========================
   SIDE NAV – PREMIUM
========================= */

.side-nav {
  position: fixed;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 1000;
}

.nav-item {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  text-decoration: none;
  position: relative;
  transition: all 0.35s ease;
  animation: navFloat 4s ease-in-out infinite;
}

.nav-item i {
  font-size: 22px;
}

/* breathing animation */
@keyframes navFloat {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* hover */
.nav-item:hover {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #fff;
  transform: scale(1.15);
}

/* tooltip */
.nav-item span {
  position: absolute;
  right: 72px;
  background: #0b0d15;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-item:hover span {
  opacity: 1;
}

/* active section */
.nav-item.active {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #fff;
  box-shadow: 0 0 25px rgba(139,92,246,0.6);
}

/* =========================
   SCROLL PROGRESS BAR
========================= */

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(#8b5cf6, #3b82f6);
  z-index: 1200;
}
@media (max-width: 900px) {
  .side-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
/* =========================
   MOBILE FLOATING NAV (FAB)
========================= */

.mobile-fab {
  position: fixed;
  bottom: 24px;
  right: 22px;
  z-index: 99999;   /* VERY IMPORTANT */
  display: none;
  pointer-events: auto;
}


/* main button */
#fabToggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(139,92,246,0.45);
}

/* menu */
.fab-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.fab-menu a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-size: 18px;
  transition: all 0.25s ease;
}

.fab-menu a:hover {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #fff;
  transform: scale(1.1);
}

/* open state */
.mobile-fab.active .fab-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ONLY show on mobile & tablet */
@media (max-width: 900px) {
  .mobile-fab {
    display: block;
  }
}
#fabToggle,
.fab-menu,
.fab-menu a {
  pointer-events: auto;
}
.floating-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none; /* KEEP THIS */
  z-index: 0;
}
/* =========================
   WHATSAPP FLOATING BUTTON
========================= */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 96px; /* space from mobile FAB / nav */
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  z-index: 99998;
  transition: all 0.3s ease;
}

/* hover effect */
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.65);
}

/* subtle pulse */
@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float {
  animation: whatsappPulse 2.5s infinite;
}

/* MOBILE: WhatsApp button left of menu button */
@media (max-width: 900px) {
  .whatsapp-float {
    right: 92px;   /* move LEFT of menu button */
    bottom: 26px;  /* same vertical alignment */
    width: 56px;
    height: 56px;
    font-size: 26px;
  }
}
.whatsapp-float {
  transition: right 0.3s ease, transform 0.3s ease;
}

/* =========================
   SKILL PETALS (ROSE STYLE)
========================= */

.skill-petals {
  position: relative;
  height: 220px;
  overflow: hidden;
  pointer-events: none;
  margin-bottom: -40px;
}

.petal {
  position: absolute;
  top: -40px;
  padding: 10px 22px;
}

@keyframes petalFall {
}

/* =========================
   SKILL PETALS – CONTACT ONLY
========================= */

.skill-petals {
  position: relative;
  height: 180px;
  overflow: hidden;
  margin-bottom: -60px;
  pointer-events: none;
}

/* individual pill */
.skill-petal {
  position: absolute;
  top: -40px;
  left: calc(var(--x) * 1%);
  transform: translateX(-50%);
  padding: 10px 18px;
  background: rgba(139, 92, 246, 0.18);
  color: #e5e7eb;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  opacity: 0;

  animation: petalDrop linear infinite;
}

/* different speeds */
.skill-petal:nth-child(odd) {
  animation-duration: 14s;
}

.skill-petal:nth-child(even) {
  animation-duration: 18s;
}

/* balanced fall */
@keyframes petalDrop {
  0% {
    transform: translate(-50%, 0) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 200px) rotate(6deg);
    opacity: 0;
  }
}

/* mobile */
@media (max-width: 768px) {
  .skill-petals {
    height: 140px;
  }

  .skill-petal {
    font-size: 12px;
    padding: 8px 14px;
  }
}

/* =========================
   DESIGNER FOOTER
========================= */

.designer-footer {
  position: relative;
  padding: 100px 0 60px;
  background: radial-gradient(circle at top, #1a1f36, #0b0d15);
  overflow: hidden;
}

/* Glow background */
.footer-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.35),
    transparent 70%
  );
  filter: blur(80px);
  pointer-events: none;
}

/* Inner content */
.footer-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Big statement */
.footer-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.4;
  max-width: 720px;
  margin: 0 auto 18px;
  color: #e5e7eb;
}

/* Signature */
.footer-sign {
  font-size: 16px;
  color: #8b5cf6;
  margin-bottom: 40px;
  font-weight: 500;
}

/* Footer nav icons */
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-bottom: 30px;
}

.footer-nav a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-size: 20px;
  transition: all 0.35s ease;
}

.footer-nav a:hover {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 0 25px rgba(139,92,246,0.6);
}

/* Copyright */
.footer-copy {
  font-size: 13px;
  color: #9ca3af;
  opacity: 0.75;
}

/* Mobile */
@media (max-width: 768px) {
  .footer-title {
    font-size: 26px;
  }

  .footer-nav a {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.footer-social a {
  color: #9ca3af;
  font-size: 18px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: #8b5cf6;
  transform: translateY(-4px);
}
/* =========================
   HERO IMAGE + AVATAR FLIP
========================= */

/* wrapper inside hero-photo */
.hero-photo {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* flip container */
.avatar-flip {
  width: 100%;
  aspect-ratio: 3 / 4; /* keeps height stable */
  perspective: 1200px;
}

/* inner 3D container */
.avatar-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.4, 0.2, 0.2, 1);
}

/* faces */
.avatar-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

/* front image */
.avatar-front {
  z-index: 2;
}

/* avatar/back image */
.avatar-back {
  transform: rotateY(180deg);
}

/* images */
.avatar-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(59,130,246,0.35);
}

/* flip on hover (desktop) */
.avatar-flip:hover .avatar-inner {
  transform: rotateY(180deg);
}

/* flip when JS adds class */
.avatar-flip.is-flipped .avatar-inner {
  transform: rotateY(180deg);
}


/* glow effect */
.avatar-flip::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 23px;
  background: radial-gradient(
    circle,
    rgba(139,92,246,0.35),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.avatar-flip:hover::after {
  opacity: 1;
}

/* =========================
   HERO SAFETY FIX
========================= */

.hero {
  position: relative;
  z-index: 2;
}

.section {
  position: relative;
  z-index: 1;
}

/* =========================
   MOBILE OPTIMIZATION
========================= */

@media (max-width: 768px) {
  .avatar-flip {
    aspect-ratio: 1 / 1;
  }
}
.avatar-flip {
  cursor: pointer;
}
/* =========================
   MOBILE FIX – DISABLE HOVER
   (DO NOT AFFECT DESKTOP)
========================= */

@media (max-width: 768px) {
  /* disable hover flip on mobile */
  .avatar-flip:hover .avatar-inner {
    transform: none;
  }

  /* JS-controlled flip only */
  .avatar-flip.is-flipped .avatar-inner {
    transform: rotateY(180deg);
  }
}
/* =========================
   HERO BUTTON HOVER EFFECTS
========================= */

/* Desktop hover only */
@media (hover: hover) and (pointer: fine) {

  /* Primary button (View Work) */
  .btn.primary {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .btn.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.45);
  }

  /* Outline button (Download CV) */
  .btn.outline {
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  }

  .btn.outline:hover {
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    color: #ffffff;
    transform: translateY(-4px);
  }
}
/* =========================
   HERO BUTTON HOVER EFFECTS
========================= */

/* Desktop hover only */
@media (hover: hover) and (pointer: fine) {

  /* Primary button (View Work) */
  .btn.primary {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .btn.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.45);
  }

  /* Outline button (Download CV) */
  .btn.outline {
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  }

  .btn.outline:hover {
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    color: #ffffff;
    transform: translateY(-4px);
  }
}
/* =========================
   BEFORE → AFTER → IMPACT
   (MODERN HORIZONTAL UI)
========================= */

.ba-wrapper {
  max-width: 1100px;
  margin: 90px auto;
  padding: 0 20px;
}

.ba-slider {
  position: relative;
  height: 320px;
}

/* SLIDE */
.ba-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;

  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  pointer-events: none;
}

.ba-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* IMAGE CARD */
.ba-image {
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 14px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* LANDSCAPE IMAGE */
.ba-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* TAG */
.ba-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.ba-tag.before {
  background: rgba(239,68,68,0.18);
  color: #f87171;
}

.ba-tag.after {
  background: rgba(34,197,94,0.18);
  color: #4ade80;
}

/* TEXT */
.ba-text {
  grid-column: span 2;
  margin-top: 18px;
  text-align: center;
  color: #cbd5f5;
  font-size: 15px;
  line-height: 1.7;
}

/* MOBILE */
@media (max-width: 768px) {
  .ba-slider {
    height: auto;
  }

  .ba-slide {
    position: relative;
    grid-template-columns: 1fr;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-bottom: 48px;
  }

  .ba-text {
    grid-column: auto;
    text-align: left;
  }
}
/* =========================
   BEFORE / AFTER SECTION FIX
========================= */

.ba-section {
  position: relative;
  padding: 120px 0;
}

.ba-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Force slider to use full wrapper width */
.ba-slider {
  width: 100%;
  margin-top: 50px;
}

/* Center slides correctly */
.ba-slide {
  width: 100%;
  justify-content: center;
}
