:root {
    --primary-color: #744fb8;
    --secondary-color: #ba6c41;
    --accent-gradient: linear-gradient(135deg, #744fb8 0%, #ba6c41 100%);
    --white: #ffffff;
    --black: #000000;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-body: linear-gradient(135deg, #f5f3ff 0%, #fff7ed 100%);
    --card-bg: #ffffff;
    --card-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: var(--primary-color);
    color: var(--white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 5px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background: var(--bg-body);
    min-height: 100vh;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Wrapper to center the gradient h2 correctly if needed, or rely on text-align center of parent */
.section-header h2 {
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

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

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.hero-tagline {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 700;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    padding: 12px 0;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.announcement-bar p {
    margin: 0;
}

.announcement-bar a {
    color: #ba6c41; /* Secondary accent */
    font-weight: bold;
    margin-left: 5px;
    text-decoration: underline;
}

/* Header */
.main-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

.logo img {
    height: 60px; /* Adjust based on logo */
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    font-size: 1rem;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--black);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 150px;
    background-image: url('../images/how-it-works-background-2.jpg'); /* Or specific hero image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-small-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.hero-rating {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 30px;
    gap: 10px;
}

.hero-rating .stars {
    color: #ffd700;
}

.hero-rating .rating-text {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Features / How it works */
.how-it-works {
    background: var(--bg-body);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.step-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(116, 79, 184, 0.3);
}

/* Features Grid (Occasions) - REMOVED or Reused styles */
.occasions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.occasion-item {
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    height: 300px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.occasion-item:hover {
    transform: translateY(-5px);
}

.occasion-content {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    width: 100%;
    padding: 30px;
    color: var(--white);
}

.occasion-content h3 {
    color: var(--white);
    margin-bottom: 5px;
}

.occasion-content p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Testimonials */
.testimonials {
    background-color: #ffffff; /* Slight contrast */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #f9fafb;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}

.testimonial-card .stars {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 20px;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
    background: var(--bg-body);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-toggle {
    background: transparent;
    border: none;
    width: 100%;
    padding: 20px 25px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    transition: background-color 0.3s;
}

.faq-toggle:hover {
    background-color: rgba(0,0,0,0.02);
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: var(--primary-color);
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.faq-icon::before {
    width: 12px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 12px;
}

/* Open state styles */
.faq-toggle[aria-expanded="true"] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-content {
    padding: 0 25px 25px;
    color: var(--text-muted);
}

.faq-contact-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.faq-contact-text a {
    color: var(--primary-color);
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: var(--accent-gradient);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta-section h2 {
    color: var(--white);
    -webkit-text-fill-color: initial; /* Reset gradient text */
    background: none;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.cta-section .btn {
    background: var(--white);
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background: var(--black);
    color: var(--white);
}

/* Footer */
.main-footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 30px;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .main-nav a {
        font-size: 1.2rem;
    }

    .main-nav.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 25px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-logo, .logo-2 {
        margin: 0 auto 20px;
    }
    
    .hero {
        height: auto;
        padding: 150px 0 100px;
    }
}

/* Custom Button Styles */
.btn-create-song {
    background: #000000;
    color: #FFFFFF !important;
}

.btn-create-song:hover {
    background: var(--accent-gradient);
    color: #FFFFFF !important;
    box-shadow: 0 4px 15px rgba(116, 79, 184, 0.4);
}

.btn-center-custom {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

/* Video Library Section */
.video-slider-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.video-slider-section h2 {
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: none;
    -webkit-text-fill-color: initial;
    -webkit-background-clip: border-box;
    background-clip: border-box;
}

.video-section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.95; /* High opacity for brand color dominance */
    z-index: 1;
}

.video-slider-section .container {
    position: relative;
    z-index: 2;
}

/* Video Grid Styles */
.video-grid-container {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-grid.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.video-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-item {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: #000;
}

.video-testimonial {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
}

.video-testimonial p {
    color: white;
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    line-height: 1.4;
    margin: 0;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #744fb8; /* Purple */
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(116, 79, 184, 0.4);
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 2;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #5e3d99;
}

.play-btn svg {
    width: 32px;
    height: 32px;
    margin-left: 4px; /* Optical center adjustment for play icon */
}

@media (max-width: 1400px) {
    .video-grid.grid-5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .video-grid,
    .video-grid.grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .video-grid,
    .video-grid.grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .video-grid,
    .video-grid.grid-5 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .video-grid {
        gap: 15px;
    }
}

/* Scroll to Top Button */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.3s;
    align-items: center;
    justify-content: center;
}

#scrollToTopBtn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

#scrollToTopBtn.show {
    display: flex;
    animation: fadeIn 0.3s;
}

/* Text Content for Privacy/Terms */
.text-content {
    max-width: 800px;
    margin: 0 auto;
}

.text-content h2 {
    margin-top: 2rem;
    text-align: left; /* Override center alignment */
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--text-main);
    display: block;
}

.text-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.text-content li {
    margin-bottom: 0.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(116, 79, 184, 0.1);
}

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

/* Track Order Page Styles */
.track-order-alert {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.track-order-alert-icon {
    color: #16a34a;
    background-color: #dcfce7;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.track-order-alert-content {
    text-align: left;
}

.track-order-alert-content h2 {
    font-size: 1.1rem;
    color: #14532d;
    margin-bottom: 5px;
    text-align: left;
    background: none;
    -webkit-text-fill-color: initial;
    font-family: var(--font-body);
}

.track-order-alert-content p {
    color: #166534;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.track-order-alert-content a {
    color: #15803d;
    font-weight: 600;
    text-decoration: underline;
}

.track-order-form-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    max-width: 500px;
    margin: 0 auto 40px;
}

/* Reviews Page Styles */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-main);
}

.stat-item svg {
    width: 24px;
    height: 24px;
}

.reviews-header-cta {
    margin-top: 30px;
}

