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

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Light Theme Colors */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --danger-color: #ef4444;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* Dark Theme Colors */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #475569;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.3);
}

/* ===== BASE STYLES ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
}

/* Override Bootstrap colors */
.bg-light {
    background-color: var(--bg-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* ===== DARK MODE TOGGLE ===== */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.dark-mode-toggle .btn {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.dark-mode-toggle .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="25" r="1" fill="white" opacity="0.05"/><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/><circle cx="25" cy="75" r="1" fill="white" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-10px) translateX(10px); }
    66% { transform: translateY(5px) translateX(-5px); }
}

.profile-image img {
    border: 4px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: scale(0);
    transition: var(--transition);
}

.social-icon:hover::before {
    transform: scale(1);
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.social-icon.facebook { background: #1877f2; }
.social-icon.linkedin { background: #0a66c2; }
.social-icon.instagram { background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); }
.social-icon.twitter { background: #1da1f2; }
.social-icon.youtube { background: #ff0000; }
.social-icon.pinterest { background: #bd081c; }
.social-icon.whatsapp { background: #25d366; }

/* Business Contact Icons */
.social-icon.email { background: #ea4335; }
.social-icon.phone { background: #34a853; }
.social-icon.website { background: #4285f4; }

/* ===== SECTIONS ===== */
.section-title {
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ===== LINK CARDS ===== */
.link-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.link-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition);
}

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

.link-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.link-card:hover .card-icon {
    transform: scale(1.1) rotate(10deg);
}

/* Product Logo Styling */
.product-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

.product-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.link-card:hover .product-logo img {
    transform: scale(1.1);
}

.card-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.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: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color), #2563eb);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    color: white;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.stats-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.stat-item h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-image img {
    border-radius: var(--border-radius);
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

.address-info {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.address-info h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.address-info p {
    color: var(--text-secondary);
    margin: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

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

.testimonial-card p {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author strong {
    color: var(--text-primary);
    display: block;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== CONTACT SECTION ===== */
.contact-methods {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.contact-btn:hover::before {
    width: 100%;
}

.contact-btn:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-btn.email:hover::before { background: #ea4335; }
.contact-btn.whatsapp:hover::before { background: #25d366; }
.contact-btn.phone:hover::before { background: var(--info-color); }

/* ===== QR SECTION ===== */
.qr-section {
    background: var(--bg-secondary);
}

.qr-code {
    display: inline-block;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* ===== FLOATING WHATSAPP ===== */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.whatsapp-float:hover {
    background: #128c7e;
    color: white;
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
    40%, 43% { transform: translate3d(0,-30px,0); }
    70% { transform: translate3d(0,-15px,0); }
    90% { transform: translate3d(0,-4px,0); }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer {
    background: var(--bg-primary) !important;
}

.badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px var(--primary-color); }
    to { box-shadow: 0 0 20px var(--primary-color); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        padding: 3rem 0;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .link-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .stats-row {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .dark-mode-toggle {
        top: 15px;
        right: 15px;
    }
    
    .dark-mode-toggle .btn {
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-section .container {
        padding: 0 1rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .link-card {
        padding: 1.25rem;
    }
    
    .stats-row {
        gap: 1rem;
    }
    
    .stat-item h4 {
        font-size: 1.5rem;
    }
}

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

/* Focus styles for keyboard navigation */
.btn:focus,
.social-icon:focus,
.contact-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
    }
    
    [data-theme="dark"] {
        --border-color: #fff;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .dark-mode-toggle,
    .floating-contact,
    .hero-section::before {
        display: none !important;
    }
    
    .hero-section {
        background: #6366f1 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .link-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* ===== LOADING ANIMATIONS ===== */
.link-card,
.testimonial-card {
    transition: var(--transition), opacity 0.6s ease, transform 0.6s ease;
}

/* Stagger animation delay */
.link-card:nth-child(1) { transition-delay: 0.1s; }
.link-card:nth-child(2) { transition-delay: 0.2s; }
.link-card:nth-child(3) { transition-delay: 0.3s; }
.link-card:nth-child(4) { transition-delay: 0.4s; }
.link-card:nth-child(5) { transition-delay: 0.5s; }
.link-card:nth-child(6) { transition-delay: 0.6s; }

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
}

/* ===== SECTION GRADIENT BACKGROUNDS ===== */
/* Hero Section - Ocean Blue to Purple */
.hero-section {
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.9) 0%, 
        rgba(118, 75, 162, 0.9) 100%);
    z-index: 1;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

/* Products Section - Warm Coral to Orange */
.links-section.bg-light {
    background: linear-gradient(135deg, 
        #ff9a9e 0%, 
        #fecfef 50%, 
        #fecfef 100%) !important;
    position: relative;
}

/* Dark theme override for Products Section */
[data-theme="dark"] .links-section.bg-light {
    background: linear-gradient(135deg, 
        #2d1b69 0%, 
        #11998e 50%, 
        #38ef7d 100%) !important;
}

/* Join Our Community Section - Mint Green to Teal */
.links-section:not(.bg-light) {
    background: linear-gradient(135deg, 
        #a8edea 0%, 
        #fed6e3 100%);
}

/* Dark theme override for Community Section */
[data-theme="dark"] .links-section:not(.bg-light) {
    background: linear-gradient(135deg, 
        #134e5e 0%, 
        #71b280 100%);
}

/* About Section - Soft Lavender to Pink */
.about-section {
    background: linear-gradient(135deg, 
        #d299c2 0%, 
        #fef9d7 100%);
}

/* Dark theme override for About Section */
[data-theme="dark"] .about-section {
    background: linear-gradient(135deg, 
        #232526 0%, 
        #414345 100%);
}

/* Contact Section - Sky Blue to Cyan */
.contact-section {
    background: linear-gradient(135deg, 
        #74b9ff 0%, 
        #0984e3 100%);
    color: white;
}

/* Dark theme override for Contact Section */
[data-theme="dark"] .contact-section {
    background: linear-gradient(135deg, 
        #1e3c72 0%, 
        #2a5298 100%);
}

/* Testimonials Section - Peach to Rose Gold */
.testimonials-section {
    background: linear-gradient(135deg, 
        #ffecd2 0%, 
        #fcb69f 100%) !important;
}

/* Dark theme override for Testimonials Section */
[data-theme="dark"] .testimonials-section {
    background: linear-gradient(135deg, 
        #485563 0%, 
        #29323c 100%) !important;
}

/* QR Code Section - Light Blue to Indigo */
.qr-section {
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 100%) !important;
    color: white;
}

/* Dark theme override for QR Section */
[data-theme="dark"] .qr-section {
    background: linear-gradient(135deg, 
        #141e30 0%, 
        #243b55 100%) !important;
}

/* Footer - Dark Gradient */
.footer {
    background: linear-gradient(135deg, 
        #2c3e50 0%, 
        #34495e 100%) !important;
}

/* Dark theme override for Footer */
[data-theme="dark"] .footer {
    background: linear-gradient(135deg, 
        #0f0c29 0%, 
        #302b63 50%, 
        #24243e 100%) !important;
}

/* Ensure text readability on gradient backgrounds */
.hero-section .gradient-text {
    background: linear-gradient(45deg, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.contact-section .contact-btn {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-section .contact-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Card transparency adjustments for gradient backgrounds */
.link-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .link-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Testimonial cards with gradient backgrounds */
.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .testimonial-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Floating WhatsApp button enhancement */
.whatsapp-float {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #128c7e, #25d366) !important;
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

/* Section transition effects */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

section:hover::before {
    left: 100%;
}

section > * {
    position: relative;
    z-index: 2;
}
