/* Root Variables */
:root {
  --primary: #1a1a1a;
  --secondary: #2d2d2d;
  --accent: #00ff88;
  --text: #ffffff;
  --text-secondary: #888888;
  --gradient-start: #00ff88;
  --gradient-end: #00a3ff;
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  font-family: Arial, sans-serif;
  background: var(--primary);
  color: var(--text);
  overflow-x: hidden;
}

/* Header */
header {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: transparent ;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

i{
 color: white;
}

hr{
 color: var(--secondary);
 width: 99%;
}
header .logo img {
  width: 50px;
  border-radius: 50px;
  height: auto;
  margin-right: 15px;
  animation: fadeIn 1s var(--ease-out-quint);
}

header input[type="text"] {
  background: none;
  color: white;
  border-bottom: 1px solid white;
  flex: 1;
  padding: 8px 12px;
  font-size: 16px;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: transform 0.3s var(--ease-out-quint);
  outline: none;
}
/* Dropdown for download button */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #222;
  min-width: 140px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 999;
  border-radius: 5px;
  margin-top: 5px;
}
.dropdown-content a {
  color: #fff;
  padding: 10px 12px;
  text-decoration: none;
  display: block;
}
.dropdown-content a:hover {
  background-color: #444;
}
.show {
  display: block;
}

header a {
  color: var(--text);
  text-decoration: none;
  margin-left: 15px;
  transition: color 0.3s var(--ease-out-quint);
}

header a:hover {
  color: var(--accent);
}

/* Main Content */
main {
  padding: 20px;
  animation: fadeIn 1s var(--ease-out-quint);
}

/* App List */
#app-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columns on desktop */
    gap: 15px;
}
@media (max-width: 768px) {
    #app-list {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on mobile */
    }
}

/* App Card */
.app-card {
  background: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out-quint), box-shadow 0.3s var(--ease-out-quint);
}

.app-card:hover {
  transform: scale(1.05) rotateY(5deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.app-logo {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 10px;
}

.app-info p {
  margin: 0;
  padding-left: 7px;
  font-size: 15px;
  color: ( --text-secondary);
}


.detail-container{
 display: flex;
 gap: 10px;
}

.detail-right{
 padding-top: 20px;
 gap: 20px;
}
/* App Details */
.app-detail-logo {
  width: 120px;
  height: auto;
  border-radius: 20px;
  animation: fadeIn 1s var(--ease-out-quint);
}

#app-details h2{
 color: linear-gradient(#00ff88, #00a3ff);
 font-size: 40px;
}

#app-details p{
 color: var(--text);
 font-size: 20px;
 padding-top: 10px;
 font-family: Courier New;
}
#app-details u{
 text-decoration: underline;
}

/* Action Buttons */
.action-buttons {
  margin-top: 15px;
}

.action-buttons .btn {
  padding: 5px 8px;
  background: var(--secondary);
  color: black;
  border: none;
  border-radius: 10px;
  border: 1px solid green;
  cursor: pointer;
  margin-right: 10px;
  transition: background 0.3s var(--ease-out-quint), transform 0.3s var(--ease-out-quint);
}

.action-buttons .btn:hover {
  background: var(--gradient-end);
  transform: scale(1.05);
}

.custom-dropdown {
  position: relative;
  background-color: #222;
  min-width: 140px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  margin: 1rem auto;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.dropdown-header {
  padding: 10px 15px;
  border: 1px solid  var(--secondary);
  background-color: #222;
  min-width: 140px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 4px;
  cursor: pointer;
  box-shadow:  var(--secondary);
  transition: background 0.3s ease;
}



.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #222;
  min-width: 140px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-top: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 100;
}

.dropdown-list.show {
  max-height: 200px; /* Adjust as needed for longer lists */
  overflow-y: auto;
}

.dropdown-list li {
  list-style: none;
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dropdown-list li:hover {
  background: #201902;
}

/* Media Section */
#media-section {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  max-width: 100%;
  gap: 20px;
}

/* Video Container */
#video-container iframe,
#video-container video {
  width: auto;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Screenshots */
#screenshots-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.screenshot {
  height: 250px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out-quint);
}

.screenshot:hover {
  transform: scale(1.05);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s var(--ease-out-quint);
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.modal-icon {
  position: absolute;
  top: 20px;
  right: 35px;
  color: var(--accent);
  font-size: 40px;
  cursor: pointer;
  transition: opacity 0.3s var(--ease-out-quint);
}

.modal:target .modal-icon,
.modal[style*="display: block"] .modal-icon {
  display: block;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-end);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 5px var(--accent);
  }
  50% {
    box-shadow: 0 0 20px var(--gradient-end);
  }
  100% {
    box-shadow: 0 0 5px var(--accent);
  }
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 80%;
  }
  #video-container iframe,
#video-container video {
  width: 768px;
  height: 200px;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
  #screenshots-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.screenshot {
  height: 150px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out-quint);
}

.screenshot:hover {
  transform: scale(1.05);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s var(--ease-out-quint);
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.modal-icon {
  position: absolute;
  top: 20px;
  right: 35px;
  color: var(--accent);
  font-size: 40px;
  cursor: pointer;
  transition: opacity 0.3s var(--ease-out-quint);
}

.modal:target .modal-icon,
.modal[style*="display: block"] .modal-icon {
  display: block;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-end);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 5px var(--accent);
  }
  50% {
    box-shadow: 0 0 20px var(--gradient-end);
  }
  100% {
    box-shadow: 0 0 5px var(--accent);
  }
}
}

@media (max-width: 480px) {
  .modal-content {
    width: 90%;
  }
  #screenshots-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.screenshot {
  height: 150px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out-quint);
}

.screenshot:hover {
  transform: scale(1.05);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s var(--ease-out-quint);
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.modal-icon {
  position: absolute;
  top: 20px;
  right: 35px;
  color: var(--accent);
  font-size: 40px;
  cursor: pointer;
  transition: opacity 0.3s var(--ease-out-quint);
}

.modal:target .modal-icon,
.modal[style*="display: block"] .modal-icon {
  display: block;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-end);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 5px var(--accent);
  }
  50% {
    box-shadow: 0 0 20px var(--gradient-end);
  }
  100% {
    box-shadow: 0 0 5px var(--accent);
  }
}
}

/* Loading Animation */
@keyframes loaderSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Mobile styling for download dropdown */
@media (max-width: 768px) {
  select.btn.download-btn {
    font-size: 14px;       /* Thoda chhota font-size */
    padding: 6px 10px;     /* Kam padding for compact look */
    border-radius: 4px;    /* Rounded corners jaisa pehle tha */
    height: auto;          /* Auto height for consistency */
  }
}

.loader {
  border: 4px solid var(--secondary);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: loaderSpin 1s linear infinite;
  margin: 20px auto;
}

