/* Layout & Grid Helpers */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
    /* Fluid width handles variable side spacing, but we can add small safe area if needed */
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        /* Safe padding for mobile */
    }
}

.page-padding {
    padding-top: 80px;
    /* Account for fixed header - Reduced from 120px */
    padding-bottom: 40px;
    /* Reduced from 60px */
}

/* ... */

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0 50px;
    /* Reduced from 160px 0 100px */
    min-height: 85vh;
    overflow: hidden;
}

/* ... */

/* Bento Grid */
/* Organic Anti-Grid (Trend #2) */
.bento-section {
    padding: 50px 0;
    /* Reduced from 100px */
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 40px;
    /* Reduced from 80px */
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.card-padding {
    padding: 40px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-logo {
    height: 48px;
    /* Adjustable based on logo aspect ratio */
    width: auto;
    display: block;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    height: auto;
    /* Allow growth */
}

.site-logo {
    height: auto;
    width: auto;
    max-height: 120px;
    /* Increased from 48px/60px */
    display: block;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
    align-items: center;
    /* Ensure alignment */
}

.main-navigation a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-heading);
    /* Match heading font for tech look */
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    /* Match futuristic style */
    letter-spacing: 1px;
    transition: color var(--transition-fast);
}



.site-logo:hover {
    transform: scale(1.05);
}

/* Sub-Menu Support (Glassmorphism) */
.main-navigation ul li {
    position: relative;
    /* Anchor for sub-menu */
}

.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    width: 220px;
    background: rgba(15, 23, 42, 0.95);
    /* Deep dark glass */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 0;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.main-navigation ul li:hover>ul,
.main-navigation ul li:focus-within>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-left: 2px solid transparent;
}

.main-navigation ul ul a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary-light);
}

.main-navigation a:hover {
    color: var(--primary-light);
}

.menu-toggle {
    display: none;
    /* Hidden on desktop */
}

/* Content */
.entry-title {
    font-family: var(--font-heading);
    margin-top: 0;
    /* Match Hero Gradient */
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3rem;
    /* Ensure large enough */
}

/* Footer */
.site-footer {
    padding: 60px 0 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-branding h3 {
    font-family: var(--font-heading);
    margin: 0 0 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    line-height: 2;
}

.footer-links a:hover {
    color: var(--primary-light);
}


.site-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

/* Footer Legal Links */
.site-info .legal-links {
    font-size: 0.8em;
    margin-top: 10px;
    opacity: 0.7;
}

.site-info .legal-links a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

.site-info .legal-links a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* Front Page Specific Styles (Bento & Hero) */

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    min-height: 85vh;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.benefit-list li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.benefit-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.benefit-list a:hover {
    color: var(--primary-light);
}

/* Dynamic Mesh Gradient Background for Hero */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--gradient-mesh);
    opacity: 0.6;
    z-index: -1;
    filter: blur(80px);
    /* Enhance the mesh blur */
}

/* Clearer background for Service Hero with Image */
.service-hero .hero-bg {
    opacity: 1;
    filter: none;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
    /* Shadow for legibility */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    /* Improve contrast */
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 10;
    /* Ensure it's above other elements */
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

.arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: fadeArrow 1.5s infinite;
    animation-delay: 0.5s;
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 25px;
        opacity: 0;
    }
}

@keyframes fadeArrow {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.btn-primary {
    background: var(--primary-light);
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(37, 99, 235, 0.5);
}

/* 3D Container */
/* 3D Container - Full Width Background */
.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    /* Fix hard cutoff by covering full width */
    height: 100vh;
    /* Full viewport height */
    overflow: hidden;
    /* Ensure no scrollbars */
    z-index: 0;
    /* Behind content but above bg */
    pointer-events: none;
    /* Let clicks pass through to BG or interactive elements if needed, but Three.js might need interaction? */
    /* If Three.js needs interaction (parallax), pointer-events must be auto. */
    pointer-events: auto;
}

#hero-3d {
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .hero-visual {
        width: 100%;
        opacity: 0.5;
        /* Fade it out a bit on mobile so text is readable */
    }
}

/* Bento Grid */
/* Organic Anti-Grid (Trend #2) */
.bento-section {
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 80px;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 60px);
    /* Fine-grained rows for overlapping */
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Global Typography */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Reusable Glass Panel (Matches Bento Card) */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
}

.bento-card {
    position: relative;
    border-radius: 30px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Inherit glass properties via mixin concept or just duplicate for now as they are specific grid items */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    text-decoration: none;
    /* Remove link underline */
    color: var(--text-color);
    /* Prevent blue link text */
    /* Clean up old SVG styles if any remain */
}



.card-icon {
    display: none;
    /* Hide old SVGs if present in HTML */
}

.bento-card:hover .card-icon {
    opacity: 1;
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.5));
}

/* Fluid Hover Effect */
.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
    pointer-events: none;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    z-index: 10;
    /* Pop above others */
}

/* Typography override for grid */
.bento-card h3 {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin-bottom: 16px;
    z-index: 1;
    text-transform: uppercase;
}

.bento-card p {
    font-size: 1.1rem;
    color: #cbd5e1;
    z-index: 1;
    line-height: 1.6;
}

/* Unique/Organic Placements */

/* Card 1: AI Leadership - Large, Top Left */
.grid-item-ai {
    grid-column: 1 / span 7;
    grid-row: 1 / span 6;
    border-radius: 40px 10px 40px 40px;
    /* Asymmetric corners */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
}

/* Card 2: Accessibility - Tall, Top Right */
.grid-item-wcag {
    grid-column: 8 / span 5;
    grid-row: 2 / span 7;
    border-radius: 10px 40px 40px 10px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
}

/* Card 3: Architecture - Wide, Bottom Left */
.grid-item-arch {
    grid-column: 2 / span 6;
    grid-row: 7 / span 5;
    border-radius: 40px 10px 10px 40px;
}

/* Card 4: Cybersecurity - Small, Bottom Right Overlay */
.grid-item-security {
    grid-column: 8 / span 4;
    grid-row: 9 / span 4;
    border-radius: 10px 40px 40px 40px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Fallback */
@media (max-width: 1024px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }

    .bento-card {
        grid-column: auto;
        grid-row: auto;
        min-height: 300px;
    }

    /* Fix Mobile Overflow globally */
    .container,
    .page-padding {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .site-header {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow: visible !important;
        /* Allow menu dropdown */
    }

    .contact-hero {
        margin-right: 0 !important;
    }
}

/* Background Images with Gradient Scrim for Readability */
/* Moved here to ensure they override grid positioning backgrounds */
.grid-item-ai {
    background-image: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 60%, rgba(15, 23, 42, 0.1) 100%),
        url('../images/card-ai.png');
    background-size: cover;
    background-position: center;
}

.grid-item-wcag {
    background-image: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 60%, rgba(15, 23, 42, 0.1) 100%),
        url('../images/card-wcag.png');
    background-size: cover;
    background-position: center;
}

.grid-item-arch {
    background-image: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 60%, rgba(15, 23, 42, 0.1) 100%),
        url('../images/card-arch.png');
    background-size: cover;
    background-position: center;
}

.grid-item-security {
    background-image: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 60%, rgba(15, 23, 42, 0.1) 100%),
        url('../images/card-security.png');
    background-size: cover;
    background-position: center;
}

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

    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background-color: var(--text-color);
    }

    .main-navigation ul {
        display: none;
        /* Toggle handled by JS */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        /* Deep dark glass */
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

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

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

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

/* Service Page Styles */
.service-hero {
    min-height: 50vh;
    /* Shorter hero for inner pages */
    padding-bottom: 40px;
    align-items: center;
    /* Center vertically */
    justify-content: center;
    /* Center horizontally if no 3D element */
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Content takes 2/3, Sidebar 1/3 */
    gap: var(--grid-gap);
}

.service-content {
    border-radius: 24px;
    min-height: 400px;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.benefit-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.benefit-list li::before {
    content: "→";
    color: var(--primary-light);
    margin-right: 12px;
}

.full-width {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        order: -1;
        /* Sidebar on top or bottom? Let's keep bottom for now, or just stack natural */
        order: 1;
    }
}

/* Assessment Page Styles */
.assessment-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.assessment-container {
    width: 100%;
    max-width: 700px;
    padding: 60px;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
}

.progress-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: var(--primary-light);
    width: 33%;
    transition: width 0.4s ease;
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 40px 0;
}

.option-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.option-card.selected {
    border-color: var(--primary-light);
    background: rgba(37, 99, 235, 0.1);
}

.option-card input {
    display: none;
}

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

.modern-input {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Force Assessment/CF7 Inputs to match Modern Input */
#assessment-lead-form input:not([type="submit"]),
#assessment-lead-form textarea,
.glass-cf7 input:not([type="submit"]),
.glass-cf7 textarea {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 20px;
    /* Remove default appearance */
    -webkit-appearance: none;
    appearance: none;
}

#assessment-lead-form input:focus,
#assessment-lead-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(0, 0, 0, 0.4);
}

/* Force Assessment Submit Button */
#assessment-lead-form input[type="submit"] {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition-fast);
    background: var(--primary-light);
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
    border: none;
    cursor: pointer;
    width: auto;
    /* Reset full width from input selector */
    margin-top: 10px;
}

#assessment-lead-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(37, 99, 235, 0.5);
    background: #3b82f6;
    /* Slightly lighter on hover */
}

.form-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.btn-muted {
    background: transparent;
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

@media (max-width: 600px) {
    .option-grid {
        grid-template-columns: 1fr;
    }

    .assessment-container {
        padding: 30px;
    }
}

/* Standard Page Typography (Privacy/Accessibility) */
.page-content-container {
    max-width: 800px;
    /* Optimal reading width */
    margin-bottom: 80px;
}

.text-readable h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-light);
}

.text-readable p,
.text-readable li {
    font-size: 1.1rem;
    color: #cbd5e1;
    /* Slightly lighter than muted */
    margin-bottom: 1.5rem;
}

.text-readable ul {
    list-style: disc;
    padding-left: 20px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    margin-bottom: 80px;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    margin-bottom: 24px;
}

.info-list strong {
    color: var(--primary-light);
    display: block;
    margin-bottom: 4px;
}

.info-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-list a:hover {
    color: var(--primary-light);
}

.social-links a {
    color: var(--text-color);
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--primary-light);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix Footer Menu Styling Globally */
.site-footer ul,
.footer-content ul,
.footer-links ul,
.menu-footer-contact-container ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 16px 0;
}

.site-footer li,
.footer-content li {
    margin-bottom: 12px;
}

/* Force Link Styling in Footer */
.menu-footer-contact-container a,
.footer-links a,
.footer-content a {
    color: var(--text-color) !important;
    text-decoration: none !important;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.menu-footer-contact-container a:hover,
.footer-links a:hover,
.footer-content a:hover {
    color: var(--primary-light) !important;
}

/* Fix Inline Links in Content (Privacy Policy etc) */
.entry-content a {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.entry-content a:hover {
    color: var(--primary-light);
    text-decoration-color: var(--primary-light);
}

/* --- Tech Stack Section --- */
.tech-stack-section {
    margin-top: 2rem;
}

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

.tech-category {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
}

.tech-category h3 {
    color: var(--accent-cyan);
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.tech-list li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.tech-list li strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.2rem;
}

/* --- Methodology Section --- */
.methodology-content {
    background: rgba(15, 23, 42, 0.6);
    /* Slightly darker for readability */
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Grid Styles */
.tech-grid article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.tech-grid .entry-summary {
    flex-grow: 1;
    margin-bottom: 24px;
}

.tech-grid .entry-footer {
    margin-top: auto;
    width: 100%;
}

.meta-cats {
    font-size: 0.85rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
}

.pagination .page-numbers {
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: var(--primary-light);
    color: var(--primary-light);
}

/* Button Styles */
.btn-primary-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--primary-light);
    color: var(--primary-light);
    background: transparent;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary-outline:hover {
    background: var(--primary-light);
    color: #0f172a;
    /* Dark background color assumed */
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
    text-decoration: none;
}

.entry-meta {
    color: #94a3b8;
    /* text-muted equivalent */
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 20px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.author-desc h4 {
    margin: 0 0 8px 0;
    color: var(--primary-light);
    font-size: 1.1rem;
}

.author-desc p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Entry Title Links */
.entry-title a {
    color: var(--text-color);
    /* Default white/light */
    text-decoration: none;
    transition: color 0.2s ease;
}

.entry-title a:hover {
    color: var(--primary-light);
    /* Accent color on hover */
}

/* Category Links */
.meta-cats a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.meta-cats a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Author Links in Meta */
.entry-meta a {
    color: inherit;
    /* Inherit from .entry-meta */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
}

.entry-meta a:hover {
    color: var(--primary-light);
    border-bottom-color: var(--primary-light);
}

/* Trusted By Section */
.trusted-by-section {
    padding: 30px 0 10px;
    /* Reduced from 40px 0 */
    margin-top: -60px;
    /* Pull it up into the hero space slightly */
    position: relative;
    z-index: 5;
    background: linear-gradient(to right, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0));
}

.trusted-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
    opacity: 0.7;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    /* Or project font */
    font-weight: 700;
    font-size: 1.2rem;
    color: #64748b;
    /* Muted Slate */
    transition: all 0.3s ease;
    cursor: default;
    letter-spacing: 1px;
}

.logo-text:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

@media (max-width: 768px) {
    .logo-grid {
        gap: 20px;
    }

    .logo-text {
        font-size: 0.9rem;
    }
}

/* Visual Break after Trusted Section */
.trusted-by-section::after {
    content: '';
    display: block;
    width: 60%;
    /* Not full width, cleaner look */
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin: 20px auto 0;
    /* Centered with top spacing */
}