/* 
    Product: Turbine - Admin & Dashboard Template
    File: Preview Styles
    Version: 1.0.0
*/

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

:root {
    --primary-color: #845adf;
    --primary-rgb: 132, 90, 223;
    --secondary-color: #23b7e5;
    --text-color: #a3aed1;
    --heading-color: #f3f6ff;
    --bg-color: #0b1120;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--heading-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Navigation --- */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(15px);
    border-color: var(--border-color);
    height: 70px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 35px;
    vertical-align: middle;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    background: #7146ce;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--heading-color);
}

.btn-outline:hover {
    background: var(--card-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    padding: 180px 0 10px;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(50px);
}

.hero-subtitle {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #a3aed1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-color);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-preview {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    padding: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.hero-preview img {
    width: 100%;
    border-radius: 12px;
}

/* --- Version Selector --- */
.version-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.version-flex {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.version-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.version-card:hover,
.version-card.active {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-color);
}

.version-card i {
    font-size: 32px;
    color: var(--primary-color);
}

.version-card h4 {
    margin: 0;
    font-size: 18px;
}

/* --- Demo Grid --- */
.section-padding {
    padding: 100px 0;
}

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

.section-title h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.demo-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    group;
}

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

.demo-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.demo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.demo-card:hover .demo-img img {
    transform: scale(1.1);
}

.demo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--primary-rgb), 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.demo-card:hover .demo-overlay {
    opacity: 1;
}

.demo-info {
    padding: 20px;
    text-align: center;
}

.demo-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.demo-info p {
    font-size: 14px;
    color: var(--text-color);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 10;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(10deg);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* --- Why Turbine Section --- */
.why-turbine-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(var(--primary-rgb), 0.03) 50%, transparent 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.why-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition);
}

.why-item:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
    background: rgba(var(--primary-rgb), 0.05);
}

.why-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: var(--transition);
}

.why-item:hover .why-icon {
    background: var(--primary-color);
    color: #fff;
}

.why-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--heading-color);
}

.why-content p {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.5;
}

/* --- Theme Customizer Showcase --- */
.customizer-section {
    padding: 100px 0;
    background: rgba(132, 90, 223, 0.02);
}

.customizer-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}

.customizer-text {
    flex: 1;
}

.customizer-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.customizer-mockup {
    width: 350px;
    background: #1a2234;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

.mockup-header {
    padding: 15px 20px;
    background: #232c40;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-header h5 {
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--heading-color);
}

.mockup-content {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.custom-group {
    margin-bottom: 25px;
}

.custom-group label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.custom-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.opt-btn {
    flex: 1;
    min-width: 60px;
    padding: 8px;
    background: #111827;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    font-size: 11px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.opt-btn.active {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.opt-btn i {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.color-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.dot.active {
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.bg-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.thumb {
    height: 40px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 1px solid transparent;
}

.thumb.active {
    border-color: var(--primary-color);
}

/* --- Support Section --- */
.support-section {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.support-card {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.02) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 24px;
    padding: 60px 40px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.support-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 50px rgba(var(--primary-rgb), 0.15);
}

.support-icon {
    width: 90px;
    height: 90px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.4);
}

.support-card h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.support-card p {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 35px;
    max-width: 600px;
}

.support-email-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.support-email-box i {
    color: var(--primary-color);
    font-size: 20px;
}

.support-email-box span {
    font-size: 20px;
    font-weight: 600;
    color: var(--heading-color);
}

/* --- Stats --- */
.stats-section {
    background: linear-gradient(to right, rgba(var(--primary-rgb), 0.1), transparent);
    padding: 80px 0;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    text-align: center;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item h2 {
    font-size: 48px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.stat-item p {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color);
}

/* --- Footer --- */
footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.copyright {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    font-size: 14px;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease forwards;
}

/* --- Scroll To Top --- */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
    border: none;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(20px);
}

#scrollToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTop:hover {
    background: #7146ce;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.5);
}

/* Responsive */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 48px;
    }

    .nav-links {
        display: none;
    }
}

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

    .version-flex {
        flex-direction: column;
        align-items: center;
    }

    .demo-grid {
        grid-template-columns: 1fr;
    }
}