/* Base styles and resets */
:root {
    --blue-dark: #1E3A8A;
    --blue-medium: #3B82F6;
    --blue-light: #60A5FA;
    --blue-pale: #DBEAFE;
    --dark: #111827;
    --gray-dark: #1F2937; 
    --gray: #6B7280;
    --gray-light: #E5E7EB;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

/* Header styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    font-size: 1.25rem;
    font-weight: 500;
}

.logo b {
    color: var(--blue-medium);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--gray-dark);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

nav a:hover {
    color: var(--blue-medium);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--blue-medium);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--gray);
    max-width: 500px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.btn-primary {
    display: inline-block;
    background-color: var(--blue-medium);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Services section */
.services {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.services h2, .features h2, .faq h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
    position: relative;
}

.services h2::after, .features h2::after, .faq h2::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--blue-medium);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--blue-light);
}

.card-icon {
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--blue-dark);
}

.service-card p {
    color: var(--gray);
}

/* Features section */
.features {
    background-color: var(--blue-pale);
    padding: 5rem 1.5rem;
}

.features-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    background-color: var(--white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-text h3 {
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* CTA section */
.cta {
    background: linear-gradient(135deg, var(--blue-medium), var(--blue-dark));
    padding: 5rem 1.5rem;
    text-align: center;
    margin-top: 4rem;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta p {
    color: var(--blue-pale);
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

.cta .btn-primary {
    background-color: var(--white);
    color: var(--blue-medium);
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
}

.cta .btn-primary:hover {
    background-color: var(--blue-pale);
    color: var(--blue-dark);
}

/* FAQ section */
.faq {
    max-width: 1000px;
    margin: 5rem auto;
    padding: 0 1.5rem;
}

.faq-container {
    margin-top: 3rem;
}

.faq-item {
    border: 1px solid var(--gray-light);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.toggle-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    background-color: var(--blue-medium);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.toggle-icon::before {
    width: 2px;
    height: 12px;
    transition: var(--transition);
}

.toggle-icon::after {
    width: 12px;
    height: 2px;
}

.faq-item.active .toggle-icon::before {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    background-color: var(--white);
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 300px;
}

.faq-answer p {
    color: var(--gray);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 4rem 1.5rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo span {
    color: var(--blue-light);
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 5rem;
}

.footer-column h4 {
    color: var(--blue-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--gray-light);
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--blue-light);
}

.copyright {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        z-index: 99;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        width: 100%;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .services h2, .features h2, .faq h2, .cta h2 {
        font-size: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
    }
}
