/* Global Styles & Variables */
:root {
    --bg-color: #0a0a1a;
    --text-color: #FFFFFF;
    --accent-color: #1a1a3a;
    --highlight-color: #7c3aed;
    --highlight-color-alt: #6366f1;
    --secondary-text: #a8a8d0;
    --card-bg: rgba(15, 15, 35, 0.6);
    --card-border: rgba(124, 58, 237, 0.3);
    --font-main: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #16213e 100%);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--highlight-color) 0%, var(--highlight-color-alt) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
    background: linear-gradient(135deg, var(--highlight-color-alt) 0%, var(--highlight-color) 100%);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--highlight-color);
    color: var(--highlight-color);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    border-color: var(--highlight-color-alt);
}

.section {
    padding: 2.5rem 0;
}

.hero {
    padding: 8rem 0 3rem 0;
    display: flex;
    align-items: center;
    min-height: 50vh;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.hero h1 {
    margin-bottom: 0.5rem;
}

.hero p {
    max-width: 600px;
    margin-bottom: 0;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.text-center {
    text-align: center;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* Card Styles */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 2rem;
    transition: all var(--transition-speed);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card>* {
    position: relative;
    z-index: 2;
}



.card:hover {
    border-color: var(--highlight-color);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.4), 0 0 50px rgba(99, 102, 241, 0.2);
    transform: translateY(-5px);
    background: rgba(20, 20, 45, 0.8);
}



.card-emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

/* Feature Cards Specifics */
.features .card {
    text-align: center;
    align-items: center;
}

/* Template Preview Card (Homepage) */
.template-preview-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid var(--card-border);
}

.template-preview-card.card {
    padding: 0;
}

.template-preview-card .template-img {
    position: relative;
    overflow: hidden;
}



.template-preview-card:hover {
    border-color: var(--highlight-color);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.5), 0 0 60px rgba(99, 102, 241, 0.3);
    transform: translateY(-8px) scale(1.02);
}

.template-img-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Template Card Specifics (Templates Page) */
.template-card {
    overflow: hidden;
    padding: 0;
    /* Reset padding for image */
}

.template-img {
    height: 200px;
    background: rgba(20, 20, 45, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--card-border);
    overflow: hidden;
}

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

.template-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.template-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

.template-body li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.template-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

.price-tag {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--highlight-color);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.template-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-play {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    color: #3b82f6;
    transition: all var(--transition-speed);
}

.btn-play:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.btn-play svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Contact Card Specifics */
.contact-grid {
    max-width: 800px;
    margin: 0 auto;
}

/* Marquee / Testimonials */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    background: linear-gradient(to right, rgba(10, 10, 26, 0.95), transparent 10%, transparent 90%, rgba(10, 10, 26, 0.95));
}

.marquee-content {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.5rem;
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--highlight-color);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.6), 0 0 50px rgba(99, 102, 241, 0.4);
    background: rgba(20, 20, 45, 0.9);
}

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

.testimonial-pfp {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--highlight-color) 0%, var(--highlight-color-alt) 100%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-info h4 {
    font-size: 1rem;
    margin: 0;
    color: #fff;
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--secondary-text);
}

.testimonial-stars {
    color: #FFD700;
    font-size: 0.9rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 1rem 2rem;
    background-color: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: inline;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--highlight-color);
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Mobile Navbar Fixes */
    .navbar {
        padding: 0.8rem 1.2rem;
        /* Reduce padding */
        width: 95%;
        /* Slightly wider on mobile */
    }

    .logo {
        gap: 0.3rem;
        /* Reduce gap */
    }

    .logo-img {
        height: 24px;
        /* Smaller logo image */
    }

    .logo-text {
        font-size: 1rem;
        /* Smaller text */
    }

    .nav-links {
        display: none;
        /* Hidden by default on mobile */
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 26, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        border: 1px solid rgba(124, 58, 237, 0.3);
        border-radius: 16px;
        animation: slideDown 0.3s ease-out forwards;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Scroll Animation Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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