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

:root {
    --primary-color: #FFFFFF;
    --secondary-color: #F8F9FA;
    --accent-color: #667eea; /* Updated to match subscription page */
    --accent-hover-color: #764ba2; /* Updated to match subscription page */
    --text-color: #212529;
    --text-muted-color: #6C757D;
    --card-border-color: #DEE2E6;
    --shadow-color: rgba(0, 0, 0, 0.075);
    --hero-text-color: #FFFFFF;
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* New gradient variable */
}

html {
    scroll-behavior: smooth;
}

body.landing-page {
    font-family: 'Poppins', sans-serif;
    background: #fafbfc;
    color: var(--text-color);
    margin: 0;
    padding-top: 80px;
    overflow-x: hidden;
    display: block;
    justify-content: initial;
    align-items: initial;
    min-height: 100vh;
    line-height: 1.6;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 80px;
    display: flex;
    align-items: center;
}

.landing-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.navbar-brand span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a, .nav-menu a {
    color: var(--text-muted-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-menu a:hover {
    color: var(--accent-color);
}

.nav-links a.active {
    color: var(--accent-color);
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu a {
    margin-left: 1.5rem;
}

/* Hero Banner */
.hero {
    background: var(--gradient-bg);
    color: var(--hero-text-color);
    text-align: center;
    padding: 6rem 2rem;
    border-radius: 24px;
    margin: 3rem 0 4rem 0;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Sections */
section {
    padding: 8rem 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(102, 126, 234, 0.2) 20%, 
        rgba(102, 126, 234, 0.3) 50%, 
        rgba(102, 126, 234, 0.2) 80%, 
        transparent 100%);
}

section:last-child::after {
    display: none;
}

section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #2d3748;
    letter-spacing: -0.02em;
}

section .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #718096;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-weight: 400;
}

/* Section container for consistent width */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Unified subtle background */
.products,
.about,
.contact {
    background: #ffffff;
}

/* Add subtle pattern overlay */
.products::before,
.about::before,
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(102, 126, 234, 0.01) 0%, transparent 50%);
    pointer-events: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    position: relative;
    min-height: 320px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    border-color: rgba(102, 126, 234, 0.1);
}

.product-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(50%);
}

.product-card.disabled:hover {
    transform: none;
    box-shadow: none;
}

.product-card h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    letter-spacing: -0.01em;
}

.product-card p {
    color: #4a5568;
    flex-grow: 1;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.product-card .btn {
    display: inline-block;
    background: var(--gradient-bg);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.product-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
}

.product-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.product-card .btn:hover::before {
    left: 100%;
}

.product-card.disabled .btn {
    background: #e2e8f0;
    color: #a0aec0;
    transform: none !important;
    box-shadow: none !important;
}

.about, .contact {
    text-align: center;
}

.contact a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.contact a:hover {
    text-decoration: underline;
}

/* Modal Styling */
.modal-fullscreen .modal-content {
    background-color: #f0f2f5;
    color: #333;
}

.modal-header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
}

.modal-header .btn-close {
    filter: none;
}

.navbar-brand:hover,
.navbar-brand:focus,
.navbar-brand:active {
    color: var(--text-color);
    text-decoration: none;
}

/* Style for the active SongCamp Ballader button */
#open-composer .btn {
    background: linear-gradient(90deg, #F3D87A 0%, #D4AF37 45%, #B88900 100%);
    color: #2B1E00;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

#open-composer .btn:hover {
    background: linear-gradient(90deg, #FFD884 0%, #CDA332 50%, #A97800 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .landing-container {
        padding: 0 2rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    body.landing-page {
        padding-top: 70px;
    }
    
    .sticky-header {
        height: 70px;
    }
    
    .hero {
        padding: 4rem 1.5rem;
        margin: 2rem 0 3rem 0;
        border-radius: 20px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    section h2 {
        font-size: 2.2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card {
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    
    .product-card h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .product-card {
        padding: 1.5rem 1rem;
    }
    
    .landing-container {
        padding: 0 1rem;
    }
}
