/* Sonic Solar Uganda - Custom Styles */

:root {
    --primary-blue: #3b82f6;
    --dark-blue: #1e40af;
    --light-blue: #dbeafe;
    --solar-yellow: #fbbf24;
    --warning-orange: #f59e0b;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Adjust heading sizes for better display */
h1, .h1 {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h2, .h2 {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

h3, h4, h5, h6 {
    font-weight: 600;
}

/* Slider title adjustments */
.slide-title {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
}

.slide-subtitle {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
}

/* Section title adjustments */
.section-title {
    font-size: 2rem;
    line-height: 1.3;
}

/* Responsive typography */
@media (max-width: 768px) {
    h1, .h1 {
        font-size: 1.8rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    .slide-title {
        font-size: 2rem !important;
    }
    
    .slide-subtitle {
        font-size: 1.2rem !important;
    }
}

/* Custom Utilities */
.text-success {
    color: var(--primary-blue) !important;
}

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

.btn-success {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-success:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
}

.btn-warning {
    background-color: var(--solar-yellow);
    border-color: var(--solar-yellow);
    color: var(--text-dark);
}

.btn-warning:hover {
    background-color: var(--warning-orange);
    border-color: var(--warning-orange);
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-logo {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.footer-logo {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

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

/* Cart Badge Styling */
.cart-badge {
    font-size: 0.75rem !important;
    min-width: 18px;
    height: 18px;
    padding: 0.2em 0.4em !important;
    line-height: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Project Cards */
.project-card {
    transition: all 0.3s ease;
    border: none;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

/* Active navigation link styles */
.navbar-nav .nav-link.active {
    color: var(--primary-blue) !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-gold) 100%);
    border-radius: 2px;
}

/* Hover effects */
.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
}

/* Active state for button-style nav links */
.navbar-nav .btn.active {
    background: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(44, 90, 160, 0.3);
}

/* Special handling for cart and quote active states */
.navbar-nav .nav-link.position-relative.active::after {
    display: none; /* Hide underline for cart icon */
}

/* Active state for cart with background highlight */
.navbar-nav .nav-link.position-relative.active {
    background: rgba(44, 90, 160, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
}

/* Dropdown Hover Effect for Desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block !important;
        animation: dropdownFadeIn 0.3s ease-in-out;
    }

    .dropdown-menu {
        border: none;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border-radius: 12px;
        padding: 0.75rem 0;
        margin-top: 0.5rem;
        transition: all 0.3s ease;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
    }

    .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* Mobile Navigation Fixes */
@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: none !important;
        overflow: visible !important;
    }
    
    .navbar-nav {
        padding-bottom: 2rem;
    }
}

/* Mobile Navigation - No special mobile products styling needed */

.dropdown-item {
    padding: 0.8rem 1.5rem;
    transition: all 0.2s ease;
    font-weight: 500;
    border-radius: 6px;
    margin: 0.2rem 0.5rem;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
    color: #3b82f6;
    transform: translateX(8px);
}

.dropdown-item:focus {
    background-color: #f1f5f9;
    color: #3b82f6;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
    margin: 0 0.25rem;
    transition: color 0.3s ease;
}

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

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    min-height: 85vh;
    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="solar-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23solar-pattern)"/></svg>') repeat;
    opacity: 0.3;
}

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

.min-vh-75 {
    min-height: 75vh;
}

.trust-item {
    transition: transform 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-5px);
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

.feature-icon {
    transition: transform 0.3s ease;
}

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

/* Enhanced Product Cards */
.product-card-enhanced {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.product-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(25, 135, 84, 0.3);
}

.product-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.product-image-container .product-image {
    transition: transform 0.4s ease;
}

.product-card-enhanced:hover .product-image {
    transform: scale(1.08);
}

/* Product overlay styles removed - no longer using overlay icons */

.product-title {
    color: #2d3748;
    font-size: 1.1rem;
    line-height: 1.4;
}

.product-description {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
}

.product-price-display {
    background: linear-gradient(135deg, #198754, #20c997);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
}

.feature-badge {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-badges .badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
    border-radius: 15px;
}

/* Service Cards Enhanced */
.service-card-enhanced {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.service-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #198754, #20c997);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card-enhanced:hover::before {
    transform: scaleX(1);
}

.service-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(25, 135, 84, 0.15);
    border-color: rgba(25, 135, 84, 0.2);
}

.service-icon-enhanced {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #198754, #20c997);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.service-card-enhanced:hover .service-icon-enhanced {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-description {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #4a5568;
    font-size: 0.9rem;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-meta-enhanced {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.service-meta-enhanced .badge {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.2);
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 500;
}

/* Project Cards Enhanced */
.project-card-enhanced {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

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

.project-image-enhanced {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image-enhanced img {
    transition: transform 0.4s ease;
}

.project-card-enhanced:hover .project-image-enhanced img {
    transform: scale(1.08);
}

.project-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.project-content-enhanced {
    padding: 1.5rem;
}

.project-title-enhanced {
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-description-enhanced {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-stats {
    background: rgba(25, 135, 84, 0.05);
    border-radius: 12px;
    padding: 1rem;
}

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

.project-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #198754;
    display: block;
}

.project-stat-label {
    font-size: 0.8rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress Bar Enhanced */
.progress-enhanced {
    height: 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-bar-enhanced {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Calculator Styles */
.calculator-container {
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.appliances-grid .form-check {
    margin-bottom: 0.5rem;
}

.appliances-grid .form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Results Cards */
.result-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--light-blue);
    transition: all 0.3s ease;
}

.result-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.result-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
}

/* Step Numbers */
.step-number {
    min-width: 50px;
    min-height: 50px;
    font-size: 1.25rem;
}

/* Blog Cards */
.blog-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.category-card:hover {
    background-color: var(--light-blue);
    border-color: var(--primary-blue) !important;
    transform: translateY(-3px);
}

.category-card:hover * {
    color: var(--dark-blue) !important;
}

/* Contact Form */
.contact-form-container {
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.contact-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
}

.contact-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Accordion */
.accordion-button {
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-blue);
    color: var(--dark-blue);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

.pulse {
    animation: pulse 2s infinite;
}

/* Gradient Backgrounds */
.bg-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
}

.bg-gradient-light {
    background: linear-gradient(135deg, #ffffff 0%, var(--bg-light) 100%);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

footer a:hover {
    color: var(--primary-blue) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .trust-item {
        margin-bottom: 1rem;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .feature-card,
    .product-card,
    .blog-card {
        margin-bottom: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    .alert {
        display: none !important;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .text-muted {
        color: #000 !important;
    }
    
    .bg-light {
        background-color: #fff !important;
        border: 1px solid #000;
    }
}

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

/* Slider Text Content Overlay Styles */
.slide-text-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
}

.slide-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.slide-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Responsive slider text */
@media (max-width: 768px) {
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-subtitle {
        font-size: 1.4rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
}
