/* SmartDex - Bootstrap Custom Styles */

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

/* CSS Variables for consistent theming */
:root {
    --smartdex-primary: #10b981;
    --smartdex-primary-dark: #059669;
    --smartdex-secondary: #f0fdf4;
    --smartdex-dark: #111827;
    --smartdex-gray: #6b7280;
    --smartdex-light-gray: #f9fafb;
    --smartdex-border: #e5e7eb;
    
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base typography */
body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--smartdex-dark);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-base);
    font-weight: 700;
    line-height: 1.2;
    color: var(--smartdex-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Responsive headings */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.25rem; }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--smartdex-primary) 0%, var(--smartdex-primary-dark) 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, var(--smartdex-primary-dark) 0%, #047857 100%);
}

.btn-secondary {
    background: white;
    border: 2px solid var(--smartdex-primary);
    border-radius: 12px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--smartdex-primary);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--smartdex-primary);
    color: white;
    transform: translateY(-2px);
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--smartdex-secondary) 0%, #ecfdf5 100%);
    padding: 80px 0;
    border-radius: 0 0 32px 32px;
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-body {
    padding: 2rem;
}

/* Benefit cards */
.benefit-card {
    background: white;
    border: 1px solid var(--smartdex-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--smartdex-primary) 0%, var(--smartdex-primary-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
}

.benefit-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

/* How it works section */
.how-it-works {
    background: linear-gradient(135deg, var(--smartdex-secondary) 0%, #ecfdf5 100%);
    border-radius: 24px;
    padding: 4rem 2rem;
    border: 1px solid #dcfce7;
}

.step-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--smartdex-border);
    height: 100%;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--smartdex-primary) 0%, var(--smartdex-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 25px 0 rgba(16, 185, 129, 0.4);
    position: relative;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, var(--smartdex-primary) 0%, var(--smartdex-primary-dark) 100%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
}

.step-number span {
    color: white;
    font-size: 2rem;
    font-weight: 800;
}

/* Testimonial cards */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--smartdex-border);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-size: 4rem;
    color: var(--smartdex-primary);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--smartdex-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.testimonial-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--smartdex-dark);
    margin: 0 0 0.25rem 0;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--smartdex-primary);
    font-weight: 600;
    margin: 0;
}

.testimonial-quote {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--smartdex-border);
}

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

.section-margin {
    margin-bottom: 80px;
}

/* Container adjustments */
.container-custom {
    max-width: 1200px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-margin {
        margin-bottom: 60px;
    }
    
    .benefit-card,
    .step-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .step-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
}

/* Image styling */
.img-rounded {
    border-radius: 16px;
}

/* Background colors */
.bg-smartdex-primary {
    background-color: var(--smartdex-primary) !important;
}

.bg-smartdex-secondary {
    background-color: var(--smartdex-secondary) !important;
}

.bg-smartdex-light {
    background-color: var(--smartdex-light-gray) !important;
}

/* Text colors */
.text-smartdex-primary {
    color: var(--smartdex-primary) !important;
}

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

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

/* Additional Utility Classes */
.bg-smartdex-light {
    background-color: #f8fffe;
}

.section-margin {
    margin: 80px 0;
}

@media (max-width: 768px) {
    .section-margin {
        margin: 60px 0;
    }
}

/* Testimonial Names and Roles */
.testimonial-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--smartdex-dark);
}

.testimonial-role {
    color: var(--smartdex-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Header Styles */
.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--smartdex-dark) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--smartdex-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--smartdex-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Footer Styles */
.bg-smartdex-dark {
    background-color: var(--smartdex-dark) !important;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--smartdex-primary) !important;
    transform: translateY(-2px);
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.2);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.whatsapp-float:hover {
    background-color: #20c05a;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Pulse animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50px;
    background-color: #25d366;
    opacity: 0.3;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
        font-size: 28px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

