/* Custom CSS for Cleaning and Supplies Inc. Landing Page */

/* CSS Variables */
:root {
    --primary-color: #005BD3;
    --secondary-color: #F5F5F5;
    --accent-color: #D1D1D1;
    --dark-color: #1a1a1a;
    --light-color: #ffffff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --border-radius: 0.75rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-4, .display-5 {
    font-weight: 800;
}

/* Custom Bootstrap Overrides */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056c7 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 91, 211, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056c7 0%, #004bb5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 91, 211, 0.4);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 91, 211, 0.25);
}

.form-control-lg, .form-select-lg {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    padding: 16px 0 !important;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    padding-bottom: 0 !important;
}

.navbar-brand img {
    transition: var(--transition);
    max-width: 100%;
    height: auto;
    padding-bottom: 0 !important;
}

.logo-img {
    height: 96px !important;
}

/* Logo responsive adjustments */
@media (max-width: 768px) {
    .logo-img {
        height: 96px !important;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 65px !important;
    }
}

/* Footer logo styles */
.footer-logo {
    height: 80px !important;
    max-width: 100%;
}

@media (max-width: 768px) {
    .footer-logo {
        height: 65px !important;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    /*transition: var(--transition);*/
    position: relative;
    transition: var(--bs-navbar-toggler-transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
    left: 10%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 91, 211, 0.9) 0%, rgba(0, 86, 199, 0.8) 100%),
                url('assets/hero_bg.png') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 91, 211, 0.1) 0%, rgba(0, 86, 199, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-stats .stat-item {
    text-align: center;
    color: white;
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-secondary);
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin-bottom: 1rem;
}

.hero-contact-info {
    font-size: 0.95rem;
}

.hero-image-container {
    position: relative;
}

.floating-card {
    position: absolute;
    top: 20px;
    right: 20px;
    animation: float 3s ease-in-out infinite;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.bg-primary-light {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(0, 91, 211, 0.3); }
    50% { box-shadow: 0 6px 25px rgba(0, 91, 211, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(0, 91, 211, 0.3); }
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    height: 100%;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056c7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Quote Section */
.quote-form-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.estimate-display {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 91, 211, 0.8) 0%, rgba(0, 86, 199, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay h6 {
    color: white;
    font-weight: 600;
    margin: 0;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

/* About Section */
.about-image-container {
    position: relative;
}

.about-badge {
    position: absolute;
    top: -20px;
    right: -20px;
}

.about-badge .badge {
    border-radius: var(--border-radius);
    text-align: center;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

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

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.stars i {
    font-size: 1.2rem;
}

/* Contact Section */
.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer */
.social-links a {
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

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

.whatsapp-button i {
    font-size: 1.5rem;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    background: #0056c7;
    transform: translateY(-2px);
}

.back-to-top.show {
    display: flex;
}

/* Accordion Customization */
.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius) !important;
    margin-bottom: 1rem;
}

.accordion-button {
    border-radius: var(--border-radius) !important;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 91, 211, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-stats .row {
        justify-content: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .floating-card {
        position: static;
        margin-top: 2rem;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        left: 1rem;
    }
    
    .contact-info .contact-item {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .quote-form-container,
    .contact-form-container {
        padding: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: var(--box-shadow-lg) !important;
}

.rounded-custom {
    border-radius: var(--border-radius) !important;
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .back-to-top,
    .hero-buttons,
    .scroll-indicator {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}
