/* ==========================================================================
   Global Styles
   ========================================================================== */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --card-bg: #1e293b;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light) !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    color: var(--primary-color);
}

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

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

.navbar .btn-primary {
    background: var(--gradient-1);
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Logo Styling */
.navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 0.75rem;
    vertical-align: middle;
    transition: all 0.3s ease;
    /* Apply gradient colorization */
    filter: brightness(0) saturate(100%) invert(58%) sepia(70%) saturate(2500%) hue-rotate(230deg) brightness(100%) contrast(95%);
    /* Add a subtle glow */
    drop-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}

.navbar-brand:hover .navbar-logo {
    filter: brightness(0) saturate(100%) invert(68%) sepia(90%) saturate(3000%) hue-rotate(230deg) brightness(105%) contrast(100%) drop-shadow(0 0 12px rgba(129, 140, 248, 0.8));
    transform: rotate(-5deg) scale(1.05);
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-right: 0.5rem;
    vertical-align: middle;
    filter: brightness(0) saturate(100%) invert(58%) sepia(70%) saturate(2500%) hue-rotate(230deg) brightness(100%) contrast(95%);
    opacity: 0.9;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 80px;
    overflow: hidden;
}

.hero-logo-badge {
    display: inline-block;
    animation: fadeInDown 0.8s ease;
}

.hero-brand-logo {
    height: 144px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(58%) sepia(70%) saturate(2500%) hue-rotate(230deg) brightness(100%) contrast(95%);
    drop-shadow: 0 4px 20px rgba(102, 126, 234, 0.6);
    animation: float 6s ease-in-out infinite;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
    z-index: -1;
}

.hero-content h1 {
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
}

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

.hero-content .lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.btn-primary {
    background: var(--gradient-1);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-outline-light {
    border: 2px solid var(--text-muted);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--dark-bg);
    border-color: var(--text-light);
    transform: translateY(-3px);
}

.hero-stats {
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.hero-stats .stat h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-stats .stat p {
    font-size: 0.9rem;
    margin: 0;
}

.floating-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

.code-preview {
    background: var(--darker-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0;
    color: #a5d6ff;
    font-size: 0.95rem;
    line-height: 1.8;
    overflow-x: auto;
}

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

/* ==========================================================================
   Features Section
   ========================================================================== */

.features-section {
    background: var(--darker-bg);
    padding: 6rem 0;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-list-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    height: 100%;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
}

.feature-list-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-list-card ul li {
    padding: 0.5rem 0;
    color: var(--text-muted);
}

.feature-list-card ul li i {
    color: var(--primary-color);
}

/* ==========================================================================
   Screenshots Section
   ========================================================================== */

.screenshots-section {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.carousel {
    max-width: 900px;
    margin: 0 auto;
}

.screenshot-placeholder {
    background: var(--card-bg);
    border-radius: 16px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(148, 163, 184, 0.1);
}

.placeholder-content {
    text-align: center;
    color: var(--text-muted);
}

.placeholder-content i {
    color: var(--primary-color);
    opacity: 0.5;
}

.placeholder-content h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

.carousel-indicators button {
    background-color: var(--primary-color);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials-section {
    background: var(--darker-bg);
    padding: 6rem 0;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    height: 100%;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.stars i {
    color: #fbbf24;
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.author-info h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.cta-card {
    background: var(--gradient-1);
    padding: 4rem 3rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.cta-card h2,
.cta-card p {
    position: relative;
    z-index: 1;
}

.cta-card .btn-primary {
    background: white;
    color: var(--primary-dark);
    font-size: 1.1rem;
    padding: 1rem 3rem;
}

.cta-card .btn-primary:hover {
    background: var(--text-light);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.footer-brand {
    font-size: 1.2rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    display: inline-block;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
    .hero-section {
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .floating-card {
        margin-top: 3rem;
    }

    .feature-card,
    .feature-list-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .lead {
        font-size: 1.1rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .screenshot-placeholder {
        height: 300px;
    }

    .cta-card {
        padding: 3rem 2rem;
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-muted {
    color: var(--text-muted) !important;
}

section {
    position: relative;
}

/* Smooth scroll offset for fixed navbar */
section[id]::before {
    content: '';
    display: block;
    height: 80px;
    margin-top: -80px;
    visibility: hidden;
}
