/* Base Styles and Resets */
:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --dark-color: #222;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --accent-color: #3498db;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --body-font: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --heading-font: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --border-radius: 4px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

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

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

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

button, input, select, textarea {
    font-family: inherit;
}

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

section {
    padding: 80px 0;
}

/* Placeholder for images */
.placeholder-image {
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    border-radius: var(--border-radius);
    color: var(--gray-color);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.small-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

/* SVG Images */
.svg-image {
    width: 100%;
    height: 250px;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.avatar-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background-color: #238a4e;
    color: white;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
}

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

/* Forms */
.form-group {
    margin-bottom: 20px;
}

input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Header and Navigation */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark-color);
}

.logo a h1 {
    font-size: 1.8rem;
    margin: 0;
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(88, 167, 137, 0.5), rgba(112, 222, 33, 0.5)), url('https://via.placeholder.com/1920x1080') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

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

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

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

/* Why Choose Us Section */
.why-us {
    background-color: #f9f9f9;
}

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

.why-us-item {
    text-align: center;
    padding: 20px;
}

.why-us-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    color: var(--primary-color);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.project-content {
    padding: 20px;
}

/* Testimonials Section */
.testimonials {
    background-color: #f9f9f9;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.testimonial-quote {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-image {
    margin-right: 15px;
}

.testimonial-author-info h4 {
    margin-bottom: 5px;
}

.testimonial-author-info p {
    color: var(--gray-color);
    margin: 0;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.testimonial-prev,
.testimonial-next {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-color);
    padding: 5px;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    color: var(--primary-color);
}

.testimonial-dots {
    display: flex;
    margin: 0 15px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--light-gray);
    margin: 0 5px;
    cursor: pointer;
}

.testimonial-dot.active {
    background-color: var(--primary-color);
}

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

.blog-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.blog-content {
    padding: 20px;
}

.blog-date {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
}

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

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-color);
    color: white;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.newsletter-text {
    flex: 1;
}

.newsletter-form {
    flex: 1;
    display: flex;
    gap: 10px;
}

.newsletter-form .form-group {
    flex: 1;
    margin-bottom: 0;
}

.newsletter-form input {
    border: none;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 70px 0 20px;
}

.footer a {
    color: white;
    opacity: 0.8;
}

.footer a:hover {
    opacity: 1;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-links {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-contact li svg {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
}

.cookie-settings button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    text-decoration: underline;
}

.cookie-settings button:hover {
    color: white;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 9999;
    display: none;
}

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

.cookie-container {
    padding: 20px;
}

.cookie-options {
    margin: 20px 0;
}

.cookie-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-option input {
    width: auto;
    margin-right: 10px;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.cookie-more-info {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Blog Detailed Page */
.blog-header {
    background-color: #f9f9f9;
    padding: 100px 0 40px;
    text-align: center;
}

.blog-header h1 {
    margin-bottom: 15px;
}

.blog-meta {
    color: var(--gray-color);
    margin-bottom: 30px;
}

.blog-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.blog-article p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.blog-article h2,
.blog-article h3 {
    margin: 40px 0 20px;
}

.blog-article ul,
.blog-article ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-article ul li,
.blog-article ol li {
    margin-bottom: 10px;
}

.blog-article blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin: 20px 0;
    background-color: #f9f9f9;
    font-style: italic;
}

.blog-share {
    display: flex;
    align-items: center;
    margin-top: 40px;
    border-top: 1px solid var(--light-gray);
    padding-top: 20px;
}

.blog-share span {
    margin-right: 15px;
    font-weight: 600;
}

.blog-share a {
    margin-right: 10px;
}

.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    margin-bottom: 30px;
}

/* Thank You Page */
.thank-you {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.thank-you-content {
    max-width: 600px;
    padding: 40px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: var(--success-color);
}

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

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

.legal-content h2 {
    margin: 40px 0 20px;
}

/* Media Queries */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .main-nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 10px;
    }
    
    .main-nav ul li a::after {
        display: none;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .services-grid,
    .why-us-grid,
    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Legal Pages Styles */
.legal-content {
    padding: 60px 0;
}

.legal-document {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--dark-color);
}

.legal-document h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 28px;
}

.legal-document h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 22px;
}

.legal-document h4 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--dark-color);
    font-size: 18px;
}

.legal-document p {
    margin-bottom: 15px;
}

.legal-document ul, .legal-document ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.legal-document li {
    margin-bottom: 8px;
}

.privacy-section, .terms-section, .cookie-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.privacy-section:last-child, .terms-section:last-child, .cookie-section:last-child {
    border-bottom: none;
}

.last-updated {
    font-style: italic;
    color: var(--gray-color);
    margin-bottom: 30px;
}

address {
    font-style: normal;
    margin: 15px 0;
    line-height: 1.6;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 25px;
}

.cookie-table th, .cookie-table td {
    padding: 10px 15px;
    text-align: left;
    border: 1px solid var(--light-gray);
}

.cookie-table th {
    background-color: rgba(46, 204, 113, 0.1);
    font-weight: 600;
}

.cookie-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {
    .legal-document {
        padding: 0 15px;
    }
    
    .cookie-table {
        display: block;
        overflow-x: auto;
    }
}
