:root {
	--primary: #22c55e;
	--secondary: #37c9ac;
	--dark: #1f2937;
	--light: #f3f4f6;
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html {
    scroll-behavior: smooth;
}

body {
	background-color: var(--light);
	color: var(--dark);
}
header {
	background-color: white;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
}
.navbar-container {
	width: 100%;
	background-color: white;
}
.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 5%;
	max-width: 1400px;
	margin: 0 auto;
}
.logo a {
	font-size: 2rem;
	font-weight: 700;
	color: var(--primary);
	text-decoration:none;
}
.search-bar {
	display: flex;
	width: 40%;
}
.search-bar input {
	width: 100%;
	padding: 0.5rem 1rem;
	border: 1px solid #ddd;
	border-radius: 50px 0 0 50px;
	outline: none;
}
.search-bar button {
	padding: 0.5rem 1rem;
	background-color: var(--primary);
	color: white;
	border: none;
	border-radius: 0 50px 50px 0;
	cursor: pointer;
}
.hero {
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	color: white;
	padding: 4rem 5%;
	text-align: center;
}
.hero h1 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}
.hero p {
	font-size: 1.1rem;
	max-width: 700px;
	margin: 0 auto 2rem;
}
.container {
	max-width: 1400px;
	margin: 2rem auto;
	padding: 0 5%;
}
  .recently-added-title, .popular-heading {
  display: flex;
  align-items: center;
  font-size: 2.2rem;
  gap: 0.5rem;
}

.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  max-width: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 9999px;
  box-shadow: 0 0.25rem 0.5rem 0 rgb(72 225 144 / 35%);
}

.icon-svg {
  width: 1.2rem;
  height: 1.2rem;
  color: white;
}
    
.section-title h2 {
	color: var(--primary);
}
.section-title {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.apps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.5rem;
}
.app-card {
	background-color: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0,0,0,0.05);
	transition: transform 0.3s, box-shadow 0.3s;
}
.app-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}
.app-image {
	height: 200px;
	background-color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.app-image img {
	max-width: 60%;
	max-height: 60%;
	object-fit: contain;
	border-radius: 25px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 20px 30px;
}
.app-info {
	padding: 1rem;
	margin-bottom: 20px;
}
.app-name {
	margin-top: -20px;
	font-weight: 600;
	margin-bottom: 0.5rem;
}
.app-meta {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
	font-weight: 400;
	color: #666;
	margin-bottom: 1rem;
}
.button-group {
	display: flex;
	gap: 0.5rem;
}
.download-btn {
	flex: 1;
	padding: 0.5rem;
	background-color: var(--primary);
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	text-align: center;
    text-decoration: none;
	font-weight: 500;
	transition: background-color 0.3s;
	font-size: 0.8rem;
}
.download-btn:hover {
	background-color: #dcfce7;
    color: #16a34a;
    padding: 0.4rem;
    border: 1px solid #2dd9b0;
}
.preview-btn {
	flex: 1;
	padding: 0.5rem;
	background-color: #dcfce7;
	color: #16a34a;
	border: 1px solid #2dd9b0;
	border-radius: 5px;
	cursor: pointer;
	text-align: center;
	font-weight: 500;
	transition: all 0.3s;
	font-size: 0.8rem;
}
.preview-btn:hover {
	background-color: var(--primary);
	color: var(--light);
}
      button#viewMoreBtn:hover {
    background-color: #dcfce7 !important;
    color: #16a34a !important;
    cursor: pointer;
    transition: all 0.3s;
}
.categories {
	display: flex
;
	gap: 1rem;
	margin-bottom: 2rem;
	padding-bottom: 0.5rem;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}
.category {
	background-color: white;
	padding: 0.5rem 1rem;
	border-radius: 50px;
	font-size: 0.9rem;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.3s;
}
.category:hover, .category.active {
	background-color: var(--primary);
	color: white;
}
footer {
	background-color: var(--dark);
	color: white;
	padding: 3rem 5%;
	margin-top: 3rem;
}
.footer-content {
	max-width: 1400px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
}
.footer-column h3 {
	margin-bottom: 1rem;
	font-size: 1.2rem;
}
.footer-column ul {
	list-style: none;
}
.footer-column ul li {
	margin-bottom: 0.5rem;
}
.footer-column ul li a {
	color: #ccc;
	text-decoration: none;
	transition: color 0.3s;
}
.footer-column ul li a:hover {
	color: white;
}
.copyright {
	text-align: center;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid #444;
	color: #aaa;
	font-size: 0.9rem;
}
.popular-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: var(--primary);
	color: white;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: bold;
}
.app-card {
	position: relative;
}
#scrollTopBtn {
	display: none;
	/* Hidden by default */
  position: fixed;
	bottom: 30px;
	right: 20px;
	z-index: 99;
	font-size: 18px;
	background-color: var(--primary);
	color: white;
	border: none;
	outline: none;
	padding: 0.7rem 1rem;
	border-radius: 50px;
	cursor: pointer;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	transition: opacity 0.3s ease, transform 0.3s ease;
}
#scrollTopBtn:hover {
	background-color: var(--secondary);
	transform: translateY(-2px);
}
@media (max-width: 768px) {
	.navbar {
	flex-direction: column;
	gap: 1rem;
}
.container {
	padding: 10px;
}
.apps-grid {
	grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.search-bar {
	width: 100%;
}
.hero h1 {
	font-size: 2rem;
}
.button-group {
	flex-direction: column;
}
.download-btn, .preview-btn {
	width: 100%;
}
  .section-title h2 {
    font-size: 28px;
}
.categories {
	gap: 0.3rem;
}
.app-image {
	height: 130px;
}
.app-image img {
	max-width: 65%;
	max-height: 65%;
	border-radius: 15px;
}
.app-info {
	margin-bottom: 10px;
}
.hero {
	padding: 3rem 5%;
}
.popular-badge {
	top: 0px;
	right: 0px;
	padding: 0.22rem 0.5rem;
	border-radius: 0px 5px;
}
  .app-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
  }
.search-bar input {
    padding: 0.7rem 1rem;
}
  .icon-badge {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    max-width: 2rem;
}
}
@keyframes slideIn {
	from {
	opacity: 0;
	transform: translateY(20px);
}
to {
	opacity: 1;
	transform: translateY(0);
}
}
.app-card.slide-in {
	animation: slideIn 0.4s ease forwards;
}