/* Base & Reset */
.metric-number[data-target="3"]::after,
.metric-number[data-target="50"]::after {
    color: #2563eb;
    /* same blue */
    font-weight: 600;
}

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --color-primary: #2563EB;
    /* Electric Blue */
    --color-primary-dark: #1d4ed8;
    --color-dark: #0F172A;
    --color-gray: #475569;
    --color-light-gray: #F8FAFC;
    --color-white: #ffffff;
    --color-border: #e2e8f0;

    --container-width: 1240px;
    --padding-section: 60px 0;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-gray);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--padding-section);
}

.text-accent {
    color: var(--color-primary);
}

.text-light {
    font-weight: 300;
    color: var(--color-gray);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-xl {
    padding: 20px 48px;
    font-size: 1.25rem;
}

.btn-link {
    background: transparent;
    color: var(--color-dark);
    margin-left: 24px;
}

.btn-link:hover {
    color: var(--color-primary);
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-dark);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-mark {
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-item>a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-dark);
    padding: 8px 0;
}

.nav-item>a:hover {
    color: var(--color-primary);
}

/* Hover Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 200px;
    padding: 16px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    display: block;
    padding: 8px 12px;
    color: var(--color-gray);
    font-size: 0.9rem;
    border-radius: 4px;
}

.dropdown a:hover {
    background: var(--color-light-gray);
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-dark);
}

/* Hero */
.hero {
    position: relative;
    padding-top: 180px;
    /* Space for nav */
    padding-bottom: 120px;
    overflow: hidden;
}

/* CSS-based Abstract Tech Background + Image Overlay */
.hero-background-graphic {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 140%;
    height: 140%;
    background: url('assets/hero_background.png') no-repeat center center;
    background-size: contain;
    opacity: 0.15;
    /* Subtle overlay */
    z-index: -1;
    transform: rotate(-5deg);
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-subtext {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 48px;
    color: var(--color-gray);
}

/* Services */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray);
}

.view-all-link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-all-link:hover {
    gap: 12px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: transparent;
}

.card-icon {
    margin-bottom: 16px;
    color: var(--color-primary);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-gray);
    margin-bottom: 16px;
    flex-grow: 1;
}

.card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-top: auto;
}

/* Industries (Horizontal Scroll Style) */
.industries-section {
    background: var(--color-light-gray);
    overflow: hidden;
}

.industries-scroll-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 30px;
    /* Hide scrollbar visual visually or allow it */
    scrollbar-width: none;
    /* Firefox */
}

.industries-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.industry-card {
    min-width: 280px;
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
}

.industry-card:hover {
    background: var(--color-dark);
}

.industry-card:hover h3,
.industry-card:hover p,
.industry-card:hover .industry-number {
    color: white;
    opacity: 1;
}

.industry-number {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    color: var(--color-border);
    margin-bottom: 16px;
    transition: 0.3s;
}

.industry-card h3 {
    margin-bottom: 8px;
    font-size: 1.5rem;
}

/* Clients */
.logo-strip-container {
    text-align: center;
    margin-bottom: 100px;
}

.logo-strip-container p {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 32px;
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.6;
    filter: grayscale(100%);
}

.client-logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: #cbd5e1;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.case-card {
    display: flex;
    flex-direction: column;
}

.case-image-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    background: #f1f5f9;
}

.case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.case-card:hover .case-image {
    transform: scale(1.05);
}

.case-tags {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.case-content h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

/* Insights */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.insight-card {
    cursor: pointer;
}

.insight-img-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: url('assets/insights_background.png') no-repeat center center;
    background-size: cover;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.insight-img-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
}

.insight-category {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.insight-body h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.read-time {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* CTA Section */
.cta-section {
    background: var(--color-dark);
    text-align: center;
    color: white;
    padding: 120px 24px;
}

.cta-title {
    color: white;
    font-size: 4rem;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 48px;
}

/* Footer */
.footer {
    background-color: var(--color-dark);
    color: rgba(255, 255, 255, 0.6);
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    /* Brand takes less space, links take more */
    gap: 20px;
    padding-bottom: 30px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    max-width: 300px;
    margin-bottom: 32px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding: 32px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions,
    .logo-strip-container .logo-grid {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .logo-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        filter: grayscale(100%);
    }
}

/* Contact Page Specific Styles */

.contact-hero {
    padding-top: 180px;
    padding-bottom: 30px;
    background: var(--color-light-gray);
    text-align: center;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Info column narrower than form */
    gap: 64px;
    margin-bottom: 100px;
    background: white;
    padding: 64px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    margin-top: -60px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
}

/* Contact Info Side */
.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--color-gray);
    margin-bottom: 32px;
}

.contact-details-item {
    margin-bottom: 32px;
}

.contact-details-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-details-item p,
.contact-details-item a {
    color: var(--color-gray);
    font-size: 1rem;
}

.contact-details-item a:hover {
    color: var(--color-primary);
}

/* Form Side */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-dark);
    background: var(--color-light-gray);
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit-btn {
    align-self: flex-start;
    margin-top: 16px;
    width: 100%;
}

/* Responsive Form */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 40px 24px;
        margin-top: 0;
    }

    .contact-hero {
        padding-bottom: 30px;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Clients Page Specific Styles */

/* Client List Grid */
.clients-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.client-logo-box {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    background: white;
}

.client-logo-box:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.client-logo-box span {
    font-weight: 700;
    font-size: 1.1rem;
    color: #cbd5e1;
    transition: color 0.3s;
}

.client-logo-box:hover span {
    color: var(--color-dark);
}

/* Testimonials Section */
.testimonials-section {
    background: var(--color-light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    position: relative;
}

.testimonial-quote-icon {
    font-size: 4rem;
    color: rgba(37, 99, 235, 0.1);
    /* Primary color low opacity */
    position: absolute;
    top: 20px;
    left: 20px;
    line-height: 1;
    font-family: serif;
}

.testimonial-text {
    position: relative;
    z-index: 2;
    font-size: 1.05rem;
    color: var(--color-dark);
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    /* Placeholder */
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--color-gray);
}

/* Responsive Clients Page */
@media (max-width: 1024px) {
    .clients-page-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .clients-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Industries Page Specific Styles */

/* Industries Hero */
.industries-hero {
    background-color: var(--color-dark);
    color: white;
    padding-top: 180px;
    padding-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.industries-hero h1 {
    color: white;
    max-width: 900px;
    margin: 0 auto 24px auto;
}

.industries-hero p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.25rem;
}

/* Industries Main Grid */
.industries-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.industry-tile {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 40px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.industry-tile:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.industry-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.industry-tile h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.industry-tile p {
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
    /* Push arrow down */
}

.industry-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-dark);
    transition: gap 0.2s ease;
}

.industry-tile:hover .industry-link-arrow {
    gap: 12px;
    color: var(--color-primary);
}

/* Decoration for Industry Tile */
.industry-tile::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(to bottom left, rgba(37, 99, 235, 0.05), transparent 50%);
    border-top-right-radius: var(--radius-md);
}

@media (max-width: 1024px) {
    .industries-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .industries-page-grid {
        grid-template-columns: 1fr;
    }
}

/* Services Page Specific Styles */

.services-hero {
    background-color: var(--color-white);
    padding-top: 180px;
    padding-bottom: 30px;
}

.services-hero h1 {
    font-size: 4.5rem;
    max-width: 900px;
    margin-bottom: 32px;
}

/* Service Category Block */
.service-category-block {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    padding: 80px 0;
    border-bottom: 1px solid var(--color-border);
}

.service-category-block:last-child {
    border-bottom: none;
}

.service-info h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.service-info p {
    color: var(--color-gray);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.service-sub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sub-service-card {
    background: var(--color-light-gray);
    padding: 32px;
    border-radius: var(--radius-sm);
    transition: background 0.3s;
}

.sub-service-card:hover {
    background: #f1f5f9;
    /* slightly darker gray */
}

.sub-service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sub-service-card ul {
    list-style: none;
    margin-top: 16px;
}

.sub-service-card ul li {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.sub-service-card ul li::before {
    content: " ";
    color: var(--color-primary);
    position: absolute;
    left: 0;
}

/* Tech Stack Marquee (Simple CSS Scroll) */
.tech-stack-section {
    overflow: hidden;
    background: var(--color-dark);
    color: white;
    padding: 60px 0;
}

.tech-marquee {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.tech-item {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 900px) {
    .service-category-block {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-hero h1 {
        font-size: 3rem;
    }
}

/* Insights / Blog Page Specific Styles */

/* Blog Hero */
.blog-hero {
    background: var(--color-light-gray);
    padding-top: 180px;
    padding-bottom: 60px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

/* Featured Article (Hero Blog Post) */
.featured-article-section {
    padding-bottom: 30px;
}

.featured-article {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    align-items: center;
    background: white;
    margin-bottom: 40px;
}

.featured-img-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    background: #e2e8f0;
    overflow: hidden;
    position: relative;
    background: url("assets/insights_background.png") no-repeat center center;
    background-size: cover;
}

.featured-content .insight-category {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.featured-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.featured-content p {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 32px;
}

/* Filter / Tabs */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid var(--color-border);
    background: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--color-dark);
    color: white;
    border-color: var(--color-dark);
}

/* Blog List Grid */
.blog-grid-section {
    padding-top: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 80px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: 0.2s;
}

.page-link.active,
.page-link:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Newsletter Section (Insights specific) */
.newsletter-cta {
    background: var(--color-dark);
    color: white;
    padding: 80px;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.newsletter-content h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 16px;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form-inline {
    display: flex;
    gap: 16px;
}

.newsletter-form-inline input {
    flex: 1;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: none;
}

@media (max-width: 900px) {
    .featured-article {
        grid-template-columns: 1fr;
    }

    .newsletter-cta {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

/* Logo Styles */
.logo-img {
    height: 48px;
    /* Adjusted based on typical nav height */
    width: auto;
    object-fit: contain;
}

/* Ensure navbar alignment handles the image */
.navbar .logo {
    display: flex;
    align-items: center;
    /* Reset font styles if they interfere */
    font-family: inherit;
    font-weight: normal;
    font-size: 1rem;
    color: inherit;
}

/* Footer logo might need different sizing */
.footer-logo {
    height: 48px;
    margin-bottom: 16px;
}

/* Learn More Link Styling */
.service-card .learn-more-link {
    display: inline-block;
    margin-top: auto;
    /* Pushes to bottom if flex container */
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.service-card .learn-more-link:hover {
    text-decoration: underline;
    color: var(--color-primary-dark);
}

/* --- Web Development Page Styles --- */

/* Simple Cards (What We Deliver) */
.card-simple {
    background: white;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card-simple h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--color-secondary);
}

.feature-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 16px;
    color: var(--color-text-light);
}

.feature-list li {
    margin-bottom: 8px;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.process-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    min-width: 40px;
}

/* Impact Metrics in Case Study */
.metric-val {
    line-height: 1;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Challenge Cards */
.challenge-card {
    background: white;
    padding: 24px;
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Tech Tags */
.tech-tag {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-weight: 600;
    color: var(--color-secondary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Stats Item */
.stat-item {
    text-align: center;
    flex: 1 1 200px;
}

/* Hero Variant */
.hero-light {
    background: white;
    padding-top: 120px;
    /* Account for fixed nav */
    padding-bottom: 30px;
}


/* Clean Grid Layout (Refactored from Staggered) */
.netguru-staggered-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
    /* Ensures uniform height */
}

@media (max-width: 1200px) {
    .netguru-staggered-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .netguru-staggered-grid {
        grid-template-columns: 1fr;
    }
}

/* Specific Card Styling */
.netguru-card {
    background-color: var(--color-light-gray);
    padding: 40px;
    border: none;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; Removed to allow natural flow with arrow positioned absolutely */
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.netguru-card:hover {
    transform: translateY(-5px);
    background-color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Arrow Decoration */
.netguru-card::after {
    content: "→";
    position: absolute;
    bottom: 32px;
    right: 32px;
    font-family: sans-serif;
    font-size: 1.5rem;
    color: var(--color-gray);
    transition: all 0.3s ease;
    line-height: 1;
}

.netguru-card:hover::after {
    color: var(--color-primary);
    transform: translateX(5px);
}

/* Card Header: Title + Icon Row */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.netguru-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    max-width: 70%;
}

.card-icon-circle {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.card-icon-circle svg {
    width: 20px;
    height: 20px;
    color: #334155;
}

.netguru-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 16px;
}

/* Arrow at bottom right */
.card-arrow-row {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.card-arrow {
    width: 24px;
    height: 24px;
    color: #0f172a;
    transition: transform 0.2s;
}

.netguru-card:hover .card-arrow {
    transform: translateX(4px);
}

/* Staggering Effect (CSS Grid Shift) */
/* Staggering Effect Removed for Clean Grid */
/* 
@media (min-width: 900px) {
    .netguru-staggered-grid> :nth-child(2) { margin-top: 60px; }
    .netguru-staggered-grid> :nth-child(5) { margin-top: 60px; }
} 
*/


/* Title Highlight Effect */
.highlight-container {
    display: inline-block;
    position: relative;
    z-index: 1;
}

.highlight-container::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: -4px;
    right: -4px;
    height: 16px;
    /* Half-height highlight */
    background-color: #ccfbf1;
    /* Light mint green */
    z-index: -1;
    border-radius: 4px;
}

/* Full Width Highlight Variant matching screenshot */
.highlight-green-blob {
    display: inline-block;
    background-color: #a7f3d0;
    /* Match screenshot green */
    padding: 0 10px;
    border-radius: 20px;
    /* Adjust positioning to be behind or inline? Screenshot shows it as a background for the words "web development?"
       It looks like a marker highlight.
    */
}

/* Why Seek Support Layout */
.support-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 20px;
}

.support-content {
    max-width: 650px;
}

.support-btn-container {
    flex-shrink: 0;
}

.btn-outline-green {
    border: 1px solid #10b981;
    /* Green border */
    color: #064e3b;
    background: transparent;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-green:hover {
    background-color: #ecfdf5;
}

/* Logo Row */
.logo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    opacity: 0.8;
}

.logo-item {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    font-family: sans-serif;
    /* Fallback for "logos" */
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.logo-item:hover {
    filter: grayscale(0%);
}


/* Process Timeline Section */
.process-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 20px;
}

.process-header-left {
    flex: 1;
    max-width: 500px;
}

.process-header-right {
    flex: 1;
    max-width: 500px;
    color: #475569;
    font-size: 1.125rem;
    line-height: 1.6;
}

.process-timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #e2e8f0;
    /* Optional top border line if needed, screenshot looks clean */
}

.timeline-step {
    padding: 40px 24px 0 0;
    /* Right padding for space before line */
    border-right: 1px solid #e2e8f0;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background-color 0.3s;
}

.timeline-step:last-child {
    border-right: none;
    padding-right: 0;
}

.timeline-number {
    font-size: 4rem;
    font-weight: 400;
    /* Thin/Regular look as per design */
    color: #334155;
    line-height: 1;
    margin-bottom: 60px;
}

.timeline-content-bottom {
    margin-top: auto;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* Responsive Process */
@media (max-width: 992px) {
    .process-timeline-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .timeline-step:nth-child(3n) {
        border-right: none;
    }

    .timeline-step {
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 30px;
    }
}

@media (max-width: 600px) {
    .process-header-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .process-timeline-grid {
        grid-template-columns: 1fr;
    }

    .timeline-step {
        border-right: none;
        padding-right: 0;
        min-height: auto;
    }
}


/* Impact Metrics Cards */
.impact-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.metric-card {
    background-color: #f1f5f9;
    /* Light gray background matching screenshot */
    padding: 24px;
    border-radius: 2px;
    /* Square/Minimal radius */
    color: #1e293b;
    /* Dark text for body */
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-card .metric-val {
    font-size: 2.5rem;
    font-weight: 400;
    /* Regular weight */
    color: #0f172a;
    /* Black/Dark text */
    margin-bottom: 8px;
    line-height: 1.2;
}

.metric-card .metric-label {
    font-size: 1rem;
    line-height: 1.4;
    color: #475569;
}

@media (max-width: 600px) {
    .impact-metrics-grid {
        grid-template-columns: 1fr;
    }
}


/* Dark Overlay Hero (Screenshot Replication) */
.hero-dark-overlay {
    position: relative;
    /* Fallback color matching the dark grey in screenshot */
    background-color: #1e293b;
    /* Attempt to use asset, else gradient */
    background-image: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%), url("assets/hero_background.png");
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding-top: 100px;
    /* Offset for fixed header */
    padding-bottom: 60px;
}

.hero-dark-overlay h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 16px;
    color: white;
}

.hero-dark-overlay h1 .text-highlight {
    color: var(--color-primary);
    /* Essen Blue instead of Green to stay in theme */
}

.hero-dark-overlay p {
    font-size: 1.25rem;
    color: #e2e8f0;
    max-width: 600px;
    margin-bottom: 40px;
}

/* Clutch Badge */
.clutch-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.clutch-widget {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    color: white;
}

.clutch-stars {
    display: flex;
    color: white;
    gap: 2px;
}

.clutch-stars svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}


/* Mega Menu Styles */
.nav-item {
    position: relative;
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    /* Center relative to nav-link */
    transform: translateX(-50%);
    width: 1100px;
    /* Wider dropdown */
    max-width: 90vw;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 32px 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1100;
    margin-top: 20px;
    /* Dropdown offset */
}

/* Show on hover */
.nav-item:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    margin-top: 5px;
    /* Slight animation */
}

.mega-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Adjusted to 5 Columns */
    gap: 20px;
}

.mega-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    /* Slate 500 */
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    font-weight: 700;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.mega-col a {
    display: block;
    color: #1e293b;
    /* Slate 800 */
    margin-bottom: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.mega-col a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.mega-col a.highlight-link {
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 12px;
}

/* Adjust mobile layout if needed - keeping simple dropdowns for mobile usually */
@media (max-width: 768px) {
    .mega-dropdown {
        display: none;
        /* Hide mega menu on mobile for now, rely on standard mobile menu JS logic if separate */
    }
}



/* =========================================
   HOMEPAGE UPGRADES (NEW SECTIONS)
   ========================================= */

/* Section 3: Why Essen */
.why-essen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.why-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.why-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

/* Section 4: Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 60px;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--color-light-gray);
    color: var(--color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 16px;
    transition: background 0.3s, color 0.3s;
}

.process-step:hover .step-number {
    background: var(--color-primary);
    color: white;
}

.process-connector {
    position: absolute;
    top: 24px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--color-border);
    z-index: 1;
}

/* Section 5: Roadmap (Deal to Delivery) */
.roadmap-section {
    background: var(--color-dark);
    color: white;
    padding: 100px 0;
    overflow: hidden;
}

.roadmap-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 80px;
}

.roadmap-line {
    position: absolute;
    top: 24px;
    left: 0;
    width: 0;
    /* JS will animate this to 100% */
    height: 4px;
    background: var(--color-primary);
    z-index: 1;
    transition: width 2s ease-out;
}

.roadmap-line-bg {
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.roadmap-milestone {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    opacity: 0;
    /* JS reveal */
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.milestone-dot {
    width: 24px;
    height: 24px;
    background: var(--color-dark);
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 12px auto 24px;
    transition: border-color 0.3s, transform 0.3s;
}

.roadmap-milestone.active .milestone-dot {
    border-color: var(--color-primary);
    background: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary);
}

.milestone-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.milestone-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 10px;
}

/* Section 7: Metrics */
.metrics-section {
    background: var(--color-light-gray);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 40px;
}

.metric-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.metric-label {
    font-weight: 600;
    color: var(--color-gray);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Section 9: Engagement Models */
.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.engagement-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    border-top: 4px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s, transform 0.3s;
}

.engagement-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

/* Responsive Roadmap */
@media (max-width: 992px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .process-connector {
        display: none;
    }

    .roadmap-container {
        flexDirection: column;
        gap: 40px;
        margin-left: 20px;
        border-left: 2px solid rgba(255, 255, 255, 0.1);
        padding-left: 30px;
    }

    .roadmap-line,
    .roadmap-line-bg {
        display: none;
    }

    /* Use simple border-left instead */
    .roadmap-milestone {
        text-align: left;
        opacity: 1;
        transform: none;
        display: flex;
        align-items: flex-start;
        gap: 20px;
    }

    .milestone-dot {
        margin: 0;
        position: absolute;
        left: -43px;
        top: 0;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Animations */
.hero-bg-anim {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulseFloat 10s infinite alternate;
}

@keyframes pulseFloat {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(-20px, 20px);
    }
}


/* =========================================
   SERVICES LISTING UPGRADES
   ========================================= */

/* Enhance View All Link */
.view-all-link {
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 4px;
    background: transparent;
}

.view-all-link:hover {
    background: rgba(37, 99, 235, 0.05);
    /* Slight BG highlights */
    transform: translateX(5px);
    gap: 12px;
}

/* Services Listing Page Grid */
.services-listing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-listing-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-listing-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-listing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-listing-card p {
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
    flex-grow: 1;
}

.service-btn {
    align-self: flex-start;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.service-listing-card:hover .service-btn {
    gap: 10px;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .services-listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-listing-grid {
        grid-template-columns: 1fr;
    }
}