/* Smart Albums Marketing Website - Mobile-First Responsive CSS */

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --success: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
}

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

html {
    overflow-x: hidden;
    max-width: 100vw;
    height: 100%;
    background: linear-gradient(to bottom, var(--text-dark) 0%, var(--white) 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100vw;
    background: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.main-content {
    flex: 1 0 auto;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand h2 {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 24px;
}

.nav-menu {
    display: none;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0 15px;
    transition: color 0.3s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--bg-light);
    border-radius: 20px;
    padding: 4px;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.lang-btn.active {
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lang-btn:hover {
    color: var(--primary);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--text-light);
    color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Hero CTA button animation */
.hero .btn-primary {
    position: relative;
    animation: pulseOutline 2s ease-in-out infinite;
}

@keyframes pulseOutline {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8),
                    0 4px 12px rgba(240, 147, 251, 0.6);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0),
                    0 4px 12px rgba(240, 147, 251, 0.6);
    }
}

.btn-copy {
    background: var(--success);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.gallery-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary);
}

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

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: white;
    font-weight: 600;
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.features-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary);
}

.features-section .intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: var(--text-light);
}

.features-section h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

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

.icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Card Designs Section */
.card-designs {
    padding: 80px 0;
    background: var(--bg-light);
}

.card-designs h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary);
}

.card-designs > .container > p {
    text-align: center;
    margin-bottom: 40px;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.card-item {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.card-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card-note {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    font-size: 14px;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
}

.how-it-works .container {
    max-width: 1000px;
}

.how-it-works h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary);
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-direction: column;
}

.step-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    margin: 0 auto 20px;
}

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

.step-content img {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 20px;
    display: block;
}

.url-example {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
}

.url-example code {
    display: block;
    margin-top: 5px;
    color: var(--primary);
}

/* Signup Section */
.signup-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.signup-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.signup-card h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 20px;
}

.promo-badge {
    text-align: center;
    background: var(--success);
    color: var(--white);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.price {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
    margin: 20px 0;
}

.features-list {
    list-style: none;
    margin: 20px 0;
}

.features-list li {
    padding: 10px 0;
    font-size: 16px;
}

.signup-form .form-group {
    margin-bottom: 20px;
}

.signup-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.signup-form input,
.signup-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
}

.signup-form input:focus,
.signup-form select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background: var(--white);
    margin: 50px auto;
    padding: 0;
    border-radius: 16px;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 20px;
    border-radius: 16px 16px 0 0;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.alert-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.link-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
}

.link-box code {
    display: block;
    margin: 10px 0;
    color: var(--primary);
    font-size: 14px;
    word-break: break-all;
}

.qr-preview {
    text-align: center;
    margin: 20px 0;
}

.qr-preview img {
    max-width: 200px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-section h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    flex-shrink: 0;
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .hamburger { display: none; }
    .nav-menu { display: flex; }
    
    .hero h1 { font-size: 48px; }
    .hero p { font-size: 20px; }
    
    .image-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step {
        flex-direction: row;
    }
    
    .step-number {
        margin: 0;
    }
    
    .two-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
