/* Custom CSS Variables - Dark Professional Theme */
:root {
    --primary-dark: 220 23% 11%; /* #0F172A */
    --secondary-dark: 220 20% 18%; /* #1E293B */
    --card-dark: 220 17% 26%; /* #334155 */
    --accent-blue: 217 91% 60%; /* #3B82F6 */
    --accent-green: 142 76% 36%; /* #10B981 */
    --accent-gold: 38 92% 50%; /* #F59E0B */
    --text-primary: 210 40% 95%; /* #F1F5F9 */
    --text-secondary: 215 25% 80%; /* #CBD5E1 */
    --text-muted: 215 16% 65%; /* #94A3B8 */
    --border-dark: 215 19% 35%; /* #475569 */
    --hover-dark: 215 19% 40%; /* #525D73 */
    --success-green: 142 71% 45%; /* #22C55E */
    --white: 0 0% 100%; /* #FFFFFF */
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: hsl(var(--text-primary));
    background-color: hsl(var(--primary-dark));
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 2rem;
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background-color: hsl(var(--accent-blue));
    border-color: hsl(var(--accent-blue));
    color: hsl(var(--white));
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: hsl(217 91% 50%);
    border-color: hsl(217 91% 50%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-success {
    background-color: hsl(var(--success-green));
    border-color: hsl(var(--success-green));
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: hsl(142 71% 35%);
    border-color: hsl(142 71% 35%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Utility Top Banner */
.utility-top-banner {
    background: linear-gradient(135deg, hsl(var(--accent-blue)) 0%, hsl(217 91% 45%) 100%);
    padding: 25px 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.utility-services-display {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.utility-service {
    background: hsl(var(--secondary-dark));
    color: hsl(var(--text-primary));
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid hsl(var(--border-dark));
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.utility-icon-svg {
    width: 20px;
    height: 20px;
    color: hsl(var(--accent-blue));
}

.utility-service:hover {
    background: hsl(var(--hover-dark));
    border-color: hsl(var(--accent-blue));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Section with Slideshow Background */
.hero-section {
    background: linear-gradient(135deg, hsl(var(--secondary-dark)) 0%, hsl(var(--primary-dark)) 100%);
    color: hsl(var(--text-primary));
    position: relative;
    min-height: 90vh;
    padding: 2rem 0;
    border-bottom: 1px solid hsl(var(--border-dark));
    overflow: hidden;
}

/* Utility Slideshow Background */
.utility-slideshow-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.3) brightness(0.4);
    opacity: 0.3;
}

.hero-content {
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-button {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    background-color: hsl(var(--accent-green));
    border-color: hsl(var(--accent-green));
    color: hsl(var(--white));
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.cta-button:hover {
    background-color: hsl(142 76% 30%);
    border-color: hsl(142 76% 30%);
    color: hsl(var(--white));
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

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

/* How It Works Section */
.step-card {
    padding: 2rem;
    border-radius: 15px;
    background: hsl(var(--secondary-dark));
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 1px solid hsl(var(--border-dark));
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-color: hsl(var(--accent-blue));
}

.step-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: hsl(var(--accent-green));
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, hsl(var(--accent-blue)), hsl(var(--accent-green)));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--white));
    font-size: 2rem;
}

.step-card h4 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.step-card p {
    color: hsl(var(--text-secondary));
}

/* Success Stories Section */
.success-card {
    background: hsl(var(--secondary-dark));
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 5px solid hsl(var(--accent-green));
    border: 1px solid hsl(var(--border-dark));
}

.success-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-color: hsl(var(--accent-gold));
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--success-green));
    margin-bottom: 0.5rem;
}

.business-type {
    font-size: 1.2rem;
    font-weight: 600;
    color: hsl(var(--text-primary));
    margin-bottom: 0.3rem;
}

.location {
    font-size: 1rem;
    color: hsl(var(--text-muted));
    margin-bottom: 1.5rem;
}

.testimonial {
    font-style: italic;
    color: hsl(var(--text-secondary));
    position: relative;
    padding: 1rem;
    background: hsl(var(--card-dark));
    border-radius: 10px;
    border: 1px solid hsl(var(--border-dark));
}

.testimonial i {
    color: hsl(var(--accent-blue));
    margin-bottom: 0.5rem;
}

/* About Section */
.about-content {
    padding-right: 2rem;
}

.about-stats {
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: hsl(var(--card-dark));
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid hsl(var(--border-dark));
}

.stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    border-color: hsl(var(--accent-blue));
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: hsl(var(--accent-green));
}

.stat-label {
    font-size: 0.9rem;
    color: hsl(var(--text-muted));
    font-weight: 600;
}

.about-features {
    padding-left: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: hsl(var(--card-dark));
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid hsl(var(--border-dark));
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border-color: hsl(var(--accent-green));
}

.feature-item i {
    font-size: 2rem;
    color: hsl(var(--accent-blue));
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.feature-item h5 {
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
}

.feature-item p {
    margin: 0;
    color: hsl(var(--text-secondary));
}

/* Contact Form Section */
.contact-form-wrapper {
    background: hsl(var(--secondary-dark));
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid hsl(var(--border-dark));
}

.form-control {
    border: 2px solid hsl(var(--border-dark));
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: hsl(var(--card-dark));
    color: hsl(var(--text-primary));
}

.form-control:focus {
    border-color: hsl(var(--accent-blue));
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    background: hsl(var(--card-dark));
    color: hsl(var(--text-primary));
}

.form-control::placeholder {
    color: hsl(var(--text-muted));
}

.form-label {
    font-weight: 600;
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
}

/* Section Backgrounds */
section {
    background: hsl(var(--primary-dark));
}

section:nth-child(even) {
    background: hsl(var(--secondary-dark));
}

.py-5 {
    border-bottom: 1px solid hsl(var(--border-dark));
}

/* Footer */
.footer {
    background: linear-gradient(135deg, hsl(var(--primary-dark)) 0%, hsl(var(--secondary-dark)) 100%);
    border-top: 1px solid hsl(var(--border-dark));
}

.footer-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
}

.footer-taglines {
    margin: 2rem 0;
}

.tagline {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.footer-info {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .utility-services-display {
        gap: 10px;
    }
    
    .utility-service {
        font-size: 0.95rem;
        padding: 8px 15px;
    }
    
    .utility-top-banner {
        padding: 20px 0;
    }
    
    .about-content,
    .about-features {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .step-card,
    .success-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .amount {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 1rem;
    }
}

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

/* Scroll Reveal Animations */
.reveal-animation {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-animation.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.reveal-fade-in.revealed {
    opacity: 1;
}

.reveal-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-slide-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-slide-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animation delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed hsl(var(--secondary-blue));
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    background: hsl(var(--light-gray));
    transition: all 0.3s ease;
}

.file-upload-wrapper:hover {
    border-color: hsl(var(--primary-blue));
    background: hsl(var(--secondary-blue));
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none !important;
}

.file-upload-help {
    color: hsl(var(--medium-gray));
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
}

.file-upload-help i {
    color: hsl(var(--primary-blue));
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.upload-text {
    pointer-events: none;
}

.upload-text button {
    pointer-events: all;
}

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

.btn-outline-primary:hover {
    background-color: hsl(var(--primary-blue));
    border-color: hsl(var(--primary-blue));
    color: white;
}

.file-upload-wrapper.dragover {
    border-color: hsl(var(--success-green));
    background: hsl(142 71% 95%);
    transform: scale(1.02);
}

.file-selected {
    color: hsl(var(--success-green));
    font-weight: 600;
}

.file-list {
    margin-top: 1rem;
    text-align: left;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: white;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.file-item i {
    color: hsl(var(--primary-blue));
    margin-right: 0.5rem;
}

.file-remove {
    color: hsl(var(--medium-gray));
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.file-remove:hover {
    color: #dc3545;
}

/* Loading animation for form submission */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
