/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

:root {
    --primary-color: #1a237e; /* Royal Blue */
    --secondary-color: #b71c1c; /* Royal Red */
    --highlight-color: #f5f5f5;
    --text-color: #333;
    --background-color: #f9f9f9;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm63 31c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM34 90c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm56-76c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%231a237e' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

header p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto 0;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-shape {
    position: absolute;
    bottom: -50px;
    right: -100px;
    width: 500px;
    height: 500px;
    background-color: rgba(26, 35, 126, 0.1); /* Royal Blue with opacity */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#progressBar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    transition: width 0.2s ease;
}

/* Progress bar in dark mode */
body.dark-theme .progress-container {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme #progressBar {
    background-color: #1a237e !important; /* Royal blue for progress bar */
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.floating-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.floating-contact a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

body.dark-theme .floating-contact a {
    background-color: #b71c1c; /* Royal red for floating button */
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
}

.theme-toggle button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.theme-toggle button:hover {
    transform: scale(1.1);
}

body.dark-theme .theme-toggle button {
    background-color: #1a237e !important; /* Royal blue for theme toggle */
}

/* Dark Theme - Improved Visibility with Royal Blue */
body.dark-theme {
    --primary-color: #1a237e; /* Royal blue for dark mode */
    --secondary-color: #b71c1c; /* Royal red for dark mode */
    --highlight-color: #263238;
    --text-color: #ffffff; /* Brighter white for better contrast */
    --background-color: #121212;
}

body.dark-theme .card,
body.dark-theme .step,
body.dark-theme .testimonial,
body.dark-theme .badge {
    background-color: #1e1e1e;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

body.dark-theme .icon,
body.dark-theme .icon-small,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4 {
    color: #3949ab; /* Royal blue for headings */
    position: relative;
    z-index: 2;
}

body.dark-theme .secondary-color-text,
body.dark-theme .badge i,
body.dark-theme .quote i {
    color: #d32f2f; /* Royal red for accents */
    position: relative;
    z-index: 2;
}

body.dark-theme .faq-item h3 {
    color: #ffffff;
    font-weight: 600;
}

body.dark-theme .faq-item .toggle {
    background-color: #1a237e;
    color: #ffffff;
}

body.dark-theme .theme-toggle button {
    background-color: #1a237e;
    color: #ffffff;
}

body.dark-theme a:not(.btn) {
    color: #3949ab; /* Royal blue for links */
    font-weight: 500;
}

body.dark-theme .footer-links a {
    color: #d32f2f; /* Royal red for footer links */
    font-weight: 500;
}

body.dark-theme .footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

body.dark-theme .media-logos span {
    color: #3949ab;
    opacity: 1;
    font-weight: 600;
}

body.dark-theme .client-info p {
    color: #e0e0e0;
    font-weight: 500;
}

/* Ensure all text in dark mode is visible */
body.dark-theme p {
    color: #ffffff;
    position: relative;
    z-index: 2;
    font-weight: 400;
    text-shadow: 0px 0px 1px rgba(0,0,0,0.5); /* Add subtle text shadow for better readability */
}

body.dark-theme .btn {
    position: relative;
    z-index: 3; /* Ensure buttons are above text */
    background-color: #b71c1c; /* Royal red for buttons */
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

body.dark-theme .btn:hover {
    background-color: #d32f2f; /* Lighter royal red on hover */
    color: white;
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Fix for any text that might appear behind elements */
body.dark-theme section {
    position: relative;
    z-index: 1;
}

body.dark-theme section > * {
    position: relative;
    z-index: 2;
}

/* Cards */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--highlight-color);
}

.card p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Dark mode specific card fixes with !important */
body.dark-theme .card {
    background-color: #1e1e1e !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #333 !important;
}

body.dark-theme .card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .card h3 {
    color: #3949ab !important; /* Royal blue for card headings */
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .card p {
    color: #ffffff !important;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .card .icon {
    color: #3949ab !important; /* Royal blue for icons */
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5) !important;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Cards with stronger visibility */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--highlight-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.card p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1rem;
}

/* Trust Badges Section */
.trust-section {
    text-align: center;
    padding: 4rem 0;
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    width: 150px;
}

.badge:hover {
    transform: translateY(-10px);
}

.badge i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.badge span {
    font-weight: 600;
    color: var(--text-color);
}

.featured-in {
    margin-top: 3rem;
}

.featured-in h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 1rem;
}

.media-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.media-logos span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    opacity: 0.7;
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(183, 28, 28, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(183, 28, 28, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(183, 28, 28, 0);
    }
}

/* Enhanced Container Layout */
@media (min-width: 992px) {
    header .container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    header h1, header p {
        margin-left: 0;
    }
    
    .hero-content {
        flex: 1;
        padding-right: 2rem;
    }
    
    .hero-image {
        flex: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        right: 20px;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
    }
    
    .hero-shape {
        display: none;
    }
    
    .badge {
        width: 120px;
    }
}

/* Section Styles */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2rem;
}

/* How It Works Section */
#how-it-works {
    background-color: var(--background-color);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.step {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step h3 {
    margin: 0.5rem 0;
    color: var(--primary-color);
}

/* Icon Styles */
.icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: block;
}

.icon-small {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

/* Services Section */
#services ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

#services li {
    display: flex;
    align-items: center;
    padding: 1.8rem 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

#services li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#services .icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-bottom: 0;
}

/* Blog Section */
#blog {
    background-color: var(--background-color);
}

#blog ul {
    max-width: 800px;
    margin: 0 auto;
}

#blog li {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

#blog li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#blog a {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* FAQs Section */
#faqs ul {
    max-width: 800px;
    margin: 0 auto;
}

#faqs li {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

#faqs li:hover {
    transform: scale(1.03);
}

/* FAQ Section Specific Styles */
.faq-item h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.faq-item .toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--highlight-color);
    color: var(--primary-color);
    font-size: 0.8rem;
}

.faq-item p {
    display: none;
    margin-top: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Container for better responsive layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    margin: 0 0.5rem 1rem;
    font-weight: bold;
    transition: all 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.btn i {
    font-size: 1.2rem;
}

.btn:hover {
    background-color: var(--highlight-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Dark mode button styles */
body.dark-theme .btn {
    background-color: #b71c1c; /* Royal red for buttons */
    color: white;
}

body.dark-theme .btn:hover {
    background-color: #d32f2f; /* Lighter royal red on hover */
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin: 0 1rem;
}

/* Call to Action Section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 3rem;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

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

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial {
    position: relative;
    padding: 2.5rem 2rem 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.testimonial .quote {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-size: 1.5rem;
    color: var(--secondary-color);
    opacity: 0.5;
}

.testimonial p {
    margin: 0.5rem 0 1.5rem;
    font-style: italic;
    line-height: 1.6;
}

.client {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.avatar {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.client-info h4 {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.client-info p {
    margin: 0.3rem 0 0;
    font-size: 0.9rem;
    font-style: normal;
    color: var(--text-color);
    opacity: 0.8;
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
}

footer h2 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-info {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--highlight-color);
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .btn {
        display: block;
        margin: 0 auto 1rem;
        max-width: 80%;
    }
}
