/* styles.css - Main stylesheet for Sing My Wish landing page */

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

/* ===== VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: #8e44ad;
    --primary-light: #9b59b6;
    --primary-dark: #7d3c98;
    --secondary-color: #3498db;
    --accent-color: #f39c12;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #f0f0f0;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('../assets/images/festive-background.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

/* RTL Support */
[dir="rtl"] .feature-block:not(.reverse) {
    flex-direction: row-reverse;
}

[dir="rtl"] .feature-block.reverse {
    flex-direction: row;
}

[dir="rtl"] .feature-content ul li {
    padding-left: 0;
    padding-right: var(--spacing-md);
}

[dir="rtl"] .feature-content ul li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .back-button svg {
    margin-right: 0;
    margin-left: 0.5rem;
    transform: scaleX(-1);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) 0;
}

section {
    padding: var(--spacing-lg) 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-family: var(--heading-font);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

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

.btn.primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

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

/* ===== LANGUAGE DROPDOWN ===== */
.language-dropdown {
    margin-top: var(--spacing-sm);
}

.language-select {
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--body-font);
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    max-width: 150px;
}

.language-select option {
    background-color: var(--primary-dark);
    color: white;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: transform var(--transition-normal), background-color var(--transition-normal);
    padding: 1rem 0;
}

header.sticky {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98);
}

header.hidden {
    transform: translateY(-100%);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-sm);
    position: relative; /* Added to establish positioning context */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    gap: var(--spacing-md);
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all var(--transition-fast);
}

/* ===== HERO SECTION ===== */
#hero {
    padding-top: calc(80px + var(--spacing-xl));
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    ba ckground-color: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

#hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    color: var(--text-light);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.app-mockup {
    max-height: 600px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    flex-wrap: wrap;
}

.app-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.app-store img, .google-play img {
    height: 120px;
}

/* ===== ABOUT SECTION ===== */
#about {
    text-align: center;
}

#about h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

#about p {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.1rem;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.advantage-item {
    background-color: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal);
}

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

.advantage-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* ===== FEATURES SECTION ===== */
#features {
    background-color: rgba(255, 255, 255, 0.8);
}

#features h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xl);
}

.feature-block {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.feature-content ul {
    margin-left: var(--spacing-md);
}

.feature-content ul li {
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-left: var(--spacing-md);
}

.feature-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-image img {
    max-height: 450px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== GALLERY SECTION ===== */
#gallery {
    text-align: center;
}

#gallery h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal);
}

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

.gallery-image {
	display: block;
    margin: 30px auto 0;
    width: 20%;
    aspect-ratio: 1/1;
    object-fit: cover;
    cursor: pointer;
}

.gallery-item p {
    padding: var(--spacing-sm);
    font-weight: 500;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border: 5px solid white;
    border-radius: var(--border-radius-md);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* ===== PRICING SECTION ===== */
#pricing {
    text-align: center;
}

#pricing h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.pricing-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.pricing-item {
    background-color: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal);
}

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

.pricing-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.pricing-note {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.app-buttons.centered {
    justify-content: center;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: var(--spacing-lg) 0;
    position: relative;
}

footer::before {
    content: none;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-column h4 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.footer-column ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.feature-block.hover {
    transform: translateY(-5px);
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1023px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    #hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        margin-bottom: var(--spacing-md);
    }
    
    .app-mockup {
        max-height: 400px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .feature-block, .feature-block.reverse {
        flex-direction: column;
    }
    
    .feature-content {
        text-align: center;
    }
    
    .feature-content ul li {
        text-align: left;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
    
    /* Change background image for mobile */
    body {
        background-image: url('../assets/images/festive-background-mobile.png');
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: var(--spacing-md) 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: transform var(--transition-normal), opacity var(--transition-normal);
        z-index: 99;
    }
    
    nav ul.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .advantages, .pricing-options {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .language-select {
        margin: 0 auto;
        display: block;
    }
}
