/* Reset and Base Styles */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}


body {
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   background: linear-gradient(135deg, #0a0a23 0%, #1a1a3e 50%, #2d1b69 100%);
   color: #ffffff;
   overflow-x: hidden;
   min-height: 100vh;
}


/* Top Bar Styles */
.top-bar {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   background: rgba(30, 30, 63, 0.8);
   backdrop-filter: blur(10px);
   padding: 15px 20px;
   display: flex;
   align-items: center;
   justify-content: space-between;
   z-index: 1001; /* Ensure it's above the sidebar */
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


/* Sidebar Toggle Button */
.sidebar-toggle {
   background: none;
   border: none;
   color: #fff;
   cursor: pointer;
   font-size: 1.5em;
   padding: 5px;
   transition: color 0.3s ease;
}


.sidebar-toggle:hover {
   color: #8a2be2;
}


.sidebar-toggle.selected {
   background: #8a2be2;
   color: #fff;
}


/* Search Styles */
.search-container {
   display: flex;
   align-items: center;
   position: relative;
}


.search-container input[type="text"] {
   padding: 10px 36px 10px 16px;
   border: 2px solid #7faafe;
   border-radius: 8px;
   font-size: 1.08em;
   color: #333;
   width: 270px;
   background: rgba(255, 255, 255, 0.97);
   transition: width 0.3s, border-color 0.3s, box-shadow 0.3s;
   box-shadow: 0 2px 8px rgba(138, 43, 226, 0.08);
   caret-color: #7faafe; /* Purple text cursor */
}


.search-container input[type="text"]:focus {
   outline: none;
   width: 320px;
   border-color: #7faafe;
   box-shadow: 0 4px 16px rgba(138, 43, 226, 0.15);
}


.search-container .search-btn {
   position: absolute;
   right: 5px;
   top: 50%;
   transform: translateY(-50%);
   background: none;
   border: none;
   color: #333;
   cursor: pointer;
   font-size: 1.2em;
   padding: 5px;
   transition: color 0.3s ease;
}


.search-container .search-btn:hover {
   color: #7faafe;
}


.search-results {
   position: absolute;
   top: 100%;
   left: 0;
   width: 100%;
   background: rgba(30, 30, 63, 0.9);
   border-radius: 5px;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
   color: #fff;
   font-size: 0.9em;
   padding: 10px;
   margin-top: 5px;
   z-index: 10;
   max-height: 200px;
   overflow-y: auto;
   display: none; /* Initially hidden */
}


.search-results p {
   padding: 5px 0;
   cursor: pointer;
   transition: background-color 0.2s ease;
}


.search-results p:hover {
   background-color: rgba(138, 43, 226, 0.2);
}


.search-results p.no-results {
   color: #7faafe;
   font-weight: 600;
   text-align: center;
   padding: 12px 0;
   background: rgba(255,255,255,0.07);
   border-radius: 4px;
}


.search-results.active {
   display: block; /* Show when active */
}


/* Sidebar Styles */
.sidebar {
   position: fixed;
   top: 0;
   left: 0;
   width: 280px;
   height: 100vh;
   background: linear-gradient(180deg, #1e1e3f 0%, #2a2a5a 100%);
   backdrop-filter: blur(10px);
   border-right: 1px solid rgba(138, 43, 226, 0.3);
   transform: translateX(0);
   transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   z-index: 1000;
   box-shadow: 0 0 30px rgba(138, 43, 226, 0.2);
   padding-top: 60px; /* Account for the top bar */
}


.sidebar.collapsed {
   /* Move sidebar further off-screen when collapsed */
   transform: translateX(-320px);
}


.sidebar-header {
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 20px;
   border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}


.logo {
   display: flex;
   align-items: center;
   gap: 12px;
}


.logo-icon {
   width: 65px;
   height: 65px;
   /* Remove background and border-radius */
   background: none;
   border-radius: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 24px;
   font-weight: bold;
   animation: logoFloat 3s ease-in-out infinite;
}


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


.logo h2 {
   color: #ffffff;
   font-size: 18px;
   font-weight: 600;
}


.nav-links {
   list-style: none;
   padding: 20px 0;
}


.nav-links li {
   margin: 8px 0;
}


.nav-links a {
   display: flex;
   align-items: center;
   gap: 15px;
   padding: 12px 20px;
   color: #b8b8d4;
   text-decoration: none;
   transition: all 0.3s ease;
   border-left: 3px solid transparent;
   font-size: 14px;
}


.nav-links a:hover {
   background-color: rgba(138, 43, 226, 0.1);
   color: #ffffff;
   border-left-color: #8a2be2;
   transform: translateX(5px);
}


.nav-links a.active {
   background-color: rgba(138, 43, 226, 0.2);
   color: #ffffff;
   border-left-color: #8a2be2;
}


.nav-links .icon {
   font-size: 18px;
   width: 20px;
   text-align: center;
}


/* Main Content */
.main-content {
   margin-left: 280px;
   transition: margin-left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   min-height: 100vh;
   padding-top: 70px; /* Account for the top bar */
}


.main-content.expanded {
   margin-left: 60px;
}


/* Hero Section */
.hero {
   padding: 60px 40px;
   position: relative;
   overflow: hidden;
}


.hero::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: radial-gradient(circle at 70% 30%, rgba(138, 43, 226, 0.15) 0%, transparent 50%);
   pointer-events: none;
}


.hero-content {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 60px;
   align-items: center;
   max-width: 1200px;
   margin: 0 auto;
   position: relative;
   z-index: 2;
}


.hero-title {
   font-size: 4rem;
   font-weight: 800;
   margin-bottom: 20px;
   line-height: 1.2;
   animation: slideInUp 1s ease-out;
}


.gradient-text {
   background: linear-gradient(45deg, #8a2be2, #4b0082, #9932cc);
   background-size: 200% 200%;
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   animation: gradientShift 3s ease-in-out infinite;
}


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


.hero-subtitle {
   font-size: 1.3rem;
   color: #b8b8d4;
   margin-bottom: 30px;
   animation: slideInUp 1s ease-out 0.2s both;
}


.cta-button {
   background: linear-gradient(45deg, #8a2be2, #4b0082);
   border: none;
   padding: 15px 35px;
   border-radius: 30px;
   color: white;
   font-size: 16px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
   animation: slideInUp 1s ease-out 0.4s both;
   box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
}


.cta-button:hover {
   transform: translateY(-3px);
   box-shadow: 0 8px 30px rgba(138, 43, 226, 0.5);
   background: linear-gradient(45deg, #9932cc, #8a2be2);
}


.hero-visual {
   position: relative;
   height: 400px;
   display: flex;
   align-items: center;
   justify-content: center;
}


.floating-pixels {
   position: relative;
   width: 300px;
   height: 300px;
}


.pixel {
   position: absolute;
   width: 20px;
   height: 20px;
   background: linear-gradient(45deg, #8a2be2, #4b0082);
   border-radius: 4px;
   animation: floatPixel 4s ease-in-out infinite;
}


.pixel:nth-child(1) {
   top: 20%;
   left: 10%;
   animation-delay: 0s;
}


.pixel:nth-child(2) {
   top: 60%;
   left: 80%;
   animation-delay: 1s;
}


.pixel:nth-child(3) {
   top: 80%;
   left: 20%;
   animation-delay: 2s;
}


.pixel:nth-child(4) {
   top: 30%;
   left: 70%;
   animation-delay: 1.5s;
}


.pixel:nth-child(5) {
   top: 50%;
   left: 40%;
   animation-delay: 0.5s;
}


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


@keyframes slideInUp {
   from {
       opacity: 0;
       transform: translateY(30px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}


/* Games Sections */
.featured-games, .popular-games {
   padding: 60px 40px;
   max-width: 1200px;
   margin: 0 auto;
}


.section-title {
   font-size: 2.5rem;
   font-weight: 700;
   margin-bottom: 40px;
   text-align: center;
   background: linear-gradient(45deg, #ffffff, #b8b8d4);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}


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


.game-card {
   background: rgba(30, 30, 63, 0.6);
   border-radius: 15px;
   overflow: hidden;
   transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   border: 1px solid rgba(138, 43, 226, 0.2);
   cursor: pointer;
   backdrop-filter: blur(10px);
}


.game-card:hover {
   transform: translateY(-10px) scale(1.02);
   box-shadow: 0 20px 40px rgba(138, 43, 226, 0.3);
   border-color: rgba(138, 43, 226, 0.6);
}


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


.placeholder-image {
   width: 100%;
   height: 100%;
   position: relative;
   transition: transform 0.4s ease;
}


.game-card:hover .placeholder-image {
   transform: scale(1.1);
}


.space-theme {
   background: radial-gradient(circle, #1a1a3e, #0a0a23);
   background-image:
       radial-gradient(2px 2px at 20px 30px, #fff, transparent),
       radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
       radial-gradient(1px 1px at 90px 40px, #fff, transparent);
}


.cyber-theme {
   background: linear-gradient(45deg, #00ffff, #ff00ff);
   background-image:
       repeating-linear-gradient(90deg, transparent, transparent 98px, rgba(255,255,255,0.1) 100px);
}


.fantasy-theme {
   background: linear-gradient(135deg, #4b0082, #8a2be2, #9932cc);
}


.pixel-theme {
   background: #2a2a5a;
   background-image:
       linear-gradient(45deg, #8a2be2 25%, transparent 25%),
       linear-gradient(-45deg, #8a2be2 25%, transparent 25%);
   background-size: 20px 20px;
}


.neon-theme {
   background: linear-gradient(45deg, #ff1493, #00ffff);
   box-shadow: inset 0 0 20px rgba(255, 20, 147, 0.3);
}


.puzzle-theme {
   background: linear-gradient(135deg, #4b0082, #1e1e3f);
   background-image: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.3) 0%, transparent 50%);
}


.dragon-theme {
   background: linear-gradient(45deg, #8b0000, #ff4500);
}


.colony-theme {
   background: radial-gradient(circle, #1a1a3e, #0a0a23);
   background-image:
       radial-gradient(1px 1px at 15px 15px, #00ffff, transparent),
       radial-gradient(1px 1px at 35px 45px, #8a2be2, transparent);
}


.cosmic-theme {
   background: radial-gradient(circle, #2d1b69, #0a0a23);
   background-image:
       radial-gradient(2px 2px at 30px 40px, #fff, transparent),
       radial-gradient(1px 1px at 80px 20px, #8a2be2, transparent),
       radial-gradient(1px 1px at 120px 80px, #00ffff, transparent);
}


.game-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;
}


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


.play-btn {
   background: linear-gradient(45deg, #8a2be2, #4b0082);
   border: none;
   padding: 12px 25px;
   border-radius: 25px;
   color: white;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
   transform: translateY(10px);
}


.game-card:hover .play-btn {
   transform: translateY(0);
}


.play-btn:hover {
   background: linear-gradient(45deg, #9932cc, #8a2be2);
   transform: scale(1.05);
}


.game-info {
   padding: 20px;
}


.game-info h3 {
   font-size: 1.3rem;
   margin-bottom: 8px;
   color: #ffffff;
}


.game-info p {
   color: #b8b8d4;
   font-size: 0.9rem;
}


/* Game Spotlight Section */
.game-spotlight {
   padding: 100px 40px;
   background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(75, 0, 130, 0.1) 100%);
   margin: 60px 0;
}

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

.spotlight-content {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 80px;
   align-items: center;
}

.spotlight-badge {
   display: inline-block;
   padding: 8px 16px;
   background: linear-gradient(45deg, #8a2be2, #4b0082);
   border-radius: 20px;
   font-size: 0.8rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 1px;
   margin-bottom: 20px;
}

.spotlight-text h2 {
   font-size: 3.5rem;
   font-weight: 800;
   margin-bottom: 24px;
   background: linear-gradient(45deg, #ffffff, #b8b8d4);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   line-height: 1.1;
}

.spotlight-text p {
   font-size: 1.2rem;
   color: #b8b8d4;
   line-height: 1.6;
   margin-bottom: 35px;
}

.spotlight-features {
   display: flex;
   gap: 35px;
   margin-bottom: 45px;
   flex-wrap: wrap;
}

.feature {
   display: flex;
   align-items: center;
   gap: 10px;
   font-size: 1rem;
   color: #ffffff;
}

.feature-icon {
   font-size: 1.3rem;
}

.spotlight-actions {
   display: flex;
   gap: 25px;
   flex-wrap: wrap;
}

/* Visual Container Styles */
.spotlight-visual {
   position: relative;
   width: 100%;
}

.spotlight-image {
   position: relative;
   width: 100%;
   aspect-ratio: 16/9;
   border-radius: 16px;
   overflow: hidden;
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
   background: linear-gradient(45deg, #1a1a2e, #16213e);
}

.image-container {
   width: 100%;
   height: 100%;
   position: relative;
}

.game-image {
   width: 100%;
   height: 100%;
   object-fit: cover;
   border-radius: 16px;
   transition: transform 0.3s ease;
}

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

.spotlight-image::after {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: linear-gradient(45deg, rgba(138, 43, 226, 0.1), rgba(75, 0, 130, 0.1));
   pointer-events: none;
   border-radius: 16px;
}

/* Tablet Styles */
@media (max-width: 1024px) {
   .game-spotlight {
      padding: 80px 30px;
   }
   
   .spotlight-container {
      max-width: 900px;
   }
   
   .spotlight-content {
      gap: 60px;
   }
   
   .spotlight-text h2 {
      font-size: 3rem;
   }
   
   .spotlight-text p {
      font-size: 1.1rem;
   }
   
   .spotlight-features {
      gap: 25px;
   }
}

/* Mobile Styles */
@media (max-width: 768px) {
   .game-spotlight {
      padding: 60px 20px;
      margin: 40px 0;
   }
   
   .spotlight-content {
      grid-template-columns: 1fr;
      gap: 40px;
      text-align: center;
   }
   
   .spotlight-text h2 {
      font-size: 2.5rem;
      margin-bottom: 20px;
   }
   
   .spotlight-text p {
      font-size: 1rem;
      margin-bottom: 25px;
   }
   
   .spotlight-features {
      justify-content: center;
      gap: 20px;
      margin-bottom: 30px;
   }
   
   .feature {
      font-size: 0.9rem;
   }
   
   .spotlight-actions {
      justify-content: center;
      gap: 15px;
   }
   
   .spotlight-image {
      border-radius: 12px;
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
   }
   
   .game-image {
      border-radius: 12px;
   }
   
   .spotlight-image::after {
      border-radius: 12px;
   }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
   .game-spotlight {
      padding: 40px 15px;
   }
   
   .spotlight-text h2 {
      font-size: 2rem;
   }
   
   .spotlight-features {
      flex-direction: column;
      align-items: center;
      gap: 15px;
   }
   
   .spotlight-actions {
      flex-direction: column;
      width: 100%;
   }
   
   .spotlight-image {
      border-radius: 8px;
   }
   
   .game-image {
      border-radius: 8px;
   }
   
   .spotlight-image::after {
      border-radius: 8px;
   }
}


.btn-primary, .btn-secondary {
   padding: 15px 30px;
   border: none;
   border-radius: 8px;
   font-size: 1rem;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
   text-decoration: none;
   display: inline-block;
   text-align: center;
}


.btn-primary {
   background: linear-gradient(45deg, #8a2be2, #4b0082);
   color: white;
}


.btn-primary:hover {
   transform: translateY(-2px);
   box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
}


.btn-secondary {
   background: transparent;
   color: #ffffff;
   border: 2px solid #8a2be2;
}


.btn-secondary:hover {
   background: rgba(138, 43, 226, 0.2);
   transform: translateY(-2px);
}


/* Image Container with Diagonal Effect */
.spotlight-image {
   position: relative;
   height: 400px;
   border-radius: 20px;
   overflow: hidden;
}


.image-container {
   position: relative;
   width: 100%;
   height: 100%;
   overflow: hidden;
   border-radius: 20px;
}


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


.diagonal-overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: linear-gradient(135deg,
       transparent 0%,
       transparent 45%,
       rgba(138, 43, 226, 0.8) 50%,
       rgba(75, 0, 130, 0.9) 55%,
       rgba(75, 0, 130, 0.9) 100%);
   pointer-events: none;
}


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


.cosmic-particles {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   pointer-events: none;
}


.particle {
   position: absolute;
   width: 4px;
   height: 4px;
   background: rgba(255, 255, 255, 0.8);
   border-radius: 50%;
   animation: float 3s ease-in-out infinite;
}


.particle:nth-child(1) {
   top: 20%;
   left: 20%;
   animation-delay: 0s;
}


.particle:nth-child(2) {
   top: 60%;
   left: 80%;
   animation-delay: 0.5s;
}


.particle:nth-child(3) {
   top: 80%;
   left: 30%;
   animation-delay: 1s;
}


.particle:nth-child(4) {
   top: 30%;
   left: 70%;
   animation-delay: 1.5s;
}


.particle:nth-child(5) {
   top: 70%;
   left: 10%;
   animation-delay: 2s;
}


.particle:nth-child(6) {
   top: 10%;
   left: 90%;
   animation-delay: 2.5s;
}


@keyframes float {
   0%, 100% {
       transform: translateY(0px);
       opacity: 0.8;
   }
   50% {
       transform: translateY(-10px);
       opacity: 1;
   }
}


/* Modal Styles */
.modal-overlay {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.9);
   z-index: 1000;
   backdrop-filter: blur(5px);
}


.modal-overlay.active {
   display: flex;
   align-items: center;
   justify-content: center;
   animation: fadeIn 0.3s ease;
}


.modal-content {
   background: linear-gradient(135deg, #1a1a2e, #16213e);
   border-radius: 20px;
   width: 90%;
   max-width: 1000px;
   max-height: 90%;
   overflow: hidden;
   box-shadow: 0 20px 60px rgba(138, 43, 226, 0.3);
   border: 1px solid rgba(138, 43, 226, 0.2);
}


.modal-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 20px 30px;
   border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}


.modal-header h3 {
   color: #ffffff;
   font-size: 1.5rem;
   font-weight: 600;
   margin: 0;
}


.modal-close {
   background: none;
   border: none;
   color: #ffffff;
   font-size: 2rem;
   cursor: pointer;
   padding: 0;
   width: 40px;
   height: 40px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.3s ease;
}


.modal-close:hover {
   background: rgba(255, 255, 255, 0.1);
   transform: rotate(90deg);
}


.modal-body {
   padding: 0;
}


.video-container {
   position: relative;
   width: 100%;
   height: 0;
   padding-bottom: 56.25%; /* 16:9 aspect ratio */
}


.video-container video {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   display: block;
   object-fit: contain;
}


@keyframes fadeIn {
   from {
       opacity: 0;
       transform: scale(0.9);
   }
   to {
       opacity: 1;
       transform: scale(1);
   }
}


/* Responsive Design */
@media (max-width: 768px) {
   .spotlight-content {
       grid-template-columns: 1fr;
       gap: 40px;
       text-align: center;
   }
  
   .spotlight-text h2 {
       font-size: 2.5rem;
   }
  
   .spotlight-actions {
       justify-content: center;
   }
  
   .modal-content {
       width: 95%;
       margin: 20px;
   }
  
   .modal-header {
       padding: 15px 20px;
   }
  
   .modal-header h3 {
       font-size: 1.2rem;
   }
}


.btn-primary {
   background: linear-gradient(45deg, #8a2be2, #4b0082);
   border: none;
   padding: 15px 30px;
   border-radius: 30px;
   color: white;
   font-size: 16px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
   box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
}


.btn-primary:hover {
   transform: translateY(-2px);
   box-shadow: 0 8px 30px rgba(138, 43, 226, 0.5);
}


.btn-secondary {
   background: transparent;
   border: 2px solid #8a2be2;
   padding: 13px 28px;
   border-radius: 30px;
   color: #8a2be2;
   font-size: 16px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
}


.btn-secondary:hover {
   background: #8a2be2;
   color: white;
   transform: translateY(-2px);
   box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
}


/* Responsive Design */
@media (max-width: 1200px) {
   .hero-content {
       grid-template-columns: 1fr;
       text-align: center;
   }


   .hero-visual {
       order: -1;
       margin-bottom: 40px;
   }


   .spotlight-content {
       grid-template-columns: 1fr;
       text-align: center;
   }


   .spotlight-visual {
       order: -1;
       margin-bottom: 40px;
   }


   .spotlight-features {
       justify-content: center;
   }
}


@media (max-width: 900px) {
   .sidebar {
       width: 220px;
       transform: translateX(-220px);
       left: 0;
       top: 0;
       height: 100vh;
       z-index: 2000;
       box-shadow: 4px 0 16px rgba(0,0,0,0.18);
       transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
   }
   .sidebar.collapsed {
       transform: translateX(-220px);
   }
   .sidebar:not(.collapsed) {
       transform: translateX(0);
   }
   .main-content {
       margin-left: 0 !important;
       padding-top: 70px;
   }
   .main-content.expanded {
       margin-left: 0 !important;
   }
   .top-bar {
       left: 0;
       width: 100vw;
       min-width: 0;
       padding: 12px 10px;
       box-sizing: border-box;
   }
}


@media (max-width: 768px) {
   .sidebar {
       width: 220px;
       /* ...existing code... */
       transform: translateX(-220px);
   }


   .sidebar.collapsed {
       /* Move sidebar further off-screen for mobile */
       transform: translateX(-320px);
   }


   .main-content {
       margin-left: 60px;
   }


   .main-content.expanded {
       margin-left: 220px;
   }


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


   .hero-subtitle {
       font-size: 1.1rem;
   }


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


   .spotlight-text h2 {
       font-size: 2.5rem;
   }


   .search-container input[type="text"] {
       width: 200px;
       padding: 9px 32px 9px 12px;
   }
   .search-container input[type="text"]:focus {
       width: 240px;
   }
}


/* Trending Games Section - Smaller Cards */
.popular-games .games-grid {
   grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
   gap: 20px;
}


.popular-games .game-card {
   background: rgba(20, 20, 45, 0.8);
   border-radius: 12px;
   transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   border: 1px solid rgba(138, 43, 226, 0.3);
   backdrop-filter: blur(8px);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.popular-games .game-card:hover {
   transform: translateY(-6px) scale(1.01);
   box-shadow: 0 12px 25px rgba(138, 43, 226, 0.25);
   border-color: rgba(138, 43, 226, 0.5);
}


.popular-games .game-image {
   height: 140px;
   border-radius: 12px 12px 0 0;
}


.popular-games .game-image img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   border-radius: 12px 12px 0 0;
}


.popular-games .game-overlay {
   background: rgba(0, 0, 0, 0.6);
   border-radius: 12px 12px 0 0;
}


.popular-games .play-btn {
   padding: 8px 20px;
   font-size: 14px;
   border-radius: 20px;
}


.popular-games .game-info {
   padding: 15px;
}


.popular-games .game-info h3 {
   font-size: 1.1rem;
   margin-bottom: 6px;
}


.popular-games .game-info p {
   font-size: 0.85rem;
   opacity: 0.9;
}


/* Mobile responsiveness for trending games */
@media (max-width: 768px) {
   .popular-games .games-grid {
       grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
       gap: 15px;
   }
  
   .popular-games .game-image {
       height: 120px;
   }
  
   .popular-games .game-info {
       padding: 12px;
   }
  
   .popular-games .game-info h3 {
       font-size: 1rem;
   }
  
   .popular-games .game-info p {
       font-size: 0.8rem;
   }
}


/* Main Content */
.main-content {
   margin-left: 280px;
   transition: margin-left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   min-height: 100vh;
   padding-top: 70px;
}


.main-content.expanded {
   margin-left: 60px;
}


/* Game Layout */
.game-layout {
   display: grid;
   grid-template-columns: 1fr 300px;
   gap: 30px;
   padding: 20px;
   max-width: 1400px;
   margin: 0 auto;
}


/* Game Section */
.game-section {
   display: flex;
   flex-direction: column;
   gap: 20px;
}


/* Game Container */
.game-container {
   position: relative;
   background: rgba(30, 30, 63, 0.8);
   border-radius: 15px;
   overflow: hidden;
   border: 1px solid rgba(138, 43, 226, 0.3);
   backdrop-filter: blur(10px);
   transition: all 0.3s ease;
}


.game-container.fullscreen {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   z-index: 9999;
   border-radius: 0;
   border: none;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   background: #22224a;
   /* Remove padding/margin if any */
}


.game-container.fullscreen iframe,
.game-container.fullscreen #gameFrame {
   width: 100vw;
   height: 100vh;
   max-width: 100vw;
   max-height: 100vh;
   aspect-ratio: 4 / 3;
   display: block;
   background: #22224a;
   border: none;
   border-bottom: 1px solid rgba(138,43,226,0.2);
   object-fit: contain;
}


.game-container.fullscreen.bar-collapsed iframe,
.game-container.fullscreen.bar-collapsed #gameFrame {
   height: 100vh;
}


.game-container.fullscreen .game-control-bar {
   position: fixed;
   left: 0;
   bottom: 0;
   width: 100vw;
   height: 60px;
   padding: 0 20px;
   background: rgba(30, 30, 63, 0.95);
   z-index: 10001;
   border-radius: 0;
   box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
   display: flex;
   align-items: center;
   justify-content: space-between;
}


.game-container.fullscreen .collapse-arrow {
   display: block;
   position: fixed;
   right: 30px;
   bottom: 60px; /* Exactly above the control bar (bar is 60px high) */
   border-radius: 50% 50% 0 0;
   background: rgba(138, 43, 226, 0.95);
   box-shadow: 0 -2px 10px rgba(138,43,226,0.15);
   z-index: 10002;
   transition:
       bottom 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
       border-radius 0.3s;
}


.game-container.fullscreen.bar-collapsed .game-control-bar {
   display: none;
}


.game-container.fullscreen.bar-collapsed .collapse-arrow {
   bottom: 30px;
   border-radius: 50%;
   background: rgba(138, 43, 226, 0.95);
   box-shadow: 0 2px 10px rgba(138,43,226,0.15);
   transition:
       bottom 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
       border-radius 0.3s;
}


/* Game Control Bar */
.game-control-bar {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 15px 20px;
   background: rgba(30, 30, 63, 0.9);
   transition: transform 0.3s ease;
}


.game-control-bar.collapsed {
   transform: translateY(100%);
}


.game-title h2 {
   color: #ffffff;
   font-size: 1.5rem;
   font-weight: 600;
   background: linear-gradient(45deg, #8a2be2, #4b0082);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}


.game-controls {
   display: flex;
   gap: 15px;
}


.control-btn {
   display: flex;
   align-items: center;
   gap: 8px;
   background: linear-gradient(45deg, #8a2be2, #4b0082);
   border: none;
   padding: 10px 15px;
   border-radius: 8px;
   color: white;
   font-size: 14px;
   font-weight: 500;
   cursor: pointer;
   transition: all 0.3s ease;
}


.control-btn:hover {
   transform: translateY(-2px);
   box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}


/* Collapse Arrow */
.collapse-arrow {
   position: absolute;
   bottom: 10px;
   right: 20px;
   background: rgba(138, 43, 226, 0.8);
   border: none;
   padding: 8px;
   border-radius: 50%;
   color: white;
   cursor: pointer;
   transition: all 0.3s ease;
   display: none;
}


.game-container.fullscreen .collapse-arrow {
   display: block;
}


.collapse-arrow:hover {
   background: rgba(138, 43, 226, 1);
   transform: scale(1.1);
}


.collapse-arrow.rotated {
   transform: rotate(180deg);
}


/* Game Description */
.game-description {
   background: rgba(30, 30, 63, 0.6);
   border-radius: 15px;
   padding: 25px;
   border: 1px solid rgba(138, 43, 226, 0.2);
   backdrop-filter: blur(10px);
   position: relative;
}


.game-description .description-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 10px;
}


.game-description .feedback-inline {
   position: absolute;
   top: 6px; /* Move up */
   right: 18px;
   z-index: 2;
   padding: 10px 18px; /* Slightly larger */
   gap: 12px;
}


.game-description .feedback-inline button {
   font-size: 1.35em !important; /* Larger icon */
   width: 36px !important;
   height: 36px !important;
}


.game-description .feedback-inline i {
   font-size: 1.35em !important;
}


@media (max-width: 768px) {
   .game-description .feedback-inline {
       position: static;
       margin-top: 10px;
       margin-bottom: 10px;
       right: auto;
       top: auto;
   }
   .game-description .description-header {
       flex-direction: column;
       align-items: flex-start;
       gap: 10px;
   }
}


.game-description h3 {
   color: #ffffff;
   font-size: 1.4rem;
   margin-bottom: 15px;
   font-weight: 600;
}


.game-description p {
   color: #b8b8d4;
   line-height: 1.6;
   margin-bottom: 20px;
}


.game-genres {
   display: flex;
   gap: 10px;
   flex-wrap: wrap;
}


.genre-tag {
   background: linear-gradient(45deg, #8a2be2, #4b0082);
   color: white;
   padding: 6px 12px;
   border-radius: 20px;
   font-size: 0.85rem;
   font-weight: 500;
   cursor: pointer;
   transition: all 0.3s ease;
}


.genre-tag:hover {
   transform: translateY(-2px);
   box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}


/* Ad Section */
.ad-section {
   background: rgba(30, 30, 63, 0.6);
   border-radius: 15px;
   border: 1px solid rgba(138, 43, 226, 0.2);
   backdrop-filter: blur(10px);
   min-height: 120px;
}


.ad-placeholder {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   height: 120px;
   color: #b8b8d4;
   font-size: 0.9rem;
   gap: 10px;
}


.ad-placeholder i {
   font-size: 2rem;
   opacity: 0.5;
}


.ad-placeholder.small {
   height: 80px;
}


.ad-placeholder.small i {
   font-size: 1.5rem;
}


/* Sidebar Games */
.sidebar-games {
   display: flex;
   flex-direction: column;
   gap: 20px;
}


.sidebar-ad {
   background: rgba(30, 30, 63, 0.6);
   border-radius: 15px;
   border: 1px solid rgba(138, 43, 226, 0.2);
   backdrop-filter: blur(10px);
}


/* Related Games Styling */
.related-games {
    background: rgba(30, 30, 63, 0.6);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    backdrop-filter: blur(10px);
}

.related-games h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-games h3::before {
    content: "🎮";
    font-size: 1.2em;
}

.related-games-grid {
    display: grid;
    gap: 12px;
}

.game-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(138, 43, 226, 0.1);
    position: relative;
    overflow: hidden;
}

.game-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.1), transparent);
    transition: left 0.5s ease;
}

.game-item:hover::before {
    left: 100%;
}

.game-item:hover {
    background: rgba(138, 43, 226, 0.15);
    transform: translateX(5px);
    border-color: rgba(138, 43, 226, 0.3);
}

.game-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid rgba(138, 43, 226, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.1), rgba(30, 30, 63, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-item:hover .game-thumbnail::after {
    opacity: 1;
}

.game-item:hover .game-thumbnail {
    border-color: rgba(138, 43, 226, 0.5);
    transform: scale(1.05);
}

.game-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-details h4 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.game-item:hover .game-details h4 {
    color: #bb86fc;
}

.game-details p {
    color: #b8b8d4;
    font-size: 0.8rem;
    margin: 0;
}

.game-tags {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(138, 43, 226, 0.2);
    color: #bb86fc;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.loading {
    text-align: center;
    color: #b8b8d4;
    padding: 20px;
}

.no-games {
    text-align: center;
    color: #b8b8d4;
    padding: 20px;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .related-games {
        padding: 15px;
    }
    
    .game-item {
        padding: 10px;
    }
    
    .game-thumbnail {
        width: 45px;
        height: 45px;
    }
}

/* Share Modal */
.share-modal {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   background: rgba(0, 0, 0, 0.8);
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 10000;
   opacity: 0;
   visibility: hidden;
   transition: all 0.3s ease;
}


.share-modal.active {
   opacity: 1;
   visibility: visible;
}


.modal-content {
   background: linear-gradient(135deg, #1e1e3f, #2a2a5a);
   border-radius: 20px;
   padding: 30px;
   max-width: 1000px;
   width: 90%;
   border: 1px solid rgba(138, 43, 226, 0.3);
   transform: scale(0.8);
   transition: transform 0.3s ease;
}


.share-modal.active .modal-content {
   transform: scale(1);
}


.modal-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 20px;
}


.modal-header h3 {
   color: #ffffff;
   font-size: 1.4rem;
   font-weight: 600;
}


.close-btn {
   background: none;
   border: none;
   color: #b8b8d4;
   font-size: 1.5rem;
   cursor: pointer;
   padding: 5px;
   transition: color 0.3s ease;
}


.close-btn:hover {
   color: #ffffff;
}


.modal-body p {
   color: #b8b8d4;
   margin-bottom: 20px;
}


.share-link-container {
   display: flex;
   gap: 10px;
   margin-bottom: 15px;
}


#shareLink {
   flex: 1;
   padding: 12px;
   border: 2px solid rgba(138, 43, 226, 0.3);
   border-radius: 8px;
   background: rgba(255, 255, 255, 0.1);
   color: #ffffff;
   font-size: 0.9rem;
}


#shareLink:focus {
   outline: none;
   border-color: #8a2be2;
}


.copy-btn {
   background: linear-gradient(45deg, #8a2be2, #4b0082);
   border: none;
   padding: 12px 20px;
   border-radius: 8px;
   color: white;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
}


.copy-btn:hover {
   transform: translateY(-2px);
   box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.share-message {
   color: #4CAF50;
   font-size: 0.9rem;
   opacity: 0;
   transition: opacity 0.3s ease;
}


.share-message.show {
   opacity: 1;
}


/* Responsive Design */
@media (max-width: 1200px) {
   .game-layout {
       grid-template-columns: 1fr;
       gap: 20px;
   }


   .sidebar-games {
       order: -1;
   }


   .related-games {
       display: grid;
       grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
       gap: 15px;
   }


   .related-games h3 {
       grid-column: 1 / -1;
   }
}


@media (max-width: 900px) {
   .sidebar {
       width: 220px;
       transform: translateX(-220px);
       left: 0;
       top: 0;
       height: 100vh;
       z-index: 2000;
       box-shadow: 4px 0 16px rgba(0,0,0,0.18);
       transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
   }
   .sidebar.collapsed {
       transform: translateX(-220px);
   }
   .sidebar:not(.collapsed) {
       transform: translateX(0);
   }
   .main-content {
       margin-left: 0 !important;
       padding-top: 70px;
   }
   .main-content.expanded {
       margin-left: 0 !important;
   }
   .top-bar {
       left: 0;
       width: 100vw;
       min-width: 0;
       padding: 12px 10px;
       box-sizing: border-box;
   }
}


@media (max-width: 600px) {
   .sidebar {
       width: 170px;
       padding-top: 55px;
   }
   .sidebar-header {
       padding: 10px;
   }
   .logo-icon img {
       width: 48px !important;
       height: 48px !important;
   }
   .logo h2 {
       font-size: 15px;
   }
   .nav-links a {
       font-size: 12px;
       padding: 10px 12px;
       gap: 10px;
   }
   .main-content {
       padding-top: 60px;
   }
   .top-bar {
       padding: 8px 4px;
   }
   .search-container input[type="text"] {
       width: 120px;
       font-size: 0.95em;
       padding: 7px 30px 7px 8px;
   }
   .search-container input[type="text"]:focus {
       width: 150px;
   }
   .search-container .search-btn {
       font-size: 1em;
       right: 2px;
   }
}


/* Sidebar overlay for mobile */
@media (max-width: 900px) {
   body.sidebar-open::before {
       content: '';
       position: fixed;
       top: 0; left: 0; right: 0; bottom: 0;
       background: rgba(0,0,0,0.35);
       z-index: 1999;
       pointer-events: auto;
       transition: opacity 0.3s;
   }
   .sidebar.collapsed {
       pointer-events: none;
   }
   .sidebar:not(.collapsed) {
       pointer-events: auto;
   }
}


/* Sidebar toggle always visible on mobile */
@media (max-width: 900px) {
   .sidebar-toggle {
       z-index: 2100;
       position: relative;
       background: rgba(138,43,226,0.13);
       border-radius: 8px;
   }
}


/* Hide sidebar by default on mobile */
@media (max-width: 900px) {
   .sidebar.collapsed {
       display: block;
       transform: translateX(-220px);
   }
   .sidebar {
       display: block;
   }
}


/* Video Hover Functionality for Featured Games */
.featured-games .game-image {
   position: relative;
   overflow: hidden;
}


.featured-games .game-thumbnail {
   transition: opacity 0.3s ease;
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   z-index: 2;
}


.featured-games .game-video {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   opacity: 0;
   transition: opacity 0.3s ease;
   z-index: 1;
}


/* Hover effects for featured games only */
.featured-games .game-card:hover .game-thumbnail {
   opacity: 0;
}


.featured-games .game-card:hover .game-video {
   opacity: 1;
}


/* Ensure overlay stays on top */
.featured-games .game-overlay {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   z-index: 3;
   background: rgba(0, 0, 0, 0.4);
   opacity: 0;
   transition: opacity 0.3s ease;
   display: flex;
   align-items: center;
   justify-content: center;
}


.featured-games .game-card:hover .game-overlay {
   opacity: 1;
}


/* Enhanced play button styling */
.featured-games .play-btn {
   background: linear-gradient(45deg, #ff6b6b, #ee5a24);
   color: white;
   border: none;
   padding: 12px 24px;
   border-radius: 25px;
   font-weight: bold;
   cursor: pointer;
   transform: scale(0.9);
   transition: all 0.3s ease;
   box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}


.featured-games .play-btn:hover {
   transform: scale(1);
   box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}


/* Ensure proper positioning for game image container */
.featured-games .game-image {
   width: 100%;
   height: 200px;
   border-radius: 12px;
   overflow: hidden;
   position: relative;
}


/* Video loading state */
.featured-games .game-video:not([data-loaded]) {
   background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
   background-size: 400% 400%;
   animation: loading-gradient 2s ease-in-out infinite;
}


@keyframes loading-gradient {
   0% { background-position: 0% 50%; }
   50% { background-position: 100% 50%; }
   100% { background-position: 0% 50%; }
}


/* Smooth transition for card hover */
.featured-games .game-card {
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.featured-games .game-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


/* Footer Styles */
.site-footer {
   background: linear-gradient(135deg, rgba(10, 10, 35, 0.95) 0%, rgba(30, 30, 63, 0.95) 100%);
   backdrop-filter: blur(20px);
   border-top: 1px solid rgba(138, 43, 226, 0.2);
   margin-top: 80px;
   position: relative;
   overflow: hidden;
}


.site-footer::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background:
       radial-gradient(circle at 20% 20%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
       radial-gradient(circle at 80% 80%, rgba(75, 0, 130, 0.1) 0%, transparent 50%);
   pointer-events: none;
}


.footer-container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 60px 40px 0;
   position: relative;
   z-index: 1;
}


.footer-content {
   display: grid;
   grid-template-columns: 1fr 2fr;
   gap: 60px;
   margin-bottom: 50px;
}


/* Brand Section */
.footer-brand {
   max-width: 400px;
}


.footer-logo {
   display: flex;
   align-items: center;
   gap: 15px;
   margin-bottom: 25px;
}


.logo-icon {
   position: relative;
   width: 50px;
   height: 50px;
}


.logo-shapes {
   position: relative;
   width: 100%;
   height: 100%;
}


.logo-triangle {
   position: absolute;
   width: 0;
   height: 0;
   border-left: 12px solid transparent;
   border-right: 12px solid transparent;
   border-bottom: 20px solid #8a2be2;
   top: 2px;
   left: 13px;
   animation: float 3s ease-in-out infinite;
}


.logo-circle {
   position: absolute;
   width: 16px;
   height: 16px;
   background: linear-gradient(45deg, #4b0082, #8a2be2);
   border-radius: 50%;
   top: 25px;
   left: 5px;
   animation: float 3s ease-in-out infinite 0.5s;
}


.logo-square {
   position: absolute;
   width: 14px;
   height: 14px;
   background: linear-gradient(135deg, #8a2be2, #9932cc);
   border-radius: 3px;
   top: 28px;
   right: 8px;
   animation: float 3s ease-in-out infinite 1s;
}


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


.logo-text .company-name {
   display: block;
   font-size: 1.8rem;
   font-weight: 800;
   background: linear-gradient(45deg, #ffffff, #b8b8d4);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   line-height: 1;
}


.logo-text .company-tagline {
   display: block;
   font-size: 0.9rem;
   color: #8a2be2;
   font-weight: 600;
   margin-top: 2px;
}


.footer-description {
   color: #b8b8d4;
   line-height: 1.6;
   margin-bottom: 30px;
   font-size: 0.95rem;
}


/* Social Links */
.social-links {
   display: flex;
   gap: 15px;
}


.social-link {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 45px;
   height: 45px;
   background: rgba(138, 43, 226, 0.1);
   border: 1px solid rgba(138, 43, 226, 0.3);
   border-radius: 12px;
   color: #b8b8d4;
   transition: all 0.3s ease;
   backdrop-filter: blur(10px);
}


.social-link:hover {
   background: linear-gradient(45deg, #8a2be2, #4b0082);
   color: white;
   transform: translateY(-2px);
   box-shadow: 0 8px 20px rgba(138, 43, 226, 0.3);
}


/* Footer Links */
.footer-links {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 40px;
}


.link-title {
   font-size: 1.1rem;
   font-weight: 700;
   color: #ffffff;
   margin-bottom: 20px;
   position: relative;
}


.link-title::after {
   content: '';
   position: absolute;
   bottom: -8px;
   left: 0;
   width: 30px;
   height: 2px;
   background: linear-gradient(45deg, #8a2be2, #4b0082);
   border-radius: 1px;
}


.link-list {
   list-style: none;
   padding: 0;
   margin: 0;
}


.link-list li {
   margin-bottom: 12px;
}


.footer-link {
   color: #b8b8d4;
   text-decoration: none;
   font-size: 0.9rem;
   transition: all 0.3s ease;
   position: relative;
}


.footer-link:hover {
   color: #8a2be2;
   padding-left: 8px;
}


.footer-link::before {
   content: '';
   position: absolute;
   left: -8px;
   top: 50%;
   transform: translateY(-50%);
   width: 4px;
   height: 4px;
   background: #8a2be2;
   border-radius: 50%;
   opacity: 0;
   transition: opacity 0.3s ease;
}


.footer-link:hover::before {
   opacity: 1;
}


/* Newsletter Section */
.footer-newsletter {
   background: rgba(138, 43, 226, 0.05);
   border: 1px solid rgba(138, 43, 226, 0.2);
   border-radius: 20px;
   padding: 40px;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 30px;
   align-items: center;
   margin-bottom: 40px;
   backdrop-filter: blur(10px);
}


.newsletter-title {
   font-size: 1.5rem;
   font-weight: 700;
   color: #ffffff;
   margin-bottom: 10px;
}


.newsletter-description {
   color: #b8b8d4;
   font-size: 0.95rem;
   line-height: 1.5;
}


.newsletter-form {
   justify-self: end;
   width: 100%;
   max-width: 400px;
}


.input-group {
   display: flex;
   border-radius: 25px;
   overflow: hidden;
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid rgba(138, 43, 226, 0.3);
   transition: all 0.3s ease;
}


.input-group:focus-within {
   border-color: #8a2be2;
   box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
}


.newsletter-input {
   flex: 1;
   background: transparent;
   border: none;
   padding: 15px 20px;
   color: #ffffff;
   font-size: 0.95rem;
   outline: none;
}


.newsletter-input::placeholder {
   color: #b8b8d4;
}


.newsletter-btn {
   background: linear-gradient(45deg, #8a2be2, #4b0082);
   border: none;
   padding: 15px 25px;
   color: white;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
   white-space: nowrap;
}


.newsletter-btn:hover {
   background: linear-gradient(45deg, #9932cc, #8a2be2);
   transform: scale(1.02);
}


/* Footer Bottom */
.footer-bottom {
   border-top: 1px solid rgba(138, 43, 226, 0.2);
   padding: 30px 0;
}


.footer-bottom-content {
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap;
   gap: 20px;
}


.copyright {
   color: #b8b8d4;
   font-size: 0.9rem;
   margin: 0;
}


.footer-bottom-links {
   display: flex;
   gap: 25px;
}


.bottom-link {
   color: #b8b8d4;
   text-decoration: none;
   font-size: 0.9rem;
   transition: color 0.3s ease;
}


.bottom-link:hover {
   color: #8a2be2;
}


/* Responsive Design */
@media (max-width: 1024px) {
   .footer-content {
       grid-template-columns: 1fr;
       gap: 40px;
   }
  
   .footer-links {
       grid-template-columns: repeat(2, 1fr);
       gap: 30px;
   }
  
   .footer-newsletter {
       grid-template-columns: 1fr;
       text-align: center;
       gap: 25px;
   }
  
   .newsletter-form {
       justify-self: center;
   }
}


@media (max-width: 768px) {
   .footer-container {
       padding: 40px 20px 0;
   }
  
   .footer-links {
       grid-template-columns: 1fr;
       gap: 25px;
   }
  
   .footer-newsletter {
       padding: 30px 20px;
   }
  
   .newsletter-title {
       font-size: 1.3rem;
   }
  
   .input-group {
       flex-direction: column;
       border-radius: 15px;
   }
  
   .newsletter-input {
       border-bottom: 1px solid rgba(138, 43, 226, 0.3);
   }
  
   .newsletter-btn {
       border-radius: 0 0 15px 15px;
   }
  
   .footer-bottom-content {
       flex-direction: column;
       text-align: center;
   }
  
   .footer-bottom-links {
       justify-content: center;
   }
  
   .social-links {
       justify-content: center;
   }
}


@media (max-width: 480px) {
   .footer-logo {
       flex-direction: column;
       text-align: center;
       gap: 10px;
   }
  
   .logo-text .company-name {
       font-size: 1.5rem;
   }
  
   .footer-newsletter {
       padding: 25px 15px;
   }
  
   .footer-bottom-links {
       flex-wrap: wrap;
       gap: 15px;
   }
}
/* Settings Page Specific Styles */


/* Settings Container */
.settings-container {
   max-width: 1400px;
   margin: 0 auto;
   padding: 20px;
}


/* Settings Header */
.settings-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 30px;
   padding: 25px 30px;
   background: rgba(30, 30, 63, 0.8);
   border-radius: 15px;
   border: 1px solid rgba(138, 43, 226, 0.3);
   backdrop-filter: blur(10px);
}


.settings-title h1 {
   color: #ffffff;
   font-size: 2.2rem;
   font-weight: 700;
   margin-bottom: 5px;
   display: flex;
   align-items: center;
   gap: 15px;
}


.settings-title h1 i {
   color: #8a2be2;
   font-size: 2rem;
   animation: settingsRotate 8s ease-in-out infinite;
}


@keyframes settingsRotate {
   0%, 90%, 100% { transform: rotate(0deg); }
   45% { transform: rotate(180deg); }
}


.settings-title p {
   color: #b8b8d4;
   font-size: 1.1rem;
   margin: 0;
}


.settings-actions {
   display: flex;
   gap: 15px;
}


/* Breadcrumb */
.breadcrumb {
   display: flex;
   align-items: center;
   gap: 10px;
   color: #b8b8d4;
   font-size: 0.9rem;
}


.breadcrumb-link {
   color: #b8b8d4;
   text-decoration: none;
   display: flex;
   align-items: center;
   gap: 5px;
   transition: color 0.3s ease;
}


.breadcrumb-link:hover {
   color: #8a2be2;
}


.breadcrumb-separator {
   opacity: 0.6;
   font-size: 0.8rem;
}


.breadcrumb-current {
   color: #ffffff;
   font-weight: 500;
}


/* Settings Navigation */
.settings-nav {
   display: flex;
   gap: 5px;
   margin-bottom: 30px;
   padding: 5px;
   background: rgba(30, 30, 63, 0.6);
   border-radius: 12px;
   border: 1px solid rgba(138, 43, 226, 0.2);
   backdrop-filter: blur(10px);
   overflow-x: auto;
   scrollbar-width: none;
   -ms-overflow-style: none;
}


.settings-nav::-webkit-scrollbar {
   display: none;
}


.settings-tab {
   display: flex;
   align-items: center;
   gap: 8px;
   padding: 12px 20px;
   background: transparent;
   border: none;
   color: #b8b8d4;
   font-size: 0.95rem;
   font-weight: 500;
   cursor: pointer;
   border-radius: 8px;
   transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   white-space: nowrap;
   position: relative;
   overflow: hidden;
}


.settings-tab::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.1), transparent);
   transition: left 0.5s ease;
}


.settings-tab:hover::before {
   left: 100%;
}


.settings-tab:hover {
   background: rgba(138, 43, 226, 0.1);
   color: #ffffff;
   transform: translateY(-2px);
}


.settings-tab.active {
   background: linear-gradient(45deg, #8a2be2, #4b0082);
   color: #ffffff;
   box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
}


.settings-tab i {
   font-size: 1.1rem;
}


/* Settings Content */
.settings-content {
   position: relative;
}


.settings-panel {
   display: none;
   animation: fadeInSlide 0.4s ease-out;
}


.settings-panel.active {
   display: block;
}


@keyframes fadeInSlide {
   from {
       opacity: 0;
       transform: translateY(20px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}


.settings-panel h2 {
   color: #ffffff;
   font-size: 1.8rem;
   font-weight: 600;
   margin-bottom: 25px;
   padding-bottom: 10px;
   border-bottom: 2px solid rgba(138, 43, 226, 0.3);
}


/* Settings Groups */
.settings-group {
   background: rgba(30, 30, 63, 0.6);
   border-radius: 15px;
   padding: 25px;
   margin-bottom: 25px;
   border: 1px solid rgba(138, 43, 226, 0.2);
   backdrop-filter: blur(10px);
   transition: all 0.3s ease;
}


.settings-group:hover {
   border-color: rgba(138, 43, 226, 0.4);
   box-shadow: 0 5px 20px rgba(138, 43, 226, 0.1);
}


.settings-group h3 {
   color: #ffffff;
   font-size: 1.3rem;
   font-weight: 600;
   margin-bottom: 20px;
   display: flex;
   align-items: center;
   gap: 10px;
}


.settings-group h3 i {
   color: #8a2be2;
   font-size: 1.2rem;
}


/* Setting Items */
.setting-item {
   margin-bottom: 20px;
   position: relative;
}


.setting-item:last-child {
   margin-bottom: 0;
}


.setting-item label:not(.setting-label) {
   display: block;
   color: #ffffff;
   font-size: 1rem;
   font-weight: 500;
   margin-bottom: 8px;
}


.setting-description {
   color: #b8b8d4;
   font-size: 0.85rem;
   margin-top: 5px;
   margin-bottom: 0;
   line-height: 1.4;
}


/* Input Styles */
.setting-input {
   width: 100%;
   max-width: 400px;
   padding: 12px 16px;
   background: rgba(255, 255, 255, 0.1);
   border: 2px solid rgba(138, 43, 226, 0.3);
   border-radius: 8px;
   color: #ffffff;
   font-size: 1rem;
   transition: all 0.3s ease;
}


.setting-input:focus {
   outline: none;
   border-color: #8a2be2;
   background: rgba(255, 255, 255, 0.15);
   box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
}


.setting-select {
   padding: 12px 16px;
   background: rgba(255, 255, 255, 0.1);
   border: 2px solid rgba(138, 43, 226, 0.3);
   border-radius: 8px;
   color: #ffffff;
   font-size: 1rem;
   cursor: pointer;
   transition: all 0.3s ease;
   min-width: 200px;
}


.setting-select:focus {
   outline: none;
   border-color: #8a2be2;
   box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
}


.setting-select option {
   background: #2a2a5a;
   color: #ffffff;
}


/* Custom Checkbox */
.setting-label {
   display: flex !important;
   align-items: center;
   gap: 12px;
   cursor: pointer;
   color: #ffffff !important;
   font-size: 1rem !important;
   font-weight: 500 !important;
   margin-bottom: 0 !important;
   user-select: none;
}


.setting-checkbox {
   display: none;
}


.checkmark {
   width: 20px;
   height: 20px;
   background: rgba(255, 255, 255, 0.1);
   border: 2px solid rgba(138, 43, 226, 0.3);
   border-radius: 4px;
   position: relative;
   transition: all 0.3s ease;
   flex-shrink: 0;
}


.checkmark::after {
   content: '';
   position: absolute;
   left: 6px;
   top: 2px;
   width: 4px;
   height: 8px;
   border: solid #ffffff;
   border-width: 0 2px 2px 0;
   transform: rotate(45deg) scale(0);
   transition: transform 0.2s ease;
}


.setting-checkbox:checked + .checkmark {
   background: linear-gradient(45deg, #8a2be2, #4b0082);
   border-color: #8a2be2;
}


.setting-checkbox:checked + .checkmark::after {
   transform: rotate(45deg) scale(1);
}


.setting-label:hover .checkmark {
   border-color: #8a2be2;
   box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}


/* Slider Styles */
.slider-container {
   display: flex;
   align-items: center;
   gap: 15px;
   max-width: 400px;
}


.setting-slider {
   flex: 1;
   height: 6px;
   background: rgba(255, 255, 255, 0.1);
   border-radius: 3px;
   outline: none;
   -webkit-appearance: none;
   appearance: none;
   cursor: pointer;
}


.setting-slider::-webkit-slider-thumb {
   -webkit-appearance: none;
   appearance: none;
   width: 20px;
   height: 20px;
   background: linear-gradient(45deg, #8a2be2, #4b0082);
   border-radius: 50%;
   cursor: pointer;
   box-shadow: 0 2px 10px rgba(138, 43, 226, 0.3);
   transition: all 0.3s ease;
}


.setting-slider::-webkit-slider-thumb:hover {
   transform: scale(1.2);
   box-shadow: 0 4px 15px rgba(138, 43, 226, 0.5);
}


.setting-slider::-moz-range-thumb {
   width: 20px;
   height: 20px;
   background: linear-gradient(45deg, #8a2be2, #4b0082);
   border-radius: 50%;
   cursor: pointer;
   border: none;
   box-shadow: 0 2px 10px rgba(138, 43, 226, 0.3);
   transition: all 0.3s ease;
}


.setting-slider::-moz-range-thumb:hover {
   transform: scale(1.2);
   box-shadow: 0 4px 15px rgba(138, 43, 226, 0.5);
}


.slider-value {
   color: #8a2be2;
   font-weight: 600;
   font-size: 0.95rem;
   min-width: 45px;
   text-align: right;
}


/* Color Picker */
.color-picker-container {
   display: flex;
   align-items: center;
   gap: 15px;
}


.color-picker {
   width: 50px;
   height: 50px;
   border: none;
   border-radius: 8px;
   cursor: pointer;
   border: 2px solid rgba(138, 43, 226, 0.3);
   transition: all 0.3s ease;
}


.color-picker:hover {
   border-color: #8a2be2;
   transform: scale(1.05);
}


.color-presets {
   display: flex;
   gap: 8px;
}


.color-preset {
   width: 30px;
   height: 30px;
   border: none;
   border-radius: 6px;
   cursor: pointer;
   border: 2px solid rgba(255, 255, 255, 0.2);
   transition: all 0.3s ease;
}


.color-preset:hover {
   transform: scale(1.1);
   border-color: #ffffff;
}


/* Keybind Grid */
.keybind-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
   gap: 15px;
   margin-top: 15px;
}


.keybind-item {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 12px;
   background: rgba(255, 255, 255, 0.05);
   border-radius: 8px;
   border: 1px solid rgba(138, 43, 226, 0.2);
}


.keybind-item label {
   color: #ffffff;
   font-size: 0.95rem;
   margin: 0;
}


.keybind-btn {
   background: linear-gradient(45deg, #8a2be2, #4b0082);
   border: none;
   padding: 8px 16px;
   border-radius: 6px;
   color: #ffffff;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
   min-width: 60px;
   text-align: center;
}


.keybind-btn:hover {
   transform: translateY(-2px);
   box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}


.keybind-btn.listening {
   background: linear-gradient(45deg, #ff6b6b, #ee5a24);
   animation: pulse 1s ease-in-out infinite;
}


@keyframes pulse {
   0%, 100% { transform: scale(1); }
   50% { transform: scale(1.05); }
}


/* Button Styles */
.btn-primary {
   background: linear-gradient(45deg, #8a2be2, #4b0082);
   border: none;
   padding: 12px 25px;
   border-radius: 8px;
   color: white;
   font-size: 1rem;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
   box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
   display: flex;
   align-items: center;
   gap: 8px;
}


.btn-primary:hover {
   transform: translateY(-2px);
   box-shadow: 0 6px 30px rgba(138, 43, 226, 0.5);
}


.btn-secondary {
   background: transparent;
   border: 2px solid #8a2be2;
   padding: 10px 23px;
   border-radius: 8px;
   color: #8a2be2;
   font-size: 1rem;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
   display: flex;
   align-items: center;
   gap: 8px;
}


.btn-secondary:hover {
   background: #8a2be2;
   color: white;
   transform: translateY(-2px);
   box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
}


.btn-danger {
   background: linear-gradient(45deg, #ff6b6b, #ee5a24);
   border: none;
   padding: 12px 25px;
   border-radius: 8px;
   color: white;
   font-size: 1rem;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
   box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
   display: flex;
   align-items: center;
   gap: 8px;
}


.btn-danger:hover {
   transform: translateY(-2px);
   box-shadow: 0 6px 30px rgba(255, 107, 107, 0.5);
}


/* Modal Styles */
.modal-overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   background: rgba(0, 0, 0, 0.8);
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 10000;
   opacity: 0;
   visibility: hidden;
   transition: all 0.3s ease;
}


.modal-overlay.active {
   opacity: 1;
   visibility: visible;
}


.modal {
   background: linear-gradient(135deg, #1e1e3f, #2a2a5a);
   border-radius: 15px;
   padding: 30px;
   max-width: 400px;
   width: 90%;
   border: 1px solid rgba(138, 43, 226, 0.3);
   transform: scale(0.8);
   transition: transform 0.3s ease;
   text-align: center;
}


.modal-overlay.active .modal {
   transform: scale(1);
}


.modal-header h3 {
   color: #ffffff;
   font-size: 1.4rem;
   font-weight: 600;
   margin-bottom: 15px;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
}


.modal-header h3 i {
   color: #4CAF50;
   font-size: 1.6rem;
}


.modal-body p {
   color: #b8b8d4;
   font-size: 1.1rem;
   margin-bottom: 20px;
}


.modal-footer {
   display: flex;
   justify-content: center;
}


/* Responsive Design */
@media (max-width: 1200px) {
   .settings-header {
       flex-direction: column;
       gap: 20px;
       text-align: center;
   }


   .settings-actions {
       width: 100%;
       justify-content: center;
   }
}


@media (max-width: 900px) {
   .settings-nav {
       flex-wrap: wrap;
       gap: 8px;
   }


   .settings-tab {
       flex: 1;
       min-width: 120px;
       justify-content: center;
   }


   .settings-tab span {
       display: none;
   }


   .settings-tab i {
       font-size: 1.3rem;
   }
}


@media (max-width: 768px) {
   .settings-container {
       padding: 15px;
   }


   .settings-header {
       padding: 20px;
   }


   .settings-title h1 {
       font-size: 1.8rem;
   }


   .settings-group {
       padding: 20px;
   }


   .keybind-grid {
       grid-template-columns: 1fr;
   }


   .slider-container {
       max-width: none;
   }


   .setting-input,
   .setting-select {
       max-width: none;
   }


   .color-picker-container {
       flex-direction: column;
       align-items: flex-start;
       gap: 10px;
   }


   .settings-actions {
       flex-direction: column;
       gap: 10px;
   }


   .btn-primary,
   .btn-secondary,
   .btn-danger {
       width: 100%;
       justify-content: center;
   }
}


@media (max-width: 600px) {
   .settings-nav {
       padding: 3px;
   }


   .settings-tab {
       padding: 10px 8px;
       min-width: 50px;
   }


   .settings-panel h2 {
       font-size: 1.5rem;
   }


   .settings-group h3 {
       font-size: 1.1rem;
   }


   .modal {
       padding: 20px;
       margin: 20px;
   }
}


/* Loading Animation */
.settings-panel.loading {
   opacity: 0.5;
   pointer-events: none;
}


.settings-panel.loading::after {
   content: '';
   position: absolute;
   top: 50%;
   left: 50%;
   width: 40px;
   height: 40px;
   border: 3px solid rgba(138, 43, 226, 0.3);
   border-top: 3px solid #8a2be2;
   border-radius: 50%;
   animation: spin 1s linear infinite;
   transform: translate(-50%, -50%);
}


@keyframes spin {
   0% { transform: translate(-50%, -50%) rotate(0deg); }
   100% { transform: translate(-50%, -50%) rotate(360deg); }
}


/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
   * {
       animation-duration: 0.01ms !important;
       animation-iteration-count: 1 !important;
       transition-duration: 0.01ms !important;
   }
}


/* Focus Styles */
button:focus,
input:focus,
select:focus {
   outline: 2px solid #8a2be2;
   outline-offset: 2px;
}


/* High Contrast Mode Support */
@media (prefers-contrast: high) {
   .settings-group {
       border: 2px solid #8a2be2;
   }
  
   .setting-input,
   .setting-select {
       border-width: 3px;
   }
}

/* Redirect Overlay Styles */
.redirect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.redirect-overlay.show {
    opacity: 1;
    visibility: visible;
}

.redirect-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    max-width: 400px;
    width: 90%;
}

.redirect-overlay.show .redirect-container {
    transform: scale(1);
}

.redirect-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: redirect-spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes redirect-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.redirect-container h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.redirect-container p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

/* All Games Page Specific Styles - Unique Naming */
.all-games-wrapper {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-banner-section {
    text-align: center;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #4c63d2 0%, #7c4dff 100%);
    padding: 3rem 2rem;
    border-radius: 25px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.page-banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), 
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: bannerFloat 6s ease-in-out infinite;
}

@keyframes bannerFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.main-page-title {
    font-size: 3.8rem;
    font-weight: 900;
    margin: 0;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    background: linear-gradient(45deg, #ffffff, #e1e9fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    font-size: 1.3rem;
    margin: 1rem 0 0;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.game-controls-panel {
    display: flex;
    gap: 1.8rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.search-control-wrapper {
    flex: 1;
    min-width: 320px;
}

.game-search-box {
    position: relative;
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.game-search-box:focus-within {
    border-color: #4c63d2;
    box-shadow: 0 15px 45px rgba(76, 99, 210, 0.25);
    transform: translateY(-3px);
}

.search-magnifier {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4c63d2;
    font-size: 1.2rem;
    z-index: 2;
}

.search-text-input {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    border: none;
    outline: none;
    font-size: 1.1rem;
    background: transparent;
    color: #333;
    font-weight: 400;
}

.search-text-input::placeholder {
    color: #aaa;
    font-weight: 300;
}

.search-clear-btn {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.search-clear-btn.visible {
    opacity: 1;
    visibility: visible;
}

.search-clear-btn:hover {
    background: #f5f5f5;
    color: #4c63d2;
    transform: translateY(-50%) scale(1.1);
}

.filter-control-wrapper {
    position: relative;
}

.tag-filter-button {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #4c63d2, #7c4dff);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(76, 99, 210, 0.35);
    min-width: 140px;
}

.tag-filter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 99, 210, 0.45);
    background: linear-gradient(135deg, #7c4dff, #4c63d2);
}

.tag-filter-button.active {
    background: linear-gradient(135deg, #7c4dff, #9c27b0);
    transform: translateY(-2px);
}

.filter-options-panel {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18);
    padding: 2rem;
    min-width: 300px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-options-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #f8f9fa;
}

.filter-panel-header span {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
}

.reset-filters-btn {
    background: none;
    border: none;
    color: #4c63d2;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.reset-filters-btn:hover {
    background: #f0f4ff;
    transform: scale(1.05);
}

.available-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.selectable-tag {
    padding: 0.7rem 1.3rem;
    background: #4c63d2;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    font-weight: 500;
}

.selectable-tag:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.selectable-tag.active {
    background: #4b0082;
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(76, 99, 210, 0.3);
}

.search-results-display {
    margin-bottom: 1.8rem;
    padding-left: 0.5rem;
}

.results-counter {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.individual-game-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.individual-game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    border-color: rgba(76, 99, 210, 0.2);
}

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

.game-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.individual-game-card:hover .game-preview-image img {
    transform: scale(1.15);
}

.game-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(76, 99, 210, 0.95), rgba(124, 77, 255, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.individual-game-card:hover .game-hover-overlay {
    opacity: 1;
}

.game-play-button {
    padding: 1rem 2.5rem;
    background: white;
    color: #4c63d2;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.individual-game-card:hover .game-play-button {
    transform: translateY(0);
}

.game-play-button:hover {
    background: #f8f9fa;
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.game-details-section {
    padding: 2rem;
}

.game-details-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #333;
}

.game-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.category-tag-item {
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #4c63d2, #7c4dff);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.page-navigation-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.page-navigation-controls {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.nav-page-button {
    padding: 1rem 1.3rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.nav-page-button:hover {
    background: #f8f9fa;
    border-color: #4c63d2;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.nav-page-button.current-page {
    background: linear-gradient(135deg, #4c63d2, #7c4dff);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(76, 99, 210, 0.3);
}

.nav-page-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.nav-page-button:disabled:hover {
    background: white;
    border-color: #e9ecef;
    transform: none;
}

.pagination-dots {
    padding: 0 0.5rem;
    color: #999;
    font-weight: 600;
}

.no-games-message {
    text-align: center;
    padding: 5rem 2rem;
    color: #666;
}

.no-games-message i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.4;
    color: #4c63d2;
}

.no-games-message h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.no-games-message p {
    font-size: 1.1rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .all-games-wrapper {
        padding: 1rem;
    }
    
    .main-page-title {
        font-size: 2.8rem;
    }
    
    .game-controls-panel {
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .search-control-wrapper {
        min-width: auto;
    }
    
    .filter-options-panel {
        right: auto;
        left: 0;
        min-width: 280px;
    }
    
    .game-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .game-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .page-banner-section {
        padding: 2.5rem 1.5rem;
    }
    
    .main-page-title {
        font-size: 2.2rem;
    }
    
    .page-description {
        font-size: 1.1rem;
    }
}

/* Settings Page Styles */
.settings-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
}

.settings-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.settings-icon {
    font-size: 3rem;
    color: #8a2be2;
    margin-bottom: 1rem;
    animation: rotate 4s linear infinite;
}

.settings-header h1 {
    font-size: 3rem;
    margin: 0;
    background: linear-gradient(45deg, #8a2be2, #7faafe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.settings-subtitle {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.settings-card {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid transparent;
    background-clip: padding-box;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.settings-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #8a2be2, #7faafe);
    border-radius: 20px;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.settings-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-header i {
    font-size: 1.5rem;
    color: #8a2be2;
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
}

.setting-item {
    margin-bottom: 1.5rem;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: block;
    color: #ccc;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

/* Theme Toggle */
.theme-toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 80px;
    height: 40px;
    background: #333;
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #555;
}

.toggle-slider {
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, #8a2be2, #7faafe);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.theme-toggle.light .toggle-slider {
    transform: translateX(40px);
    background: linear-gradient(45deg, #ffd700, #ff8c00);
}

.theme-toggle.light {
    background: #f0f0f0;
    border-color: #ddd;
}

.theme-label {
    color: #ccc;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Audio Toggle */
.audio-toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-toggle {
    background: linear-gradient(45deg, #8a2be2, #7faafe);
    border: none;
    padding: 12px 20px;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.audio-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
}

.audio-toggle.muted {
    background: #666;
}

.audio-visualizer {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.audio-bar {
    width: 3px;
    background: #8a2be2;
    border-radius: 2px;
    animation: audioWave 1s ease-in-out infinite;
}

.audio-bar:nth-child(2) { animation-delay: 0.1s; height: 15px; }
.audio-bar:nth-child(3) { animation-delay: 0.2s; height: 10px; }
.audio-bar:nth-child(4) { animation-delay: 0.3s; height: 20px; }

.audio-toggle.muted + .audio-visualizer .audio-bar {
    animation: none;
    background: #666;
    height: 5px;
}

/* Controls Display */
.controls-card {
    grid-column: 1 / -1;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.control-group {
    text-align: center;
}

.control-title {
    color: #8a2be2;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.key-group {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.key {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid #444;
    border-radius: 8px;
    padding: 10px 15px;
    color: #fff;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    position: relative;
}

.key:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(138, 43, 226, 0.3);
    border-color: #8a2be2;
}

.key.space {
    padding: 10px 25px;
}

/* Reset Button */
.reset-btn {
    background: linear-gradient(45deg, #ff4757, #ff3838);
    border: none;
    padding: 12px 20px;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.reset-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 71, 87, 0.3);
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #2ed573;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* Particles Effect */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #8a2be2, #7faafe);
    border-radius: 50%;
    animation: floatParticle 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 2s; }
.particle:nth-child(3) { left: 50%; animation-delay: 4s; }
.particle:nth-child(4) { left: 70%; animation-delay: 6s; }
.particle:nth-child(5) { left: 90%; animation-delay: 1s; }

/* ========== COMPREHENSIVE LIGHT THEME STYLES ========== */

/* Base Body Styles */
body.light-theme {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    color: #334155;
}

/* Top Bar */
body.light-theme .top-bar {
    background: rgba(248, 250, 252, 0.95);
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

body.light-theme .sidebar-toggle {
    color: #475569;
    background: rgba(138, 43, 226, 0.1);
}

body.light-theme .sidebar-toggle:hover {
    color: #8a2be2;
    background: rgba(138, 43, 226, 0.2);
}

body.light-theme .search-container input[type="text"] {
    background: rgba(255, 255, 255, 0.9);
    border-color: #cbd5e1;
    color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-theme .search-container input[type="text"]:focus {
    border-color: #8a2be2;
    box-shadow: 0 4px 16px rgba(138, 43, 226, 0.15);
}

body.light-theme .search-container .search-btn {
    color: #64748b;
}

body.light-theme .search-container .search-btn:hover {
    color: #8a2be2;
}

body.light-theme .search-results {
    background: rgba(255, 255, 255, 0.95);
    color: #334155;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

/* Sidebar */
body.light-theme .sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-right: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.1);
}

body.light-theme .sidebar-header {
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

body.light-theme .logo h2 {
    color: #334155;
}

body.light-theme .nav-links a {
    color: #64748b;
}

body.light-theme .nav-links a:hover {
    background-color: rgba(138, 43, 226, 0.1);
    color: #334155;
    border-left-color: #8a2be2;
}

body.light-theme .nav-links a.active {
    background-color: rgba(138, 43, 226, 0.15);
    color: #334155;
    border-left-color: #8a2be2;
}

/* Hero Section */
body.light-theme .hero::before {
    background: radial-gradient(circle at 70% 30%, rgba(138, 43, 226, 0.08) 0%, transparent 50%);
}

body.light-theme .hero-subtitle {
    color: #64748b;
}

/* Game Cards */
body.light-theme .game-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.2);
    color: #334155;
}

body.light-theme .game-card:hover {
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.15);
    border-color: rgba(138, 43, 226, 0.4);
}

body.light-theme .game-info h3 {
    color: #334155;
}

body.light-theme .game-info p {
    color: #64748b;
}

body.light-theme .popular-games .game-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(138, 43, 226, 0.2);
}

/* Section Titles */
body.light-theme .section-title {
    background: linear-gradient(45deg, #334155, #64748b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Game Spotlight */
body.light-theme .game-spotlight {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.05) 0%, rgba(75, 0, 130, 0.05) 100%);
}

body.light-theme .spotlight-text h2 {
    background: linear-gradient(45deg, #334155, #64748b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .spotlight-text p {
    color: #64748b;
}

body.light-theme .feature {
    color: #334155;
}

/* Buttons */
body.light-theme .btn-secondary {
    color: #8a2be2;
    border-color: #8a2be2;
}

body.light-theme .btn-secondary:hover {
    background: #8a2be2;
    color: white;
}

/* Game Layout */
body.light-theme .game-container {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.2);
}

body.light-theme .game-control-bar {
    background: rgba(255, 255, 255, 0.95);
}

body.light-theme .game-title h2 {
    color: #334155;
}

body.light-theme .game-description {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.2);
    color: #334155;
}

body.light-theme .game-description h3 {
    color: #334155;
}

body.light-theme .game-description p {
    color: #64748b;
}

body.light-theme .ad-section {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.2);
}

body.light-theme .ad-placeholder {
    color: #64748b;
}

body.light-theme .related-games {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.2);
}

body.light-theme .related-games h3 {
    color: #334155;
}

body.light-theme .game-item:hover {
    background: rgba(138, 43, 226, 0.05);
}

body.light-theme .game-details h4 {
    color: #334155;
}

body.light-theme .game-details p {
    color: #64748b;
}

/* Footer */
body.light-theme .site-footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    color: #334155;
}

body.light-theme .site-footer::before {
    background:
        radial-gradient(circle at 20% 20%, rgba(138, 43, 226, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(75, 0, 130, 0.05) 0%, transparent 50%);
}

body.light-theme .logo-text .company-name {
    background: linear-gradient(45deg, #334155, #64748b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .footer-description {
    color: #64748b;
}

body.light-theme .social-link {
    background: rgba(138, 43, 226, 0.05);
    border: 1px solid rgba(138, 43, 226, 0.2);
    color: #64748b;
}

body.light-theme .social-link:hover {
    background: linear-gradient(45deg, #8a2be2, #4b0082);
    color: white;
}

body.light-theme .link-title {
    color: #334155;
}

body.light-theme .footer-link {
    color: #64748b;
}

body.light-theme .footer-link:hover {
    color: #8a2be2;
}

body.light-theme .footer-newsletter {
    background: rgba(138, 43, 226, 0.03);
    border: 1px solid rgba(138, 43, 226, 0.2);
}

body.light-theme .newsletter-title {
    color: #334155;
}

body.light-theme .newsletter-description {
    color: #64748b;
}

body.light-theme .input-group {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.2);
}

body.light-theme .newsletter-input {
    color: #334155;
}

body.light-theme .newsletter-input::placeholder {
    color: #94a3b8;
}

body.light-theme .copyright {
    color: #64748b;
}

body.light-theme .bottom-link {
    color: #64748b;
}

body.light-theme .bottom-link:hover {
    color: #8a2be2;
}

/* Modal Styles */
body.light-theme .modal-content {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid rgba(138, 43, 226, 0.2);
    color: #334155;
}

body.light-theme .modal-header h3 {
    color: #334155;
}

body.light-theme .modal-close {
    color: #64748b;
}

body.light-theme .modal-close:hover {
    background: rgba(138, 43, 226, 0.1);
    color: #334155;
}

body.light-theme .modal-body p {
    color: #64748b;
}

body.light-theme #shareLink {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(138, 43, 226, 0.2);
    color: #334155;
}

/* Settings Page Specific */
body.light-theme .settings-card {
    background: rgba(255, 255, 255, 0.9);
    color: #334155;
    border: 2px solid rgba(138, 43, 226, 0.1);
}

body.light-theme .settings-card::before {
    background: linear-gradient(45deg, #8a2be2, #7faafe);
}

body.light-theme .card-header h3 {
    color: #334155;
}

body.light-theme .setting-item label {
    color: #475569;
}

body.light-theme .settings-subtitle {
    color: #64748b;
}

body.light-theme .theme-label {
    color: #475569;
}

body.light-theme .key {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-color: #cbd5e1;
    color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light-theme .key:hover {
    border-color: #8a2be2;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.2);
}

body.light-theme .control-title {
    color: #8a2be2;
}

body.light-theme .particle {
    background: linear-gradient(45deg, #8a2be2, #7faafe);
}

/* All Games Page */
body.light-theme .all-games-wrapper {
    color: #334155;
}

body.light-theme .page-banner-section {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

/* Redirect Overlay */
body.light-theme .redirect-overlay {
    background: rgba(255, 255, 255, 0.9);
}

body.light-theme .redirect-container {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

/* Animations */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes audioWave {
    0%, 100% { height: 15px; }
    50% { height: 25px; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .settings-container {
        padding: 1rem;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .settings-header h1 {
        font-size: 2rem;
    }
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h1 {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #8a2be2 0%, #7faafe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(138, 43, 226, 0.3);
}

.header-decoration {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #8a2be2 0%, #7faafe 100%);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(138, 43, 226, 0.5);
}

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

.contact-info {
    width: 100%;
    max-width: 600px;
}

.contact-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(127, 170, 254, 0.2) 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.2);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(138, 43, 226, 0.3);
}

.card-icon {
    font-size: 3rem;
    color: #7faafe;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(127, 170, 254, 0.3);
}

.contact-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.email-section {
    margin-top: 30px;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #8a2be2 0%, #7faafe 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.3);
}

.email-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.4);
    background: linear-gradient(135deg, #9a3bf2 0%, #8fb5fe 100%);
}

.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(127, 170, 254, 0.2);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(138, 43, 226, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.2);
}

.info-item i {
    font-size: 1.5rem;
    color: #7faafe;
}

.info-item span {
    color: #ffffff;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }
    
    .top-bar {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .contact-header h1 {
        font-size: 2.5rem;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .additional-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .contact-card h2 {
        font-size: 1.5rem;
    }
    
    .email-link {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

.terms-container {
    max-width: 900px;
    margin: 0 auto;
}

.terms-header {
    text-align: center;
    margin-bottom: 50px;
}

.terms-header h1 {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #8a2be2 0%, #7faafe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(138, 43, 226, 0.3);
}

.header-decoration {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #8a2be2 0%, #7faafe 100%);
    margin: 0 auto 20px;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(138, 43, 226, 0.5);
}

.last-updated {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-size: 1rem;
}

.terms-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.terms-section {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(127, 170, 254, 0.15) 100%);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.1);
    transition: all 0.3s ease;
}

.terms-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.2);
    border-color: rgba(127, 170, 254, 0.3);
}

.terms-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.terms-section h2 i {
    color: #7faafe;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(127, 170, 254, 0.3);
}

.terms-section p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    text-align: justify;
}

.terms-section p:last-child {
    margin-bottom: 0;
}

.responsibility-list {
    display: grid;
    gap: 12px;
    margin-top: 15px;
}

.responsibility-item {
    background: rgba(138, 43, 226, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #7faafe;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.responsibility-item:hover {
    background: rgba(138, 43, 226, 0.2);
    transform: translateX(5px);
    border-left-color: #8a2be2;
}

.contact-section {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.25) 0%, rgba(127, 170, 254, 0.25) 100%);
    border: 2px solid rgba(138, 43, 226, 0.4);
}

.contact-info {
    margin-top: 20px;
    text-align: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #8a2be2 0%, #7faafe 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.3);
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.4);
    background: linear-gradient(135deg, #9a3bf2 0%, #8fb5fe 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }
    
    .top-bar {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .terms-header h1 {
        font-size: 2.5rem;
    }
    
    .terms-section {
        padding: 25px 20px;
    }
    
    .terms-section h2 {
        font-size: 1.3rem;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .terms-section p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .terms-header h1 {
        font-size: 2rem;
    }
    
    .terms-section {
        padding: 20px 15px;
    }
    
    .terms-section h2 {
        font-size: 1.2rem;
    }
    
    .terms-section p {
        font-size: 0.95rem;
    }
    
    .contact-link {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(138, 43, 226, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8a2be2 0%, #7faafe 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9a3bf2 0%, #8fb5fe 100%);
}

.privacy-container {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-header {
    text-align: center;
    margin-bottom: 50px;
}

.privacy-header h1 {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #8a2be2 0%, #7faafe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(138, 43, 226, 0.3);
}

.header-decoration {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #8a2be2 0%, #7faafe 100%);
    margin: 0 auto 20px;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(138, 43, 226, 0.5);
}

.last-updated {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-size: 1rem;
}

.privacy-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.privacy-intro {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(127, 170, 254, 0.2) 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.15);
}

.intro-icon {
    font-size: 3rem;
    color: #7faafe;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(127, 170, 254, 0.3);
}

.privacy-intro p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.privacy-section {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(127, 170, 254, 0.15) 100%);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.1);
    transition: all 0.3s ease;
}

.privacy-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.2);
    border-color: rgba(127, 170, 254, 0.3);
}

.privacy-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.privacy-section h2 i {
    color: #7faafe;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(127, 170, 254, 0.3);
}

.privacy-section p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    text-align: justify;
}

.privacy-section p:last-child {
    margin-bottom: 0;
}

/* Information Categories */
.info-category {
    margin: 20px 0;
}

.info-category h3 {
    color: #7faafe;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(127, 170, 254, 0.3);
}

.info-list, .cookie-benefits {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.info-item, .benefit-item {
    background: rgba(138, 43, 226, 0.1);
    padding: 12px 18px;
    border-radius: 8px;
    border-left: 3px solid #7faafe;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.info-item:hover, .benefit-item:hover {
    background: rgba(138, 43, 226, 0.2);
    transform: translateX(5px);
    border-left-color: #8a2be2;
}

/* Usage Grid */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.usage-item {
    background: rgba(138, 43, 226, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(127, 170, 254, 0.2);
    transition: all 0.3s ease;
}

.usage-item:hover {
    background: rgba(138, 43, 226, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.2);
}

.usage-item i {
    font-size: 2rem;
    color: #7faafe;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(127, 170, 254, 0.3);
}

.usage-item h4 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.usage-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

/* Sharing Scenarios */
.sharing-scenarios {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.scenario-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(138, 43, 226, 0.1);
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.scenario-item:hover {
    background: rgba(138, 43, 226, 0.2);
    transform: translateX(3px);
}

.scenario-item i {
    color: #7faafe;
    font-size: 1.3rem;
    margin-top: 3px;
}

.scenario-item span {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Security Measures */
.security-measures {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.measure-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(138, 43, 226, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #7faafe;
    transition: all 0.3s ease;
}

.measure-item:hover {
    background: rgba(138, 43, 226, 0.2);
    transform: translateX(5px);
    border-left-color: #8a2be2;
}

.measure-item i {
    color: #7faafe;
    font-size: 1.2rem;
}

.measure-item span {
    color: rgba(255, 255, 255, 0.9);
}

/* Rights List */
.rights-list {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.right-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(138, 43, 226, 0.1);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.right-item:hover {
    background: rgba(138, 43, 226, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.2);
}

.right-item i {
    color: #7faafe;
    font-size: 1.5rem;
    margin-top: 5px;
}

.right-item h4 {
    color: #ffffff;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.right-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-align: left;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.25) 0%, rgba(127, 170, 254, 0.25) 100%);
    border: 2px solid rgba(138, 43, 226, 0.4);
}

.contact-info {
    margin: 20px 0;
    text-align: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #8a2be2 0%, #7faafe 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.3);
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.4);
    background: linear-gradient(135deg, #9a3bf2 0%, #8fb5fe 100%);
}

.contact-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 15px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }
    
    .top-bar {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .privacy-header h1 {
        font-size: 2.5rem;
    }
    
    .privacy-section {
        padding: 25px 20px;
    }
    
    .privacy-section h2 {
        font-size: 1.3rem;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .privacy-section p {
        text-align: left;
    }
    
    .usage-grid {
        grid-template-columns: 1fr;
    }
    
    .rights-list {
        gap: 12px;
    }
    
    .right-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .right-item i {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .privacy-header h1 {
        font-size: 2rem;
    }
    
    .privacy-section {
        padding: 20px 15px;
    }
    
    .privacy-section h2 {
        font-size: 1.2rem;
    }
    
    .privacy-section p {
        font-size: 0.95rem;
    }
    
    .contact-link {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .usage-item {
        padding: 15px;
    }
    
    .usage-item i {
        font-size: 1.7rem;
    }
    
    .intro-icon {
        font-size: 2.5rem;
    }
    
    .privacy-intro {
        padding: 25px 20px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(138, 43, 226, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8a2be2 0%, #7faafe 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9a3bf2 0%, #8fb5fe 100%);
} 
/* News Page Styles */

/* News Page Specific Styles - All scoped within .news-page-container */

/* Main Layout */
.news-page-container .news-main-content {
    margin-left: 280px;
    margin-top: 60px;
    padding: 0;
    min-height: calc(100vh - 60px);
    transition: margin-left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    padding-right: 30px;
}

/* Featured Banner */
.news-page-container .news-featured-banner {
    grid-column: 1 / -1;
    position: relative;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a3e 0%, #2d1b69 100%);
    margin: 30px 0 30px 30px;
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
}

.news-page-container .news-featured-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.4);
}

.news-page-container .news-featured-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 40px;
    background: linear-gradient(45deg, rgba(26, 26, 62, 0.9), rgba(45, 27, 105, 0.7));
}

.news-page-container .news-featured-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%238a2be2;stop-opacity:0.3"/><stop offset="100%" style="stop-color:%237faafe;stop-opacity:0.2"/></linearGradient></defs><rect width="100%" height="100%" fill="url(%23bg)"/><circle cx="900" cy="100" r="80" fill="%238a2be2" opacity="0.1"/><circle cx="1000" cy="300" r="120" fill="%237faafe" opacity="0.1"/></svg>') center/cover;
}

.news-page-container .news-featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 35, 0.4), rgba(45, 27, 105, 0.6));
}

.news-page-container .news-featured-text {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.news-page-container .news-featured-tag {
    display: inline-block;
    background: linear-gradient(45deg, #8a2be2, #7faafe);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    animation: news-pulse 2s infinite;
}

@keyframes news-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.news-page-container .news-featured-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff, #b8b8d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.news-page-container .news-featured-summary {
    font-size: 1.1rem;
    color: #b8b8d4;
    line-height: 1.6;
    margin-bottom: 24px;
}

.news-page-container .news-featured-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #8a8aa8;
}

.news-page-container .news-featured-date, 
.news-page-container .news-featured-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-page-container .news-featured-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(45deg, #8a2be2, #7faafe);
    border: none;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-page-container .news-featured-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;
}

.news-page-container .news-featured-btn:hover::before {
    left: 100%;
}

.news-page-container .news-featured-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.4);
}

/* News Controls */
.news-page-container .news-page-controls {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    margin-bottom: 20px;
}

.news-page-container .news-controls-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.news-page-container .news-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.news-page-container .news-view-toggles {
    display: flex;
    background: rgba(30, 30, 63, 0.5);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.news-page-container .news-view-toggle {
    background: none;
    border: none;
    color: #b8b8d4;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.news-page-container .news-view-toggle.active,
.news-page-container .news-view-toggle:hover {
    background: linear-gradient(45deg, #8a2be2, #7faafe);
    color: white;
}

.news-page-container .news-controls-right {
    display: flex;
    gap: 16px;
}

.news-page-container .news-filter-dropdown, 
.news-page-container .news-sort-dropdown {
    position: relative;
}

.news-page-container .news-filter-btn, 
.news-page-container .news-sort-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 30, 63, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: #b8b8d4;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.news-page-container .news-filter-btn:hover, 
.news-page-container .news-sort-btn:hover {
    border-color: #8a2be2;
    background: rgba(138, 43, 226, 0.1);
}

.news-page-container .news-filter-menu, 
.news-page-container .news-sort-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: rgba(30, 30, 63, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px;
    padding: 8px;
    margin-top: 4px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.news-page-container .news-filter-menu.active, 
.news-page-container .news-sort-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.news-page-container .news-filter-option, 
.news-page-container .news-sort-option {
    padding: 10px 12px;
    color: #b8b8d4;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.news-page-container .news-filter-option:hover, 
.news-page-container .news-sort-option:hover {
    background: rgba(138, 43, 226, 0.2);
    color: white;
}

.news-page-container .news-filter-option.active, 
.news-page-container .news-sort-option.active {
    background: linear-gradient(45deg, #8a2be2, #7faafe);
    color: white;
}

/* Tags Section */
.news-page-container .news-tags-section {
    grid-column: 1 / -1;
    padding: 0 30px;
    margin-bottom: 30px;
}

.news-page-container .news-popular-tags {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.news-page-container .news-tags-label {
    color: #b8b8d4;
    font-weight: 600;
    font-size: 0.9rem;
}

.news-page-container .news-tag-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-page-container .news-tag {
    background: rgba(30, 30, 63, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.2);
    color: #b8b8d4;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-page-container .news-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #8a2be2, #7faafe);
    transition: left 0.3s ease;
    z-index: -1;
}

.news-page-container .news-tag:hover::before,
.news-page-container .news-tag.active::before {
    left: 0;
}

.news-page-container .news-tag:hover,
.news-page-container .news-tag.active {
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

/* News Feed */
.news-page-container .news-page-feed {
    padding: 0 30px;
}

.news-page-container .news-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.news-page-container .news-page-grid.list-view {
    grid-template-columns: 1fr;
}

/* News Card */
.news-page-container .news-card {
    background: rgba(30, 30, 63, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(10px);
}

.news-page-container .news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #8a2be2, #7faafe);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.news-page-container .news-card:hover::before {
    transform: scaleX(1);
}

.news-page-container .news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 12px 32px rgba(138, 43, 226, 0.2);
}

.news-page-container .news-card-image {
    height: 200px;
    background: linear-gradient(135deg, #1a1a3e, #2d1b69);
    position: relative;
    overflow: hidden;
}

.news-page-container .news-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(30, 30, 63, 0.8));
}

.news-page-container .news-card-content {
    padding: 20px;
}

.news-page-container .news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #8a8aa8;
}

.news-page-container .news-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-page-container .news-card-category {
    background: linear-gradient(45deg, #8a2be2, #7faafe);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-page-container .news-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-page-container .news-card:hover .news-card-title {
    color: #7faafe;
}

.news-page-container .news-card-summary {
    color: #b8b8d4;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.news-page-container .news-card-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.news-page-container .news-card-tag {
    background: rgba(138, 43, 226, 0.2);
    color: #b8b8d4;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-page-container .news-card-tag:hover {
    background: rgba(138, 43, 226, 0.4);
    color: white;
}

.news-page-container .news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-page-container .news-read-more-btn {
    background: none;
    border: 1px solid rgba(138, 43, 226, 0.4);
    color: #7faafe;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-page-container .news-read-more-btn:hover {
    background: linear-gradient(45deg, #8a2be2, #7faafe);
    color: white;
    border-color: transparent;
}

.news-page-container .news-card-stats {
    display: flex;
    gap: 16px;
    color: #8a8aa8;
    font-size: 0.8rem;
}

.news-page-container .news-card-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* List View Styles */
.news-page-container .news-page-grid.list-view .news-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    height: 140px;
}

.news-page-container .news-page-grid.list-view .news-card-image {
    height: 100%;
}

.news-page-container .news-page-grid.list-view .news-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 20px;
}

.news-page-container .news-page-grid.list-view .news-card-summary {
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loading States */
.news-page-container .news-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #b8b8d4;
}

.news-page-container .news-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(138, 43, 226, 0.2);
    border-top: 3px solid #8a2be2;
    border-radius: 50%;
    animation: news-spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes news-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.news-page-container .news-load-more-container {
    text-align: center;
    margin-top: 40px;
}

.news-page-container .news-load-more-btn {
    background: rgba(30, 30, 63, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: #b8b8d4;
    padding: 12px 32px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
}

.news-page-container .news-load-more-btn:hover {
    background: linear-gradient(45deg, #8a2be2, #7faafe);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Sidebar */
.news-page-container .news-page-sidebar {
    padding: 30px 0;
}

.news-page-container .news-sidebar-widget {
    background: rgba(30, 30, 63, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.news-page-container .news-widget-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

.news-page-container .news-trending-list, 
.news-page-container .news-recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-page-container .news-trending-item, 
.news-page-container .news-recent-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(26, 26, 62, 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.news-page-container .news-trending-item:hover, 
.news-page-container .news-recent-item:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.3);
    transform: translateX(4px);
}

.news-page-container .news-trending-item-image, 
.news-page-container .news-recent-item-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a1a3e, #2d1b69);
    border-radius: 8px;
    flex-shrink: 0;
}

.news-page-container .news-trending-item-content, 
.news-page-container .news-recent-item-content {
    flex: 1;
    min-width: 0;
}

.news-page-container .news-trending-item-title, 
.news-page-container .news-recent-item-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.news-page-container .news-trending-item-date, 
.news-page-container .news-recent-item-date {
    color: #8a8aa8;
    font-size: 0.8rem;
}

/* Newsletter Widget */
.news-page-container .news-newsletter-widget p {
    color: #b8b8d4;
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.news-page-container .news-newsletter-form {
    display: flex;
    gap: 8px;
}

.news-page-container .news-newsletter-form input {
    flex: 1;
    background: rgba(26, 26, 62, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.news-page-container .news-newsletter-form input:focus {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2);
}

.news-page-container .news-newsletter-form input::placeholder {
    color: #8a8aa8;
}

.news-page-container .news-newsletter-form button {
    background: linear-gradient(45deg, #8a2be2, #7faafe);
    border: none;
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.news-page-container .news-newsletter-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

/* Article Modal */
.news-page-container .news-article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.news-page-container .news-article-modal.active {
    opacity: 1;
    visibility: visible;
}

.news-page-container .news-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 35, 0.8);
    backdrop-filter: blur(5px);
}

.news-page-container .news-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 90%;
    margin: 5% auto;
    background: rgba(30, 30, 63, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.3);
}

.news-page-container .news-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.4);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.news-page-container .news-modal-close:hover {
    background: rgba(138, 43, 226, 0.4);
    transform: rotate(90deg);
}

.news-page-container .news-modal-article {
    height: 100%;
    overflow-y: auto;
    padding: 40px;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .news-page-container .news-main-content {
        grid-template-columns: 1fr;
        margin-left: 280px;
        padding-right: 20px;
    }
    
    .news-page-container .news-page-sidebar {
        grid-row: 1;
        margin-bottom: 30px;
    }
    
    .news-page-container .news-featured-banner {
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .news-page-container .news-page-controls,
    .news-page-container .news-tags-section,
    .news-page-container .news-page-feed {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .news-page-container .news-main-content {
        margin-left: 0;
        padding: 0 15px;
        gap: 20px;
    }
    
    .news-page-container .news-featured-banner {
        height: 300px;
        margin: 20px 0;
    }
    
    .news-page-container .news-featured-content {
        padding: 24px;
    }
    
    .news-page-container .news-featured-title {
        font-size: 1.8rem;
    }
    
    .news-page-container .news-page-controls {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .news-page-container .news-controls-left,
    .news-page-container .news-controls-right {
        justify-content: space-between;
    }
    
    .news-page-container .news-controls-right {
        flex-direction: column;
        gap: 12px;
    }
    
    .news-page-container .news-page-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .news-page-container .news-page-grid.list-view .news-card {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .news-page-container .news-page-grid.list-view .news-card-image {
        height: 180px;
    }
    
    .news-page-container .news-popular-tags {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .news-page-container .news-sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .news-page-container .news-featured-content {
        padding: 20px;
    }
    
    .news-page-container .news-featured-title {
        font-size: 1.5rem;
    }
    
    .news-page-container .news-featured-summary {
        font-size: 1rem;
    }
    
    .news-page-container .news-featured-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .news-page-container .news-card-content {
        padding: 16px;
    }
    
    .news-page-container .news-modal-content {
        width: 95%;
        height: 95%;
        margin: 2.5% auto;
    }
    
    .news-page-container .news-modal-article {
        padding: 24px;
    }
}

/* Animation for news cards entering */
@keyframes news-slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-page-container .news-card {
    animation: news-slideInUp 0.6s ease forwards;
}

.news-page-container .news-card:nth-child(even) {
    animation-delay: 0.1s;
}

.news-page-container .news-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* Scrollbar Styling */
.news-page-container .news-modal-article::-webkit-scrollbar {
    width: 6px;
}

.news-page-container .news-modal-article::-webkit-scrollbar-track {
    background: rgba(26, 26, 62, 0.4);
    border-radius: 3px;
}

.news-page-container .news-modal-article::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #8a2be2, #7faafe);
    border-radius: 3px;
}

.news-page-container .news-modal-article::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #7faafe, #8a2be2);
}

/* Empty States */
.news-page-container .news-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #8a8aa8;
}

.news-page-container .news-no-results i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #7faafe;
}

.news-page-container .news-no-results h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.news-page-container .news-no-results p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Categories Cosmic Styles - Uniquely Named for No Conflicts */

.cosmic-categories-universe-container {
    padding: 2rem;
    background: var(--bg-primary);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Modal Overlay and Container */
.cosmic-categories-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cosmic-categories-modal-overlay.cosmic-categories-modal-active {
    opacity: 1;
    visibility: visible;
}

.cosmic-categories-modal-container {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    width: 90%;
    height: 85%;
    max-width: 1200px;
    max-height: 800px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 80px rgba(138, 43, 226, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cosmic-categories-modal-overlay.cosmic-categories-modal-active .cosmic-categories-modal-container {
    transform: scale(1) translateY(0);
}

.cosmic-categories-modal-header {
    padding: 2rem;
    border-bottom: 2px solid var(--accent-color);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.cosmic-categories-modal-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cosmic-categories-modal-category-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 2px solid var(--accent-color, #8a2be2);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
}

.cosmic-categories-modal-close {
    background: var(--accent-color, #8a2be2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.4);
}

.cosmic-categories-modal-close:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.6);
}

.cosmic-categories-modal-body {
    height: calc(100% - 140px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cosmic-categories-modal-games-container {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color, #8a2be2) var(--bg-secondary, #1e1e3f);
}

.cosmic-categories-modal-games-container::-webkit-scrollbar {
    width: 8px;
}

.cosmic-categories-modal-games-container::-webkit-scrollbar-track {
    background: var(--bg-secondary, #1e1e3f);
    border-radius: 10px;
}

.cosmic-categories-modal-games-container::-webkit-scrollbar-thumb {
    background: var(--accent-color, #8a2be2);
    border-radius: 10px;
}

.cosmic-categories-modal-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cosmic-categories-modal-pagination {
    padding: 1rem 2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-top: 1px solid var(--accent-color, #8a2be2);
    background: var(--bg-secondary, #1e1e3f);
}

.cosmic-categories-pagination-button {
    background: var(--bg-secondary, #1e1e3f);
    border: 2px solid var(--accent-color, #8a2be2);
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    color: var(--text-primary, white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.cosmic-categories-pagination-button:hover:not(:disabled) {
    background: var(--accent-color, #8a2be2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
}

.cosmic-categories-pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cosmic-categories-pagination-button.cosmic-categories-active-page {
    background: var(--accent-color, #8a2be2);
    color: white;
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.4);
}

.cosmic-categories-page-info {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin: 0 1rem;
}

.cosmic-categories-modal-no-games {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-style: italic;
}

.cosmic-categories-universe-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(75, 0, 130, 0.1) 0%, transparent 50%);
    animation: cosmic-categories-star-pulse 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes cosmic-categories-star-pulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.cosmic-categories-stellar-header {
    text-align: center;
    padding: 2rem 0 3rem;
    position: relative;
    z-index: 10;
}

.cosmic-categories-nebula-title {
    margin: 0 0 1rem;
    font-size: 3.5rem;
    font-weight: bold;
    position: relative;
}

.cosmic-categories-title-glow {
    color: var(--accent-color);
    animation: cosmic-categories-title-flow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.5));
}

@keyframes cosmic-categories-title-flow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.cosmic-categories-subtitle-shimmer {
    color: var(--text-secondary);
    font-size: 1.2rem;
    opacity: 0.9;
    animation: cosmic-categories-shimmer 2s ease-in-out infinite alternate;
}

@keyframes cosmic-categories-shimmer {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.cosmic-categories-galaxy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.cosmic-categories-constellation-card {
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.1);
}

.cosmic-categories-constellation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--category-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.cosmic-categories-constellation-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.2), transparent);
    transition: left 0.6s;
    z-index: 2;
}

.cosmic-categories-constellation-card:hover::before {
    opacity: 0.25;
}

.cosmic-categories-constellation-card:hover::after {
    left: 100%;
}

.cosmic-categories-constellation-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-color, #8a2be2);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.2);
}

.cosmic-categories-constellation-card.cosmic-categories-active-dimension {
    border-color: var(--accent-color, #8a2be2);
    box-shadow: 0 12px 48px rgba(138, 43, 226, 0.3);
}

.cosmic-categories-star-header {
    position: relative;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--accent-color);
    z-index: 3;
}

.cosmic-categories-stellar-image {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid var(--accent-color, #8a2be2);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.2);
}

.cosmic-categories-constellation-card:hover .cosmic-categories-stellar-image {
    border-color: var(--accent-color, #8a2be2);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(138, 43, 226, 0.4);
}

.cosmic-categories-cosmic-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 10px rgba(138, 43, 226, 0.3);
}

.cosmic-categories-game-count-badge {
    display: inline-block;
    background: var(--accent-color, #8a2be2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    animation: cosmic-categories-badge-glow 2s ease-in-out infinite alternate;
}

@keyframes cosmic-categories-badge-glow {
    0% { box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3); }
    100% { box-shadow: 0 4px 25px rgba(138, 43, 226, 0.5); }
}

.cosmic-categories-expansion-portal {
    display: none; /* Hide the old dropdown system */
}

.cosmic-categories-games-cosmos {
    display: none; /* Hide the old games container */
}

.cosmic-categories-game-nebula-card {
    background: var(--bg-secondary);
    border: 2px solid rgba(138, 43, 226, 0.2);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.cosmic-categories-game-nebula-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.cosmic-categories-game-nebula-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color, #8a2be2);
    box-shadow: 0 15px 35px rgba(138, 43, 226, 0.2);
}

.cosmic-categories-game-star-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(138, 43, 226, 0.3);
}

.cosmic-categories-game-nebula-card:hover .cosmic-categories-game-star-image {
    transform: scale(1.05);
    border-color: var(--accent-color, #8a2be2);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
}

.cosmic-categories-game-title-aurora {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-shadow: 0 2px 8px rgba(138, 43, 226, 0.2);
    position: relative;
    z-index: 2;
}

.cosmic-categories-void-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-style: italic;
}

/* Light theme adjustments */
body.theme-light .cosmic-categories-universe-container {
    background: var(--bg-primary, #f5f5f5);
}

body.theme-light .cosmic-categories-modal-container {
    background: var(--bg-secondary, #ffffff);
    border-color: var(--accent-color, #8a2be2);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1);
}

body.theme-light .cosmic-categories-constellation-card {
    background: var(--bg-secondary, #ffffff);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.theme-light .cosmic-categories-star-header {
    background: var(--bg-primary, #f5f5f5);
}

body.theme-light .cosmic-categories-game-nebula-card {
    background: var(--bg-secondary, #ffffff);
}

body.theme-light .cosmic-categories-modal-pagination {
    background: var(--bg-secondary, #ffffff);
}

body.theme-light .cosmic-categories-pagination-button {
    background: var(--bg-secondary, #ffffff);
    color: var(--text-primary, #333333);
}

body.theme-light .cosmic-categories-pagination-button:hover:not(:disabled) {
    background: var(--accent-color, #8a2be2);
    color: white;
}

body.theme-light .cosmic-categories-pagination-button.cosmic-categories-active-page {
    background: var(--accent-color, #8a2be2);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cosmic-categories-universe-container {
        padding: 1rem;
    }
    
    .cosmic-categories-nebula-title {
        font-size: 2.5rem;
    }
    
    .cosmic-categories-galaxy-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cosmic-categories-modal-container {
        width: 95%;
        height: 90%;
        border-radius: 20px;
    }
    
    .cosmic-categories-modal-header {
        padding: 1.5rem;
    }
    
    .cosmic-categories-modal-title {
        font-size: 1.8rem;
    }
    
    .cosmic-categories-modal-category-icon {
        width: 40px;
        height: 40px;
    }
    
    .cosmic-categories-modal-games-container {
        padding: 1rem;
    }
    
    .cosmic-categories-modal-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .cosmic-categories-modal-pagination {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .cosmic-categories-pagination-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .cosmic-categories-page-info {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cosmic-categories-nebula-title {
        font-size: 2rem;
    }
    
    .cosmic-categories-modal-title {
        font-size: 1.5rem;
        gap: 0.5rem;
    }
    
    .cosmic-categories-modal-games-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cosmic-categories-pagination-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* About Page Visuals CSS - Production Ready */
:root {
    --accent-color: #8a2be2;
    --bg-secondary: #1a1a2e;
    --about-text-primary: #ffffff;
    --about-text-secondary: #b8b8ff;
    --about-purple-deep: #6a1b9a;
    --about-purple-medium: #8e24aa;
    --about-purple-light: #ba68c8;
    --about-blue-deep: #1565c0;
    --about-blue-medium: #1976d2;
    --about-blue-light: #42a5f5;
    --about-gradient-cosmic: linear-gradient(135deg, var(--about-purple-deep), var(--about-blue-medium));
    --about-gradient-nebula: linear-gradient(135deg, var(--about-blue-deep), var(--about-purple-medium));
    --about-gradient-aurora: linear-gradient(135deg, var(--about-purple-light), var(--about-blue-light));
    --about-glow-purple: 0 10px 40px rgba(138, 43, 226, 0.3);
}

/* Ensure main content has proper positioning */
.main-content {
    position: relative;
    z-index: 1;
}

/* About Page Container */
.about-page-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Hero Banner - Fixed for guaranteed visibility */
.about-hero-banner {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--about-gradient-cosmic);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* Infinity Backdrop */
.about-infinity-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 40vh;
    max-width: 800px;
    max-height: 400px;
    z-index: 1;
    opacity: 0.8;
    pointer-events: none;
}

.about-infinity-symbol {
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.1);
    animation: aboutInfinityPulse 8s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.3));
    display: block;
}

@keyframes aboutInfinityPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1) rotate(2deg);
        opacity: 0.2;
    }
}

/* Hero Content - Fixed for guaranteed visibility */
.about-hero-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: center;
    z-index: 10;
    position: relative;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    min-height: 200px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateZ(0);
}

/* Main Title - Fixed for guaranteed visibility */
.about-main-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, var(--about-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 10;
    animation: aboutTitleEntrance 2s ease-out;
    transform: translateZ(0);
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
    .about-main-title {
        color: #ffffff !important;
        background: none !important;
    }
}

/* Hero Tagline - Fixed for guaranteed visibility */
.about-hero-tagline {
    display: block !important;
    visibility: visible !important;
    font-size: 1.5rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 10;
    opacity: 0;
    animation: aboutTaglineReveal 2s ease-out 0.5s forwards;
    transform: translateZ(0);
}

/* Floating Elements Container - Fixed */
.about-floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    display: block !important;
    visibility: visible !important;
}

.about-floating-elements::before,
.about-floating-elements::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--about-purple-light);
    border-radius: 50%;
    animation: aboutPixelFloat 6s infinite ease-in-out;
    box-shadow: 0 0 20px currentColor;
    display: block;
}

.about-floating-elements::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.about-floating-elements::after {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
    background: var(--about-blue-light);
}

/* Content Cards */
.about-content-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.2);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-content-card.about-animate {
    transform: translateY(0);
    opacity: 1;
}

.about-content-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--about-text-primary);
}

.about-content-card p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--about-text-secondary);
}

.about-card-symbol {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: aboutSymbolPulse 2s infinite ease-in-out;
}

/* Individual Card Styles with Purple/Blue Theme */
.about-mission-card {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.3), rgba(25, 101, 192, 0.2));
    box-shadow: 0 15px 50px rgba(106, 27, 154, 0.4);
}

.about-mission-card .about-card-symbol {
    color: var(--about-purple-light);
}

.about-vision-card {
    background: linear-gradient(135deg, rgba(25, 101, 192, 0.3), rgba(142, 36, 170, 0.2));
    box-shadow: 0 15px 50px rgba(25, 101, 192, 0.4);
}

.about-vision-card .about-card-symbol {
    color: var(--about-blue-light);
}

.about-values-card {
    background: linear-gradient(135deg, rgba(186, 104, 200, 0.2), rgba(66, 165, 245, 0.2));
    box-shadow: 0 15px 50px rgba(186, 104, 200, 0.3);
}

.about-values-card .about-card-symbol {
    color: var(--about-purple-medium);
}

.about-excellence-card {
    background: linear-gradient(135deg, rgba(66, 165, 245, 0.3), rgba(106, 27, 154, 0.2));
    box-shadow: 0 15px 50px rgba(66, 165, 245, 0.4);
}

.about-excellence-card .about-card-symbol {
    color: var(--about-blue-medium);
}

.about-innovation-card {
    background: linear-gradient(135deg, rgba(142, 36, 170, 0.3), rgba(66, 165, 245, 0.2));
    box-shadow: 0 15px 50px rgba(142, 36, 170, 0.4);
}

.about-innovation-card .about-card-symbol {
    color: var(--about-purple-light);
}

.about-destiny-card {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.4), rgba(25, 118, 210, 0.3));
    box-shadow: 0 15px 50px rgba(138, 43, 226, 0.5);
}

.about-destiny-card .about-card-symbol {
    color: var(--accent-color);
}

/* Section Areas with Purple/Blue Gradients */
.about-mission-area {
    background: linear-gradient(135deg, #1a1a2e, #2d1b69);
    padding: 5rem 2rem;
    position: relative;
}

.about-vision-zone {
    background: linear-gradient(135deg, #2d1b69, #1e3a8a);
    padding: 5rem 2rem;
    position: relative;
}

.about-values-segment {
    background: linear-gradient(135deg, #1e3a8a, #312e81);
    padding: 5rem 2rem;
    position: relative;
}

.about-excellence-panel {
    background: linear-gradient(135deg, #312e81, #2d1b69);
    padding: 5rem 2rem;
    position: relative;
}

.about-innovation-district {
    background: linear-gradient(135deg, #2d1b69, #1a1a2e);
    padding: 5rem 2rem;
    position: relative;
}

.about-destiny-realm {
    background: linear-gradient(135deg, #1a1a2e, #1e3a8a);
    padding: 5rem 2rem;
    position: relative;
}

/* Metrics Showcase */
.about-metrics-showcase {
    background: linear-gradient(135deg, #1e3a8a, #312e81);
    padding: 6rem 2rem;
}

.about-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-metric-box {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.2), rgba(25, 101, 192, 0.2));
    border: 1px solid rgba(138, 43, 226, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.8s ease-out;
    backdrop-filter: blur(10px);
}

.about-metric-box.about-animate {
    transform: scale(1);
    opacity: 1;
}

.about-metric-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--about-purple-light);
    margin-bottom: 0.5rem;
}

.about-metric-description {
    font-size: 1.1rem;
    color: var(--about-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Override any potential conflicts */
.about-hero-banner * {
    box-sizing: border-box;
}

/* Ensure no parent elements hide the banner */
body, html {
    margin: 0;
    padding: 0;
}

/* Override any potential navigation/header conflicts */
.about-hero-banner {
    margin-top: 0 !important;
    top: 0;
}

/* Animations */
@keyframes aboutTitleEntrance {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes aboutTaglineReveal {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

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

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

/* Enhanced JavaScript-generated animations */
@keyframes aboutPixelFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    33% { 
        transform: translateY(-20px) rotate(120deg);
        opacity: 1;
    }
    66% { 
        transform: translateY(10px) rotate(240deg);
        opacity: 0.8;
    }
}

.about-animate {
    animation: aboutSlideInUp 0.8s ease-out forwards;
}

@keyframes aboutSlideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-content-card {
    transition: all 0.3s ease-out;
}

.about-metric-box {
    transition: all 0.3s ease-out;
}

.about-floating-pixel {
    will-change: transform;
}

/* Light Theme Adjustments */
body.light-theme .about-hero-banner {
    background: linear-gradient(135deg, #e8eaf6, #f3e5f5);
}

body.light-theme .about-infinity-symbol {
    color: rgba(106, 27, 154, 0.15);
}

body.light-theme .about-hero-content {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(138, 43, 226, 0.2);
}

body.light-theme .about-main-title {
    background: linear-gradient(135deg, var(--about-purple-deep), var(--about-blue-medium));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .about-hero-tagline {
    color: #5e35b1;
}

body.light-theme .about-mission-area {
    background: linear-gradient(135deg, #f5f5f5, #ede7f6);
}

body.light-theme .about-vision-zone {
    background: linear-gradient(135deg, #ede7f6, #e3f2fd);
}

body.light-theme .about-values-segment {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
}

body.light-theme .about-excellence-panel {
    background: linear-gradient(135deg, #f3e5f5, #ede7f6);
}

body.light-theme .about-innovation-district {
    background: linear-gradient(135deg, #ede7f6, #f5f5f5);
}

body.light-theme .about-destiny-realm {
    background: linear-gradient(135deg, #f5f5f5, #e3f2fd);
}

body.light-theme .about-metrics-showcase {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
}

body.light-theme .about-content-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(138, 43, 226, 0.2);
    box-shadow: 0 8px 32px rgba(106, 27, 154, 0.1);
}

body.light-theme .about-content-card h2 {
    color: #4a148c;
}

body.light-theme .about-content-card p {
    color: #6a1b9a;
}

body.light-theme .about-mission-card {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.1), rgba(25, 101, 192, 0.05));
    box-shadow: 0 8px 32px rgba(106, 27, 154, 0.15);
}

body.light-theme .about-vision-card {
    background: linear-gradient(135deg, rgba(25, 101, 192, 0.1), rgba(142, 36, 170, 0.05));
    box-shadow: 0 8px 32px rgba(25, 101, 192, 0.15);
}

body.light-theme .about-values-card {
    background: linear-gradient(135deg, rgba(186, 104, 200, 0.08), rgba(66, 165, 245, 0.05));
    box-shadow: 0 8px 32px rgba(186, 104, 200, 0.12);
}

body.light-theme .about-excellence-card {
    background: linear-gradient(135deg, rgba(66, 165, 245, 0.1), rgba(106, 27, 154, 0.05));
    box-shadow: 0 8px 32px rgba(66, 165, 245, 0.15);
}

body.light-theme .about-innovation-card {
    background: linear-gradient(135deg, rgba(142, 36, 170, 0.1), rgba(66, 165, 245, 0.05));
    box-shadow: 0 8px 32px rgba(142, 36, 170, 0.15);
}

body.light-theme .about-destiny-card {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.12), rgba(25, 118, 210, 0.08));
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.2);
}

body.light-theme .about-metric-box {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(138, 43, 226, 0.2);
    box-shadow: 0 8px 32px rgba(106, 27, 154, 0.1);
}

body.light-theme .about-metric-value {
    color: var(--about-purple-deep);
}

body.light-theme .about-metric-description {
    color: #5e35b1;
}

body.light-theme .about-card-symbol {
    filter: brightness(0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-main-title {
        font-size: 2.5rem;
    }
    
    .about-hero-tagline {
        font-size: 1.2rem;
    }
    
    .about-content-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .about-content-card h2 {
        font-size: 2rem;
    }
    
    .about-content-card p {
        font-size: 1.1rem;
    }
    
    .about-card-symbol {
        font-size: 2.5rem;
    }
    
    .about-metric-value {
        font-size: 2.5rem;
    }
    
    .about-mission-area,
    .about-vision-zone,
    .about-values-segment,
    .about-excellence-panel,
    .about-innovation-district,
    .about-destiny-realm {
        padding: 3rem 1rem;
    }
    
    .about-infinity-backdrop {
        width: 90vw;
        height: 30vh;
    }
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9b3ad6;
}

/* Light theme scrollbar */
body.light-theme ::-webkit-scrollbar-track {
    background: #f5f5f5;
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: var(--about-purple-medium);
}