/* Modern Scroll-Triggered Portfolio Design */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(
    135deg,
    rgb(8, 15, 26) 0%,
    rgb(17, 24, 39) 50%,
    rgb(12, 25, 36) 100%
  );
  color: white;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated background particles */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(166, 214, 34, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(59, 130, 246, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(139, 92, 246, 0.1) 0%,
      transparent 50%
    );
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

/* Floating geometric shapes */
body::after {
  content: "";
  position: fixed;
  top: 10%;
  right: 10%;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    45deg,
    rgba(166, 214, 34, 0.2),
    rgba(59, 130, 246, 0.2)
  );
  border-radius: 10px;
  z-index: -1;
  animation: spinFloat 15s linear infinite;
}

.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  /* Chrome hardware acceleration */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.shape {
  position: absolute;
  background: linear-gradient(
    45deg,
    rgba(166, 214, 34, 0.25),
    rgba(59, 130, 246, 0.25)
  );
  border-radius: 12px;
  -webkit-animation: spinFloat 20s linear infinite;
  animation: spinFloat 20s linear infinite;
  border: 2px solid rgba(166, 214, 34, 0.4);
  box-shadow: 0 8px 30px rgba(166, 214, 34, 0.2),
    0 0 20px rgba(59, 130, 246, 0.15);
  /* Chrome-specific optimizations */
  will-change: transform, opacity, filter;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

.shape:nth-child(1) {
  top: 15%;
  left: 8%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 30s;
}

.shape:nth-child(2) {
  top: 70%;
  right: 12%;
  width: 45px;
  height: 45px;
  animation-delay: -8s;
  animation-duration: 25s;
}

.shape:nth-child(3) {
  bottom: 20%;
  left: 15%;
  width: 80px;
  height: 80px;
  animation-delay: -15s;
  animation-duration: 35s;
}

.shape:nth-child(4) {
  top: 35%;
  right: 25%;
  width: 50px;
  height: 50px;
  animation-delay: -22s;
  animation-duration: 28s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Chrome/Safari specific keyframes */
@-webkit-keyframes spinFloat {
  0% {
    -webkit-transform: translateY(0px) rotate(0deg) scale(1) translateZ(0);
    transform: translateY(0px) rotate(0deg) scale(1) translateZ(0);
    opacity: 0.6;
    -webkit-filter: hue-rotate(0deg) brightness(1);
    filter: hue-rotate(0deg) brightness(1);
  }
  25% {
    -webkit-transform: translateY(-30px) rotate(90deg) scale(1.2) translateZ(0);
    transform: translateY(-30px) rotate(90deg) scale(1.2) translateZ(0);
    opacity: 0.9;
    -webkit-filter: hue-rotate(90deg) brightness(1.2);
    filter: hue-rotate(90deg) brightness(1.2);
  }
  50% {
    -webkit-transform: translateY(-15px) rotate(180deg) scale(0.8) translateZ(0);
    transform: translateY(-15px) rotate(180deg) scale(0.8) translateZ(0);
    opacity: 0.7;
    -webkit-filter: hue-rotate(180deg) brightness(0.9);
    filter: hue-rotate(180deg) brightness(0.9);
  }
  75% {
    -webkit-transform: translateY(-45px) rotate(270deg) scale(1.4) translateZ(0);
    transform: translateY(-45px) rotate(270deg) scale(1.4) translateZ(0);
    opacity: 1;
    -webkit-filter: hue-rotate(270deg) brightness(1.3);
    filter: hue-rotate(270deg) brightness(1.3);
  }
  100% {
    -webkit-transform: translateY(0px) rotate(360deg) scale(1) translateZ(0);
    transform: translateY(0px) rotate(360deg) scale(1) translateZ(0);
    opacity: 0.6;
    -webkit-filter: hue-rotate(360deg) brightness(1);
    filter: hue-rotate(360deg) brightness(1);
  }
}

@keyframes spinFloat {
  0% {
    transform: translateY(0px) rotate(0deg) scale(1) translateZ(0);
    opacity: 0.6;
    filter: hue-rotate(0deg) brightness(1);
  }
  25% {
    transform: translateY(-30px) rotate(90deg) scale(1.2) translateZ(0);
    opacity: 0.9;
    filter: hue-rotate(90deg) brightness(1.2);
  }
  50% {
    transform: translateY(-15px) rotate(180deg) scale(0.8) translateZ(0);
    opacity: 0.7;
    filter: hue-rotate(180deg) brightness(0.9);
  }
  75% {
    transform: translateY(-45px) rotate(270deg) scale(1.4) translateZ(0);
    opacity: 1;
    filter: hue-rotate(270deg) brightness(1.3);
  }
  100% {
    transform: translateY(0px) rotate(360deg) scale(1) translateZ(0);
    opacity: 0.6;
    filter: hue-rotate(360deg) brightness(1);
  }
}

/* Scroll-triggered reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

.stagger-delay-1 {
  transition-delay: 0.1s;
}
.stagger-delay-2 {
  transition-delay: 0.2s;
}
.stagger-delay-3 {
  transition-delay: 0.3s;
}
.stagger-delay-4 {
  transition-delay: 0.4s;
}
.stagger-delay-5 {
  transition-delay: 0.5s;
}

/* Modern Navigation */
.navbar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 15, 26, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(166, 214, 34, 0.05);
}

.navbar-scrolled {
  background: rgba(8, 15, 26, 0.95);
  backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(166, 214, 34, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 2px 10px rgba(166, 214, 34, 0.1);
  padding: 0.75rem 0;
}

.navcolor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
}

.srlogoimage {
  height: 40px;
  width: auto;
  margin-right: 0.5rem;
  filter: drop-shadow(0 0 10px rgba(166, 214, 34, 0.3));
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(166, 214, 34, 0.1);
  border-radius: 8px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, rgb(166, 214, 34), rgb(120, 200, 80));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: rgb(166, 214, 34);
  transform: translateY(-2px);
}

.nav-link:hover::before,
.nav-link.active::before {
  opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Mobile menu */
.navbar-toggler {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar-toggler {
    display: block;
  }

  .navbar-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 2rem;
    border-top: 1px solid rgba(166, 214, 34, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

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

  .nav-link {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link:last-child {
    border-bottom: none;
  }
}

/* Modern Hero Section */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.homeContainer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  margin-bottom: 3rem;
}

.line1 {
  color: rgb(166, 214, 34);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.line2 {
  color: white;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, white 0%, rgb(200, 230, 255) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.line3 {
  color: rgb(166, 214, 34);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.line4 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* Modern CTA Button */
.modern-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(
    135deg,
    rgb(166, 214, 34) 0%,
    rgb(120, 200, 80) 100%
  );
  color: rgb(8, 15, 26);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(166, 214, 34, 0.3);
}

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

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

.modern-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(166, 214, 34, 0.4);
}

.modern-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgb(166, 214, 34);
  border-bottom: 2px solid rgb(166, 214, 34);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Modern Projects Section */
#projects {
  min-height: 100vh;
  padding: 6rem 2rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, white 0%, rgb(166, 214, 34) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.projectsPage {
  max-width: 1400px;
  margin: 0 auto;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* Ultra-modern project cards */
.projectCell {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(166, 214, 34, 0.1);
  border-radius: 24px;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.projectCell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    rgb(166, 214, 34) 0%,
    rgb(59, 130, 246) 50%,
    rgb(139, 92, 246) 100%
  );
  transform: scaleX(0);
  transition: transform 0.6s ease;
}

.projectCell:hover::before {
  transform: scaleX(1);
}

.projectCell:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(166, 214, 34, 0.3);
  box-shadow: 0 20px 60px rgba(166, 214, 34, 0.2),
    0 0 0 1px rgba(166, 214, 34, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.paddingCell {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-content {
  flex-grow: 1;
  margin-bottom: 2rem;
}

.project1 {
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  background: linear-gradient(135deg, white 0%, rgb(200, 230, 255) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project2 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project3 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgb(166, 214, 34);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  background: linear-gradient(
    135deg,
    rgba(166, 214, 34, 0.1) 0%,
    rgba(166, 214, 34, 0.05) 100%
  );
  border: 1px solid rgba(166, 214, 34, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.project-actions {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.neonBtn2 {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(
    135deg,
    rgb(166, 214, 34) 0%,
    rgb(120, 200, 80) 100%
  );
  color: rgb(8, 15, 26);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(166, 214, 34, 0.3);
}

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

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

.neonBtn2:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(166, 214, 34, 0.4);
}

.iconCell2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.iconCell2:hover {
  background: rgba(166, 214, 34, 0.1);
  border-color: rgba(166, 214, 34, 0.3);
  transform: scale(1.1) rotate(5deg);
}

.iconCell2 img {
  width: 20px;
  height: 20px;
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}

.iconCell2:hover img {
  filter: brightness(1.2) sepia(1) hue-rotate(48deg) saturate(1.5);
}

.borderEraser {
  margin-left: 0px;
  margin-right: 0px;
  border-left: none;
  border-right: none;
  display: block;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 10px;
  position: relative;
  border: 2px solid white;
  max-height: 400px;
  max-width: auto;
  min-height: 200px;
  min-width: auto;
  background-color: rgb(22, 35, 46);
}

.alignBottom {
  text-align: center;
}

.imageSection {
  display: flex;
  flex-direction: column; /* or row, depending on your content flow */
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 0;

  max-width: 1200px;
  margin: 0 auto; /* This centers the div horizontally */
}

.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "btn1 btn2"
    "infoBtn infoBtn";
  grid-column-gap: 2rem;
  height: 20px;
  padding: 4%;
  z-index: 9;
  position: absolute;
  top: 75%;
  left: 0%;
  right: 0%;
}

.infoBtn {
  grid-column: span 2;
  display: flex;
  justify-content: center;
}

.iconImage {
  max-height: 30%;
  max-width: 30%;
  border-radius: 50%;
  background-color: aliceblue;
}

.paddingContainer {
  border-color: blanchedalmond;
  border: 50%;
  padding-left: 3%;
  padding-right: 3%;

  padding-top: 3%;
}

.padtop {
  padding-top: 400px;
}

#divBox1 {
  display: none;
}

#divBox2 {
  display: none;
}

#divBox3 {
  display: none;
}

#divBox4 {
  display: none;
}

#divBoxes {
  text-align: center;
}

.projectText {
  height: 100%;
  width: 100%;
  text-align: center;
  max-width: 1200px;

  border: 1px solid rgb(202, 220, 230);
  padding: 1%;
  color: aliceblue;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

p {
  font-size: medium;
}

.cv {
  height: auto;
  width: 900px;
  display: block;
  margin-left: auto;
  margin-right: auto;

  padding: 1%;
}

#cvDownload {
  text-align: center;
  font-size: large;
}

.vid {
  max-width: 100%;
  max-height: auto;
}

#gameBorder1 {
  border: 3px solid aliceblue;
  padding: 50px;
}

#gameBorder2 {
  border: 3px solid aliceblue;
  padding: 50px;
}

.containerGame {
  display: grid;
  padding-left: 10%;
  padding-right: 10%;

  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "video firstCol"
    "video secondCol";
  grid-gap: 0.2rem;
  padding-bottom: 2%;
}

#firstCol {
  grid-area: firstCol;
  color: white;
}

#secondCol {
  grid-area: secondCol;
  color: white;
  width: 100%;
  max-height: 100%;
  max-width: 100%;
  border-top: 1px solid white;
}

#videoCus {
  grid-area: video;
}

@media only screen and (max-width: 770px) {
  .mobileHeightz {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

@media only screen and (max-width: 990px) {
  .projectText {
  }

  .containerGame {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas:
      "video"
      "firstCol"
      "secondCol"
      "thirdCol";
  }
}

.imageResizeGame {
  max-height: 100%;
  max-width: 100%;
}

.slideContainerDT {
  height: 562px;
  width: 1000px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.imageContainerDT {
  height: 562px;
  width: 6000px;
  position: relative;
  transition: left 2s;
  -webkit-transition: left 2s;
  -moz-transition: left 2s;
  -o-transition: left 2s;
}

.sliderImg {
  float: left;
  margin: 0px;
  padding: 0px;
}

.buttonContainer {
  top: -50px;
  position: relative;
}

.sliderButton {
  display: inline-block;
  height: 10px;
  width: 10px;
  border-radius: 5px;
  background-color: rgb(13, 132, 236);
}

#sliderImg1:target ~ .imageContainerDT {
  left: 0px;
}

#sliderImg2:target ~ .imageContainerDT {
  left: -1000px;
}

#sliderImg3:target ~ .imageContainerDT {
  left: -2000px;
}

#sliderImg4:target ~ .imageContainerDT {
  left: -3000px;
}

#sliderImg5:target ~ .imageContainerDT {
  left: -4000px;
}

#sliderImg6:target ~ .imageContainerDT {
  left: -5000px;
}

#downloadbtndt {
  margin-left: 46%;
}

/* CV Section */
.cv-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.cv-preview {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  transition: all 0.3s ease;
}

.cv-preview:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cv-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.cv-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 20, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: 20px;
}

.cv-preview:hover .cv-overlay {
  opacity: 1;
}

.cv-actions {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  align-items: center;
}

.primary-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.secondary-btn {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

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

.contact-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
}

.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1) rotate(10deg);
}

.contact-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-card a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.contact-card a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: all 0.3s ease;
}

.contact-card a:hover::after {
  width: 100%;
}

.contact-card a:hover {
  color: white;
  transform: translateY(-2px);
}

.cta-section {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-text {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cv-container {
    padding: 1rem;
  }

  .cv-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .cta-section {
    padding: 2rem;
  }

  .cta-text {
    font-size: 1.3rem;
  }
}

#footer {
  margin-top: auto;
  margin-bottom: 5px;
  padding-top: 15px;
}

#footerContainer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "footerCol1 footerCol2 footerCol3";
  grid-gap: 0.2rem;
  grid-template-columns: 30px 30px 30px;
  grid-template-rows: 30px;
  justify-content: center;
}

#gitIcon {
  max-height: 100%;
}

#gitIcon:hover {
  filter: invert(100%) sepia(9%) saturate(6069%) hue-rotate(48deg)
    brightness(131%) contrast(77%);
}

#mailIcon {
  max-height: 100%;
}

#mailIcon:hover {
  filter: invert(100%) sepia(9%) saturate(6069%) hue-rotate(48deg)
    brightness(131%) contrast(77%);
}

#linkedIcon {
  max-height: 100%;
}

#linkedIcon:hover {
  filter: invert(100%) sepia(9%) saturate(6069%) hue-rotate(48deg)
    brightness(131%) contrast(77%);
}

#footerCol1 {
  max-width: 100%;
  height: auto;
  background-size: cover;
}

#footerCol2 {
  max-width: 100%;
  height: auto;
  background-size: cover;
}

#footerCol3 {
  max-width: 100%;
  height: auto;
  background-size: cover;
}

#downloadbtndt {
  margin-top: 1%;
  margin-bottom: 1%;
}

.contactPage {
  display: flex;
  justify-content: center;
}

.contactFont {
  color: white;
  padding-bottom: 100px;
  text-align: center;
}

.contactDetails {
}

.big-text {
  text-align: center;
  font-size: 5rem;
  font-family: "Anybody", cursive;
  color: aliceblue;
}

.smallerBig {
  font-size: large;
  text-align: center;
  font-family: "Anybody", cursive;
  padding-top: 5%;
  padding-bottom: 5%;
}

.homeButton {
}

.neonBtn {
  position: relative;
  left: 50%;
  top: 20%;
  padding: 25px 30px;
  margin: 0px 0;
  color: rgb(166, 214, 34);
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.5s;
  letter-spacing: 4px;
  overflow: hidden;
  width: 240px;
  height: 75px;
  border: 1px solid rgb(166, 214, 34);
  margin-left: 0;
  margin-top: 50px;
  transform: translate(-50%, 0%);
}

.neonBtn:hover {
  background: rgb(166, 214, 34);
  color: #050801;
  box-shadow: 0 0 1px rgb(166, 214, 34), 0 0 5px rgb(166, 214, 34),
    0 0 20px rgb(166, 214, 34), 0 0 80px rgb(166, 214, 34);
  -webkit-box-reflect: below 1px linear-gradient(transparent, #0005);
}

.neonBtn:nth-child(1) {
  filter: hue-rotate(270deg);
}

.neonBtn span {
  position: absolute;
  display: block;
}

.homeContainer {
  display: grid;

  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "lines"
    "neonBtn";

  padding-bottom: 2%;
}

.aspresize img {
  max-height: 100px;
  max-width: auto;
}

@media only screen and (min-width: 1700px) {
  .smallerBig {
    padding-top: 6%;
    padding-bottom: 6%;
  }

  .projectText {
    margin-top: 5%;
  }

  .imageSection {
    margin-top: 3%;
  }

  .contactDetails {
    text-size-adjust: 130%;
  }

  .contactFont {
    font-size: 400%;
  }
}

@media only screen and (min-width: 1900px) {
  .projectText {
    margin-top: 5%;
  }

  .imageSection {
    margin-top: 5%;
  }
}

#myPDF {
  width: 85%;
  height: 80vh;
}

.projectCell {
  background: linear-gradient(135deg, rgb(27, 40, 51) 0%, rgb(20, 30, 40) 100%);
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(166, 214, 34, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
}

.projectCell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgb(166, 214, 34), rgb(120, 200, 80));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.projectCell:hover::before {
  opacity: 1;
}

.projectCell:hover .project1 {
  color: rgb(225, 187, 157);
}

.projectCell:hover {
  transform: translateY(-8px);
  border-color: rgba(166, 214, 34, 0.4);
  box-shadow: 0 12px 40px rgba(166, 214, 34, 0.15);
}

.paddingCell {
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-content {
  flex-grow: 1;
  margin-bottom: 24px;
}

.project-actions {
  margin-top: auto;
}

.project1 {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.project2 {
  color: rgb(190, 200, 210);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
}

.project3 {
  display: inline-block;
  font-size: 0.8rem;
  color: rgb(166, 214, 34);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  padding: 6px 12px;
  background: rgba(166, 214, 34, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(166, 214, 34, 0.3);
}
.grid-container {
  display: grid;
  grid-template-columns: 1fr; /* Default to 1 column for mobile */
  gap: 24px;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
}

.icon-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(166, 214, 34, 0.1);
}

.iconCell2 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(166, 214, 34, 0.08);
  border: 1px solid rgba(166, 214, 34, 0.2);
  min-width: 48px;
  height: 48px;
}

.iconCell2:hover {
  background: rgba(166, 214, 34, 0.15);
  transform: scale(1.05);
  border-color: rgba(166, 214, 34, 0.4);
}

.iconCell2 img {
  width: 20px;
  height: 20px;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.iconCell2:hover img {
  filter: brightness(1.2) sepia(1) hue-rotate(48deg) saturate(1.5);
}

.projectsPage {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 80px 20px 20px 20px;
}

.projectSection {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
}

.currentProjectImageBox {
  display: flex;
  justify-content: center;
}

.currentProjectImageBox img {
  height: 500px;
  width: auto;
  object-fit: contain;
}

.paddingCell {
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
@media (max-width: 700px) {
  .navcolor {
    max-width: 100%;
  }

  .navcolor a {
    max-width: 100%;
  }

  .toggleButton {
    position: absolute;
    left: 80%;
    top: 10%;
  }

  .projectCell {
    background-color: rgb(27, 40, 51);
    height: 428px;
    width: 330px;
  }
}
@media (max-width: 832px) {
  .grid-container {
    grid-template-columns: 1fr; /* Change to 1 column */
  }

  .projectSection {
    padding-left: 6%;
    padding-right: 6%;
    padding-top: 3%;
  }

  .contactDetails p {
    padding-left: 20px;
  }

  .homeContainer {
    padding-top: 20px;
    padding-left: 30px;
    padding-right: 30px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .line1 {
    color: rgb(169, 232, 176);
    font-size: 2.2vh;
  }

  .line2 {
    color: rgb(250, 244, 248);
    font-weight: bold;
    font-size: 5vh;
    padding-bottom: 10px;
  }

  .line3 {
    color: rgb(225, 187, 157);
    font-size: 4vh;
    font-weight: 500;
    padding-bottom: 10px;
  }

  .line4 {
    color: rgb(225, 187, 157);
    font-size: 2.2vh;
  }

  .neonBtn {
    position: relative;
    left: 50%;
    top: 0%;
    padding: 25px 30px;
    margin: 0px 0;
    color: rgb(166, 214, 34);
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.5s;
    letter-spacing: 4px;
    overflow: hidden;
    width: 240px;
    height: 75px;
    border: 1px solid rgb(166, 214, 34);
    margin-left: 0;
    margin-top: 30px;
    transform: translate(-50%, 0%);
  }
}

@media (min-width: 833px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .projectSection {
    padding: 40px;
  }
}

@media (min-width: 1256px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .projectSection {
    padding: 40px;
  }
}

.neonBtn2 {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  margin: 0;
  color: white;
  background: linear-gradient(135deg, rgb(166, 214, 34), rgb(140, 190, 30));
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 1px;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(166, 214, 34, 0.3);
}

.neonBtn2::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 ease;
}

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

.neonBtn2:hover {
  background: linear-gradient(135deg, rgb(180, 230, 50), rgb(160, 210, 40));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(166, 214, 34, 0.4);
  color: rgb(12, 25, 36);
}

.homeFooter {
  position: absolute;
  top: 92%;
  left: 50%;
}

/* Modern single-page portfolio additions */
.nav-link.active {
  color: rgb(166, 214, 34) !important;
  font-weight: bold;
}

.navbar-fixed {
  transition: background-color 0.3s ease;
}

.section {
  scroll-margin-top: 80px;
}

/* Smooth section transitions */
.projectsPage,
.cvPage,
.contactPage {
  /* Remove opacity: 0 and transform that was hiding content */
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.projectsPage.visible,
.cvPage.visible,
.contactPage.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced project grid animations */
.projectCell {
  /* Remove opacity: 0 and transform that was hiding content */
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.projectCell.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delay for project cells */
.projectCell:nth-child(1) {
  transition-delay: 0.1s;
}
.projectCell:nth-child(2) {
  transition-delay: 0.2s;
}
.projectCell:nth-child(3) {
  transition-delay: 0.3s;
}
.projectCell:nth-child(4) {
  transition-delay: 0.4s;
}
.projectCell:nth-child(5) {
  transition-delay: 0.5s;
}

/* Hover effects for nav links */
.nav-link {
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: rgb(166, 214, 34) !important;
}

/* Back to top button (optional) */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgb(166, 214, 34);
  color: rgb(12, 25, 36);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  background: rgb(200, 255, 50);
  transform: scale(1.1);
}

/* Project Modal Styles */
.project-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

.project-modal-content {
  background-color: rgb(12, 25, 36);
  margin: 2% auto;
  padding: 0;
  border: 1px solid rgb(166, 214, 34);
  border-radius: 10px;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.project-modal-header {
  background-color: rgb(27, 40, 51);
  padding: 20px;
  border-bottom: 1px solid rgb(166, 214, 34);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px 10px 0 0;
}

.project-modal-header h2 {
  color: rgb(166, 214, 34);
  margin: 0;
  font-size: 1.5rem;
}

.close-modal {
  background: none;
  border: none;
  color: rgb(166, 214, 34);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.close-modal:hover {
  background-color: rgba(166, 214, 34, 0.2);
}

.project-modal-body {
  padding: 20px;
  color: white;
}

.project-detail-content iframe {
  width: 100%;
  height: 60vh;
  border: 1px solid rgb(166, 214, 34);
  border-radius: 5px;
  margin-bottom: 20px;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.project-image {
  width: 100%;
  height: auto;
  border-radius: 5px;
  border: 1px solid rgb(166, 214, 34);
}

.project-description {
  background-color: rgb(27, 40, 51);
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.project-description p {
  color: rgb(215, 222, 227);
  line-height: 1.6;
}

.project-description strong {
  color: rgb(166, 214, 34);
}

.project-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

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

.game-video video {
  width: 100%;
  height: auto;
  border-radius: 5px;
  border: 1px solid rgb(166, 214, 34);
}

.game-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.game-description,
.game-features {
  background-color: rgb(27, 40, 51);
  padding: 15px;
  border-radius: 5px;
}

.game-description h3,
.game-features h3 {
  color: rgb(166, 214, 34);
  margin-bottom: 10px;
}

.game-features ul {
  color: rgb(215, 222, 227);
  padding-left: 20px;
}

.game-features li {
  margin-bottom: 5px;
}

code {
  background-color: rgb(12, 25, 36);
  color: rgb(166, 214, 34);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
}

/* Mobile responsiveness for modals */
@media (max-width: 768px) {
  .project-modal-content {
    width: 95%;
    margin: 5% auto;
  }

  .game-content {
    grid-template-columns: 1fr;
  }

  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .project-links {
    flex-direction: column;
    align-items: center;
  }
}
