/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #f1c40f;
    --text-color: #333;
    --light-text: #f5f5f5;
    --background-color: #fff;
    --background-alt: #f9f9f9;
    --border-color: #ddd;
    --success-color: #2ecc71;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius: 5px;
    --font-primary: 'Montserrat', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

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

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

p {
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

button, .cta-button, .button-3d, .submit-button {
    cursor: pointer;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    font-family: var(--font-primary);
    font-size: 1rem;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

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

.logo-container img {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    border-radius: 50%;
}

.logo-container h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--light-text);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--light-text);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a.active {
    color: var(--accent-color);
}

nav ul li a.active::after,
nav ul li a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(1);
    transform-origin: bottom left;
    transition: transform 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: var(--light-text);
    padding: 5rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--light-text);
    display: inline-block;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.cta-button:hover {
    background-color: #c0392b;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Main Content Sections */
main {
    min-height: 70vh;
}

section {
    padding: 4rem 5%;
}

section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Featured Posts */
.featured-posts {
    background-color: var(--background-alt);
}

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

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

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

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

.post-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.3rem;
}

.post-card p {
    padding: 0 1rem;
    color: #666;
}

.read-more {
    display: inline-block;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9rem;
}

.read-more:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Comparison Table */
.comparison-table {
    padding: 4rem 5%;
    background-color: var(--background-color);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    box-shadow: var(--card-shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

.comparison-table th, 
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--primary-color);
    color: var(--light-text);
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background-color: var(--background-alt);
}

.comparison-table tr:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

/* 3D Button */
.cta-3d {
    text-align: center;
    padding: 4rem 5%;
    background: linear-gradient(to right, #2c3e50, #4a5c6b);
    color: var(--light-text);
    border-radius: var(--radius);
    margin: 2rem 5%;
}

.cta-3d-button {
    perspective: 1000px;
    margin-bottom: 2rem;
}

.button-3d {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform-style: preserve-3d;
    transform: translateZ(-25px);
    transition: transform 0.3s;
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.button-3d:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #c0392b;
    left: 0;
    top: 0;
    transform: translateZ(-25px);
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.button-3d:hover {
    transform: translateZ(0);
    color: white;
}

.button-3d:hover:before {
    transform: translateZ(-50px) rotateX(90deg);
}

.cta-3d p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Page Styles */
.blog-header {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('images/5.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 5rem 5%;
}

.blog-header h2 {
    color: var(--light-text);
    font-size: 2.5rem;
}

.blog-header p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}

.blog-posts {
    padding: 4rem 5%;
}

.blog-post {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.blog-post:last-child {
    border-bottom: none;
}

.post-image {
    flex: 0 0 40%;
}

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

.post-content {
    flex: 1;
}

.post-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: #777;
    font-size: 0.9rem;
}

.post-content h4 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--primary-color);
}

/* About Page Styles */
.about-header {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('images/7.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 5rem 5%;
}

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

.about-mission {
    display: flex;
    gap: 3rem;
    align-items: center;
    padding: 4rem 5%;
}

.mission-content {
    flex: 3;
}

.mission-image {
    flex: 2;
}

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

.review-process {
    background-color: var(--background-alt);
    padding: 4rem 5%;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    background-color: var(--background-color);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

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

.step-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.team-section {
    padding: 4rem 5%;
    text-align: center;
}

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

.team-member {
    background-color: var(--background-alt);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

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

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-member h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.3rem;
}

.team-member p {
    padding: 0 1rem;
    color: #666;
}

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

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    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);
}

.about-stats {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: var(--light-text);
    padding: 4rem 5%;
    text-align: center;
}

.about-stats h3 {
    color: var(--light-text);
    margin-bottom: 3rem;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    flex: 1;
    min-width: 200px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
}

/* Contact Page Styles */
.contact-header {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('images/8.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 5rem 5%;
}

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

.contact-container {
    display: flex;
    gap: 3rem;
    padding: 4rem 5%;
}

.contact-info {
    flex: 1;
    background-color: var(--background-alt);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

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

.icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 0.5rem;
}

.contact-form-container {
    flex: 2;
}

.contact-form {
    background-color: var(--background-alt);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

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

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
    margin-top: 0.3rem;
}

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

.submit-button {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

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

.map-section {
    background-color: var(--background-alt);
    padding: 4rem 5%;
    text-align: center;
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
}

.map-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--background-color);
    margin: 15% auto;
    padding: 2rem;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: slideDown 0.4s;
}

.close-modal {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 1.8rem;
    cursor: pointer;
}

.modal-content h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.modal-content button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    margin-top: 1.5rem;
    border-radius: var(--radius);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 4rem 5% 2rem;
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.footer-logo p {
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-links h3 {
    color: var(--light-text);
    position: relative;
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

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

.footer-links ul li a {
    color: #bbb;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact h3 {
    color: var(--light-text);
    position: relative;
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
}

.footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Notice */
.cookie-notice {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.95);
    color: var(--light-text);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.cookie-buttons button {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

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

#customize-cookies {
    background-color: #f1c40f;
    color: #333;
}

#reject-cookies {
    background-color: #95a5a6;
    color: white;
}

.cookie-buttons button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.cookie-more-info a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero, .about-mission, .contact-container {
        flex-direction: column;
    }
    
    .hero-image, .mission-image {
        max-width: 100%;
    }
    
    .blog-post {
        flex-direction: column;
    }
    
    .post-image {
        flex: 0 0 100%;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .hero-content h2, .blog-header h2, .about-header h2, .contact-header h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 5%;
    }
    
    .comparison-table th, .comparison-table td {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h2, .blog-header h2, .about-header h2, .contact-header h2 {
        font-size: 1.8rem;
    }
    
    .post-grid, .team-grid, .process-steps {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        overflow-x: auto;
    }
    
    .info-item {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 30% auto;
    }
}
