@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");
@media (max-width: 600px) {
  .some-container {
    flex-direction: column;
    font-size: 14px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  cursor: none !important; /* Custom Cursor */
}

html {
  scroll-behavior: smooth;
}

body {
  background: #1f242d;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  /* keep content visible immediately; overlay will cover and reveal */
  opacity: 1;
}
/* Animation Styles: clean reveal overlay (single definition) */
.reveal-overlay {
  position: fixed;
  inset: 0;
  background: #0a0f16;
  z-index: 9999;
  pointer-events: none;
  /* start covering with a large circle centered near bottom */
  clip-path: circle(150% at 50% 100%);
  animation: overlayReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Hide by class after animation completes */
.reveal-overlay.hidden { display: none; }

/* Ensure main content sits above the overlay */
main, .page-content { position: relative; z-index: 2; }

/* Slight content fade after overlay starts - removed to ensure content visible beneath overlay */
/* body fade removed: content should be visible immediately; overlay reveals it. */

@keyframes overlayReveal {
  0% { clip-path: circle(150% at 50% 100%); opacity: 1; transform: translateY(0) scale(1); }
  65% { clip-path: circle(45% at 50% 65%); opacity: 1; }
  100% { clip-path: circle(0% at 50% 50%); opacity: 0; transform: translateY(-120%) scale(1.02); }
}

/* Content fade-in after reveal finishes */
main {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.revealed main {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: rgba(0, 140, 255, 0.8);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.1s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.custom-cursor::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(0, 140, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.custom-cursor.hover {
  background: rgba(0, 255, 136, 0.9);
  transform: translate(-50%, -50%) scale(1.5);
}

.custom-cursor.hover::before {
  width: 60px;
  height: 60px;
  border-color: rgba(0, 255, 136, 0.5);
  animation: cursor-pulse 1s infinite;
}

.custom-cursor.click {
  background: rgba(255, 0, 136, 0.9);
  transform: translate(-50%, -50%) scale(0.8);
}

.custom-cursor.click::before {
  width: 30px;
  height: 30px;
  border-color: rgba(255, 0, 136, 0.7);
}

.custom-cursor.text {
  width: 2px;
  height: 20px;
  background: rgba(0, 140, 255, 0.9);
  border-radius: 2px;
}

.custom-cursor.text::before {
  display: none;
}

@keyframes cursor-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
  }
}

/* Custom cursor trail */
.cursor-trail {
  position: fixed;
  width: 6px;
  height: 6px;
  background: rgba(0, 140, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.2s ease;
  transform: translate(-50%, -50%);
}

/* If device is touch, show default cursor and hide custom cursor elements */
.is-touch * {
  cursor: auto !important;
}

.is-touch .custom-cursor,
.is-touch .cursor-trail,
.is-touch .custom-scroll-wheel,
.is-touch .scroll-bg-animation,
.is-touch .scroll-wave,
.is-touch .scroll-glow {
  display: none !important;
}

/* Hide default cursor on interactive elements */
a,
button,
.btn,
.project-card,
.service-card,
.scroll-dot,
input,
textarea {
  cursor: none !important;
}

.bars-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: -1;
}
.bars-animation .bar {
  width: 100%;
  height: 100%;
  background: #1f242d;
  transform: translateY(-100%);
  animation: show-bars 0.5s ease-in-out forwards;
  animation-delay: calc(0.1s * var(--i));
}

a {
  color: white;
  text-decoration: none;
}

/* Enhanced navbar with backdrop blur and smooth transitions */
.navbar {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  padding: 20px 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10002;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(31, 36, 45, 0.9);
  border-bottom: 1px solid rgba(0, 140, 255, 0.1);
  transition: all 0.3s ease;
}

.navbar:hover {
  background: rgba(31, 36, 45, 0.95);
}

@keyframes show-content {
  100% {
    visibility: visible;
    opacity: 1;
  }
}

.navbar .logo {
  font-size: 30px;
  font-weight: 700;
  background: linear-gradient(45deg, #008cff, #7ec5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: 101;
}

/* Hide checkbox and hamburger by default */
#menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  font-size: 28px;
  color: #008cff;
  cursor: pointer;
  z-index: 101;
  transition: all 0.3s ease;
}

.hamburger:hover {
  color: #7ec5ff;
  transform: scale(1.1);
}

.close-btn {
  display: none;
}

/* Desktop navigation styles */
.navbar .nav-menu {
  display: flex;
}

.navbar .nav-menu li {
  list-style: none;
  margin-left: 35px;
  position: relative;
}

.navbar .nav-menu li a {
  font-size: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.navbar .nav-menu li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #008cff;
  transition: width 0.3s ease;
}

.navbar .nav-menu li:hover a,
.navbar .nav-menu li.active a {
  color: #008cff;
  transform: translateY(-2px);
}

.navbar .nav-menu li:hover a::after,
.navbar .nav-menu li.active a::after {
  width: 100%;
}

/* Mobile menu overlay */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* avoid blocking taps when hidden */
}

/* Mobile responsive styles - Sidebar implementation */
@media (max-width: 940px) {
  .hamburger {
    display: block;
  }

  .navbar .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #0f1419 0%, #1f242d 100%);
    box-shadow: 5px 0 20px rgba(0, 140, 255, 0.3);
    z-index: 99;
    flex-direction: column;
    padding: 80px 0 30px;
    transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
  }

  .close-btn {
    display: block;
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 28px;
    color: #008cff;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .close-btn:hover {
    color: #7ec5ff;
    transform: rotate(90deg);
  }

  .navbar .nav-menu li {
    margin: 0;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(0, 140, 255, 0.1);
  }

  .navbar .nav-menu li a {
    display: block;
    padding: 20px 30px;
    font-size: 18px;
    width: 100%;
    transition: all 0.3s ease;
  }

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

  .navbar .nav-menu li:hover {
    background: rgba(0, 140, 255, 0.1);
  }

  .navbar .nav-menu li:hover a {
    color: #008cff;
    transform: translateX(10px);
  }

  .navbar .nav-menu li.active {
    background: rgba(0, 140, 255, 0.15);
    border-left: 4px solid #008cff;
  }

  /* Show sidebar when checkbox is checked */
  #menu-toggle:checked ~ .nav-menu {
    left: 0;
  }

  #menu-toggle:checked ~ .menu-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto; /* allow overlay to receive clicks when active */
  }

  /* Close menu when overlay is clicked */
  /* keep overlay not blocking until menu is active */
  .menu-overlay {
    display: block;
    pointer-events: none;
  }
}

/* Mobile-first refinements */
@media (max-width: 768px) {
  html, body {
    font-size: 15px;
  }

  .home {
    flex-direction: column-reverse;
    padding: 100px 6% 50px;
    gap: 40px;
    height: auto;
    text-align: center;
  }

  .home-info {
    width: 100%;
  }

  .home-info .btn-sci {
    justify-content: center;
    flex-wrap: wrap;
  }

  .home-img {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .home-img .img-box {
    width: 70vw;
    height: 70vw;
    max-width: 350px;
    max-height: 350px;
  }

  .home-img img, .project-image img, .video-thumbnail img, .code-preview img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }

  .projects-grid, .videos-grid, .code-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .projects-content, .videos-content, .code-content, .services-content, .about-content, .contact-content {
    padding: 50px 6%;
  }

  .navbar {
    padding: 18px 6%;
  }

  .hamburger {
    font-size: 24px;
  }

  .scroll-indicator {
    position: fixed;
    right: 8px;
    top: 84px;
    width: 4px;
    left: auto;
    z-index: 10001;
  }

  section {
    padding: 60px 6% 50px;
  }

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

  .contact-info {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .btn {
    padding: 12px 30px;
    font-size: 15px;
  }
}

/* Force header and navigation controls to stay fixed and visible while scrolling.
   These rules are overrides to ensure no other media-query or transform-created
   stacking context hides or repositions them. */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 10002 !important;
}

.custom-scroll-wheel {
  position: fixed !important;
  right: 24px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10003 !important;
  display: flex !important;
}

.scroll-indicator {
  position: fixed !important;
  right: 8px !important;
  top: 84px !important;
  z-index: 10001 !important;
}

@media (max-width: 600px) {
  /* On small screens push the dots down a bit to avoid overlapping header controls */
  .custom-scroll-wheel { right: 14px !important; top: 55% !important }
  .scroll-indicator { top: 72px !important }
  .navbar { padding: 12px 5% !important }
}

@media (max-width: 480px) {
  .navbar { padding: 15px 5% }
  .navbar .nav-menu li a { font-size: 16px }
  
  .home {
    padding: 90px 5% 40px;
    gap: 30px;
  }

  .home-img .img-box {
    width: 80vw;
    height: 80vw;
  }

  section {
    padding: 50px 5% 40px;
  }

  .section-title {
    margin-bottom: 35px;
  }

  .projects-grid, .videos-grid, .code-grid {
    gap: 20px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .contact-form {
    padding: 25px;
  }
}

/* Large desktop and ultrawide screens */
@media (min-width: 1920px) {
  .home, section {
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
  }

  .navbar {
    padding: 20px calc((100% - 1800px) / 2 + 100px);
  }

  .projects-grid, .videos-grid, .code-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
}

/* Tablet landscape */
@media (min-width: 768px) and (max-width: 1024px) {
  .home {
    padding: 100px 7% 60px;
  }

  .projects-grid, .videos-grid, .code-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .about-info {
    grid-template-columns: 1.5fr 1fr;
  }
}

/* Responsive iframe for contact form */
.contact-form iframe {
  width: 100%;
  max-width: 100%;
  height: 600px;
  border: none;
}

/* Improve tappable areas for mobile */
.project-card, .video-card, .code-card, .service-card {
  touch-action: manipulation;
}

/* Ensure scroll wheel dots are hidden on small screens to reduce clutter */
@media (max-width: 940px) {
  .custom-scroll-wheel { display: none }
}

/* Enhanced home section with better animations */
.home {
  display: flex;
  align-items: center;
  gap: 50px;
  min-height: 100vh;
  height: auto;
  padding: 100px 9% 60px;
  color: #fff;
}

.home-info h1 {
  font-size: clamp(32px, 8vw, 60px);
  background: linear-gradient(45deg, #fff, #008cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.home-info h2 {
  display: inline-block;
  font-size: clamp(20px, 4vw, 32px);
  margin-top: 10px;
}

.home-info h2 span {
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: .7px #008cff;
  animation: display-text 16s linear infinite;
  animation-delay: calc(-4s * var(--i));
}

@keyframes display-text {
  25%,
  100% {
    display: none;
  }
}

.home-info h2 span::before {
  content: attr(data-text);
  position: absolute;
  width: 0;
  border-right: 2px solid #008cff;
  color: #008cff;
  white-space: nowrap;
  overflow: hidden;
  animation: fill-text 4s linear infinite;
}

@keyframes fill-text {
  10%,
  100% {
    width: 0;
  }
  70%,
  90% {
    width: 100%;
  }
}

.home-info p {
  font-size: 16px;
  margin: 20px 0 30px;
  line-height: 1.8;
  opacity: 0.9;
  max-width: 600px;
}

.home-info .btn-sci {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, #008cff, #00a8ff);
  border: 2px solid transparent;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 140, 255, 0.4);
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 35px rgba(0, 140, 255, 0.6);
  background: linear-gradient(135deg, #00a8ff, #008cff);
}

.home-info .btn-sci .sci {
  display: flex;
  gap: 15px;
}

.home-info .btn-sci .sci a {
  display: inline-flex;
  padding: 12px;
  border: 2px solid #008cff;
  border-radius: 50%;
  font-size: 20px;
  color: #008cff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.home-info .btn-sci .sci a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #008cff;
  transition: width 0.3s ease;
  z-index: -1;
}

.home-info .btn-sci .sci a:hover::before {
  width: 100%;
}

.home-info .btn-sci .sci a:hover {
  color: #1f242d;
  transform: translateY(-3px) rotate(360deg);
  box-shadow: 0 5px 20px rgba(0, 140, 255, 0.4);
}

/* Enhanced image section with better animations */
.home-img .img-box {
  width: 32vw;
  height: 32vw;
  border-radius: 50%;
  padding: 5px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.home-img .img-box::before,
.home-img .img-box::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: conic-gradient(transparent, transparent, transparent, #008cff);
  animation: rotate-border 10s linear infinite;
}

.home-img .img-box::after {
  animation-delay: -5s;
}

@keyframes rotate-border {
  100% {
    transform: rotate(360deg);
  }
}

.home-img .img-box .img-item {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1f242d;
  border-radius: 50%;
  border: 1px solid #1f242d;
  display: flex;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.home-img .img-box:hover .img-item {
  transform: scale(1.05);
}

.home-img .img-box .img-item img {
  position: absolute;
  top: 20px;
  display: block;
  width: 85%;
  object-fit: cover;
  mix-blend-mode: lighten;
  transition: all 0.3s ease;
}

.home-img .img-box:hover .img-item img {
  transform: scale(1.1);
}

/* Added section styles for new content */
section {
  padding: 80px 9% 60px;
  min-height: auto;
  display: flex;
  align-items: center;
}

.section-title {
  font-size: clamp(32px, 6vw, 48px);
  text-align: center;
  margin-bottom: 50px;
  background: linear-gradient(45deg, #fff, #008cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title span {
  color: #008cff;
}

/* About section styles */
.about {
  background: linear-gradient(135deg, #1f242d 0%, #2a2f3a 100%);
}

.about-content {
  width: 100%;
}

.about-info {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 28px;
  color: #008cff;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 22px;
  opacity: 0.9;
  color: #ffffff;
}

.skills {
  margin-top: 40px;
}

.skill-item {
  margin-bottom: 25px;
}

.skill-item span {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #008cff;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 140, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(45deg, #008cff, #7ec5ff);
  width: var(--width);
  border-radius: 4px;
  animation: skill-fill 2s ease-in-out;
}

@keyframes skill-fill {
  0% {
    width: 0;
  }
  100% {
    width: var(--width);
  }
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 30px;
  background: rgba(0, 140, 255, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(0, 140, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 140, 255, 0.25);
}

.stat-item h3 {
  font-size: 36px;
  color: #008cff;
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 14px;
  opacity: 0.8;
}

/* Projects section styles */
.projects {
  background: #1f242d;
}

.projects-content {
  width: 100%;
}

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

.project-card {
  background: rgba(0, 140, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(0, 140, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 140, 255, 0.25);
  border-color: rgba(0, 140, 255, 0.3);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 140, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* don't block clicks when invisible */
}

.project-card:hover .project-overlay {
  opacity: 1;
  pointer-events: auto; /* enable clicks when visible */
}

/* When tapped on touch devices, reveal overlay similarly to hover */
.project-card.tapped .project-overlay {
  opacity: 1;
  pointer-events: auto;
}

.project-links {
  display: flex;
  gap: 20px;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: #fff;
  color: #008cff;
  transform: scale(1.1);
}

.project-info {
  padding: 25px;
}

.project-info h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #ffffff;
}

.project-info p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  opacity: 0.88;
  color: white;
}

.project-tech {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-tech span {
  padding: 5px 12px;
  background: rgba(0, 140, 255, 0.1);
  border: 1px solid rgba(0, 140, 255, 0.3);
  border-radius: 20px;
  font-size: 12px;
  color: #008cff;
}

/* Coming Soon Project Card Styles */
.project-card.coming-soon .project-image {
  background: linear-gradient(135deg, rgba(0, 140, 255, 0.1) 0%, rgba(126, 197, 255, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-content {
  font-size: 80px;
  color: rgba(0, 140, 255, 0.3);
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.6;
  }
}

.project-card.coming-soon .project-info h3 {
  color: #7ec5ff;
}

.project-card.coming-soon .project-tech span {
  background: rgba(126, 197, 255, 0.15);
  border-color: rgba(126, 197, 255, 0.4);
  color: #7ec5ff;
}
.videos {
  padding: 100px 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

.videos-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.video-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 140, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.15);
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-card:hover .video-overlay {
  opacity: 1;
  pointer-events: auto;
}

.video-card.tapped .video-overlay {
  opacity: 1;
  pointer-events: auto;
}

.video-info {
  padding: 25px;
}

.video-info h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #fff;
}

.video-info p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.video-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.video-tech span {
  background: linear-gradient(45deg, #008cff, #7ec5ff);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Code Section Styles */
.code {
  padding: 100px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.code-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.code-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 255, 136, 0.25);
  border-color: rgba(255, 255, 255, 0.15);
}

.code-preview {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.code-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.code-card:hover .code-preview img {
  transform: scale(1.1);
}

.code-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.code-card:hover .code-overlay {
  opacity: 1;
  pointer-events: auto;
}

.code-card.tapped .code-overlay {
  opacity: 1;
  pointer-events: auto;
}

.code-links {
  display: flex;
  gap: 20px;
}

.code-link {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #00ff88, #00cc6a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.code-link:hover {
  transform: scale(1.1);
}

.code-info {
  padding: 25px;
}

.code-info h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #fff;
}

.code-info p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.code-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.code-tech span {
  background: linear-gradient(45deg, #00ff88, #00cc6a);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}
/* Services section styles */
.services {
  background: linear-gradient(135deg, #2a2f3a 0%, #1f242d 100%);
}

.services-content {
  width: 100%;
  color: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: rgba(0, 140, 255, 0.05);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(0, 140, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 140, 255, 0.1), transparent);
  transition: left 0.5s;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 140, 255, 0.25);
  border-color: rgba(0, 140, 255, 0.25);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #008cff, #7ec5ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 35px;
  color: #fff;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: rotateY(360deg);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #008cff;
}

.service-card p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Contact section styles */
.contact {
  background: #1f242d;
}

.contact-content {
  width: 100%;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-text h3 {
  font-size: 28px;
  color: #008cff;
  margin-bottom: 20px;
}

.contact-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.9;
  color: #ffffff;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 16px;
  color: #fff;
}

.contact-item i {
  width: 40px;
  height: 40px;
  background: rgba(0, 140, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #008cff;
  font-size: 18px;
}

.contact-form {
  background: rgba(0, 140, 255, 0.05);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(0, 140, 255, 0.1);
}

.form-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  background: rgba(0, 140, 255, 0.1);
  border: 1px solid rgba(0, 140, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #008cff;
  box-shadow: 0 0 10px rgba(0, 140, 255, 0.3);
}

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

/* Footer styles */
.footer {
  background: #0f1419;
  padding: 30px 9%;
  border-top: 1px solid rgba(0, 140, 255, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0, 140, 255, 0.1);
  border-radius: 50%;
  color: #008cff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: #008cff;
  color: #fff;
  transform: translateY(-3px);
}

/* Bars animation remains the same */
@keyframes show-bars {
  100% {
    transform: translateY(0%);
  }
}

/* Custom Scroll Wheel Styles */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(31, 36, 45, 0.8);
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 140, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #008cff, #7ec5ff);
  border-radius: 10px;
  border: 2px solid rgba(31, 36, 45, 0.8);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #0099ff, #66d9ff);
  box-shadow: 0 0 15px rgba(0, 140, 255, 0.5);
  transform: scale(1.1);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(45deg, #0066cc, #4dc3ff);
}

/* Custom Scroll Indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 140, 255, 0.1);
  z-index: 1000;
}

.scroll-progress {
  height: 100%;
  background: linear-gradient(90deg, #008cff, #7ec5ff, #00ff88);
  width: 0%;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(0, 140, 255, 0.5);
}

/* Floating Scroll Wheel */
.custom-scroll-wheel {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10003;
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.custom-scroll-wheel.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 140, 255, 0.3);
  border: 2px solid rgba(0, 140, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.scroll-dot:hover {
  background: rgba(0, 140, 255, 0.8);
  border-color: #008cff;
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(0, 140, 255, 0.6);
}

.scroll-dot.active {
  background: #008cff;
  border-color: #7ec5ff;
  box-shadow: 0 0 20px rgba(0, 140, 255, 0.8);
}

.scroll-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: rgba(0, 140, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.scroll-dot:hover::before {
  width: 30px;
  height: 30px;
}

/* Enhanced Background Animation */
.scroll-bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* place behind UI but above default page background */
  z-index: 0;
  overflow: hidden;
}

.scroll-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(0, 140, 255, 0.45);
  box-shadow: 0 0 8px rgba(0, 140, 255, 0.25);
  border-radius: 50%;
  animation: float-particle 8s linear infinite;
}

/* Bubble particles (larger, slow rising bubbles) */
.bubble-particle {
  position: absolute;
  bottom: -40px; /* start slightly below viewport */
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.75), rgba(255,255,255,0.15) 40%, rgba(0,140,255,0.08) 70%);
  box-shadow: 0 8px 18px rgba(0,140,255,0.08), inset -3px -6px 12px rgba(255,255,255,0.15);
  opacity: 0.6;
  transform: translateY(0) scale(1);
  animation: bubble-rise linear infinite;
}

@keyframes bubble-rise {
  0% {
    transform: translateY(0) translateX(0) scale(0.95);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  50% {
    transform: translateY(-45vh) translateX(15px) scale(1.05);
    opacity: 0.5;
  }
  100% {
    transform: translateY(-120vh) translateX(-20px) scale(1.15);
    opacity: 0;
  }
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/* Scroll Wave Effect */
.scroll-wave {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(180deg, transparent, rgba(0, 140, 255, 0.1));
  pointer-events: none;
  z-index: -1;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.scroll-wave.active {
  transform: translateY(0);
}

.scroll-wave::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(90deg, transparent, rgba(0, 140, 255, 0.1) 50px, transparent 100px);
  animation: wave-move 3s linear infinite;
}

@keyframes wave-move {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Scroll Glow Effect */
.scroll-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 140, 255, 0.1) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-glow.active {
  opacity: 1;
}

/* Enhanced Hover Effects */
.navbar:hover ~ .scroll-indicator .scroll-progress {
  box-shadow: 0 0 20px rgba(0, 140, 255, 0.8);
}

/* Responsive Design for Custom Scroll */
@media (max-width: 768px) {
  .navbar {
    padding: 20px 5%;
  }

  .home {
    flex-direction: column;
    text-align: center;
    padding: 100px 5% 0;
  }

  .home-info h1 {
    font-size: 40px;
  }

  .home-info h2 {
    font-size: 24px;
  }

  .home-img .img-box {
    width: 60vw;
    height: 60vw;
  }

  section {
    padding: 80px 5%;
  }

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

  .contact-info {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-group {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .custom-scroll-wheel {
    right: 15px;
    gap: 10px;
  }

  .scroll-dot {
    width: 10px;
    height: 10px;
  }

  ::-webkit-scrollbar {
    width: 8px;
  }
}

/* Scroll animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ═══════════════════════════════════════════
   HOME SECTION – ENHANCED ANIMATIONS
═══════════════════════════════════════════ */

/* Available badge */
.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.35);
  border-radius: 50px;
  font-size: 13px;
  color: #00ff88;
  margin-bottom: 18px;
  animation: badgePulse 3s ease-in-out infinite;
  letter-spacing: 0.5px;
}
.home-badge::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: dotBlink 1.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,255,136,0); }
  50% { box-shadow: 0 0 12px 4px rgba(0,255,136,0.15); }
}
@keyframes dotBlink {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Mini stats row */
.home-stats-mini {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0 30px;
  flex-wrap: wrap;
}
.mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mini-num {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg,#008cff,#00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mini-label {
  font-size: 11px;
  opacity: 0.6;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.mini-divider {
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.15);
}

/* Outline button */
.btn-outline {
  background: transparent !important;
  border: 2px solid #008cff !important;
  color: #008cff !important;
  margin-left: 12px;
}
.btn-outline:hover {
  background: rgba(0,140,255,0.12) !important;
  box-shadow: 0 0 20px rgba(0,140,255,0.4) !important;
}

/* Floating tech badges around avatar */
.img-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(0,140,255,0.2);
  animation: ringRotate 12s linear infinite;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.ring-outer {
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  border-color: rgba(0,140,255,0.15);
  animation-duration: 18s;
}
.ring-inner {
  width: calc(100% + 28px);
  height: calc(100% + 28px);
  border-color: rgba(0,255,136,0.2);
  animation-direction: reverse;
  animation-duration: 10s;
}
@keyframes ringRotate {
  to { transform: translate(-50%,-50%) rotate(360deg); }
}

.img-tech-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(15,20,30,0.85);
  border: 1px solid rgba(0,140,255,0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  z-index: 10;
  animation: badgeFloat 3s ease-in-out infinite;
}
.badge-1 { top: 8%;  left: -18%; animation-delay: 0s; }
.badge-2 { top: 8%;  right: -18%; animation-delay: 0.6s; }
.badge-3 { bottom: 12%; left: -20%; animation-delay: 1.2s; }
.badge-4 { bottom: 12%; right: -20%; animation-delay: 1.8s; }
@keyframes badgeFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@media (max-width: 820px) {
  .img-tech-badge { display: none; }
  .img-ring { display: none; }
}

/* Hero floating orbs */
.hero-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  animation: orbDrift 20s ease-in-out infinite;
}
.orb-1 { width:350px;height:350px;background:rgba(0,140,255,0.08); top:5%;  left:10%; animation-delay:0s;   animation-duration:22s; }
.orb-2 { width:250px;height:250px;background:rgba(0,255,136,0.06); top:60%; left:75%; animation-delay:4s;   animation-duration:18s; }
.orb-3 { width:180px;height:180px;background:rgba(255,100,200,0.05); top:30%; left:50%; animation-delay:8s; animation-duration:25s; }
.orb-4 { width:300px;height:300px;background:rgba(0,140,255,0.06); top:80%; left:20%; animation-delay:12s; animation-duration:20s; }
.orb-5 { width:200px;height:200px;background:rgba(0,255,136,0.07); top:20%; left:80%; animation-delay:6s;  animation-duration:16s; }
.orb-6 { width:400px;height:400px;background:rgba(255,50,120,0.04); top:50%; left:0%;  animation-delay:2s;  animation-duration:28s; }
@keyframes orbDrift {
  0%   { opacity:0; transform:translate(0,0) scale(1); }
  10%  { opacity:1; }
  50%  { transform:translate(40px,-30px) scale(1.1); }
  90%  { opacity:1; }
  100% { opacity:0; transform:translate(0,0) scale(1); }
}

/* Animated grid */
.hero-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0,140,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,140,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ═══════════════════════════════════════════
   PROJECTS – NEW STYLES
═══════════════════════════════════════════ */
.section-subtitle {
  text-align: center;
  opacity: 0.6;
  font-size: 15px;
  margin-top: -20px;
  margin-bottom: 36px;
}

/* Filter tabs */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 22px;
  border: 1px solid rgba(0,140,255,0.3);
  background: transparent;
  color: #fff;
  border-radius: 30px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover,
.filter-btn.active {
  background: #008cff;
  border-color: #008cff;
  box-shadow: 0 0 16px rgba(0,140,255,0.4);
  color: #fff;
}

/* Project badge */
.project-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 4;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(0,140,255,0.85);
  color: #fff;
  backdrop-filter: blur(6px);
}
.new-badge {
  background: rgba(0,200,100,0.85);
}

/* Placeholder image for new projects (no screenshot yet) */
.project-image--gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d1520, #1a2535);
  position: relative;
  overflow: hidden;
}
.project-image--gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
}
/* Different gradient tints per project */
[data-gradient="1"]::before  { background: linear-gradient(135deg,rgba(0,140,255,0.3),rgba(0,255,136,0.1)); }
[data-gradient="2"]::before  { background: linear-gradient(135deg,rgba(120,0,255,0.3),rgba(0,140,255,0.2)); }
[data-gradient="3"]::before  { background: linear-gradient(135deg,rgba(255,80,160,0.3),rgba(255,200,0,0.1)); }
[data-gradient="4"]::before  { background: linear-gradient(135deg,rgba(0,200,100,0.3),rgba(0,140,255,0.1)); }
[data-gradient="5"]::before  { background: linear-gradient(135deg,rgba(255,140,0,0.3),rgba(255,80,80,0.1)); }
[data-gradient="6"]::before  { background: linear-gradient(135deg,rgba(0,180,255,0.3),rgba(0,255,200,0.1)); }
[data-gradient="7"]::before  { background: linear-gradient(135deg,rgba(200,0,255,0.3),rgba(255,100,100,0.1)); }
[data-gradient="8"]::before  { background: linear-gradient(135deg,rgba(255,60,60,0.3),rgba(255,180,0,0.1)); }
[data-gradient="9"]::before  { background: linear-gradient(135deg,rgba(0,255,180,0.3),rgba(0,80,255,0.1)); }
[data-gradient="10"]::before { background: linear-gradient(135deg,rgba(255,200,0,0.3),rgba(255,80,160,0.1)); }

.project-placeholder-img {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}
.project-placeholder-img i {
  font-size: 64px;
  opacity: 0.55;
  color: #fff;
  animation: iconFloat 4s ease-in-out infinite;
}
@keyframes iconFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-8px) scale(1.05); }
}

/* Hidden/shown extra projects */
.hidden-project {
  display: none !important;
}
.hidden-project.revealed-project {
  display: flex !important;
  flex-direction: column;
  animation: cardReveal 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)  scale(1); }
}

/* Filter hide */
.project-card.filter-hidden {
  display: none !important;
}

/* View More button */
.view-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}
.view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: transparent;
  border: 2px solid rgba(0,140,255,0.5);
  color: #fff;
  border-radius: 50px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.view-more-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,rgba(0,140,255,0.15),rgba(0,255,136,0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.view-more-btn:hover {
  border-color: #008cff;
  box-shadow: 0 0 30px rgba(0,140,255,0.4), inset 0 0 20px rgba(0,140,255,0.05);
  transform: translateY(-2px);
}
.view-more-btn:hover::before { opacity: 1; }
.view-more-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: #008cff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.3s ease;
}
.view-more-btn.expanded .view-more-count {
  background: #00c875;
}
.view-more-icon {
  font-size: 20px;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.view-more-btn.expanded .view-more-icon {
  transform: rotate(180deg);
}
.view-more-btn.expanded .view-more-text::after {
  content: ' Less';
}
.view-more-btn:not(.expanded) .view-more-text::after {
  content: '';
}

/* Staggered card reveal delays */
.project-extra:nth-child(7)  { animation-delay: 0.05s; }
.project-extra:nth-child(8)  { animation-delay: 0.10s; }
.project-extra:nth-child(9)  { animation-delay: 0.15s; }
.project-extra:nth-child(10) { animation-delay: 0.20s; }
.project-extra:nth-child(11) { animation-delay: 0.25s; }
.project-extra:nth-child(12) { animation-delay: 0.30s; }
.project-extra:nth-child(13) { animation-delay: 0.35s; }
.project-extra:nth-child(14) { animation-delay: 0.40s; }
.project-extra:nth-child(15) { animation-delay: 0.45s; }
.project-extra:nth-child(16) { animation-delay: 0.50s; }

/* Responsive adjustments */
@media (max-width: 600px) {
  .project-filters { gap: 8px; }
  .filter-btn { padding: 6px 14px; font-size: 12px; }
  .view-more-btn { font-size: 14px; padding: 12px 24px; }
  .home-stats-mini { gap: 12px; }
  .mini-num { font-size: 18px; }
  .home-badge { font-size: 12px; }
}
