/* CSS Variables for theming */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
body.dark-mode {
    --text-color: #f9fafb;
    --text-light: #d1d5db;
    --bg-color: #111827;
    --bg-light: #1f2937;
    --bg-dark: #0f172a;
    --border-color: #374151;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

/* Navigation */
.navbar {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    order: 2;
}

.lang-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg-light);
    color: var(--text-color);
}

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

.lang-link.active {
    background: var(--primary-color);
    color: white;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    order: 1;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    order: 3;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-full {
    width: 100%;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
}

/* Stats Section */
.stats {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

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

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

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.7);
}

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

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Content Page */
.content-page {
    padding: 4rem 0;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.content-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.info-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
}

.info-box h3 {
    margin-bottom: 1rem;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.tech-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tech-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: scale(1.05);
}

.benefit-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.benefit-card h4 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.benefit-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 15px;
    margin-top: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Gallery */
.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    line-height: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    color: white;
    text-align: center;
    font-size: 1.2rem;
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    position: sticky;
    top: 100px;
}

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

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

.contact-details {
    margin: 2rem 0;
}

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

.contact-icon {
    font-size: 2rem;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
}

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

.social-links {
    margin-top: 2rem;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Contact Form */
.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

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

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

.form-group textarea {
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.form-error {
    display: block;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-success {
    display: none;
    background: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}

.form-success.show {
    display: block;
}

.hidden {
    display: none;
}

/* Blog */
.blog-posts {
    max-width: 900px;
    margin: 0 auto;
}

.blog-post-card {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    align-items: flex-start;
}

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

.like-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
    min-width: 60px;
}

.like-button:hover {
    background: var(--bg-light);
}

.like-button .heart {
    font-size: 2rem;
    transition: var(--transition);
    filter: grayscale(100%);
    opacity: 0.5;
}

.like-button.liked .heart {
    filter: grayscale(0%);
    opacity: 1;
    animation: heartBeat 0.3s ease;
}

.like-button .like-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
}

.like-button.liked .like-count {
    color: var(--primary-color);
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.blog-post-content {
    flex: 1;
}

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

.blog-post-content h2 a {
    color: var(--text-color);
    transition: var(--transition);
}

.blog-post-content h2 a:hover {
    color: var(--primary-color);
}

.blog-post-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

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

.post-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-date::before {
    content: "📅";
    font-size: 1rem;
}

.post-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Individual Blog Post */
.blog-post-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0 2rem;
}

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

.blog-post-header .post-meta {
    display: flex;
    gap: 2rem;
    font-size: 1rem;
    opacity: 0.9;
    flex-wrap: wrap;
}

.blog-post-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.blog-post-article .post-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-post-article .post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.blog-post-article .post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

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

.blog-post-article .post-content ul,
.blog-post-article .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--text-light);
}

.blog-post-article .post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-article .post-content code {
    background: var(--bg-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.blog-post-article .post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.back-to-blog:hover {
    gap: 0.75rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-brand {
        order: 0;
    }

    .language-switcher {
        order: 1;
        margin-left: auto;
    }

    .nav-toggle {
        order: 2;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
        order: 3;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        position: static;
    }

    .feature-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .blog-post-card {
        flex-direction: column;
        align-items: stretch;
    }

    .like-button {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        padding: 1rem;
    }

    .blog-post-header h1 {
        font-size: 2rem;
    }

    .blog-post-article .post-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .lightbox-close {
        font-size: 2rem;
    }
}

/* Dark Mode Specific Styles */
body.dark-mode .navbar {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .feature-card,
body.dark-mode .tech-item,
body.dark-mode .benefit-card,
body.dark-mode .contact-form-container {
    background: var(--bg-light);
}

body.dark-mode .info-box,
body.dark-mode .contact-info {
    background: var(--bg-dark);
}

body.dark-mode .filter-btn {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-color);
}

body.dark-mode .filter-btn:hover,
body.dark-mode .filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

body.dark-mode .gallery-item {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

body.dark-mode .social-icons a {
    background: var(--bg-light);
}

body.dark-mode input,
body.dark-mode textarea {
    background: var(--bg-dark);
    border-color: var(--border-color);
    color: var(--text-color);
}

body.dark-mode input:focus,
body.dark-mode textarea:focus {
    border-color: var(--primary-color);
    background: var(--bg-color);
}

body.dark-mode .hero-background {
    opacity: 0.2;
}

body.dark-mode .page-header {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-color));
}

body.dark-mode .lightbox {
    background: rgba(0, 0, 0, 0.98);
}

body.dark-mode .blog-post-card {
    background: var(--bg-light);
}

body.dark-mode .blog-post-article .post-content {
    background: var(--bg-light);
}

body.dark-mode .post-category {
    background: var(--bg-dark);
}

