/* Modern Redesign for MyMall - Using Dark Gray, Light Gray, Light Blue */

:root {
    /* New Color Palette */
    --dark-gray: #2D3142;
    --medium-gray: #4F5D75;
    --light-gray: #F5F5F5;
    --light-blue: #4F8FC0;
    --accent-blue: #3B6EA5;
    --white: #FFFFFF;
    --black: #000000;
    
    /* Functional Colors */
    --primary-color: var(--light-blue);
    --primary-dark: var(--accent-blue);
    --primary-light: #7FB3DE;
    --secondary-color: var(--medium-gray);
    --secondary-dark: var(--dark-gray);
    --secondary-light: #A6B1C4;
    
    /* Text Colors */
    --text-dark: var(--dark-gray);
    --text-medium: var(--medium-gray);
    --text-light: #919191;
    
    /* Background Colors */
    --background-light: var(--light-gray);
    --background-dark: var(--dark-gray);
    --card-bg: var(--white);
    
    /* Border Colors */
    --border-color: #E0E0E0;
    
    /* Status Colors */
    --success-color: #56C271;
    --warning-color: #FFB347;
    --error-color: #FF6B6B;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--light-blue), var(--accent-blue));
    --gradient-dark: linear-gradient(135deg, var(--dark-gray), var(--medium-gray));
    --gradient-light: linear-gradient(135deg, #FFFFFF, var(--light-gray));
}

/* Reset and Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-gray);
}

h1 {
    font-size: 2.75rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.3px;
}

p {
    color: var(--text-medium);
}

/* Button Styles */
.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--light-gray);
    color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Header and Navigation */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-list li a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-text h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text h2 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0);
}

/* Feature Cards */
.features-section {
    background-color: var(--white);
    padding: 5rem 0;
}

.features-grid {
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(79, 143, 192, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotateY(360deg);
    transition: transform 0.8s ease, background 0.3s ease, color 0.3s ease;
}

/* About Section */
.about-section {
    background-color: var(--light-gray);
    padding: 5rem 0;
}

.about-content {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    padding: 3rem;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.about-stats {
    margin-top: 2rem;
    gap: 1.5rem;
}

.stat-item {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.stat-item:hover .stat-number,
.stat-item:hover .stat-label {
    color: var(--white);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Categories Section */
.categories-section {
    background-color: var(--white);
    padding: 5rem 0;
}

.category-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.category-image {
    height: 220px;
    position: relative;
}

.category-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(45, 49, 66, 0.8), transparent);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 1;
}

.category-info h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.category-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-gray);
    padding: 5rem 0;
}

.testimonial {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--primary-color);
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    position: relative;
    padding-top: 2rem;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: rgba(79, 143, 192, 0.1);
    position: absolute;
    top: -10px;
    left: -10px;
    font-family: Georgia, serif;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    margin-right: 1rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    padding: 5rem 0;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-content .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.cta-content .btn-primary:hover {
    background: var(--light-gray);
    color: var(--primary-dark);
}

/* Contact Section */
.contact-section {
    background-color: var(--white);
    padding: 5rem 0;
}

.contact-content {
    gap: 3rem;
}

.contact-info {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2.5rem;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(79, 143, 192, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-form {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 143, 192, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.site-footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-logo h2 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* What is Remine Section */
.remine-section {
    background: linear-gradient(135deg, var(--light-gray) 50%, var(--white) 50%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.remine-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    position: relative;
    z-index: 1;
}

.remine-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.remine-info {
    flex: 1;
}

.remine-info h2 {
    color: var(--dark-gray);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.remine-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.remine-info p {
    color: var(--text-medium);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.remine-features {
    margin-top: 2rem;
}

.remine-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.remine-feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(79, 143, 192, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.remine-feature-text h4 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.remine-feature-text p {
    color: var(--text-medium);
    font-size: 1rem;
    margin-bottom: 0;
}

.remine-image {
    flex: 1;
}

.remine-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    width: 100%;
    transition: transform 0.5s ease;
}

.remine-image:hover img {
    transform: scale(1.05);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --background-light: #1A1A1A;
    --text-dark: var(--light-gray);
    --text-medium: #B0B0B0;
    --text-light: #808080;
    --card-bg: #2A2A2A;
    --border-color: #3A3A3A;
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .features-section,
[data-theme="dark"] .categories-section,
[data-theme="dark"] .contact-section {
    background-color: var(--background-dark);
}

[data-theme="dark"] .about-section,
[data-theme="dark"] .testimonials-section {
    background-color: #1A1A1A;
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .about-content,
[data-theme="dark"] .testimonial,
[data-theme="dark"] .contact-form {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .about-image {
    border-right: 1px solid var(--border-color);
}

[data-theme="dark"] .contact-info {
    background: var(--card-bg);
}

[data-theme="dark"] .stat-item {
    background: var(--card-bg);
}

/* Performance Optimizations */
.optimize {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Responsive improvements */
@media (max-width: 991px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        height: 300px;
        overflow: hidden;
    }

    .remine-content {
        flex-direction: column;
    }

    .remine-info {
        text-align: center;
    }

    .remine-info h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .remine-feature {
        text-align: left;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: column;
    }

    .stat-item {
        margin-bottom: 1rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

/* Animation optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Loading optimization */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-load.loaded {
    opacity: 1;
}
