/* UtiliCard Custom Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #059669;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
}

/* Base Styles */
body {
    font-family: 'Rubik', sans-serif;
    line-height: 1.6;
    color: #64748b;
}

.font--jakarta {
    font-family: 'Inter', sans-serif;
}

/* Navbar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    color: var(--dark-color) !important;
}

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

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

.navbar-toggler {
    border-color: var(--dark-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
}

.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    min-height: 60vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/pattern-overlay.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

.hero-video {
    position: relative;
    z-index: 2;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#player {
    width: 100%;
    border-radius: 12px;
}

/* Button Styles */
.btn {
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #3b82f6);
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Feature Box Styles */
.feature-box {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.feature-image {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: all 0.5s ease;
}

.feature-box:hover::before {
    left: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

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

.feature-box:hover .feature-icon i {
    transform: scale(1.1);
    color: var(--primary-color) !important;
}

.feature-box:hover .feature-image {
    transform: scale(1.1);
}

/* Calculator Section */
.calculator-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.calculator-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

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

.form-range {
    height: 6px;
}

.form-range::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.form-range::-moz-range-thumb {
    height: 20px;
    width: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.savings-display {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.savings-highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.savings-highlight:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.benefit-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.input-group-text {
    background-color: var(--light-color);
    border-color: #dee2e6;
    color: var(--secondary-color);
    font-weight: 600;
}

.form-control-lg {
    border-color: #dee2e6;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Nuxt-Style Calculator Styles */
.hero-21-txt .s-56 {
    font-size: 3.5rem;
    color: var(--dark-color);
    margin-bottom: 30px;
}

/* Calculator section specific styling for white overlay */
#hero-21 .hero-21-txt h2,
#hero-21 .hero-21-txt .s-56 {
    color: var(--dark-color) !important;
}

#hero-21 .advantages .p-sm {
    color: var(--primary-color) !important;
}

#hero-21 .advantages-links-divider {
    color: var(--secondary-color) !important;
}

.w-700 {
    font-weight: 700;
}

.btn--theme {
    background: linear-gradient(45deg, var(--primary-color), #3b82f6);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn--theme:hover,
.hover--theme:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: white;
    text-decoration: none;
}

.r-04 {
    border-radius: 8px;
}

.btns-group {
    margin: 30px 0;
}

.advantages {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.advantages li {
    margin: 0;
}

.advantages .p-sm {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.advantages-links-divider {
    color: var(--secondary-color);
}

.flaticon-minus::before {
    content: "—";
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.ico-15 {
    font-size: 15px;
}

.mt-15 {
    margin-top: 15px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Custom Credit Card Slider Styles */
.calculator-wrapper {
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.calculator-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Fix text colors inside calculator wrapper */
.calculator-wrapper h4,
.calculator-wrapper label,
.calculator-wrapper span,
.calculator-wrapper .form-label,
.calculator-wrapper .slider-labels span,
.calculator-wrapper .savings-breakdown span,
.calculator-wrapper .savings-breakdown strong,
.calculator-wrapper .text-start,
.calculator-wrapper .d-flex span,
.calculator-wrapper .metric-card small {
    color: var(--dark-color) !important;
}

.calculator-wrapper .savings-breakdown .text-success {
    color: var(--success-color) !important;
}

.slider-container {
    margin: 15px 0;
}

.slider-wrapper {
    position: relative;
    height: 40px;
    margin-bottom: 10px;
}

.slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 18px;
    background: rgba(101, 85, 201, 0.1);
    border-radius: 9px;
    border: 1px solid rgba(101, 85, 201, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.slider-progress {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #6555c9 0%, #5a4bb8 100%);
    border-radius: 9px;
    transition: width 0.3s ease;
    width: 20%;
}

.slider-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.slider-handle:active,
.slider-handle.dragging {
    transform: translate(-50%, -50%) scale(1.05);
}

.slider-icon {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.slider-handle:hover .slider-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.slider-handle.dragging .slider-icon {
    animation: pulseGlow 0.6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from {
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
    }
    to {
        filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.4));
    }
}

.hidden-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

/* Savings Display */
.savings-display {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.savings-highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.savings-highlight:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.metric-card {
    transition: all 0.3s ease;
}

.savings-breakdown {
    font-size: 0.95rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-21-txt .s-56 {
        font-size: 2.5rem;
    }
    
    .advantages {
        flex-direction: column;
        gap: 10px;
    }
    
    .advantages-links-divider {
        display: none;
    }
    
    .slider-handle {
        width: 36px;
        height: 36px;
    }
    
    .slider-icon {
        width: 20px;
        height: 20px;
    }
}

/* Pricing Section */
.pricing-section {
    background: white;
}

.pricing-section .list-unstyled li {
    font-size: 1.1rem;
    font-weight: 500;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/pattern-overlay.png') repeat;
    opacity: 0.1;
}

.cta-banner .container {
    position: relative;
    z-index: 2;
}

/* Contact Section */
.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form .form-control.is-invalid,
.contact-form .form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.contact-form .form-control.is-valid,
.contact-form .form-select.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

.contact-form .alert {
    border-radius: 8px;
    font-weight: 500;
}

.contact-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-info i {
    width: 20px;
    text-align: center;
}

/* Footer */
.footer {
    background: #6c757d !important; /* Bootstrap's medium grey */
}

.footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        padding: 100px 0 60px 0;
        text-align: center;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .feature-box {
        margin-bottom: 30px;
    }
}

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

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

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

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

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}