/* ===== Chiix Website Styles ===== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #22c55e;
    --dark: #0a0a0f;
    --dark-secondary: #141420;
    --dark-tertiary: #1e1e2e;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-text: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7, #ec4899);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Navigation ===== */
.navbar {
    padding: 1rem 0;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 10px;
    font-size: 14px;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text) !important;
}

.btn-primary {
    background: var(--gradient);
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    border-radius: 10px;
    font-weight: 600;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0.7) 100%);
    z-index: 1;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-buttons .btn {
    padding: 14px 28px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.hero-mockup {
    position: relative;
}

.mockup-img {
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--text-muted);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== Sections ===== */
section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Features Section ===== */
.features-section {
    background: var(--dark-secondary);
}

.feature-card {
    background: var(--dark-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 32px;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary);
}

.feature-icon.purple { background: rgba(139, 92, 246, 0.15); }
.feature-icon.purple i { color: #8b5cf6; }
.feature-icon.green { background: rgba(34, 197, 94, 0.15); }
.feature-icon.green i { color: #22c55e; }
.feature-icon.orange { background: rgba(249, 115, 22, 0.15); }
.feature-icon.orange i { color: #f97316; }
.feature-icon.pink { background: rgba(236, 72, 153, 0.15); }
.feature-icon.pink i { color: #ec4899; }
.feature-icon.cyan { background: rgba(6, 182, 212, 0.15); }
.feature-icon.cyan i { color: #06b6d4; }

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    margin: 0;
}

/* ===== Rave Section ===== */
.rave-section {
    position: relative;
    background: var(--dark);
    overflow: hidden;
}

#rave-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.rave-content {
    position: relative;
    z-index: 1;
}

.rave-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.rave-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.rave-features {
    list-style: none;
    padding: 0;
}

.rave-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1rem;
}

.rave-features i {
    color: var(--accent);
    font-size: 20px;
}

.floating-cards {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    width: 180px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

.floating-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
}

.floating-card.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 30%;
    left: 40%;
    animation-delay: -2s;
    z-index: 2;
}

.floating-card.card-3 {
    top: 10%;
    right: 10%;
    animation-delay: -4s;
}

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

/* ===== Screenshots Section ===== */
.screenshots-section {
    background: var(--dark-secondary);
}

.screenshots-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.screenshot-item {
    display: none;
    text-align: center;
}

.screenshot-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.screenshot-item img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.screenshot-label {
    margin-top: 16px;
    font-size: 1rem;
    color: var(--text-muted);
}

.screenshot-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.screenshot-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.screenshot-dot.active {
    background: var(--primary);
    width: 36px;
    border-radius: 6px;
}

/* ===== Download Section ===== */
.download-section {
    background: var(--dark);
}

.download-card {
    background: var(--dark-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
}

.download-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, var(--dark-tertiary) 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.download-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.download-icon i {
    font-size: 40px;
    color: var(--text);
}

.download-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.download-card p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.download-version {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.btn-download {
    width: 100%;
    padding: 14px 24px;
}

/* ===== About Section ===== */
.about-section {
    background: var(--dark-secondary);
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.tech-stack {
    margin-top: 40px;
}

.tech-stack h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.developer-card {
    background: var(--dark-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
}

.developer-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.developer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.developer-avatar i {
    font-size: 60px;
    color: white;
}

.developer-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.developer-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.developer-bio {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.developer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.dev-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dev-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-muted);
    max-width: 300px;
}

.footer h5 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.05);
    margin: 40px 0 24px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .floating-cards {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        justify-content: space-between;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}
