/* Modern styling with animations */
:root {
    --primary-color: #4361ee;
    --primary-light: #4cc9f0;
    --primary-dark: #3a0ca3;
    --secondary-color: #7209b7;
    --accent-color: #f72585;
    --light-color: #ffffff;
    --dark-color: #121212;
    --gray-color: #6c757d;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --card-dark: #334155;
}

body {
    background-color: var(--bg-color);
    color: var(--light-color);
    overflow-x: hidden;
}

.main-content {
    color: var(--light-color);
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    border-radius: 0 0 30% 30% / 0 0 10% 10%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: particleFloat 15s infinite linear;
}

/* Cards and Features */
.feature-card {
    border: none;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.1));
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: rotateY(180deg);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-color);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    color: var(--primary-light);
}

.feature-title {
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.feature-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.4s ease;
}

.feature-card:hover .feature-title::after {
    width: 50px;
}

/* How It Works Section */
.how-it-works-card {
    border: none;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.how-it-works-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: var(--card-dark);
}

.how-it-works-icon {
    color: var(--accent-color);
    transition: all 0.4s ease;
}

.how-it-works-card:hover .how-it-works-icon {
    transform: scale(1.2);
}

/* Platforms Section */
.platform-card {
    border: none;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    position: relative;
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: var(--card-dark);
}

.platform-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.1));
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.platform-card:hover .platform-icon-wrapper {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.2), rgba(114, 9, 183, 0.2));
}

.platform-icon {
    font-size: 2rem;
    color: var(--accent-color);
    transition: all 0.4s ease;
}

.platform-card:hover .platform-icon {
    color: var(--primary-light);
}

.platform-title {
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    color: var(--light-color);
    font-size: 1.1rem;
}

.platform-text {
    color: var(--gray-color);
    margin-bottom: 0;
}

.bg-gradient-subtle {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--card-dark) 100%);
}

/* API Documentation Section */
.api-card {
    border: none;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.api-card-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    padding: 1.5rem;
    border-bottom: none;
}

.api-tabs .nav-link {
    color: var(--light-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.api-tabs .nav-link.active {
    background-color: rgba(247, 37, 133, 0.1);
    color: var(--accent-color);
    border: none;
}

.api-tabs .nav-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.05);
}

.code-block {
    background-color: #0d1117;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    color: #e9ecef;
    max-height: 300px;
    overflow: auto;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    border-radius: 16px;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.cta-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Buttons */
.btn-modern {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-modern:hover::before {
    width: 100%;
}

.btn-primary-modern {
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.4);
}

.btn-primary-modern:hover {
    box-shadow: 0 8px 25px rgba(247, 37, 133, 0.6);
    transform: translateY(-2px);
}

.btn-outline-modern {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-modern:hover {
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

.btn-download-apk {
    background: linear-gradient(90deg, #3DDC84, #32B374);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(61, 220, 132, 0.4);
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
}

.btn-download-apk:hover {
    box-shadow: 0 8px 25px rgba(61, 220, 132, 0.6);
    transform: translateY(-2px);
    color: white;
}

/* Navigation */
.modern-nav {
    position: sticky;
    top: 70px;
    z-index: 100;
    background-color: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 0.5rem;
    margin-bottom: 3rem;
}

.modern-nav .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

.nav-link-modern {
    color: var(--light-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link-modern:hover, 
.nav-link-modern:focus, 
.nav-link-modern.active {
    color: white;
    background: linear-gradient(90deg, rgba(247, 37, 133, 0.2), rgba(114, 9, 183, 0.2));
}

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

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

@keyframes particleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
    }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-section {
        min-height: 60vh;
    }
    .feature-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    .feature-icon {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
        border-radius: 0 0 15% 15% / 0 0 5% 5%;
    }
    .cta-title {
        font-size: 2rem;
    }
    .cta-text {
        font-size: 1rem;
    }
    .feature-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    .feature-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    .hero-section {
        padding: 3rem 0;
        border-radius: 0 0 10% 10% / 0 0 3% 3%;
    }
    .btn-modern {
        padding: 0.5rem 1.5rem;
        font-size: 0.875rem;
    }
    .feature-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    .feature-icon {
        font-size: 1.25rem;
    }
}
