/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #2C5F8D 0%, #4A90A4 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(44, 95, 141, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #2C5F8D;
    border: 2px solid #2C5F8D;
}

.btn-secondary:hover {
    background: #2C5F8D;
    color: white;
    transform: translateY(-2px);
}

.btn-tertiary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.btn-tertiary:hover {
    background: #e9ecef;
    color: #495057;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text h3 {
    color: #2C5F8D;
    margin-bottom: 8px;
}

.cookie-text p {
    color: #666;
    font-size: 14px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.cookie-modal.show {
    display: block;
}

.cookie-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-header {
    background: linear-gradient(135deg, #2C5F8D 0%, #4A90A4 100%);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.cookie-modal-body {
    padding: 30px;
}

.cookie-category {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.cookie-category h3 {
    color: #2C5F8D;
    margin-bottom: 8px;
    flex: 1;
}

.cookie-category p {
    color: #666;
    font-size: 14px;
    flex: 1;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2C5F8D;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #dee2e6;
    text-align: right;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2C5F8D;
}

.brand-text {
    font-size: 24px;
    font-weight: bold;
    color: #2C5F8D;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2C5F8D;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #E6F3FF 0%, #FFFFFF 100%);
    padding: 120px 0 60px;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2C5F8D;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-graphic {
    animation: slideInRight 1s ease-out;
}

.hero-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2C5F8D;
    margin: 20px 0;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card h3 {
    color: #2C5F8D;
    font-size: 1.5rem;
    margin: 20px 0 15px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

.service-icon {
    margin-bottom: 20px;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    color: #2C5F8D;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text .lead {
    font-size: 1.3rem;
    color: #4A90A4;
    margin-bottom: 25px;
    font-weight: 600;
}

.about-text p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
}

.about-features {
    list-style: none;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 500;
}

.about-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, #E6F3FF 0%, #F0F8FF 100%);
}

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

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 60px;
    color: #2C5F8D;
    opacity: 0.3;
}

.stars {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author strong {
    color: #2C5F8D;
    font-size: 16px;
}

.testimonial-author span {
    color: #999;
    font-size: 14px;
    display: block;
    margin-top: 5px;
}

/* Newsletter Section */
.newsletter {
    padding: 60px 0;
    background: #2C5F8D;
    color: white;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.newsletter-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #333;
}

.form-group input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-info {
    display: grid;
    gap: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item h3 {
    color: #2C5F8D;
    margin-bottom: 10px;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.social-links h3 {
    color: #2C5F8D;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    display: block;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: #1a365d;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: #4A90A4;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4A90A4;
    opacity: 0.7;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .hero-container,
    .about-content,
    .newsletter-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons .btn {
        flex: 1;
        min-width: 120px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .services,
    .about,
    .testimonials,
    .contact {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Legal Pages Styles */
.legal-page {
    padding: 120px 0 80px;
    background: #ffffff;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    color: #2C5F8D;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.legal-intro {
    font-size: 1.1rem;
    color: #4A90A4;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 500;
}

.legal-content h2 {
    color: #2C5F8D;
    font-size: 1.8rem;
    margin: 40px 0 20px;
    border-bottom: 2px solid #E6F3FF;
    padding-bottom: 10px;
}

.legal-content h3 {
    color: #4A90A4;
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.legal-content h4 {
    color: #2C5F8D;
    font-size: 1.2rem;
    margin: 25px 0 10px;
}

.legal-content p {
    color: #333;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.legal-content ul, .legal-content ol {
    margin: 20px 0 20px 30px;
    color: #333;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-content a {
    color: #2C5F8D;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #4A90A4;
}

.contact-box {
    background: #F0F8FF;
    border: 1px solid #B6D7FF;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-family: monospace;
    color: #2C5F8D;
    line-height: 1.8;
}

.contact-box strong {
    color: #1a365d;
}

.highlight-box {
    background: linear-gradient(135deg, #E6F3FF 0%, #F0F8FF 100%);
    border: 1px solid #B6D7FF;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.highlight-box h3, .highlight-box h4 {
    color: #2C5F8D;
    margin-bottom: 15px;
}

.cookie-table {
    margin: 20px 0;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cookie-table th {
    background: #2C5F8D;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.cookie-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.cookie-table tr:nth-child(even) {
    background: #f8f9fa;
}

.cookie-table tr:hover {
    background: #E6F3FF;
}

.legal-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    text-align: center;
    color: #666;
    font-style: italic;
}

.back-navigation {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #dee2e6;
}

.footer-section ul li a.active {
    color: #2C5F8D;
    font-weight: 600;
}

/* Thanks Page Styles */
.thanks-page {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #E6F3FF 0%, #F0F8FF 100%);
    text-align: center;
}

.thanks-content {
    max-width: 600px;
    margin: 0 auto;
}

.thanks-content h1 {
    color: #2C5F8D;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.thanks-content .success-message {
    font-size: 1.2rem;
    color: #4A90A4;
    margin-bottom: 30px;
    line-height: 1.6;
}

.thanks-icon {
    margin-bottom: 30px;
}

.thanks-icon svg {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 5px 15px rgba(44, 95, 141, 0.2));
}

.thanks-details {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.thanks-details h3 {
    color: #2C5F8D;
    margin-bottom: 20px;
}

.thanks-actions {
    margin-top: 40px;
}

.thanks-actions .btn {
    margin: 10px;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-page, .thanks-page {
        padding: 100px 0 60px;
    }
    
    .legal-content h1, .thanks-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .contact-box {
        padding: 15px;
        font-size: 14px;
    }
    
    .cookie-table {
        font-size: 14px;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .legal-content, .thanks-content {
        padding: 0 15px;
    }
    
    .legal-content h1, .thanks-content h1 {
        font-size: 1.8rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
    
    .cookie-table {
        font-size: 12px;
    }
    
    .thanks-actions .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
    }
}