/* Base Styles & Variables */
:root {
    --primary-color: #5d48e7;
    --secondary-color: #ff5c8d;
    --accent-color: #00c9a7;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #e6e6e6;
    --header-height: 80px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-width: 1200px;
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    --font-secondary: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
}

/* Dark theme variables */
.dark-theme {
    --primary-color: #6f5aff;
    --secondary-color: #ff7aa2;
    --accent-color: #00e6c3;
    --text-color: #f0f0f0;
    --text-light: #b0b0b0;
    --bg-color: #121212;
    --bg-secondary: #1e1e1e;
    --border-color: #333333;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

ul, ol {
    list-style-position: inside;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 0 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    background-color: var(--bg-secondary);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

blockquote p {
    margin-bottom: 0.5rem;
}

blockquote cite {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: normal;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-primary);
}

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

.btn.primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

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

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

button {
    cursor: pointer;
    font-family: var(--font-primary);
}

/* Header */
header {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    z-index: 100;
    transition: var(--transition);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

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

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

.logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    border-radius: 50%;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem;
    position: relative;
}

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

nav a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

#theme-toggle:hover {
    background-color: var(--bg-secondary);
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

.dark-theme .sun-icon {
    display: block;
}

.dark-theme .moon-icon {
    display: none;
}

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

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

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 500;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Intro Section */
.intro {
    padding: 5rem 0;
}

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

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.intro-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* Posts Grid */
.latest-posts {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

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

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

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

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

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

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.post-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.read-more {
    display: inline-block;
    font-weight: 600;
    position: relative;
    padding-right: 20px;
}

.read-more::after {
    content: "→";
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

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

/* Newsletter Section */
.newsletter {
    padding: 5rem 0;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 1rem;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.newsletter form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter input {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
    font-family: var(--font-primary);
}

.newsletter button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter button:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 5rem 0 2rem;
    color: var(--text-color);
}

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

.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
    border-radius: 50%;
}

.footer-logo p {
    font-size: 0.9rem;
}

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

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

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

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
}

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

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

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

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    display: none;
    z-index: 1000;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 1.5rem;
    max-width: 800px;
}

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

.cookie-buttons button {
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

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

#accept-cookies:hover {
    background-color: var(--secondary-color);
}

#customize-cookies {
    background-color: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-color);
}

#customize-cookies:hover {
    background-color: var(--bg-color);
}

#decline-cookies {
    background-color: transparent;
    color: var(--text-light);
}

#decline-cookies:hover {
    color: var(--text-color);
}

.cookie-more {
    font-size: 0.9rem;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-banner h1 {
    color: white;
    margin-bottom: 0;
}

/* About Page Styles */
.about-intro {
    padding: 5rem 0;
}

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

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

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

.team-section h2, .team-intro {
    text-align: center;
}

.team-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
}

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

.team-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.team-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.team-card h3 {
    margin: 1.5rem 0 0.25rem;
}

.team-card p {
    margin: 0 1.5rem 1rem;
    color: var(--text-light);
}

.team-card p:nth-of-type(1) {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0 0 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.our-approach {
    padding: 5rem 0;
}

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

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

.approach-item {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: var(--bg-secondary);
    transition: var(--transition);
}

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

.approach-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.approach-item h3 {
    margin-bottom: 1rem;
}

.join-us {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.join-us h2 {
    color: white;
    margin-bottom: 1rem;
}

.join-us p {
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2, .contact-form h2 {
    margin-bottom: 1.5rem;
}

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

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 1.5rem;
    color: white;
}

.info-content h3 {
    margin-bottom: 0.5rem;
}

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

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

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

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

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

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

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

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

/* Modal for contact form submission */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    background-color: var(--bg-color);
    margin: 15% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow);
    position: relative;
    animation: modalFadeIn 0.3s;
}

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

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

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 3rem 2rem;
    text-align: center;
}

.success-icon {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

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

.modal-body p {
    margin-bottom: 1.5rem;
}

.close-btn {
    margin-top: 0.5rem;
}

/* Blog Post Styles */
.post-content {
    padding: 5rem 0;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.post-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

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

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

.post-image-container {
    margin: 2.5rem 0;
}

.post-image-container img {
    width: 100%;
    border-radius: var(--border-radius);
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.75rem;
}

.post-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.post-conclusion {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.post-conclusion p:last-child {
    margin-bottom: 0;
}

.post-navigation {
    margin: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.prev-post, .next-post {
    display: flex;
    flex-direction: column;
    max-width: 45%;
}

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

.nav-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.nav-title {
    font-weight: 600;
}

.related-posts {
    margin-bottom: 3rem;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-post-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.related-post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.related-post-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 2rem 1rem 1rem;
    margin: 0;
    font-size: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.75rem;
    }
    
    .intro-content, .about-content, .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .intro-text, .about-text {
        order: -1;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .intro, .about-intro, .team-section, .our-approach, .contact-section, .post-content {
        padding: 3rem 0;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    header .container {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    nav ul {
        margin-top: 1rem;
        gap: 0.75rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .prev-post, .next-post {
        max-width: none;
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter input, .newsletter button {
        width: 100%;
        border-radius: var(--border-radius);
        margin-bottom: 0.5rem;
    }
    
    .post-navigation {
        margin: 2rem 0;
    }
}
