:root {
    --bg-main: #0a0a0c;
    --accent-primary: #a142f4;
    --accent-secondary: #00f2ff;
    --accent-gold: #c5a059;
    --accent-gold-light: #e6c17a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --font-main: 'Outfit', 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-wrap: break-word;
    position: relative;
}

/* Background Effects */
/* Vibrant & Dynamic Background Revamp */
.bg-gradient-spheres {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #050507;
    /* Slightly darker for better contrast */
}

/* Moving Glowing Blobs */
.bg-gradient-spheres::before,
.bg-gradient-spheres::after,
.bg-sphere-3 {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    /* Increased opacity for vibrancy */
    z-index: -1;
    animation: blobBounce 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.bg-gradient-spheres::before {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.bg-gradient-spheres::after {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: -5%;
    right: -5%;
    animation-delay: -5s;
    animation-duration: 30s;
}

.bg-sphere-3 {
    width: 450px;
    height: 450px;
    background: #ff007f;
    /* Exotic pink for extra vibration */
    top: 40%;
    left: 40%;
    opacity: 0.12;
    animation-delay: -10s;
    animation-duration: 35s;
}

@keyframes blobBounce {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(10%, 15%) scale(1.2);
    }

    66% {
        transform: translate(-15%, 5%) scale(0.8);
    }

    100% {
        transform: translate(5%, -10%) scale(1.1);
    }
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black, transparent 90%);
    opacity: 0.6;
}

/* Base Components */
header {
    height: 100px;
    /* Increased from 80px */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 12, 0.7);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 70%;
}

.logo span {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.site-logo-img {
    height: auto;
    max-height: 85px;
    /* Increased from 70px which was increased from 50px */
    max-width: 280px;
    /* Increased from 250px */
    width: auto;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
    border-radius: 8px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--text-primary);
}

.btn-login {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-login-outline {
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.btn-login-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-primary {
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(161, 66, 244, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 242, 255, 0.4);
}

/* Sections */
section {
    padding: 100px 10%;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 150px 10% 50px;
    position: relative;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -3px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-group {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.6s both;
}

.badge {
    padding: 8px 16px;
    background: rgba(161, 66, 244, 0.1);
    border: 1px solid rgba(161, 66, 244, 0.3);
    border-radius: 50px;
    color: var(--accent-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease;
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 35px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px -20px rgba(161, 66, 244, 0.2);
}



/* FAQ */
.faq-section {
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: left;
}

.faq-header {
    width: 100%;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: transparent;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.faq-icon-wrapper {
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item-active .faq-icon-wrapper {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 30px;
}

.faq-item-active .faq-content {
    max-height: 500px;
    padding-bottom: 30px;
}

/* Filters */
.category-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 50px;
    overflow-x: auto;
    padding: 10px 5px 20px;
    scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.4s;
}

.category-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff !important;
    border: none;
}

footer {
    padding: 60px 10%;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Utils */
.responsive-h2 {
    font-size: 3.5rem;
}

.desktop-only {
    display: inline-flex;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries - Ordered */

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .responsive-h2 {
        font-size: 2.8rem !important;
    }
}

@media (max-width: 968px) {
    .desktop-only {
        display: none !important;
    }

    .responsive-h2 {
        font-size: 2.2rem !important;
    }

    .category-filters {
        justify-content: flex-start;
        padding-left: 20px;
    }
}

@media (max-width: 768px) {
    header {
        height: 85px;
        /* Increased from 70px */
        padding: 0 15px;
    }

    header nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
    }

    body {
        padding-bottom: 100px;
    }

    .hero {
        padding: 110px 5% 50px;
        min-height: auto;
        justify-content: flex-start;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .cta-group>a {
        width: 100%;
        text-align: center;
    }

    .glass-card {
        padding: 20px !important;
        border-radius: 20px;
    }

    .section,
    section {
        padding: 60px 20px !important;
    }

    .premium-feature-item {
        flex-direction: column;
        text-align: center;
        padding: 20px !important;
    }

    .responsive-h2 {
        font-size: 1.8rem !important;
    }

    .templates>div {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .template-card {
        grid-column: 1 !important;
    }

    .faq-section {
        padding: 60px 20px !important;
    }

    .faq-header {
        padding: 20px;
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    header .logo {
        font-size: 1.1rem;
    }

    header .logo span span {
        display: none;
    }

    .site-logo-img {
        max-width: 220px;
        /* Increased from 200px */
        max-height: 60px;
        /* Increased from 50px */
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .responsive-h2 {
        font-size: 1.5rem !important;
    }

    .cta-group {
        gap: 10px;
    }

    .category-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    /* Prevent any accidental overflow */
    .hero,
    section,
    footer {
        max-width: 100vw;
        overflow-x: hidden;
        padding: 60px 20px !important;
    }
}

/* Mobile Menu Implementation Classes */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #0a0a0c;
    z-index: 1001;
    transition: 0.4s;
    padding: 20px;
    border-left: 1px solid var(--glass-border);
    visibility: hidden;
}

.mobile-menu-drawer.active {
    right: 0;
    visibility: visible;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}