/* ===== VARIABLES & RESET ===== */
:root {
    --primary: #450693;
    --secondary: #8C00FF;
    --accent: #FF3F7F;
    --highlight: #FFC400;
    --light: #f8f9fa;
    --dark: #1a1a2e;
    --gray-text: #666;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER STYLES ===== */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    top: 0;
    z-index: 1000;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.2;
}

header::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: var(--highlight);
    border-radius: 50%;
    opacity: 0.2;
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--highlight);
    box-shadow: 0 0 10px rgba(255, 196, 0, 0.5);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
}

/* Desktop Navigation */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.desktop-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    background: transparent;
    transform-origin: center;
}

.desktop-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.desktop-nav a.active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    animation: pulseActive 0.3s ease-out;
}

.desktop-nav a.active.reset-state {
    animation: resetButton 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s, opacity 0.6s;
}

.desktop-nav a:active::after {
    width: 200px;
    height: 200px;
    opacity: 0.4;
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s;
    border-radius: 2px;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    z-index: 1000;
    transition: all 0.3s;
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.sidebar.active {
    right: 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 15px;
}

.sidebar-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 12px 15px;
    border-radius: 6px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    background: transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: var(--highlight);
}

.sidebar-nav a.active.reset-state {
    animation: resetButton 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 10rem 0 5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    padding-right: 2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.cta-button {
    background-color: var(--highlight);
    color: var(--primary);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(255, 196, 0, 0.3);
}

.cta-button:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 63, 127, 0.4);
}

/* Coin Animation */
.coin-animation {
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    animation: float 3s infinite ease-in-out;
}

.coin-animation img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 196, 0, 0.7));
    transition: transform 0.5s ease;
}

.coin-animation:hover img {
    transform: rotate(15deg) scale(1.05);
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 6rem 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-1 .feature-icon {
    background: rgba(69, 6, 147, 0.1);
    color: var(--primary);
}

.feature-2 .feature-icon {
    background: rgba(140, 0, 255, 0.1);
    color: var(--secondary);
}

.feature-3 .feature-icon {
    background: rgba(255, 63, 127, 0.1);
    color: var(--accent);
}

.feature-4 .feature-icon {
    background: rgba(255, 196, 0, 0.1);
    color: var(--highlight);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* ===== COIN SECTION ===== */
.coin-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
}

.coin-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.coin-text-content {
    flex: 1;
    padding-right: 2rem;
}

.coin-visual {
    flex: 1;
    text-align: center;
}

.coin-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 6rem 0;
    background-color: var(--light);
    text-align: center;
}

.cta-box {
    background: white;
    border-radius: 20px;
    padding: 4rem 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.cta-box h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.cta-box p {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== DOWNLOAD OPTIONS ===== */
.download-options {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(69, 6, 147, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(69, 6, 147, 0.4);
    background: var(--secondary);
}

.download-btn i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--highlight);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--highlight);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #aaa;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseActive {
    0% {
        transform: scale(1);
        background: rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.08);
        background: rgba(255, 255, 255, 0.3);
    }
    100% {
        transform: scale(1.05);
        background: rgba(255, 255, 255, 0.25);
    }
}

@keyframes resetButton {
    0% {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    }
    40% {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(1.02);
        box-shadow: 0 3px 10px rgba(255, 255, 255, 0.1);
    }
    70% {
        background: rgba(255, 255, 255, 0.08);
        transform: scale(1);
        box-shadow: 0 1px 5px rgba(255, 255, 255, 0.05);
    }
    100% {
        background: transparent;
        transform: scale(1);
        box-shadow: none;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 992px) {
    .hero-content, .coin-content {
        flex-direction: column;
    }
    
    .hero-text, .coin-text-content {
        padding-right: 0;
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .coin-animation {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .coin-animation {
        width: 240px;
        height: 240px;
    }
    
    .coin-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .download-options {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .coin-animation {
        width: 200px;
        height: 200px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}