@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #8e2de2;
    --primary-light: #4a00e0;
    --secondary: #ff00cc;
    --accent: #33ccff;
    --bg-dark: #0f0c29;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

#three-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Background Gradients */
.bg-blob {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.blob-1 { top: -100px; right: -100px; background: radial-gradient(circle, var(--primary) 0%, transparent 70%); }
.blob-2 { bottom: -100px; left: -100px; background: radial-gradient(circle, var(--secondary) 0%, transparent 70%); }
.blob-3 { top: 40%; left: 30%; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #b0b0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text {
    background: linear-gradient(45deg, var(--accent), var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 20, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        margin: 15px 0;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

nav.scrolled {
    padding: 15px 5%;
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #fff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    width: 320px;
    height: 650px;
    background: #000;
    border-radius: 50px;
    padding: 12px;
    border: 8px solid #333;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5);
    position: relative;
    transform: rotate(-5deg);
    transition: var(--transition);
}

.phone-mockup:hover {
    transform: rotate(0deg) scale(1.05);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    border-radius: 38px;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 10px 20px rgba(142, 45, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(142, 45, 226, 0.5);
}

.btn-glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: #fff;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* Features Section */
.features {
    padding: 100px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.activity-item {
    cursor: default;
    border: 1px solid transparent;
}

.activity-item:hover {
    border-color: var(--primary);
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.08);
}

.badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* App Gallery */
.gallery {
    padding: 100px 5%;
    background: rgba(0, 0, 0, 0.2);
}

.gallery-container {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none;
}

.gallery-container::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    min-width: 280px;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
footer {
    padding: 80px 5% 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo h3 {
    margin-bottom: 20px;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 160px;
    }
    .hero-content {
        margin-bottom: 60px;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .phone-mockup {
        width: 280px;
        height: 570px;
        transform: rotate(0);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Subpage Styles */
.sub-hero {
    padding: 160px 5% 60px;
    text-align: center;
}

.sub-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.content-section {
    padding: 60px 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.content-card {
    padding: 60px;
    margin-bottom: 40px;
}

.content-card h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-card h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: #fff;
    -webkit-text-fill-color: initial;
    background: none;
}

.content-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.content-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.content-card ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.content-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.back-btn {
    margin-bottom: 40px;
    display: inline-block;
}

@media (max-width: 768px) {
    .content-card {
        padding: 30px;
    }
    .sub-hero h1 {
        font-size: 2.5rem;
    }
}
