/* Base Styles */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #14b8a6;
    --secondary-dark: #0d9488;
    --text-dark: #1e293b;
    --text-light: #475569;
    --text-lighter: #94a3b8;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-serif: 'Merriweather', Georgia, Cambria, 'Times New Roman', Times, serif;
    --font-mono: 'Roboto Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --container-max-width: 1280px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

a:hover {
    color: var(--primary-dark);
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Header */
header {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 50px;
    object-fit: contain;
}

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

nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

nav a:hover, nav a.active {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

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

/* Blog Posts Grid */
.featured-posts {
    padding: 5rem 0;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.post-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-date {
    color: var(--text-lighter);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.read-more::after {
    content: "→";
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* Interesting Fact Section */
.interesting-fact {
    padding: 4rem 0;
    background-color: var(--bg-dark);
    color: white;
}

.interesting-fact h2 {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.fact-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.fact-box p {
    font-size: 1.25rem;
    margin: 0;
}

/* Future Quote Section */
.future-quote {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.future-quote h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.quote-box {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    text-align: center;
}

blockquote {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-dark);
    position: relative;
    margin: 0;
}

blockquote::before {
    content: """;
    font-size: 5rem;
    font-family: var(--font-serif);
    color: var(--primary-light);
    position: absolute;
    top: -2.5rem;
    left: -1rem;
    opacity: 0.2;
}

blockquote cite {
    display: block;
    margin-top: 1.5rem;
    font-style: normal;
    font-weight: 600;
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 5rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

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

.footer-contact p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-dark);
    color: white;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

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

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-buttons button {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    border: none;
    font-weight: 600;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

#accept-cookies {
    background-color: var(--primary-color);
    color: white;
}

#accept-cookies:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

#customize-cookies {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

#customize-cookies:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

#decline-cookies {
    background-color: transparent;
    color: white;
}

#decline-cookies:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cookie-content a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.cookie-content a:hover {
    color: white;
}

/* About Page */
.page-header {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

.about-mission {
    padding: 5rem 0;
    background-color: var(--bg-light);
    text-align: center;
}

.about-mission p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125rem;
}

.team {
    padding: 5rem 0;
    background-color: white;
}

.team h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.team-member h3 {
    margin-bottom: 0.25rem;
}

.team-member p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.values {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.values h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.value-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

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

.value-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 2rem;
}

/* Contact Page */
.contact-info {
    padding: 5rem 0;
}

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

.contact-details h2, .contact-form-container h2 {
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
}

.contact-text h3 {
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-form {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: var(--bg-light);
    font-family: var(--font-sans);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.form-checkbox input {
    width: auto;
    margin-top: 0.25rem;
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.submit-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.map-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Content Page */
.post-content-page {
    padding: 5rem 0;
}

.post {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.post-header {
    margin-bottom: 2.5rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-light);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-featured-image {
    margin-bottom: 2.5rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-body {
    margin-bottom: 3rem;
}

.post-body h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.post-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-body ul, .post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-body ul {
    list-style-type: disc;
}

.post-body ol {
    list-style-type: decimal;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.table-of-contents {
    background-color: var(--bg-light);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2.5rem;
    list-style-type: none;
    padding-left: 0;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
}

.table-of-contents a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.table-of-contents a:hover {
    color: var(--primary-color);
}

.post-conclusion {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-top: 3rem;
}

.post-conclusion h2 {
    border-bottom: none;
    margin-top: 0;
}

.post-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.post-tags a {
    display: inline-block;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background-color var(--transition-fast);
}

.post-tags a:hover {
    background-color: rgba(99, 102, 241, 0.2);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.post-share a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.post-navigation {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
}

.post-nav-prev, .post-nav-next {
    flex: 1;
    min-width: 250px;
}

.post-nav-next {
    text-align: right;
}

.post-navigation span {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.post-navigation a {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-dark);
    transition: color var(--transition-fast);
}

.post-navigation a:hover {
    color: var(--primary-color);
}

.case-study {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.case-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.case-details p {
    margin-bottom: 0.5rem;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalFade 0.3s ease;
}

@keyframes modalFade {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .featured-posts, .about-mission, .team, .values, .contact-info, .post-content-page, .map-section {
        padding: 3rem 0;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .post-footer, .post-navigation {
        flex-direction: column;
    }
    
    .post-nav-next {
        text-align: left;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    header {
        height: auto;
        padding: 1rem 0;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cookie-content {
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}
