:root {
    --primary-color: #dc2626;
    --secondary-color: #b91c1c;
    --accent-color: #991b1b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 76px;
}

body.index-page {
    padding-top: 0;
}

.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

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

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #b91c1c;
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

.hero-section {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 3rem 0 5rem;
    text-align: center;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
}

.hero-home {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    padding-top: 0px;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.carousel-item {
    height: auto;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white !important;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    color: white;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
}

.carousel-indicators button.active {
    background: white;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white !important;
}

.section-padding {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.trust-stats {
    background: var(--bg-light);
    padding: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin: 0 0.5rem;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: var(--secondary-color);
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    transition: all 0.3s;
}

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

.breadcrumb {
    background: var(--bg-light);
    padding: 1rem 0;
}

.page-header {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.blog-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 0;
}

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

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

/* App Download Section */
.app-features .d-flex {
    transition: transform 0.3s;
}

.app-features .d-flex:hover {
    transform: translateX(10px);
}

.app-download-buttons .btn {
    min-width: 160px;
    transition: all 0.3s;
}

.app-download-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* About Section Logo */
.about-logo {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
}

/* Enquiry Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.popup-content {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    position: relative;
    animation: slideIn 0.3s ease;
    margin: auto;
}

.popup-content .row {
    min-height: auto;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.popup-close:hover {
    background: var(--primary-color);
    color: white;
}

.popup-content .col-md-5 {
    display: flex;
    align-items: stretch;
}

.popup-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 15px 0 0 15px;
}

.popup-form {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-form h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.popup-form p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 14px;
}

.popup-form input,
.popup-form select {
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.popup-form input:focus,
.popup-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.popup-form button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 8px;
}

.popup-form button:hover {
    background: var(--secondary-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .popup-overlay {
        padding: 10px;
    }
    
    .popup-content {
        width: 95%;
        max-width: none;
        border-radius: 12px;
    }
    
    .popup-content .col-md-5 {
        display: none;
    }
    
    .popup-image {
        display: none;
    }
    
    .popup-form {
        padding: 30px 20px;
    }
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

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

.category-card:hover .fas {
    transform: scale(1.1);
    color: var(--secondary-color) !important;
}

@media (max-width: 768px) {
    body {
        padding-top: 5px;
    }
    
    .hero-section {
        min-height: calc(100vh - 70px);
        padding: 2rem 0;
    }
    
    .hero-home {
        background-attachment: scroll;
    }
    
    .hero-slider {
        padding-top: 70px;
        margin-top: 0;
    }
    
    .hero-slide {
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
}