/**
 * MAXIMA HOMEPAGE - STUNNING VISUAL DESIGN
 * Premium redesign with modern aesthetics and dynamic effects
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');

/* CSS Variables for Consistent Design */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #f1f5f9;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* Homepage Container */
.homepage-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius-lg);
    margin-top: 20px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    var(--gradient-primary);
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="7" cy="7" r="1"/><circle cx="37" cy="7" r="1"/><circle cx="7" cy="37" r="1"/><circle cx="37" cy="37" r="1"/></g></g></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 80px 40px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
    animation: slideInDown 0.8s ease-out;
}

.hero-badge-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-title .highlight {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    animation: slideInUp 0.8s ease-out 0.6s both;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.8s both;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-btn.primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-btn.primary:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3);
}

.hero-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* ===== COLLECTIONS SECTION ===== */
.collections-section {
    margin: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title.white {
    color: white;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.category-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.category-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: white;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.category-card.featured {
    grid-row: span 2;
}

.card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.category-card.featured .card-image {
    height: 400px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
            180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.7) 100%
    );
}

.card-content {
    padding: 32px;
    position: relative;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: slideInDown 0.8s ease-out;
    color: white;
    font-size: 24px;
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-features {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.feature-tag {
    background: var(--bg-accent);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.feature-tag.bestseller {
    background: var(--gradient-warm);
    color: white;
}

.card-btn, .card-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.card-btn:hover, .card-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
    text-decoration: none;
}

.card-btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.category-grid {
    display: grid;
    gap: 20px;
}

/* ===== INSPIRATION SECTION ===== */
.inspiration-section {
    margin: 120px 0;
    padding: 80px 0;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.inspiration-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.inspiration-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.inspiration-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-number {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.inspiration-card .card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    margin-bottom: 24px;
    font-size: 20px;
}

.inspiration-card .card-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.inspiration-card .card-description {
    font-size: 15px;
    line-height: 1.6;
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-section {
    position: relative;
    margin: 120px 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    color: white;
}

.why-choose-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    z-index: 1;
}

.why-choose-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
}

.why-choose-content {
    position: relative;
    z-index: 2;
    padding: 80px 40px;
}

.benefits-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.benefit-content {
    flex: 1;
}

.benefit-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.benefit-description {
    opacity: 0.9;
    line-height: 1.6;
    font-size: 15px;
}

/* ===== FINAL CTA SECTION ===== */
.final-cta-section {
    margin: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 60px;
    align-items: center;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    justify-content: center;
}

.cta-btn.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: white;
    text-decoration: none;
}

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

.cta-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    text-decoration: none;
}

.cta-btn.large {
    font-size: 18px;
    padding: 20px 40px;
}

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: slideInUp 0.8s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .category-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-card.featured {
        grid-row: span 1;
    }

    .category-card.featured .card-image {
        height: 300px;
    }

    .cta-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .homepage-container {
        padding: 0 16px;
    }

    .hero-section {
        min-height: 90vh;
        margin-top: 10px;
    }

    .hero-content {
        padding: 60px 24px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-stats .stat-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .stat-number {
        font-size: 2rem;
        margin-bottom: 0;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }

    .inspiration-grid,
    .benefits-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .why-choose-content,
    .inspiration-section {
        padding: 60px 24px;
    }

    .cta-content {
        padding: 60px 30px;
    }

    .cta-actions {
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .category-card,
    .inspiration-card,
    .benefit-card {
        margin: 0 -8px;
    }

    .card-content,
    .inspiration-card {
        padding: 24px;
    }

    .hero-stats .stat-item {
        flex-direction: column;
        gap: 4px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .hero-section,
    .why-choose-section {
        background: none !important;
        color: black !important;
    }

    .hero-btn,
    .card-btn,
    .cta-btn {
        border: 1px solid black !important;
        background: none !important;
        color: black !important;
    }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== FOCUS STYLES ===== */
.hero-btn:focus,
.card-btn:focus,
.cta-btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ===== LOADING STATES ===== */
.card-image img {
    background: var(--bg-accent);
}

.card-image img[src=""] {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
    linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}