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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Navigation styles */
.nav-container {
    position: fixed;
    width: 100%;
    top: 0;
    background: transparent;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-container.scrolled {
    background: linear-gradient(135deg, 
        #75A7E6,
        #4B86CB,
        #2F5A8B
    );
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container > ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    height: 50px; /* Adjust as needed */
    /* or */
    max-width: 100px; /* Adjust as needed */
    vertical-align: middle;
  }
  
.logo {
    display: inline-block;
    padding: 10px 0;
  }

.nav-container a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
}


/* Hero section */
.hero {
    background: linear-gradient(135deg, 
        #75A7E6,
        #4B86CB,
        #2F5A8B
    );
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem 3rem;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center,
        rgba(255,255,255,0.1) 0%,
        rgba(255,255,255,0) 70%
    );
}

.hero-content {
    max-width: 800px;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero h3 {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 1rem auto 0;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

/* Section spacing */
.section {
    padding: 2rem 0;
}

.section h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #2F5A8B;
}

.contact p {
    text-align: center;
}

/* Services section */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.service-card {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.service-card h3 {
    margin-bottom: 0.75rem;
    color: #2F5A8B;
}

/* Blog styles */
.blog-header {
    text-align: center;
    margin-bottom: 2rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: #2F5A8B;
}

/* Blog Filters */
.blog-filters {
    margin-bottom: 2rem;
    text-align: center;
}

.blog-filters h3 {
    margin-bottom: 1rem;
    color: #333;
}

/* Category Buttons */
.category-buttons,
.subcategory-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 0.75rem 0;
}

.category-btn,
.subcategory-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid #4B86CB;
    border-radius: 4px;
    background: white;
    color: #4B86CB;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover,
.subcategory-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, 
        #75A7E6,
        #4B86CB,
        #2F5A8B
    );
    color: white;
    border-color: transparent;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.blog-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

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

.blog-card h3 {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #2F5A8B;
}

/* Blog Meta */
.blog-meta {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #eee;
}

.blog-meta span {
    font-weight: 500;
}

.blog-summary {
    font-size: 1rem;
    color: #444;
    flex-grow: 1;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.search-container {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 1rem;
    border: 1px solid #4B86CB;
    border-radius: 4px;
    font-size: 1rem;
    transition: box-shadow 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(75, 134, 203, 0.3);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #4B86CB;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.search-btn:hover {
    color: #2F5A8B;
}

.search-results-count {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #ffffff;
}

/* Highlight search results */
.highlight-match {
    background-color: rgba(75, 134, 203, 0.2);
    padding: 0 2px;
    border-radius: 2px;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
    width: 100%;
    grid-column: 1 / -1;
}

/* Post Content */
.post-meta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.post-meta span {
    position: relative;
}

.post-meta span:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.post-summary {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 1rem auto 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Content section modifications */
.post-content {
    padding: 3rem 0;
}

.post-content .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* Navigation elements */
.read-more {
    display: flex;
    align-items: center;
    color: #4B86CB;
    text-decoration: none;
    font-weight: 500;
    gap: 0.3rem;
    margin-top: auto;
}

.read-more:hover {
    text-decoration: underline;
}

.read-more-icon {
    transition: transform 0.2s ease;
}

.read-more:hover .read-more-icon {
    transform: translateX(3px);
}

/* Post Navigation */
.post-navigation {
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
}

.back-to-projects {
    color: #4B86CB;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-projects:hover {
    color: #2F5A8B;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 100;
}

.hamburger .line1,
.hamburger .line2,
.hamburger .line3 {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {

    .search-container {
        margin: 1rem 0;
    }

    .hamburger {
        display: block;
    }

    .nav-container > ul {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background: linear-gradient(135deg, 
            #75A7E6,
            #4B86CB,
            #2F5A8B
        );
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
    }

    .nav-container > ul.active {
        right: 0;
    }

    .nav-container > ul li {
        margin: 1.5rem 0;
    }

    .hamburger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active .line2 {
        opacity: 0;
    }

    .hamburger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .services {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .category-buttons,
    .subcategory-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .hero .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero .post-meta span::after {
        display: none;
    }

    .post-content {
        padding: 1rem;
    }

    .container {
        padding: 1rem;
    }
}