/* Reset and Base Styles */
:root {
    --primary-color: #82c178;
    --primary-dark: #6ca662;
    --primary-light: #a5d69e;
    --secondary-color: #6497eb;
    --dark-blue: #2d3e5b;
    --light-blue: #ebf3ff;
    --gray-light: #f0f4f8;
    --gray-medium: #d1dae6;
    --gray-dark: #596877;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --error-color: #e74c3c;
    --success-color: #27ae60;
    --border-radius: 4px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 60px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    line-height: 1.2;
}

p {
    margin-bottom: 15px;
}

/* Header and Navigation */
header {
    background-color: var(--dark-blue);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.main-nav {
    display: flex;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav a {
    color: var(--text-light);
    padding: 8px 15px;
    font-size: 0.9rem;
    position: relative;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 80%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 2px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background-color: #f8f9fa;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSg0NSw2Miw5MSwwLjAzKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0iIzJkM2U1YiIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjxyZWN0IGZpbGw9InVybCgjcGF0dGVybikiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiLz48L3N2Zz4=');
    background-size: cover;
    background-position: center;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 60px 0;
}

.hero-text {
    flex: 1;
    color: var(--text-light);
}

.hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text span {
    color: var(--secondary-color);
}

.signup-form {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    max-width: 400px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(100, 151, 235, 0.2);
}

.phone-group {
    display: flex;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background-color: var(--gray-light);
    border: 1px solid var(--gray-medium);
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.phone-prefix img {
    width: 20px;
    margin-right: 5px;
}

.phone-group input {
    flex: 1;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

.btn-secondary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-secondary:hover {
    background-color: #5283d7;
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--text-light);
    padding: 12px 24px;
    border: 1px solid var(--text-light);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Tools Section */
.tools {
    background-color: var(--gray-light);
}

.tools h2, .stats h2, .profiles h2, .testimonials h2, .blog h2, .contact h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--dark-blue);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tool-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-icon {
    text-align: center;
    margin-bottom: 20px;
}

.tool-icon img {
    width: 64px;
    height: 64px;
}

.tool-card h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.tool-card p:first-of-type {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Stats Section */
.stats {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 80px 0;
}

.stats h2 {
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Profiles Section */
.profiles {
    background-color: white;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.profile-card {
    border: 1px solid var(--gray-medium);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.profile-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--box-shadow);
}

.profile-card h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.cta-center {
    text-align: center;
    margin-top: 30px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--primary-light);
    padding: 80px 0;
}

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

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.user-avatar {
    position: absolute;
    top: -20px;
    left: 30px;
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.testimonial-author {
    margin-top: 5px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
}

/* Blog Section */
.blog {
    background-color: white;
}

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

.blog-card {
    border: 1px solid var(--gray-medium);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.blog-link {
    display: inline-block;
    color: var(--secondary-color);
    margin-top: 15px;
    font-weight: 600;
}

.blog-link span {
    transition: var(--transition);
    margin-left: 5px;
}

.blog-link:hover span {
    margin-left: 10px;
}

/* Contact Section */
.contact {
    background-color: var(--gray-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.contact-item {
    text-align: center;
}

.contact-label {
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.contact-info {
    color: var(--gray-dark);
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 50px 0 20px;
}

.footer-top {
    text-align: center;
    margin-bottom: 30px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-logo img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--gray-medium);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-blue);
    padding: 20px;
    z-index: 1000;
    display: none;
}

.cookie-banner.active {
    display: block;
}

.cookie-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-light);
}

.cookie-icon {
    margin-bottom: 15px;
}

.cookie-icon img {
    width: 48px;
    height: 48px;
}

.cookie-content h3 {
    margin-bottom: 10px;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    display: none;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--gray-light);
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-header img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    margin-top: 20px;
}

/* Legal Pages */
.legal-page {
    padding: 80px 0;
}

.legal-page h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--dark-blue);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.legal-content h2 {
    color: var(--dark-blue);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-content ul li {
    list-style-type: disc;
}

.legal-content ol li {
    list-style-type: decimal;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-text {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .signup-form {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--dark-blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 100;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .tools-grid,
    .stats-grid,
    .profiles-grid,
    .testimonials-grid,
    .blog-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .stats-grid {
        gap: 40px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
    
    .legal-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .tools h2, .stats h2, .profiles h2, .testimonials h2, .blog h2, .contact h2 {
        font-size: 1.8rem;
    }
    
    .cookie-content h3 {
        font-size: 1.2rem;
    }
    
    .legal-page h1 {
        font-size: 1.8rem;
    }
}

/* Animation and Transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Error Styling */
.error {
    border-color: var(--error-color) !important;
    background-color: rgba(231, 76, 60, 0.05) !important;
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Success Styling */
.success {
    border-color: var(--success-color) !important;
    background-color: rgba(39, 174, 96, 0.05) !important;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.no-scroll {
    overflow: hidden;
}