/* CSS Variables for Theming */
:root {
  --bg-color: #0a0826;
  --bg-secondary: #1a1833;
  --text-color: #fff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --accent1: linear-gradient(135deg, #7f53ff 0%, #647dee 100%);
  --accent2: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
  --accent3: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
  --tile-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --glow: 0 0 32px #7f53ff, 0 0 8px #fff;
  --header-bg: rgba(10, 8, 38, 0.9);
  --scroll-indicator: #fff;
  --button-bg: #1a1833;
  --button-text: #fff;
  --shape-color1: rgba(127, 83, 255, 0.1);
  --shape-color2: rgba(67, 206, 162, 0.1);
  --shape-color3: rgba(255, 106, 0, 0.1);
  --lord-icon-primary: #ffffff;
  --lord-icon-secondary: #ffffff;
}

/* Ensure contact links collapse to a responsive row on small screens */
@media (max-width: 768px) {
  .contact-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }

  .contact-link {
    flex: 1;
    padding: 1.5rem 1rem;
  }
}

[data-theme="light"] {
  --bg-color: #f7f7fa;
  --bg-secondary: #ffffff;
  --text-color: #181a1b;
  --text-secondary: rgba(24, 26, 27, 0.7);
  --accent1: linear-gradient(135deg, #b993d6 0%, #8ca6db 100%);
  --accent2: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  --accent3: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
  --tile-shadow: 0 4px 16px 0 rgba(100, 100, 100, 0.15);
  --glow: 0 0 0 #fff;
  --header-bg: rgba(247, 247, 250, 0.9);
  --scroll-indicator: #181a1b;
  --button-bg: #fff;
  --button-text: #181a1b;
  --shape-color1: rgba(185, 147, 214, 0.1);
  --shape-color2: rgba(168, 237, 234, 0.1);
  --shape-color3: rgba(247, 151, 30, 0.1);
  --lord-icon-primary: #000000;
  --lord-icon-secondary: #000000;
}

html {
  box-sizing: border-box;
  font-size: 18px;
  scroll-behavior: smooth;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  transition: background 0.4s, color 0.4s;
  position: relative;
  overflow-x: hidden;
}

header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(127, 83, 255, 0.1);
  transition: all 0.3s ease;
}

.navbar {
  width: 100%;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 70px;
}

.nav-logo a {
  text-decoration: none;
  color: var(--text-color);
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--accent1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
}

.logo-text:hover {
  transform: scale(1.1);
}

.logo {
  height: 18px;
  width: auto;
  margin-top: 0;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-dark {
  display: none;
}

[data-theme="dark"] .logo-light {
  display: inline;
}

[data-theme="dark"] .logo-dark {
  display: none;
}

[data-theme="light"] .logo-light {
  display: none;
}

[data-theme="light"] .logo-dark {
  display: inline;
}

.logo:hover {
  transform: scale(1.1);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--text-color);
  background: rgba(127, 83, 255, 0.1);
}

.nav-link.active {
  background: var(--accent1);
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  position: relative;
  width: 60px;
  height: 30px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] #theme-toggle {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

#theme-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

#theme-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  transition: all 0.3s ease;
  opacity: 0;
}

[data-theme="light"] #theme-toggle::before {
  transform: translateX(30px);
}

[data-theme="light"] #theme-toggle::after {
  content: '';
  opacity: 0;
}

#theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#theme-toggle:focus {
  outline: 2px solid rgba(79, 70, 229, 0.3);
  outline-offset: 2px;
}

#theme-toggle:active {
  transform: scale(0.98);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.25rem;
}

.hamburger {
  width: 20px;
  height: 2px;
  background: var(--text-color);
  transition: all 0.3s ease;
}

.nav-toggle.active .hamburger:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

main {
  margin-top: 70px;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.floating-images {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.floating-image {
  position: absolute;
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transform-origin: center;
  opacity: 0;
}

.floating-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* Black hole effect - images disappear when they reach text radius */
.floating-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 6px;
  z-index: 2;
  pointer-events: none;
}

/* 5 Source Points with stacked images */

/* Top Left Stack */
.img-1,
.img-1-2,
.img-1-3 {
  top: 5%;
  left: 5%;
  animation: blackHoleFromTopLeft 12s linear infinite;
}

.img-1 {
  animation-delay: 0s;
}

.img-1-2 {
  animation-delay: 2s;
}

.img-1-3 {
  animation-delay: 4s;
}

/* Top Right Stack */
.img-2,
.img-2-2,
.img-2-3 {
  top: 5%;
  right: 5%;
  animation: blackHoleFromTopRight 12s linear infinite;
}

.img-2 {
  animation-delay: 0.8s;
}

.img-2-2 {
  animation-delay: 2.8s;
}

.img-2-3 {
  animation-delay: 4.8s;
}

/* Bottom Left Stack */
.img-3,
.img-3-2,
.img-3-3 {
  bottom: 5%;
  left: 5%;
  animation: blackHoleFromBottomLeft 12s linear infinite;
}

.img-3 {
  animation-delay: 1.6s;
}

.img-3-2 {
  animation-delay: 3.6s;
}

.img-3-3 {
  animation-delay: 5.6s;
}

/* Bottom Right Stack */
.img-4,
.img-4-2,
.img-4-3 {
  bottom: 5%;
  right: 5%;
  animation: blackHoleFromBottomRight 12s linear infinite;
}

.img-4 {
  animation-delay: 2.4s;
}

.img-4-2 {
  animation-delay: 4.4s;
}

.img-4-3 {
  animation-delay: 6.4s;
}

/* Left Center Stack */
.img-5,
.img-5-2,
.img-5-3 {
  top: 50%;
  left: 2%;
  transform: translateY(-50%);
  animation: blackHoleFromLeftCenter 12s linear infinite;
}

.img-5 {
  animation-delay: 3.2s;
}

.img-5-2 {
  animation-delay: 5.2s;
}

.img-5-3 {
  animation-delay: 7.2s;
}

/* Black Hole Animations - Images get sucked into center and disappear at text radius */
@keyframes blackHoleFromTopLeft {
  0% {
    transform: translate(0, 0) scale(0.7);
    opacity: 0;
  }

  15% {
    opacity: 0.9;
  }

  50% {
    transform: translate(35vw, 35vh) scale(1.2);
    opacity: 1;
  }

  75% {
    transform: translate(42vw, 42vh) scale(0.8);
    opacity: 0.7;
  }

  85% {
    transform: translate(45vw, 45vh) scale(0.4);
    opacity: 0.3;
  }

  95% {
    transform: translate(47vw, 47vh) scale(0.1);
    opacity: 0.1;
  }

  100% {
    transform: translate(50vw, 50vh) scale(0);
    opacity: 0;
  }
}

@keyframes blackHoleFromTopRight {
  0% {
    transform: translate(0, 0) scale(0.7);
    opacity: 0;
  }

  15% {
    opacity: 0.9;
  }

  50% {
    transform: translate(-35vw, 35vh) scale(1.2);
    opacity: 1;
  }

  75% {
    transform: translate(-42vw, 42vh) scale(0.8);
    opacity: 0.7;
  }

  85% {
    transform: translate(-45vw, 45vh) scale(0.4);
    opacity: 0.3;
  }

  95% {
    transform: translate(-47vw, 47vh) scale(0.1);
    opacity: 0.1;
  }

  100% {
    transform: translate(-50vw, 50vh) scale(0);
    opacity: 0;
  }
}

@keyframes blackHoleFromBottomLeft {
  0% {
    transform: translate(0, 0) scale(0.7);
    opacity: 0;
  }

  15% {
    opacity: 0.9;
  }

  50% {
    transform: translate(35vw, -35vh) scale(1.2);
    opacity: 1;
  }

  75% {
    transform: translate(42vw, -42vh) scale(0.8);
    opacity: 0.7;
  }

  85% {
    transform: translate(45vw, -45vh) scale(0.4);
    opacity: 0.3;
  }

  95% {
    transform: translate(47vw, -47vh) scale(0.1);
    opacity: 0.1;
  }

  100% {
    transform: translate(50vw, -50vh) scale(0);
    opacity: 0;
  }
}

@keyframes blackHoleFromBottomRight {
  0% {
    transform: translate(0, 0) scale(0.7);
    opacity: 0;
  }

  15% {
    opacity: 0.9;
  }

  50% {
    transform: translate(-35vw, -35vh) scale(1.2);
    opacity: 1;
  }

  75% {
    transform: translate(-42vw, -42vh) scale(0.8);
    opacity: 0.7;
  }

  85% {
    transform: translate(-45vw, -45vh) scale(0.4);
    opacity: 0.3;
  }

  95% {
    transform: translate(-47vw, -47vh) scale(0.1);
    opacity: 0.1;
  }

  100% {
    transform: translate(-50vw, -50vh) scale(0);
    opacity: 0;
  }
}

@keyframes blackHoleFromLeftCenter {
  0% {
    transform: translate(0, 0) scale(0.7);
    opacity: 0;
  }

  15% {
    opacity: 0.9;
  }

  50% {
    transform: translate(35vw, 0) scale(1.2);
    opacity: 1;
  }

  75% {
    transform: translate(42vw, 0) scale(0.8);
    opacity: 0.7;
  }

  85% {
    transform: translate(45vw, 0) scale(0.4);
    opacity: 0.3;
  }

  95% {
    transform: translate(47vw, 0) scale(0.1);
    opacity: 0.1;
  }

  100% {
    transform: translate(50vw, 0) scale(0);
    opacity: 0;
  }
}

.hero-content {
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.hero-center-logo {
  width: 240px;
  max-width: 80vw;
  margin: 0 auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-center-logo:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.center-logo {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 20px rgba(127, 83, 255, 0.2));
}

.cta {
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 2rem;
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 2px 16px 0 rgba(127, 83, 255, 0.18);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  outline: none;
  position: absolute;
  top: calc(50% + 140px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
}

.cta:focus {
  outline: 2px solid var(--accent1);
}

.cta:hover {
  background: var(--accent1);
  color: #fff;
  transform: translateX(-50%) translateY(-2px) scale(1.04);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 4rem;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-indicator span {
  display: block;
  width: 28px;
  height: 44px;
  border: 2px solid var(--scroll-indicator);
  border-radius: 16px;
  position: relative;
  margin: 0 auto;
}

.scroll-indicator span:after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--scroll-indicator);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  animation: scroll-down 1.4s infinite;
}

@keyframes scroll-down {
  0% {
    opacity: 0;
    top: 10px;
  }

  40% {
    opacity: 1;
  }

  80% {
    opacity: 0;
    top: 26px;
  }

  100% {
    opacity: 0;
    top: 10px;
  }
}

.skills {
  padding: 5rem 2rem 3rem 2rem;
  background: var(--bg-secondary);
  position: relative;
}

.skills-header {
  text-align: center;
  margin-bottom: 3rem;
}

.skills-header h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  background: var(--accent1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skills-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.skills-tiles {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.skill-tile {
  min-width: 240px;
  min-height: 200px;
  background: var(--accent1);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 1.5rem;
  box-shadow: var(--tile-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(.25, 1.5, .5, 1), box-shadow 0.3s, background 0.4s;
  will-change: transform;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  pointer-events: auto;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tile-icon {
  margin-bottom: 1rem;
  opacity: 0.9;
}

.tile-icon svg {
  width: 48px;
  height: 48px;
}

/* Style for image icons (like GIFs) in skill tiles */
.tile-icon img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: transparent;
  /* Remove any white background from GIFs */
  mix-blend-mode: multiply;
  /* Alternative blend mode that can help with white backgrounds */
  filter: contrast(1.1) brightness(1.1);
  /* Enhance visibility on colored backgrounds */
  object-fit: contain;
}

/* Style for Lord Icons in skill tiles */
.tile-icon lord-icon {
  width: 64px;
  height: 64px;
  display: block;
  filter: brightness(1.2) contrast(1.1);
  transition: filter 0.3s ease;
}

.skill-tile span {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tile-desc {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1.4;
  margin: 0;
}

.tile-uiux {
  background: var(--accent1);
}

.tile-dev {
  background: var(--accent2);
}

.tile-video {
  background: var(--accent3);
}

.skill-tile:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.skill-tile.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.7s cubic-bezier(.25, 1.5, .5, 1), transform 0.7s cubic-bezier(.25, 1.5, .5, 1);
}

.skill-tile:hover,
.skill-tile:focus {
  transform: rotateY(16deg) rotateX(8deg) scale(1.04);
  box-shadow: 0 12px 32px 0 rgba(127, 83, 255, 0.22);
  z-index: 2;
}

/* Light mode text color overrides for skill tiles */
[data-theme="light"] .skill-tile {
  color: #000000;
}

[data-theme="light"] .skill-tile span {
  color: #000000;
}

[data-theme="light"] .tile-desc {
  color: #000000;
  opacity: 0.8;
}

.about-teaser {
  padding: 4rem 2rem 5rem 2rem;
  background: var(--bg-color);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.25, 1.5, .5, 1), transform 0.7s cubic-bezier(.25, 1.5, .5, 1);
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 450px;
  /* Increased slightly */
  background: var(--bg-secondary);
  box-shadow: var(--tile-shadow);
  position: relative;
}

.about-image canvas {
  width: 100% !important;
  height: 100% !important;
  outline: none;
}

.about-logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(127, 83, 255, 0.15));
}

.about-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-text h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: var(--accent2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  background: rgba(127, 83, 255, 0.1);
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(127, 83, 255, 0.2);
}

.about-teaser.visible {
  opacity: 1;
  transform: translateY(0);
}

.anchor-section {
  min-height: 1px;
}

/* Projects Section */
.projects {
  padding: 5rem 2rem;
  background: var(--bg-secondary);
}

.projects-content {
  max-width: 1200px;
  margin: 0 auto;
}

.projects h2 {
  font-size: 2.5rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 0.5rem;
  background: var(--accent3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projects p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* Projects Carousel */
.projects-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== BENTO GRID LAYOUT ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

/* Base bento item */
.bento-item {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--bg-color);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.bento-item:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 16px 48px rgba(127, 83, 255, 0.18);
}

/* Wide item spans 2 columns */
.bento-item.bento-wide {
  grid-column: span 2;
}

/* Tall item spans 2 rows */
.bento-item.bento-tall {
  grid-row: span 2;
}

/* Media section */
.bento-media {
  position: relative;
  width: 100%;
  flex: 1 1 55%;
  overflow: hidden;
}

.bento-media img,
.bento-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.bento-item:hover .bento-media img,
.bento-item:hover .bento-media iframe {
  transform: scale(1.06);
}

/* Content section */
.bento-content {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 0 0 auto;
  background: var(--bg-color);
}

.bento-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-color);
  line-height: 1.25;
}

.bento-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tags */
.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.bento-tags span {
  background: rgba(127, 83, 255, 0.12);
  color: var(--accent1);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 1rem;
  font-weight: 600;
}

/* Arrow link */
.bento-link {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  color: var(--accent1);
  transition: transform 0.25s ease, color 0.25s ease;
}

.bento-link:hover {
  transform: scale(1.15) rotate(8deg);
  color: var(--accent2);
}

/* Tall card adjustments */
.bento-tall .bento-media {
  flex: 1 1 60%;
}

.bento-tall .bento-content p {
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

/* Wide card adjustments */
.bento-wide .bento-media {
  flex: 1 1 65%;
}

/* Dark mode tweaks */
[data-theme="dark"] .bento-item {
  background: rgba(30, 30, 40, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .bento-tags span {
  background: rgba(127, 83, 255, 0.2);
}

/* Responsive: tablet */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 260px;
  }

  .bento-item.bento-wide {
    grid-column: span 2;
  }
}

/* Responsive: mobile */
@media (max-width: 680px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 1rem;
  }

  .bento-item.bento-wide,
  .bento-item.bento-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-media {
    height: 180px;
    flex: none;
  }

  .bento-content {
    padding: 1rem;
  }
}

.projects-container {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  padding: 1rem 0;
  transition: transform 0.5s ease;
  width: 400%;
  /* 4 projects * 100% each */
}

.projects-container .project-item {
  flex: 0 0 25%;
  /* Each project takes 25% of the container width */
  min-width: 25%;
  width: 25%;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Carousel Navigation */
.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.carousel-btn {
  background: rgba(127, 83, 255, 0.1);
  border: 1px solid rgba(127, 83, 255, 0.2);
  color: var(--text-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: rgba(127, 83, 255, 0.2);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(127, 83, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: var(--accent1);
  transform: scale(1.2);
}

.project-item {
  background: var(--bg-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.project-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(127, 83, 255, 0.15);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-item:hover .project-image img {
  transform: scale(1.05);
}

/* Video Project Styling */
.project-image.video-project {
  border-radius: 12px;
  overflow: hidden;
}

.project-image.video-project iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.project-item:hover .project-image.video-project iframe {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.project-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-align: left;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech span {
  background: rgba(127, 83, 255, 0.1);
  color: #7f53ff;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(127, 83, 255, 0.2);
}

/* Clients Section */
.clients {
  padding: 5rem 2rem;
  background: var(--bg-secondary);
}

.clients-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.clients-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  background: var(--accent1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.clients-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.client-card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--tile-shadow);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(127, 83, 255, 0.1);
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.5);
}

.client-logo {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.client-logo img {
  max-width: 120px;
  height: auto;
  border-radius: 0.5rem;
  filter: brightness(1.1);
}

.client-logo .govt-logo {
  background: white;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

[data-theme="dark"] .client-logo .govt-logo {
  background: white;
  filter: brightness(1) contrast(1.2);
}

.client-info h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  margin-top: -0.2rem;
}

.client-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.client-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

/* Contact Section */
.contact {
  padding: 5rem 2rem;
  background: var(--bg-color);
  text-align: center;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  background: var(--accent2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  background: var(--bg-secondary);
  border-radius: 1rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(127, 83, 255, 0.1);
  min-width: 120px;
}

.contact-link:hover {
  transform: translateY(-4px);
  background: rgba(127, 83, 255, 0.1);
  border-color: rgba(127, 83, 255, 0.3);
  color: var(--text-color);
}

.contact-icon {
  font-size: 2rem;
}

/* Skill Pages Styles */
.skill-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-color);
  position: relative;
}

.skill-hero-content {
  max-width: 800px;
  padding: 0 2rem;
}

.skill-icon-large {
  margin-bottom: 2rem;
  opacity: 0.8;
}

.skill-icon-large svg {
  width: 80px;
  height: 80px;
  color: var(--text-color);
}

.skill-hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: var(--accent1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skill-tagline {
  font-size: 1.3rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.skill-overview {
  padding: 5rem 2rem;
  background: var(--bg-secondary);
}

.skill-content {
  max-width: 1200px;
  margin: 0 auto;
}

.skill-content h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.skill-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Design Process Styles */
.design-process h3,
.dev-specialties h3,
.video-services h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 3rem 0 2rem 0;
  background: var(--accent2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.process-steps,
.specialty-areas,
.service-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.process-step,
.specialty-area,
.service-area {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(127, 83, 255, 0.1);
}

.step-number {
  background: var(--accent1);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

.process-step h4,
.specialty-area h4,
.service-area h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.process-step p,
.specialty-area p,
.service-area p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.tech-highlights,
.service-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-highlights span,
.service-highlights span {
  background: rgba(67, 206, 162, 0.1);
  color: #43cea2;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(67, 206, 162, 0.3);
}

/* Projects Grid Styles */
.skill-projects {
  padding: 5rem 2rem;
  background: var(--bg-color);
}

.design-projects-grid,
.dev-projects-grid,
.video-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.design-project,
.dev-project,
.video-project {
  background: var(--bg-secondary);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.design-project:hover,
.dev-project:hover,
.video-project:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(127, 83, 255, 0.15);
}

.project-preview,
.video-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-preview img,
.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.design-project:hover .project-preview img,
.video-project:hover .video-thumbnail img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-project:hover .play-overlay {
  opacity: 1;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.project-code {
  background: #1a1a1a;
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--bg-color);
}

.project-code pre {
  margin: 0;
  color: #c9d1d9;
  line-height: 1.4;
}

.project-details {
  padding: 1.5rem;
}

.project-details h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.project-details p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.project-metrics,
.project-stats,
.video-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.metric,
.stat,
.spec {
  background: rgba(255, 106, 0, 0.1);
  color: #ff6a00;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 106, 0, 0.3);
}

/* Tools Grid Styles */
.skill-tools {
  padding: 5rem 2rem;
  background: var(--bg-secondary);
}

.tools-grid,
.tech-stack-grid,
.video-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tool-category,
.tech-category {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(127, 83, 255, 0.1);
}

.tool-category h3,
.tech-category h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tool-item {
  background: rgba(126, 231, 135, 0.1);
  color: #7ee787;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(126, 231, 135, 0.3);
}

.tech-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tech-name {
  font-weight: 600;
  color: var(--text-color);
}

.proficiency-bar {
  width: 100px;
  height: 6px;
  background: rgba(127, 83, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.proficiency-fill {
  height: 100%;
  background: var(--accent1);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.tool-item-detailed {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(127, 83, 255, 0.1);
  border-radius: 0.5rem;
  border: 1px solid rgba(127, 83, 255, 0.2);
}

.tool-level {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Production Workflow */
.production-workflow {
  margin-top: 3rem;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.workflow-step {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-color);
  border-radius: 1rem;
  border: 1px solid rgba(127, 83, 255, 0.1);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.workflow-step h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.workflow-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* CTA Section */
.cta-section {
  padding: 5rem 2rem;
  background: var(--bg-color);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: var(--accent3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background: var(--accent1);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(127, 83, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(127, 83, 255, 0.4);
  color: #fff;
}

/* Orbit Skills Animation - Clean Implementation */
.orbit-skills {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  pointer-events: none;
}

.ring1 {
  width: 420px;
  height: 420px;
}

.ring2 {
  width: 600px;
  height: 600px;
}

.orbit-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  margin-left: -35px;
  margin-top: -35px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(127, 83, 255, 0.18), 0 1.5px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: all 0.3s ease;
  animation-fill-mode: forwards;
}

/* Ring 1 Items - Inner Ring */
/* Ring 1 Items - Inner Ring - 5 Items (72deg spacing) */
.ring1 .orbit-item:nth-child(1) {
  animation: orbit-item-1 20s linear infinite;
}

.ring1 .orbit-item:nth-child(2) {
  animation: orbit-item-2 20s linear infinite;
}

.ring1 .orbit-item:nth-child(3) {
  animation: orbit-item-3 20s linear infinite;
}

.ring1 .orbit-item:nth-child(4) {
  animation: orbit-item-4 20s linear infinite;
}

.ring1 .orbit-item:nth-child(5) {
  animation: orbit-item-5 20s linear infinite;
}

/* Ring 2 Items - Outer Ring - 5 Items (72deg spacing) */
.ring2 .orbit-item:nth-child(1) {
  animation: orbit-item-6 25s linear infinite;
}

.ring2 .orbit-item:nth-child(2) {
  animation: orbit-item-7 25s linear infinite;
}

.ring2 .orbit-item:nth-child(3) {
  animation: orbit-item-8 25s linear infinite;
}

.ring2 .orbit-item:nth-child(4) {
  animation: orbit-item-9 25s linear infinite;
}

.ring2 .orbit-item:nth-child(5) {
  animation: orbit-item-10 25s linear infinite;
}

.orbit-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.10));
}

.orbit-item:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 8px 32px rgba(127, 83, 255, 0.28), 0 2px 12px rgba(0, 0, 0, 0.12);
}

/* Individual Item Animations - Ring 1 (Inner) */
/* Individual Item Animations - Ring 1 (Inner) - CW */
@keyframes orbit-item-1 {
  0% {
    transform: rotate(0deg) translateX(210px) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translateX(210px) rotate(-360deg);
  }
}

@keyframes orbit-item-2 {
  0% {
    transform: rotate(72deg) translateX(210px) rotate(-72deg);
  }

  100% {
    transform: rotate(432deg) translateX(210px) rotate(-432deg);
  }
}

@keyframes orbit-item-3 {
  0% {
    transform: rotate(144deg) translateX(210px) rotate(-144deg);
  }

  100% {
    transform: rotate(504deg) translateX(210px) rotate(-504deg);
  }
}

@keyframes orbit-item-4 {
  0% {
    transform: rotate(216deg) translateX(210px) rotate(-216deg);
  }

  100% {
    transform: rotate(576deg) translateX(210px) rotate(-576deg);
  }
}

@keyframes orbit-item-5 {
  0% {
    transform: rotate(288deg) translateX(210px) rotate(-288deg);
  }

  100% {
    transform: rotate(648deg) translateX(210px) rotate(-648deg);
  }
}

/* Individual Item Animations - Ring 2 (Outer) - CCW */
/* Starting offset 36deg to interleave */
@keyframes orbit-item-6 {
  0% {
    transform: rotate(36deg) translateX(300px) rotate(-36deg);
  }

  100% {
    transform: rotate(-324deg) translateX(300px) rotate(324deg);
  }
}

@keyframes orbit-item-7 {
  0% {
    transform: rotate(108deg) translateX(300px) rotate(-108deg);
  }

  100% {
    transform: rotate(-252deg) translateX(300px) rotate(252deg);
  }
}

@keyframes orbit-item-8 {
  0% {
    transform: rotate(180deg) translateX(300px) rotate(-180deg);
  }

  100% {
    transform: rotate(-180deg) translateX(300px) rotate(180deg);
  }
}

@keyframes orbit-item-9 {
  0% {
    transform: rotate(252deg) translateX(300px) rotate(-252deg);
  }

  100% {
    transform: rotate(-108deg) translateX(300px) rotate(108deg);
  }
}

@keyframes orbit-item-10 {
  0% {
    transform: rotate(324deg) translateX(300px) rotate(-324deg);
  }

  100% {
    transform: rotate(-36deg) translateX(300px) rotate(36deg);
  }
}

@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    gap: 1rem;
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .skills {
    padding: 3rem 1rem;
  }

  .skills-tiles {
    gap: 1.2rem;
  }

  .skill-tile {
    min-width: 200px;
    min-height: 160px;
    font-size: 1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-stats {
    gap: 1rem;
  }

  .stat {
    min-width: 80px;
    padding: 0.75rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Carousel Mobile */
  .projects-container .project-item {
    flex: 0 0 280px;
    min-width: 280px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .carousel-nav {
    gap: 1rem;
  }

  .contact-links {
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .nav-container {
    height: 60px;
  }

  main {
    margin-top: 60px;
  }

  .glow {
    font-size: 1.8rem;
  }

  .skills {
    padding: 2.5rem 0.5rem 1.5rem 0.5rem;
  }

  .skills-header h2 {
    font-size: 2rem;
  }

  .about-teaser {
    padding: 2rem 1rem 2.5rem 1rem;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .skill-tile {
    min-width: 160px;
    min-height: 140px;
    font-size: 0.95rem;
    padding: 1.5rem 1rem;
  }

  .tile-icon svg {
    width: 36px;
    height: 36px;
  }

  .tile-icon img {
    width: 36px;
    height: 36px;
  }

  .tile-icon lord-icon {
    width: 48px;
    height: 48px;
  }

  .profile-image {
    width: 120px;
    height: 120px;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .stat {
    width: 100%;
    max-width: 200px;
  }

  .projects {
    padding: 3rem 1rem;
  }

  .projects h2,
  .contact h2 {
    font-size: 2rem;
  }

  .contact {
    padding: 3rem 1rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-link {
    width: 100%;
    max-width: 200px;
  }

  /* Skill Pages Mobile Styles */
  .skill-hero {
    min-height: 50vh;
    padding: 2rem 1rem;
  }

  .skill-hero h1 {
    font-size: 2rem;
  }

  .skill-tagline {
    font-size: 1.1rem;
  }

  .skill-overview,
  .skill-projects,
  .skill-tools,
  .cta-section {
    padding: 3rem 1rem;
  }

  .process-steps,
  .specialty-areas,
  .service-areas,
  .design-projects-grid,
  .dev-projects-grid,
  .video-projects-grid,
  .tools-grid,
  .tech-stack-grid,
  .video-tools-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skill-content h2 {
    font-size: 2rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .project-code {
    font-size: 0.7rem;
    padding: 1rem;
  }
}

/* Responsive Rive Avatar Styles */
@media (max-width: 600px) {
  .rive-avatar {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 400px) {
  .rive-avatar {
    width: 150px;
    height: 150px;
  }
}

/* ===============================
   BLOG PAGES STYLING
   =============================== */

/* Blog Layout */
main {
  margin-top: 70px;
  min-height: 100vh;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 70px;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent1);
  z-index: 1000;
  transition: width 0.1s ease;
}

/* Content Animation on Scroll */
.blog-content>* {
  opacity: 0;
  transform: translateY(20px);
  animation: contentFadeIn 0.6s ease-out forwards;
}

.blog-content>*:nth-child(1) {
  animation-delay: 0.1s;
}

.blog-content>*:nth-child(2) {
  animation-delay: 0.2s;
}

.blog-content>*:nth-child(3) {
  animation-delay: 0.3s;
}

.blog-content>*:nth-child(4) {
  animation-delay: 0.4s;
}

.blog-content>*:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes contentFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Blog Header Section */
.blog-header {
  padding: 4rem 2rem 3rem;
  background: var(--bg-color);
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.blog-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.2;
  background: var(--accent1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-meta {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 500;
  opacity: 0.8;
}

/* Blog Images Gallery */
.blog-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
  justify-content: center;
}

.blog-images img {
  max-width: 420px;
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
}

.blog-images img:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(127, 83, 255, 0.2);
}

/* Video Showcase Styling */
.video-showcase {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
  padding: 2rem;
}

.video-showcase iframe {
  border-radius: 1.5rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  width: 600px;
  height: 600px;
}

.video-showcase iframe:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(127, 83, 255, 0.2);
}

/* Video Project Info Styling */
.video-project-info {
  text-align: center;
  padding: 2rem 0;
}

.video-project-info h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: var(--accent1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.video-project-info p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.project-tech-large {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.project-tech-large span {
  background: rgba(127, 83, 255, 0.1);
  color: var(--text-color);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(127, 83, 255, 0.2);
  transition: all 0.3s ease;
}

.project-tech-large span:hover {
  background: rgba(127, 83, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(127, 83, 255, 0.3);
}

/* Fullscreen Video Styling */
.blog-header.fullscreen-video {
  padding: 0;
  background: var(--bg-color);
  max-width: 100%;
  margin: 0;
  text-align: center;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8rem;
}

.video-showcase.fullscreen {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  max-width: 80%;
  max-height: 80vh;
}

.video-showcase.fullscreen iframe {
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  height: 100%;
  min-height: 400px;
  max-height: 80vh;
  aspect-ratio: 16/9;
}

.video-showcase.fullscreen iframe:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 80px rgba(127, 83, 255, 0.4);
}

.back-to-home-fullscreen {
  position: absolute;
  top: 2rem;
  left: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(127, 83, 255, 0.1);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(127, 83, 255, 0.2);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.back-to-home-fullscreen:hover {
  background: rgba(127, 83, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(127, 83, 255, 0.3);
}

/* Project Highlights Section */
.project-highlights {
  margin-top: 3rem;
  text-align: left;
}

.project-highlights h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  text-align: center;
}

.project-highlights ul {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
}

.project-highlights li {
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(127, 83, 255, 0.05);
  border-left: 4px solid;
  border-image: var(--accent1) 1;
  border-radius: 0 8px 8px 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.project-highlights li:hover {
  background: rgba(127, 83, 255, 0.1);
  transform: translateX(8px);
}

.project-highlights strong {
  color: var(--text-color);
  font-weight: 700;
}

/* Blog Content Section */
.blog-content {
  padding: 2rem 2rem 4rem;
  background: var(--bg-secondary);
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 2rem 2rem 0 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
}

/* Back to Home Button */
.back-to-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.75rem 1.5rem;
  background: rgba(127, 83, 255, 0.1);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(127, 83, 255, 0.2);
}

.back-to-home:hover {
  background: rgba(127, 83, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(127, 83, 255, 0.3);
}

.back-to-home::before {
  content: '←';
  font-size: 1.2rem;
}

/* Enhanced Typography */
.blog-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 2.5rem 0 1.5rem;
  color: var(--text-color);
  position: relative;
  padding-left: 3rem;
}

.blog-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 4px;
  background: var(--accent2);
  border-radius: 2px;
}

/* Emoji Icons for Headings */
.blog-content h2:nth-of-type(1)::after {
  content: '';
}

.blog-content h2:nth-of-type(2)::after {
  content: '';
}

.blog-content h2:nth-of-type(3)::after {
  content: '';
}

.blog-content h2:nth-of-type(4)::after {
  content: '';
}

.blog-content h2:nth-of-type(5)::after {
  content: '';
}

.blog-content h2:nth-of-type(6)::after {
  content: '';
}

.blog-content h2:nth-of-type(7)::after {
  content: '';
}

.blog-content h2:nth-of-type(8)::after {
  content: '';
}

.blog-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--text-color);
}

.blog-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.blog-content ul {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.blog-content li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.blog-content li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-weight: bold;
  background: var(--accent2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-content strong {
  color: var(--text-color);
  font-weight: 700;
}

/* Blog Quote */
.blog-quote {
  background: rgba(127, 83, 255, 0.05);
  border-left: 4px solid;
  border-image: var(--accent1) 1;
  padding: 2rem;
  margin: 2.5rem 0;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-color);
  border-radius: 0 1rem 1rem 0;
  position: relative;
}

.blog-quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--accent1);
  position: absolute;
  top: -10px;
  left: 15px;
  font-family: Georgia, serif;
  opacity: 0.3;
}

/* Responsive Design for Blog */
@media (max-width: 768px) {
  .blog-header {
    padding: 3rem 1.5rem 2rem;
  }

  .blog-header h1 {
    font-size: 2rem;
  }

  .blog-content {
    padding: 1.5rem 1.5rem 3rem;
    border-radius: 1.5rem 1.5rem 0 0;
  }

  .blog-content h2 {
    font-size: 1.7rem;
  }

  .blog-content h3 {
    font-size: 1.3rem;
  }

  .blog-images {
    gap: 1rem;
  }

  .blog-images img {
    max-width: 100%;
  }

  .blog-quote {
    padding: 1.5rem;
    margin: 2rem 0;
    font-size: 1.05rem;
  }

  /* Clients Section Mobile */
  .clients {
    padding: 3rem 1rem;
  }

  .clients-title {
    font-size: 2rem;
  }

  .clients-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .client-card {
    padding: 1.5rem;
    text-align: center;
  }

  .client-logo {
    justify-content: center;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .blog-header h1 {
    font-size: 1.8rem;
  }

  .blog-meta {
    font-size: 1rem;
  }

  .blog-content h2 {
    font-size: 1.5rem;
  }

  .blog-content p,
  .blog-content li {
    font-size: 1rem;
  }

  .blog-quote {
    padding: 1.2rem;
    font-size: 1rem;
  }

  /* Video Showcase Responsive */
  .video-showcase {
    padding: 1rem;
    margin: 2rem 0;
  }

  .video-showcase iframe {
    width: 100%;
    height: auto;
    min-height: 400px;
  }

  .project-tech-large {
    gap: 0.75rem;
  }

  .project-tech-large span {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  /* Fullscreen Video Mobile */
  .blog-header.fullscreen-video {
    height: 100vh;
    padding: 1rem;
  }

  .video-showcase.fullscreen {
    max-width: 95%;
    max-height: 70vh;
  }

  .video-showcase.fullscreen iframe {
    min-height: 250px;
    max-height: 70vh;
    border-radius: 1rem;
  }

  .back-to-home-fullscreen {
    top: 1rem;
    left: 1rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  /* Project Highlights Mobile */
  .project-highlights h3 {
    font-size: 1.5rem;
  }

  .project-highlights li {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }
}

.photoshop-icon {
  width: 55px !important;
  height: 55px !important;
}