/* ==========================================================================
   NebulaTerm AI - Custom Styles
   ========================================================================== */

:root {
    /* Color Palette - No Purple! Light Theme */
    --primary-blue: #0066ff;
    --primary-teal: #00d4aa;
    --primary-green: #00c853;
    --light-bg: #f8f9fa;
    --lighter-bg: #ffffff;
    --card-bg: #ffffff;
    --card-border: rgba(0, 102, 255, 0.1);
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-muted: #718096;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #00d4aa 100%);
    --gradient-secondary: linear-gradient(135deg, #00c853 0%, #00d4aa 100%);
    --gradient-accent: linear-gradient(135deg, #0066ff 0%, #00c853 100%);
    --gradient-bg: linear-gradient(135deg, #e6f3ff 0%, #f0fdf9 100%);
}

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

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--light-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

a {
    transition: all 0.3s ease;
}

section {
    position: relative;
    padding: 100px 0;
}

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

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

#mainNav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#mainNav.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

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

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-teal) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-gradient {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00d4aa 0%, #0066ff 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
    color: white;
}

.btn-gradient:hover::before {
    left: 0;
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.3);
}

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

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 170, 0.1) 0%, transparent 50%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 50px;
    color: var(--primary-teal);
    font-size: 0.9rem;
    font-weight: 600;
    animation: fadeInUp 0.8s ease;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    animation: fadeInUp 1.2s ease;
}

.hero-stats {
    animation: fadeInUp 1.4s ease;
}

.stat-item h3 {
    color: var(--primary-teal);
    font-size: 2rem;
}

.hero-image-wrapper {
    position: relative;
    animation: fadeInRight 1s ease;
}

.hero-screenshot {
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
    animation: float 4s ease-in-out infinite;
}

.element-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.element-2 {
    bottom: 20%;
    left: 5%;
    animation-delay: 1s;
    background: var(--gradient-secondary);
}

.element-3 {
    top: 40%;
    right: -5%;
    animation-delay: 2s;
    background: var(--gradient-accent);
}

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

.scroll-indicator a {
    color: var(--text-secondary);
    font-size: 2rem;
    text-decoration: none;
}

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

.features-section {
    background: var(--lighter-bg);
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-teal);
    box-shadow: 0 20px 60px rgba(0, 212, 170, 0.2);
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-tech .badge {
    margin: 5px 5px 5px 0;
    padding: 8px 15px;
    font-weight: 500;
    border: none;
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #0066ff, #0052cc);
}

.bg-gradient-green {
    background: linear-gradient(135deg, #00c853, #009624);
}

.bg-gradient-teal {
    background: linear-gradient(135deg, #00d4aa, #00a785);
}

.ai-highlight-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.ai-highlight-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    font-size: 1.1rem;
}

.ai-providers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.provider-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto;
    animation: pulse 2s ease-in-out infinite;
}

.provider-logo:nth-child(2) {
    background: var(--gradient-secondary);
    animation-delay: 0.5s;
}

.provider-logo:nth-child(3) {
    background: var(--gradient-accent);
    animation-delay: 1s;
}

.provider-logo:nth-child(4) {
    background: linear-gradient(135deg, #00a785 0%, #0066ff 100%);
    animation-delay: 1.5s;
}

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

.screenshots-section {
    background: var(--light-bg);
}

.screenshot-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.screenshot-card img {
    transition: transform 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98), transparent);
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 1px solid rgba(0, 102, 255, 0.1);
}

.screenshot-card:hover .screenshot-overlay {
    transform: translateY(0);
}

.screenshot-card:hover img {
    transform: scale(1.05);
}

.screenshot-card:hover {
    transform: translateY(-5px);
}

/* ==========================================================================
   Download Section
   ========================================================================== */

.download-section {
    background: var(--lighter-bg);
}

.version-badge {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 50px;
    color: var(--primary-teal);
    font-weight: 600;
}

.download-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.download-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-teal);
    box-shadow: 0 20px 60px rgba(0, 212, 170, 0.2);
}

.download-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto 20px;
    transition: transform 0.4s ease;
}

.download-card:hover .download-icon {
    transform: scale(1.1) rotate(-5deg);
}

.download-info {
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-section {
    background: var(--light-bg);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-feature-item {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.about-feature-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-teal);
}

.about-feature-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.about-feature-item:nth-child(2) .about-feature-icon {
    background: var(--gradient-secondary);
}

.about-feature-item:nth-child(3) .about-feature-icon {
    background: var(--gradient-accent);
}

.about-feature-item:nth-child(4) .about-feature-icon {
    background: linear-gradient(135deg, #00a785 0%, #0066ff 100%);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-section {
    background: var(--lighter-bg);
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-teal);
    box-shadow: 0 20px 60px rgba(0, 212, 170, 0.2);
}

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

.contact-card a {
    color: var(--primary-teal);
    font-weight: 600;
    text-decoration: none;
}

.contact-card a:hover {
    color: var(--primary-blue);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

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

.footer {
    background: var(--light-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

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

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

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

    .hero-image-wrapper {
        margin-top: 50px;
    }

    .floating-element {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .ai-highlight-card {
        padding: 30px;
    }

    .ai-providers {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 30px;
    }

    section {
        padding: 60px 0;
    }
}

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

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .download-card {
        padding: 30px;
    }

    .about-feature-item {
        flex-direction: column;
        text-align: center;
    }

    .ai-providers {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .provider-logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

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

    .display-4 {
        font-size: 2rem;
    }

    .hero-stats h3 {
        font-size: 1.5rem;
    }

    .floating-element {
        display: none;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.smooth-scroll {
    scroll-behavior: smooth;
}
