/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
}

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

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Add a modern font style for the logo */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Roboto+Slab:wght@600;700&display=swap');

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    max-height: 50px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo-img:hover {
    opacity: 0.8;
}

.logo-text {
    color: #374151;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Montserrat', 'Segoe UI', 'Arial', sans-serif;
    letter-spacing: 1px;
    margin: 0;
}

.logo-text:hover {
    color: #2c91ef;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #111827;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2c91ef;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #1f2937;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    margin-top: 0; /* Adjusted for fixed navbar */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero-visual.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
    z-index: 1;
}

.hero-container {
    max-width: 1000px;
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 50px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #111827;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #374151;
}

.cta-button {
    display: inline-block;
    background-color: #374151;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #374151;
}

.cta-button:hover {
    background-color: #1f2937;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(55, 65, 81, 0.3);
}

.cta-button-send {
    display: inline-block;
    background-color: #273141;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #374151;
}

.cta-button-send:hover {
    background-color: #1f2937;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(55, 65, 81, 0.3);
}

/* Sections */
section {
    padding: 150px 0;
}

.about {
    background-color: #f3f4f6;
}

.about h2, .use-cases h2, .technology h2, .contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 5rem;
    color: #111827;
}

.about p {
    max-width: 1600px;
    width: 95%;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.2rem;
    color: #374151;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 40px;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
}

.about-text p {
    text-align: left;
    margin: 0;
}

/* Use Cases */
.use-cases {
    background-color: #e5e7eb;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Blog Header */
.blog-header {
    text-align: center;
    padding: 100px 0 40px;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.blog-header p {
    font-size: 1.2rem;
    color: #374151;
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Styles */
.blog-content {
    padding: 40px 0 80px;
    background-color: #f3f4f6;
}

.blog-posts {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-post {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: white;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-image {
    width: 250px;
    min-width: 250px;
    height: 180px;
    object-fit: cover;
    object-position: center;
    margin: 20px;
    border-radius: 8px;
    flex-shrink: 0;
}

.post-content {
    flex: 1;
    padding: 20px 30px 20px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.post-content h3 a {
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: #111827;
}

.post-meta {
    color: #6b7280;
    margin: 0 0 15px 0;
    font-size: 0.9rem;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #111827;
}

/* Responsive for blog posts */
@media screen and (max-width: 768px) {
    .blog-post {
        flex-direction: column;
    }

    .post-image {
        width: calc(100% - 40px);
        min-width: unset;
        height: 200px;
        margin: 20px 20px 10px 20px;
    }

    .post-content {
        width: 100%;
        padding: 10px 20px 20px 20px;
    }
}

.use-case-card {
    background: #f9fafb;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.use-case-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    opacity: 0.9;
}

.use-case-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.use-case-card p {
    color: #4b5563;
}

/* Technology Section */
.technology {
    background-color: #f3f4f6;
}

.tech-content {
    display: grid;
    gap: 5px;
    align-items: center;
    margin-top: 50px;
    max-width: 1500px;
}

.tech-text {
    max-width: 1600px;
    width: 95%;
    padding-top: 40px;
}

.tech-text p {
    margin-bottom: 1.5rem;
    color: #374151;
    font-size: 1.1rem;
}

.tech-text ul {
    list-style-type: disc;
    padding-left: 40px;
}

.tech-text li {
    padding: 3px 0;
    position: relative;
    padding-left: 0;
    color: #374151;
    display: list-item;
    align-items: center;
}

.tech-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-visual img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 1800px;
    width: 90%;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.cta-section .cta-button {
    background-color: white;
    color: #374151;
    border-color: white;
    display: inline-flex;
    gap: 12px;
    margin-left: 20px;
}

.cta-section .cta-button:hover {
    background-color: #f3f4f6;
    color: #1d4ed8;
}

/* Contact Section */
.contact {
    background-color: #e5e7eb;
}

.form-group {
    margin-bottom: 20px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #9ca3af;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #f9fafb;
}

#contact-form textarea {
    resize: vertical;
}

#contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 40px 0 20px;
    position: relative;
}

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

.footer-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.footer-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    margin: 0;
    z-index: 2;
}

.social-links {
    display: flex;
    gap: 15px;
    z-index: 2;
}

.social-links a {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
}

.social-links img {
    width: 24px;
    height: 24px;
    filter: invert(1); /* Make images appear white on dark background */
    transition: transform 0.3s ease;
}

.social-links a:hover img {
    transform: scale(1.2);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        text-align: center;
    }

    .hero::before {
        background-position: center;
        opacity: 0.15;
    }

    .hero-container {
        padding: 30px 20px;
        width: 90%;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        text-align: center;
        margin-bottom: 20px;
    }

    .tech-content {
        grid-template-columns: 1fr;
    }

    .tech-visual img {
        max-height: 250px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
    }

    .social-links {
        order: -1; /* Move social links to the top */
    }

    .social-links a {
        margin: 0 5px;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

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

    .about h2, .use-cases h2, .technology h2, .contact h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .use-case-icon {
        width: 50px;
        height: 50px;
    }
}

/* Post Page Header */
.post-header-section {
    padding: 70px 0 0;
    background-color: #f9fafb;
    text-align: center;
}

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

.post-title {
    font-size: 2.5rem;
    color: #111827;
    margin-bottom: 10px;
}

.post-meta {
    color: #6b7280;
    margin-bottom: 20px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    background: #374151;
    max-width: 500px;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    margin: 10px 0 20px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
