
body {
    font-family: "Fustat", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}


/* Navigation Bar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #667eea;
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
}

.brand-logo i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand:hover .brand-logo {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 10px 15px !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link i {
    font-size: 0.9rem;
}

.navbar-toggler {
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.1);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    color: #667eea;
    font-size: 1.2rem;
}

.btn-login {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white !important;
}

.user-menu {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 25px;
    font-weight: 600;
}

.user-dropdown {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    margin-top: 10px;
    min-width: 200px;
}

.user-dropdown .dropdown-item {
    padding: 12px 20px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
}

.user-dropdown .dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateX(5px);
}

.user-dropdown .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.user-dropdown .dropdown-divider {
    margin: 8px 15px;
    border-color: rgba(102, 126, 234, 0.2);
}

/* Navbar Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

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

.navbar-custom {
    animation: slideDown 0.5s ease-out;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar-custom {
        padding: 12px 0;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 15px;
        margin-top: 15px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .nav-link {
        margin: 5px 0;
        text-align: center;
    }

    .btn-login {
        margin: 10px auto;
        display: block;
        width: fit-content;
    }

    .user-menu {
        margin: 10px 0;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .brand-text {
        font-size: 1.1rem;
    }

    .brand-logo i {
        font-size: 1.5rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image {
    text-align: center;
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Search Section */
.search-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 15px 50px 15px 20px;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.2rem;
}

/* Apps Section */
.apps-section {
    background: rgba(255, 255, 255, 0.95);
    min-height: 60vh;
}

.app-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.app-image-3d {
    perspective: 1000px;
    transition: transform 0.5s ease;
}
.app-image-3d img {
    width: 100%;
    border-radius: 10px;
    transform: rotateY(0deg) rotateX(0deg);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    will-change: transform;
}
.app-card:hover img {
    transform: rotateY(180deg) rotateX(18deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.app-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.app-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.app-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.app-detail-item {
    text-align: center;
}

.app-detail-label {
    display: block;
    color: #999;
    margin-bottom: 5px;
}

.app-detail-value {
    font-weight: 600;
    color: #333;
}

.download-btn, .download-btn-secondary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}
.download-btn-secondary {
    background:linear-gradient(135deg, #F44336, #E91E63)!important;
}
.download-btn:active {
    transform: translateY(0);
}

.download-btn.downloading {
    background: #28a745;
    cursor: not-allowed;
}

/* Rating Stars */
.rating {
    display: flex;
    gap: 2px;
    margin-bottom: 15px;
}

.star {
    color: #ffd700;
    font-size: 1.1rem;
}

.star.empty {
    color: #ddd;
}

/* Footer */
/* Footer */
.footer-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 50px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23footerPattern)"/></svg>');
}

.footer-links-row {
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.footer-link {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.footer-link:hover {
    color: #3498db;
    transform: translateY(-2px);
}

.footer-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: white;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link.facebook {
    background: linear-gradient(135deg, #4267b2, #365899);
}

.social-link.facebook:hover::before {
    background: linear-gradient(135deg, #365899, #2d4373);
}

.social-link.instagram {
    background: linear-gradient(135deg, #e4405f, #c13584, #833ab4);
}

.social-link.instagram:hover::before {
    background: linear-gradient(135deg, #c13584, #833ab4, #5b51d8);
}

.social-link.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-link.twitter:hover::before {
    background: linear-gradient(135deg, #0d8bd9, #0a6fb0);
}

.social-link.telegram {
    background: linear-gradient(135deg, #0088cc, #006bb3);
}

.social-link.telegram:hover::before {
    background: linear-gradient(135deg, #006bb3, #004d80);
}

.footer-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 30px 0;
}

.footer-text {
    color: #bdc3c7;
    font-size: 0.95rem;
    margin: 0;
}

.footer-info {
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.footer-info .fas.fa-heart {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-links {
        justify-content: center;
        gap: 20px;
    }

    .social-links {
        justify-content: center;
        margin-top: 20px;
    }

    .footer-info {
        justify-content: center;
        text-align: center;
        margin-top: 15px;
    }

    .footer-link {
        font-size: 0.9rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-section {
        padding: 40px 0 25px;
    }
}

/* Download Modal */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 20px 25px;
}

.modal-body {
    padding: 30px 25px;
}

.download-progress {
    text-align: center;
}

.progress {
    height: 10px;
    border-radius: 10px;
    background: #f0f0f0;
    margin-top: 20px;
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }

    .hero-image {
        font-size: 8rem;
        margin-top: 2rem;
    }

    .app-details {
        flex-direction: column;
        gap: 10px;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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