/* SolarPro - Custom Styles */

* {
    font-family: 'Inter', sans-serif;
}

body {
    overflow-x: hidden;
}

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Smooth animations */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Hero background overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 253, 244, 0.98) 100%);
}

/* Accent colors */
.text-solar-yellow {
    color: #F59E0B;
}

.bg-solar-yellow {
    background-color: #F59E0B;
}

.text-energy-green {
    color: #10B981;
}

.bg-energy-green {
    background-color: #10B981;
}

.text-deep-blue {
    color: #1E3A8A;
}

.bg-deep-blue {
    background-color: #1E3A8A;
}

/* Pulse animation for CTA */
@keyframes pulse-soft {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }
}

.pulse-cta {
    animation: pulse-soft 2s infinite;
}

/* Accordion */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.active {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #10B981;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    min-width: 80px;
    text-align: center;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1E3A8A;
    display: block;
}

.countdown-label {
    font-size: 0.75rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Live notification */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.live-notification {
    animation: slideInRight 0.5s ease-out;
}

.live-notification.hiding {
    animation: slideOutRight 0.5s ease-in;
}

/* Counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-animated {
    animation: countUp 0.5s ease-out;
}

/* Calculator styles */
.calculator-result {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    color: white;
    margin-top: 1.5rem;
    transform: scale(0);
    transition: transform 0.3s ease-out;
}

.calculator-result.show {
    transform: scale(1);
}

/* Quiz progress */
.quiz-progress-bar {
    height: 6px;
    background: #E5E7EB;
    border-radius: 999px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
    transition: width 0.3s ease-out;
}

/* Comparison table */
.comparison-table {
    display: grid;
    gap: 1rem;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 1rem;
    align-items: center;
}

.comparison-row:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Sticky price bar */
.sticky-price-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 45;
}

.sticky-price-bar.show {
    transform: translateY(0);
}

/* Exit intent popup */
.exit-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

.exit-popup.show {
    opacity: 1;
    pointer-events: all;
}

.exit-popup-content {
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
}

.exit-popup.show .exit-popup-content {
    transform: scale(1);
}

/* Chat widget */
.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 2rem;
    z-index: 50;
}

.chat-bubble {
    background: white;
    border-radius: 1.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    margin-bottom: 1rem;
    position: relative;
    animation: slideInRight 0.5s ease-out;
}

.chat-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

/* Case studies */
.case-study-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

.case-study-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.case-study-card:hover .case-study-overlay {
    opacity: 1;
}

/* ROI Chart */
.roi-chart {
    position: relative;
    height: 300px;
}

/* Tooltip */
.tooltip {
    position: absolute;
    background: rgba(30, 58, 138, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-out;
    z-index: 100;
}

.tooltip.show {
    opacity: 1;
}

/* Progress steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #6B7280;
    transition: all 0.3s ease-out;
}

.progress-step.active .progress-step-circle {
    background: #10B981;
    color: white;
}

.progress-step.completed .progress-step-circle {
    background: #059669;
    color: white;
}

.progress-step-line {
    flex: 1;
    height: 2px;
    background: #E5E7EB;
    margin: 0 1rem;
}

.progress-step.completed ~ .progress-step .progress-step-line {
    background: #10B981;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease-out;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

.lightbox.show {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 1rem;
}

/* Map styles */
.interactive-map {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 1.5rem;
    overflow: hidden;
}

.map-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #10B981;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease-out;
}

.map-marker:hover {
    transform: scale(1.3);
    z-index: 10;
}

.map-marker::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #10B981;
    opacity: 0.3;
    animation: pulse-marker 2s infinite;
}

@keyframes pulse-marker {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Certificates */
.certificate-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: #1E3A8A;
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-row {
        grid-template-columns: 1fr;
    }

    .countdown-timer {
        flex-wrap: wrap;
    }

    .countdown-item {
        min-width: 60px;
        padding: 0.75rem 1rem;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .chat-widget {
        bottom: 80px;
        right: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

