* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

video::-webkit-media-controls {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

video::-webkit-media-controls-enclosure {
  background-color: rgba(0, 0, 0, 0.6) !important;
  /* semi-transparent background */
}

video {
  outline: none;
  border-radius: 10px;
}

:root {
  --primary-color: #00ff88;
  --secondary-color: #ff6b35;
  --accent-color: #7c3aed;
  --dark-bg: #0a0a0a;
  --darker-bg: #050505;
  --card-bg: rgba(20, 20, 30, 0.9);
  --text-light: #e2e8f0;
  --text-dim: #94a3b8;
  --glow: 0 0 20px rgba(0, 255, 136, 0.3);
}

body {
  font-family: "Rajdhani", sans-serif;
  background: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(45deg, #0a0a0a, #1a1a2e, #16213e);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

.bg-animation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(120, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 107, 53, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(0, 255, 136, 0.3) 0%,
      transparent 50%
    );
  animation: float 20s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(0px, 0px) rotate(0deg);
  }

  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.8);
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-family: "Orbitron", monospace;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-color);
  text-shadow: var(--glow);
}

.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-icon div {
  width: 25px;
  height: 2.4px;
  background: white;
  margin: 4px 0;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: #222;
  top: 40px;
  left: 0;
  list-style: none;
  padding: 10px 0;
  border-radius: 8px;
  min-width: 160px;
  max-width: 100%;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #fff;
  text-transform: uppercase;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background: #333;
}

.dropdown .dropdown-menu.active {
  display: block;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-family: "Orbitron", monospace;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--accent-color),
    var(--secondary-color)
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: 1px;
}

.hero-description {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  color: var(--dark-bg);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}
.homepage_button {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.cta-button::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;
}

.cta-button:hover::before {
  left: 100%;
}

/* Section Styles */
.section {
  padding: 40px 0;
  position: relative;
}

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

.section-title {
  font-family: "Orbitron", monospace;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 255, 136, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.google-playstore-button {
  /* margin-top: 20px; */
  display: flex;
  justify-content: center;
}
.google-playstore-button img {
  width: 150px;
  height: auto;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--accent-color),
    var(--secondary-color)
  );
}

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 136, 0.1);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-category {
  text-align: center;
}

.skill-category h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(0, 255, 136, 0.1);
  color: var(--text-light);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 255, 136, 0.3);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(0, 255, 136, 0.2);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.experience-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 3rem;
}

.experience-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary-color);
}

.experience-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 20px;
  width: 2px;
  height: calc(100% + 1rem);
  background: linear-gradient(180deg, var(--primary-color), transparent);
}

.job-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.company-info {
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.job-description {
  color: var(--text-dim);
  line-height: 1.6;
}

.job-description ul {
  margin-left: 1rem;
  margin-top: 1rem;
}

.job-description li {
  margin-bottom: 0.5rem;
  position: relative;
}

.job-description li::before {
  content: "▸";
  color: var(--primary-color);
  position: absolute;
  left: -1rem;
}

.games-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.game-category {
  margin-bottom: 3rem;
}

.games-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.game-card {
  background: var(--card-bg);
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 136, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--accent-color),
    var(--secondary-color)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 136, 0.1);
}

.game-card:hover::before {
  opacity: 1;
}

.game-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.game-image img {
  transition: transform 0.3s ease;
}

.game-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: auto;
  height: 100%;
}

.game-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
  border-radius: 10px;
  display: block;
}

.game-card:hover .game-image img {
  transform: scale(1.05);
}

.game-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100% - 200px);
}

.game-info .heading {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-decoration: none;
}

.game-info p {
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
}

.game-info .description {
  position: relative;
}

.more-text {
  display: none;
  transition: max-height 0.3s ease-out;
  position: absolute;
  top: 0;
  width: 280px;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  color: #050505;
  padding: 10px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.game-info:hover .more-text {
  display: block;
}

.game-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 20px;
}

.tech-tag {
  background: rgba(0, 255, 136, 0.1);
  color: var(--text-light);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(0, 255, 136, 0.3);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(0, 255, 136, 0.2);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.author-info h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.author-info p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.contact-item {
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 136, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

.footer {
  background: var(--darker-bg);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 767px) {
  /* .nav-links {
    display: none;
  } */

  .hero-title {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 1rem;
  }

  .experience-item {
    padding-left: 2rem;
  }

  .games-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .game-category h3 {
    font-size: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-section .cta-button {
    display: block;
    margin: 0.5rem auto;
    width: 200px;
  }

  .menu-icon {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: #111;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
  }

  .nav-links.active {
    max-height: max-content;
    opacity: 1;
    padding: 20px 0;
  }
  .play-button {
    opacity: 1;
  }
  /* .game-image img {
    opacity: 0.3;
    filter: blur(2px);
  } */
   .dropdown-menu {
    position: relative;
    top: 0;
    padding: 6px 0;
  }
  .dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .dropdown-toggle{
    width: max-content;
  }
  .dropdown-menu a{
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .game-card {
    margin-bottom: 1rem;
  }
  .hero-content {
    padding: 2rem 16px;
  }
  .cta-button {
    padding: 15px 24px;
  }
  .nav-container {
    padding: 0 16px;
  }

  .menu-icon {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: #111;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
  }

  .nav-links.active {
    max-height: max-content;
    opacity: 1;
    padding: 20px 0;
  }

  .game-card::before {
    opacity: 1;
  }

  .play-button {
    opacity: 1;
  }
  /* .game-image img {
    opacity: 0.3;
    filter: blur(2px);
  } */
  .dropdown-menu {
    position: relative;
    top: 0;
    padding: 6px 0;
  }
  .dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .dropdown-toggle{
    width: max-content;
  }
  .dropdown-menu a{
    font-size: 12px;
  }
}

.menu-icon div:nth-child(1) {
  top: 0;
}

.menu-icon div:nth-child(2) {
  top: 10px;
}

.menu-icon div:nth-child(3) {
  top: 20px;
}

/* ====== TOGGLE ANIMATION ====== */
.menu-icon.toggle div:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.menu-icon.toggle div:nth-child(2) {
  opacity: 0;
}

.menu-icon.toggle div:nth-child(3) {
  transform: rotate(-45deg);
  top: 25px;
  position: absolute;
}

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

::-webkit-scrollbar-track {
  background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--accent-color),
    var(--primary-color)
  );
}
