:root {
    --primary-color: #D4A574;
    --dark-bg: #f0eee7;
    --medium-bg: #e8e5dc;
    --light-bg: #1C1C1C;
    --text-light: #1C1C1C;
    --text-dark: #f0eee7;
    --text-secondary: #5a5852;
    --border-color: #d4d1c7;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* Basic Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
p { font-size: 1.1rem; color: var(--text-secondary); }

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    margin-bottom: 10px;
}
.section-title p {
    max-width: 600px;
    margin: 0 auto;
}

/* Header & Nav */
.header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid #333;
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

/* Navigation Container */
.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: white;
}

/* Mobile menu toggle - hidden by default */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
}

/* Hamburger icon */
.hamburger,
.hamburger::before,
.hamburger::after {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    display: block;
    border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/* Transform hamburger to X when menu is open */
.nav-toggle:checked + .nav-toggle-label .hamburger {
    background-color: transparent;
}

.nav-toggle:checked + .nav-toggle-label .hamburger::before {
    transform: rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-label .hamburger::after {
    transform: rotate(-45deg);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}
.btn:hover {
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 0;
}
.hero h1 {
    color: black;
    margin-bottom: 20px;
}
.hero p {
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 1.25rem;
}

/* Social Proof Section */
.social-proof {
    padding-top: 0;
    padding-bottom: 60px;
    text-align: center;
}
.social-proof h4 {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}
.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.logos img {
    height: 35px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(55%) sepia(15%) saturate(456%) hue-rotate(15deg) brightness(95%) contrast(90%);
    transition: filter 0.3s ease;
}
.logos img:hover {
    filter: brightness(0) saturate(100%) invert(84%) sepia(25%) saturate(456%) hue-rotate(15deg) brightness(100%) contrast(95%);
}

/* Services Section */
.services {
    background-color: var(--medium-bg);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}
.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.service-card .icon img {
    max-width: 100%;
    height: auto;
}
.service-card h3 {
    margin-bottom: 10px;
    color: var(--text-light);
}

/* Why Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.why-us-content ul {
    list-style: none;
    margin-top: 20px;
}
.why-us-content li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.why-us-content .tick {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.why-us-content h4 {
    color: var(--text-light);
    margin-bottom: 5px;
}
.founder-image-placeholder {
    background-color: var(--medium-bg);
    border-radius: 12px;
    height: auto;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.founder-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Case Studies */
.case-studies {
    background-color: var(--medium-bg);
}
.case-study-card {
    background-color: var(--dark-bg);
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}
.case-study-content {
    padding: 40px;
}
.case-study-content .category {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}
.case-study-content h3 {
    color: var(--text-light);
    margin-bottom: 15px;
}
.case-study-results {
    background-color: var(--medium-bg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.result-item {
    margin-bottom: 20px;
}
.result-item .metric {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
}
.result-item .label {
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    text-align: center;
}
.cta-section h2 {
    color: var(--text-light);
}
.cta-section p {
    color: rgba(28, 28, 28, 0.8);
    max-width: 600px;
    margin: 15px auto 30px auto;
}
.btn-light {
    background-color: var(--text-light);
    color: var(--dark-bg);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.footer p {
    font-size: 0.9rem;
}

/* Styles for About and Blog Pages */
main {
    min-height: calc(100vh - 200px);
}

article header {
    border-bottom: none;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

article h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

article time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.content {
    line-height: 1.8;
    color: var(--text-secondary);
}

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

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

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

.content a:hover {
    text-decoration: underline;
}

.content code {
    background-color: var(--medium-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--text-light);
}

.content pre {
    background-color: var(--medium-bg);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.content pre code {
    background-color: transparent;
    padding: 0;
}

.posts-list {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.post-item {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: box-shadow 0.3s, border-color 0.3s;
    background-color: var(--medium-bg);
}

.post-item:hover {
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
    border-color: var(--primary-color);
}

.post-item h2,
.post-item h3 {
    margin-bottom: 0.5rem;
}

.post-item h2 a,
.post-item h3 a {
    color: var(--text-light);
    text-decoration: none;
}

.post-item h2 a:hover,
.post-item h3 a:hover {
    color: var(--primary-color);
}

.post-item time {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.post-item p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

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

/* Blog-Specific Styles */
.blog-container {
    max-width: 1100px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out;
}

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

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.blog-header > p,
.blog-header .content p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.blog-search {
    max-width: 450px;
    margin: 2rem auto 0;
    position: relative;
}

.blog-search input {
    width: 100%;
    padding: 12px 20px;
    background-color: var(--medium-bg);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
}

.blog-search input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Blog Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Blog Card */
.blog-card {
    background: var(--medium-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.blog-card-image {
    display: none; /* Hiding image as per new design */
}

.blog-card-content {
    padding: 0;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.blog-meta .reading-time {
    font-style: italic;
}

.blog-card h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.blog-card h2 a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.blog-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: var(--dark-bg);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Top Tags Section Styling */
.top-tags {
    text-align: center;
    margin: 2rem auto 3rem auto;
    max-width: 800px;
}

.top-tags h3 {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.top-tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.top-tag {
    background: var(--dark-bg);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.top-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(10, 116, 218, 0.3);
}

.btn-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h2 {
    color: var(--text-light);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Single Blog Post Styles */
.blog-post-container {
    padding-top: 0;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: var(--dark-bg);
    margin-bottom: 0;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content-wrapper {
    padding: 60px 0;
}

.post-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.post-meta .separator {
    color: var(--border-color);
}

.post-meta .reading-time::before {
    content: "📖 ";
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
}

.post-content h2 {
    color: var(--text-light);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.post-content h3 {
    color: var(--text-light);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

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

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

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

.post-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 165, 116, 0.3);
    transition: border-color 0.3s ease;
}

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

.post-content code {
    background-color: var(--medium-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--text-light);
    font-size: 0.9em;
}

.post-content pre {
    background-color: var(--medium-bg);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
}

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
    gap: 8px;
}

.back-to-blog:hover {
    gap: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }

    /* Mobile Navigation */
    .nav-toggle-label {
        display: flex;
        position: relative;
    }

    .nav-container {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 30px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 1px solid #333;
    }

    .nav-toggle:checked ~ .nav-container {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 25px;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 0;
        border-bottom: 1px solid transparent;
        transition: border-color 0.3s ease, color 0.3s ease;
    }

    .nav-links a:hover {
        border-bottom-color: var(--primary-color);
    }

    .nav-cta {
        margin-top: 10px;
        font-size: 1rem;
    }

    /* Close menu when clicking on links */
    .nav-links a:target ~ .nav-toggle {
        display: none;
    }

    .why-us-grid { grid-template-columns: 1fr; }
    .founder-image-placeholder { height: 250px; margin-top: 30px; }
    .case-study-card { grid-template-columns: 1fr; }
    .case-study-results { border-top: 1px solid var(--border-color); }
    
    /* Blog responsive styles */
    .blog-header {
        padding: 20px 16px;
        margin-bottom: 40px;
    }
    
    .blog-header h1 {
        font-size: 2.2rem;
    }
    
    .blog-header > p,
    .blog-header .content p {
        font-size: 1rem;
    }
    
    .blog-search {
        margin-top: 24px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card-image {
        height: 200px;
    }
    
    .post-featured-image {
        height: 250px;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.2rem;
    }
}
