/* Base Styles and Variables */
:root {
    --primary-color: #3f51b5;
    --primary-dark: #303f9f;
    --primary-light: #c5cae9;
    --secondary-color: #ff9800;
    --secondary-dark: #f57c00;
    --accent-color: #4caf50;
    --text-dark: #212121;
    --text-medium: #555555;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-gray: #f5f7fa;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --border-radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-max-width: 1200px;
    --header-height: 80px;
    --footer-bg: #1a2b42;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

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

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

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

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

.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;
}

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

.btn:hover {
    background-color: var(--primary-dark);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-3d {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 6px var(--primary-dark), 0 8px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    position: relative;
    top: 0;
}

.btn-3d:hover {
    top: -2px;
    box-shadow: 0 8px var(--primary-dark), 0 10px 15px rgba(0, 0, 0, 0.3);
}

.btn-3d:active {
    top: 3px;
    box-shadow: 0 2px var(--primary-dark), 0 4px 5px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.logo span {
    font-weight: 700;
    font-size: 1.5rem;
}

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

nav ul {
    display: flex;
    list-style: none;
}

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

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

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

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

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

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

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

/* Featured Posts Section */
.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(300px, 1fr));
    gap: 2rem;
}

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

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

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

.post h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.25rem;
}

.post p {
    padding: 0 1.5rem 1rem;
    color: var(--text-medium);
}

.read-more {
    display: inline-block;
    padding: 0 1.5rem 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.view-all {
    text-align: center;
    margin-top: 3rem;
}

/* Blog Posts Section */
.blog-posts {
    padding: 4rem 0;
    background-color: var(--background-gray);
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.post-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.post-image {
    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-date {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.post-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.post-content p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

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

/* Blog Post */
.blog-post {
    padding: 4rem 0;
}

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

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.post-author {
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
}

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

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

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

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

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

.post-body .note-box {
    background-color: #e8f4fd;
    border-left: 4px solid #2196f3;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.post-body .tax-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.post-body .tax-table th,
.post-body .tax-table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.post-body .tax-table th {
    background-color: var(--primary-light);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 3rem 0;
}

.post-tags span {
    font-weight: 600;
    margin-right: 1rem;
}

.post-tags a {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.post-share {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.post-share span {
    font-weight: 600;
    margin-right: 1rem;
}

.post-share a {
    margin-right: 1rem;
    color: var(--text-medium);
}

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

.post-share a svg {
    width: 24px;
    height: 24px;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
}

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

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

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

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

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

.related-post h4 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.1rem;
}

.related-post .read-more {
    padding: 0 1rem 1rem;
}

/* About Us Page */
.about-mission {
    padding: 4rem 0;
}

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

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

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

.team-section {
    padding: 4rem 0;
    background-color: var(--background-gray);
}

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

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

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

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

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-member img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

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

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

.team-member p:last-of-type {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.9rem;
}

.our-values {
    padding: 4rem 0;
}

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

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

.value-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    border-radius: 50%;
    color: var(--primary-dark);
}

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

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

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

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

.contact-info p {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.info-icon {
    margin-right: 1.5rem;
    color: var(--primary-color);
}

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

.info-text p {
    margin-bottom: 0;
    color: var(--text-medium);
}

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

.contact-form h2 {
    margin-bottom: 1.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);
    background-color: var(--background-light);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.2);
}

.submit-btn {
    width: 100%;
}

.map-section {
    padding: 4rem 0;
    background-color: var(--background-gray);
}

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

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

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

.modal-content {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    text-align: center;
    position: relative;
}

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

.modal-btn {
    margin-top: 1.5rem;
}

/* Crypto Fact Section */
.crypto-fact {
    padding: 3rem 0;
}

.fact-box {
    background: linear-gradient(135deg, #f6f0fd, #e2f0fe);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.fact-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.fact-box p {
    margin-bottom: 0;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--text-light);
    text-align: center;
}

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

.cta p {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.25rem;
}

.cta-button {
    display: flex;
    justify-content: center;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

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

.footer-links h4,
.footer-legal h4,
.footer-contact h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

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

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

.footer-links a:hover,
.footer-legal a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

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

.footer-contact i {
    margin-right: 0.75rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

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

.footer-social a svg {
    fill: var(--text-light);
}

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

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

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-light);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
}

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

.cookie-content p {
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn-cookie {
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie.accept {
    background-color: var(--success-color);
    color: var(--text-light);
}

.btn-cookie.customize {
    background-color: var(--background-gray);
    color: var(--text-dark);
}

.btn-cookie.decline {
    background-color: var(--background-gray);
    color: var(--text-dark);
}

.btn-cookie:hover {
    opacity: 0.9;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .post-card {
        grid-template-columns: 1fr;
    }
    
    .post-image img {
        height: 250px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .team-grid {
        gap: 2rem;
    }
    
    .values-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .logo span {
        font-size: 1.25rem;
    }
    
    nav ul li {
        margin-left: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .btn-cookie {
        width: 100%;
    }
}

/* Icon Styles */
.icon-location,
.icon-phone,
.icon-email {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.icon-location {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

.icon-phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z'%3E%3C/path%3E%3C/svg%3E");
}

.icon-email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}
