/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Keyframes for continuous scroll in projects section */
@keyframes scrollCarousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Adjust this value based on the number of duplicated items */
  }
}

/* Main Unified Desktop Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 30px;
  background: #121212;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Left side: Logo image + text inside rounded container */
.header-left {
  display: flex;
  align-items: center;
  background: #1E1E1E;
  padding: 8px 16px;
  border-radius: 40px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-link img {
  width: 36px;
  height: auto;
  margin-right: 10px;
}

.logo-link .nav-middle-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
}

/* Right side: nav links inside curved pill */
.header-right {
  display: flex;
  gap: 20px;
  background: #1E1E1E;
  padding: 10px 24px;
  border-radius: 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.header-right a {
  text-decoration: none;
  color: #f0f0f0;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.header-right a:hover {
  color: #007aff;
}

/* Mobile Header */
.mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  background: #121212;
  padding: 14px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Mobile logo wrapper with text */
.mobile-logo-link {
  text-decoration: none;
}

.mobile-logo {
  background: #1E1E1E;
  padding: 6px 12px;
  border-radius: 40px;
  display: flex;
  align-items: center;
}
.mobile-logo img {
  width: 33px;
  height: 12px;
  margin-right: 5px;
}


.mobile-text-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #f0f0f0;
}

/* Mobile menu icon */
.mobile-menu-icon {
  font-size: 26px;
  cursor: pointer;
  color: #f0f0f0;
  padding: 6px 12px;
  background: #1E1E1E;
  border-radius: 40px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #1E1E1E;
  border-radius: 0 0 20px 20px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.mobile-menu a {
  text-decoration: none;
  color: #f0f0f0;
  font-size: 16px;
  margin: 12px 0;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #007aff;
}

/* Responsive display for mobile header */
@media (max-width: 768px) {
  .main-header {
    display: none;
  }
  .mobile-header {
    display: flex;
  }
}

/* Hero Section Animations */
.hero {
  background: #000;
  color: #FFF;
  padding: 40px 20px;
  text-align: center;
  animation: fadeIn 1.5s ease-in-out;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 14px;
  animation: slideInFromLeft 1s ease-out;
}

.hero p {
  font-size: 18px;
  color: #CCC;
  margin-bottom: 24px;
  animation: slideInFromRight 1s ease-out;
}

.hero p span {
  color: #007AFF;
  font-weight: 600;
}
.hero a{
  display: inline-block;
  padding: 12px 28px;
  background: #007AFF;
  color: #FFF;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 30px;
  animation: slideInFromBottom 1s ease-out
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: #007AFF;
  color: #FFF;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 30px;
  animation: slideInFromBottom 1s ease-out
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  animation: fadeIn 2s ease-in-out;
}

/* Game Banner Section */
.game-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  padding: 20px 50px;
  color: #f0f0f0;
  margin-top: 20px;
}

.banner-left {
  flex: 1 1 770px;
  animation: fadeIn 1.5s ease-in-out;
}

.banner-left h2 {
  font-size: 32px;
  margin-bottom: 16px;
  color: #fff;
}

.banner-left p {
  font-size: 16px;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 20px;
}

.know-more-btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: #007AFF;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.know-more-btn:hover {
  background-color: #005ecb;
}

.banner-right {
  flex: 1 1 600px;
  text-align: right;
  animation: fadeIn 2s ease-in-out;
}

.banner-right video {
  max-width: 70%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .game-banner {
    flex-direction: row;
    padding: 20px 20px;
  }

  .banner-left, .banner-right {
    flex: 1 1 100%;
  }

  .banner-left h2 {
    font-size: 15px;
  }

  .banner-left p {
    display: none;
  }

  .banner-right video {
    max-width: 90%;
    margin-top: 20px;
  }

  .know-more-btn {
    display: inline-block;
    padding: 5px 8px;
    background-color: #007AFF;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 400;
    transition: background 0.3s ease;
  }
  
  .know-more-btn:hover {
    background-color: #005ecb;
  }
}



/* Our Projects Section */
.projects-section {
  padding: 30px 0;
  background: #121212;
  text-align: center;
  margin: 30px 0;
  border-radius: 0;
  animation: fadeIn 1.5s ease-in-out;
}

.projects-section h2 {
  font-size: 34px;
  margin-bottom: 24px;
  color: #FFFFFF;
  animation: slideInFromLeft 1s ease-out;
}

/* Carousel wrapper to contain the overflow */
.projects-carousel-wrapper {
  overflow: hidden;
  width: 100%;
}

/* Continuous Scrolling Carousel for All Screens */
.projects-carousel {
  display: flex;
  gap: 20px;
  animation: scrollCarousel 40s linear infinite;
  width: max-content;
}

/* Project Card Styles */
.project-card {
  flex: 0 0 260px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
}

.project-card img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  background-color: #F5F5F5;
  padding: 4px;
}

.project-card h3 {
  font-size: 17px;
  padding: 14px;
  margin: 0;
  color: #333;
}

/* Hide scrollbar for all browsers */
.projects-carousel::-webkit-scrollbar {
  display: none;
}

.projects-carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Mobile View: Keep auto-scroll, adjust speed */
@media (max-width: 768px) {
  .projects-carousel {
    animation: scrollCarousel 20s linear infinite;
    padding: 0 10px;
  }

  .project-card {
    flex: 0 0 220px;
  }
}


.comparison-table-section {
  background-color: #121212;
  padding: 40px 20px;
  margin: 20px auto;
  max-width: 1000px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.comparison-table-container {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  color: #f0f0f0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
}

.comparison-table thead th {
  background-color: #1E1E1E;
  padding: 16px 24px;
  font-weight: 700;
  text-align: left;
  color: #007AFF;
  border-radius: 12px 12px 0 0;
  border-left: 2px solid #2a2a2a;
  border-right: 2px solid #2a2a2a;
}

.comparison-table tbody tr {
  background-color: #1E1E1E;
  transition: background-color 0.3s ease;
}

.comparison-table tbody tr:hover {
  background-color: #2a2a2a;
}

.comparison-table tbody td {
  padding: 16px 24px;
  vertical-align: middle;
  border-left: 2px solid #2a2a2a;
  border-right: 2px solid #2a2a2a;
}

.comparison-table tbody tr:first-child td:first-child {
  border-top-left-radius: 12px;
}

.comparison-table tbody tr:first-child td:last-child {
  border-top-right-radius: 12px;
}

.comparison-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.comparison-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* Emoji colors */
.comparison-table td {
  font-weight: 500;
}

.comparison-table td:has(> svg),
.comparison-table td:contains('✔️') {
  color: #28a745; /* green checkmark */
}

.comparison-table td:contains('⚠️') {
  color: #ffc107; /* warning yellow */
}

.comparison-table td:contains('⏳') {
  color: #f0ad4e; /* hourglass orange */
}

.comparison-table td:contains('💰') {
  color: #28a745; /* money bag green */
}

/* Responsive */
@media (max-width: 768px) {
  .comparison-table-section {
    padding: 20px 10px;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody tr {
    display: block;
    margin-bottom: 16px;
    background-color: #1E1E1E;
    border-radius: 12px;
  }

  .comparison-table tbody td {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #2a2a2a;
  }

  .comparison-table tbody td:last-child {
    border-bottom: none;
  }

  .comparison-table tbody td:first-child {
    font-weight: 700;
    color: #007AFF;
  }
}


/* Services Section Animations */
.services-section {
  padding: 40px 0;
  background: #121212;
  text-align: center;
  margin: 20px 0;
  border-radius: 0;
  animation: fadeIn 1.5s ease-in-out;
}

.services-section h2 {
  color: #FFF;
  font-size: 34px;
  margin-bottom: 24px;
  animation: slideInFromLeft 1s ease-out;
}

.services-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 16px;
  padding: 0 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  animation: slideInFromRight 1s ease-out;
}

.service-card {
  background: #FFF;
  border-radius: 14px;
  padding: 24px 16px;
  min-width: 260px;
  flex: 0 0 auto;
  text-align: center;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: scale(1.05);
}

.service-card img {
  width: 70px;
  height: 70px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .services-section {
    padding: 30px 0;
    margin: 20px 0;
  }

  .services-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .services-grid {
    padding: 0 12px;
    gap: 12px;
  }

  .service-card {
    min-width: 220px;
    padding: 16px 12px;
  }

  .service-card img {
    width: 55px;
    height: 55px;
    margin-bottom: 12px;
  }
}

/* Optional: hide scrollbar */
.services-grid::-webkit-scrollbar {
  display: none;
}

/* About Section Animations */
.about-section {
  padding: 50px 20px;
  background: #FAFAFA;
  text-align: center;
  margin: 20px 0;
  border-radius: 14px;
  animation: fadeIn 1.5s ease-in-out;
}

.about-section h2 {
  color: #111;
  font-size: 32px;
  margin-bottom: 16px;
  animation: slideInFromLeft 1s ease-out;
}

.about-description {
  max-width: 900px;
  margin: 0 auto 30px;
  font-size: 17px;
  color: #333;
  line-height: 1.6;
  animation: slideInFromRight 1s ease-out;
}

/* Default: show desktop text, hide mobile text */
.desktop-about {
  display: block;
}

.mobile-about {
  display: none;
}

.team-title {
  font-size: 26px;
  margin-bottom: 18px;
  color: #111;
  animation: slideInFromLeft 1s ease-out;
}

.team-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: slideInFromRight 1s ease-out;
}

.team-member {
  background: #222;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 15px;
  color: #FFF;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: background 0.3s ease;
}

.team-member:hover {
  background: #007AFF;
}

.why-dwindle-section {
  padding: 50px 20px;
  background: #000000;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.why-dwindle-section h2 {
  font-size: 2.0rem;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.why-dwindle-section .intro {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 50px;
  color: #cecece;
}

.dwindle-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #eeeeee;
}

.feature p {
  font-size: 1rem;
  color: #e7e7e7;
}

blockquote {
  font-style: italic;
  color: #f1f1f1;
  margin: 60px auto 20px;
  max-width: 800px;
}

.cta {
  font-size: 1.1rem;
  color: #e7e7e7;
  margin-top: 30px;
}


/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .about-section {
    padding: 24px 12px;
    margin: 14px 0;
  }

  .about-section h2 {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .about-description {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 20px;
    max-width: 90%;
  }

  .team-title {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .team-grid {
    gap: 10px;
  }

  .team-member {
    font-size: 13px;
    padding: 8px 14px;
  }

  /* Switch visibility for text blocks */
  .desktop-about {
    display: none;
  }

  .mobile-about {
    display: block;
  }
}

/* Footer Animations */
.footer {
  background: #1E1E1E;
  padding: 40px 20px 20px;
  color: #f0f0f0;
  border-top: 1px solid #2a2a2a;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  color: #ccc;
  font-size: 14px;
}

.social-icons a img {
  width: 20px;
  background-color: white;
  height: 20px;
  margin-right: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #2a2a2a;
  margin-top: 30px;
}

/* Responsive Mobile Adjustments */
@media (max-width: 768px) {
  .mobile-header { display: flex; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .projects-section, .services-section, .about-section {
    margin: 16px 8px;
    padding: 20px 10px;
  }
  .projects-carousel { gap: 12px; }
  .service-card { width: 90%; }
  .team-grid { gap: 12px; }
  .team-member {
    font-size: 16px;
    padding: 12px 20px;
  }
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-brand h2 { font-size: 22px; }
  .social-icons a img {
    width: 18px;
    height: 18px;
  }
  .comparison-table-section{
    display: none;
  }
}

