/* Custom CSS for RootMaster Pro */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --black: #000000;
    --font-family: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(52, 58, 64, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.navbar-nav .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

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

/* Hero Section - FIXED for mobile navbar overlap */
.hero-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2c3e50 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Add space for fixed navbar */
}

.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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hero-badge {
    margin-top: 1rem; /* Additional spacing for mobile */
}

.hero-badge .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.hero-features {
    margin-top: 2rem;
}

.feature-check {
    color: var(--success-color);
    font-weight: 600;
    margin-right: 0.5rem;
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Services Overview Section */
.services-overview {
    padding: 5rem 0;
    background: var(--white);
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

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

.service-icon {
    text-align: center;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin: 0 auto;
}

.service-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Why Choose Section */
.why-choose {
    padding: 5rem 0;
}

.feature-box {
    text-align: center;
    padding: 1.5rem;
}

.feature-box h5 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-box p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Common Issues Section */
.common-issues {
    padding: 5rem 0;
    background: var(--white);
}

.issue-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.issue-card h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.issue-card ul li {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Testimonials Section */
.testimonials {
    background: var(--light-color);
    padding: 5rem 0;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
    font-weight: bold;
}

.testimonial-text {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author strong {
    color: var(--dark-color);
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

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

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border: none;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--dark-color) !important;
    color: var(--white);
}

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

.footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

.footer .list-unstyled a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

.contact-info {
    margin-top: 1.5rem;
}

/* Responsive Design - ENHANCED for mobile navbar fix */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px; /* More space on mobile for navbar */
    }
    
    .hero-badge {
        margin-top: 1.5rem; /* Extra spacing on mobile */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 120px; /* Even more space on small mobile */
    }
    
    .hero-badge {
        margin-top: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .issue-card {
        padding: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
}

/* Additional mobile fixes */
@media (max-width: 480px) {
    .hero-section {
        padding-top: 140px; /* Maximum space for very small screens */
    }
    
    .hero-badge .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
}

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

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

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

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Button hover effects */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

/* AGGRESSIVE MOBILE NAVBAR FIX - OVERRIDE ALL EXISTING STYLES */
.hero-section {
    padding-top: 200px !important;
    margin-top: 0 !important;
}

.hero-section .container {
    padding-top: 2rem !important;
}

.hero-badge {
    margin-top: 3rem !important;
    margin-bottom: 2rem !important;
}

.hero-title {
    margin-top: 2rem !important;
}

/* Force spacing on all mobile devices */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 250px !important;
    }
    .hero-badge {
        margin-top: 4rem !important;
    }
    .hero-title {
        margin-top: 3rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 280px !important;
    }
    .hero-badge {
        margin-top: 5rem !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 300px !important;
    }
    .hero-badge {
        margin-top: 6rem !important;
    }
}

