/* 12x Realty - Premium Real Estate Website Stylesheet */
/* Clean, modern, corporate design with conversion focus */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #1e293b;
    --accent-color: #0f172a;
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header & Navigation */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
}

.nav-brand .logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.btn-nav-cta {
    background: var(--primary-color);
    color: white !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: var(--radius-md);
    margin-left: 0.5rem;
}

.btn-nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 4rem 0;
}

.hero-content {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-text {
    max-width: 100%;
}

.hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 100px;
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    letter-spacing: -0.03em;
}

.hero-title-accent {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.hero-proof-item {
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
}

.hero-proof-item span {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.hero-proof-divider {
    width: 1px;
    height: 32px;
    background: var(--border-color);
    flex-shrink: 0;
}

.hero-image-col {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.hero-img-card--main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.13);
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #2563eb 100%);
    aspect-ratio: 4/3.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-card--main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-img-placeholder-text {
    color: rgba(255,255,255,0.12);
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    user-select: none;
}

.hero-float-tag {
    position: absolute;
    top: -1.25rem;
    right: -1.25rem;
    background: white;
    border-radius: 14px;
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    min-width: 160px;
    animation: heroFloat 3.5s ease-in-out infinite;
    z-index: 2;
}

.hero-float-tag--bottom {
    top: auto;
    right: auto;
    bottom: -1.25rem;
    left: -1.25rem;
    animation-delay: 1.75s;
}

.hero-float-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.hero-float-label {
    font-size: 0.65rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.1rem;
}

.hero-float-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.hero-img-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    z-index: -1;
    opacity: 0.1;
}

.hero-img-dot--1 {
    width: 140px;
    height: 140px;
    bottom: -50px;
    right: -50px;
}

.hero-img-dot--2 {
    width: 70px;
    height: 70px;
    top: -25px;
    left: -25px;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
}

/* What is Mandate Section */
.what-is-mandate {
    background: var(--bg-white);
    padding: 4rem 0;
}

.section-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-medium);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.benefit-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Services Preview */
.services-preview {
    background: var(--bg-white);
}

/* Mandate Workflow Process */
.workflow-section {
    background: var(--bg-white);
}

.workflow-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

.workflow-step {
    position: relative;
    padding: 0 2rem 0 0;
}

.workflow-step:last-child {
    padding-right: 0;
}

.workflow-step-head {
    display: flex;
    align-items: center;
    margin-bottom: 1.75rem;
}

.workflow-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.1);
}

.workflow-connector {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(37,99,235,0.2) 100%);
    margin-left: 0.75rem;
    position: relative;
}

.workflow-connector::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid rgba(37,99,235,0.3);
}

.workflow-connector--last {
    background: transparent;
}

.workflow-connector--last::after {
    display: none;
}

.workflow-body {
    padding-right: 1rem;
}

.workflow-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.workflow-body p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .workflow-track {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .workflow-step {
        padding: 0 0 2.5rem 0;
        display: grid;
        grid-template-columns: 52px 1fr;
        gap: 0 1.25rem;
        align-items: start;
    }

    .workflow-step:last-child {
        padding-bottom: 0;
    }

    .workflow-step-head {
        flex-direction: column;
        align-items: center;
        margin-bottom: 0;
    }

    .workflow-connector {
        width: 2px;
        height: 100%;
        min-height: 60px;
        flex: 1;
        margin-left: 0;
        margin-top: 0.75rem;
        background: linear-gradient(180deg, var(--primary-color) 0%, rgba(37,99,235,0.2) 100%);
    }

    .workflow-connector::after {
        right: 50%;
        top: auto;
        bottom: -1px;
        transform: translateX(50%);
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 7px solid rgba(37,99,235,0.3);
        border-bottom: none;
    }

    .workflow-body {
        padding-right: 0;
        padding-top: 0.25rem;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.link-arrow {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.link-arrow:hover {
    gap: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-preview-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-preview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.service-preview-card p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.service-link:hover {
    gap: 0.5rem;
}

/* Projects Showcase */
.projects-showcase {
    background: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--bg-gray) 0%, var(--bg-light) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.project-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-details {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.project-details span {
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    color: var(--text-medium);
    font-weight: 500;
}

.project-achievement {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.project-achievement strong {
    color: var(--text-dark);
}

/* Trust Section */
.trust-section {
    background: var(--bg-light);
}

.trust-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.trust-intro {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-medium);
    font-weight: 500;
}

.trust-cta {
    margin-top: 2rem;
}

.logo-scroller {
    overflow: hidden;
    margin: 0 auto 2.25rem;
    max-width: 100%;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-white);
}

.logo-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding: 0.85rem 0;
    animation: logoScroll 28s linear infinite;
}

.logo-track img {
    width: 180px;
    height: 64px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    padding: 0.35rem 0.55rem;
}

@keyframes logoScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1.1rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.bg-light {
    background: var(--bg-light);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-text h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.content-text p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.0625rem;
}

.content-image {
    width: 100%;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--bg-gray) 0%, var(--bg-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.about-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    opacity: 0.1;
}

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

.why-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.why-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.why-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Approach Steps */
.approach-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.approach-step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.approach-step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.approach-step p {
    color: var(--text-medium);
    line-height: 1.7;
}

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

.value-item {
    text-align: center;
    padding: 2rem;
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.value-item p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Service Detail Cards */
.service-hero {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.service-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.service-hero p {
    font-size: 1.125rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.services-detailed {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-detail-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-icon-large {
    font-size: 3.5rem;
    flex-shrink: 0;
}

.service-detail-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    font-weight: 700;
}

.service-intro {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.service-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.service-feature-item p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Process Timeline */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.timeline-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Success Stories */
.success-stories {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.story-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.story-header h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.story-category {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.story-content {
    margin-bottom: 2rem;
}

.story-content p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.story-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* Projects Snippets Grid */
.projects-snippets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-snippet-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.project-snippet-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.project-snippet-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
}

.project-snippet-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.project-snippet-badge.completed {
    background: #10b981;
}

.project-snippet-badge.ongoing {
    background: var(--primary-color);
}

.project-snippet-content {
    padding: 1.5rem;
}

.project-snippet-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.project-snippet-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-snippet-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-medium);
}

.project-snippet-stats span {
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

/* Projects Portfolio */
.projects-portfolio {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 3rem;
}

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

.project-listing-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.project-listing-hero {
    height: 260px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-listing-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-listing-body {
    padding: 1.35rem;
}

.project-listing-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
}

.project-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
}

.project-meta div {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.7rem;
}

.project-meta span {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.04em;
}

.project-meta strong {
    font-size: 0.92rem;
    color: var(--text-dark);
}

.project-amenities {
    margin: 1rem 0 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.project-amenities span {
    font-size: 0.78rem;
    color: var(--text-medium);
    background: #eef2ff;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
}

.project-gallery-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.project-gallery-mini div {
    background: linear-gradient(145deg, #e2e8f0 0%, #f8fafc 100%);
    height: 54px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--text-light);
}

.project-item {
    background: var(--bg-white);
    padding: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
}

.project-item-image-section {
    width: 100%;
    margin-bottom: 0;
}

.project-main-image {
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    position: relative;
}

.project-main-image::before {
    content: "Project Showcase";
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
}

.project-main-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 35%, rgba(15, 23, 42, 0.55) 100%);
}

.project-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0.6rem;
    height: 190px;
    padding: 0.6rem;
    background: var(--bg-white);
}

.project-gallery-item {
    background: linear-gradient(145deg, #e2e8f0 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.72rem;
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.project-gallery-item:nth-child(2),
.project-gallery-item:nth-child(3) {
    height: calc(50% - 0.3rem);
}

.project-gallery-item:nth-child(3) {
    align-self: end;
}

.project-item-content {
    padding: 2.5rem;
}

.project-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.project-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 2.5rem 2.5rem 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.project-item-header h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-item-header .project-location {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.project-status {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.project-status.completed {
    background: #10b981;
    color: white;
}

.project-status.ongoing {
    background: var(--primary-color);
    color: white;
}

.project-story {
    margin-bottom: 2rem;
    padding: 0 2.5rem;
}

.project-story p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.project-story strong {
    color: var(--text-dark);
    font-weight: 600;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 2.5rem 2.5rem;
    border-top: 1px solid var(--border-color);
}

.project-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-stat-item .stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-stat-item .stat-value {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Portfolio Stats */
.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.portfolio-stat {
    text-align: center;
    padding: 2rem;
}

.stat-number-large {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.stat-label-large {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-stat p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    color: var(--text-medium);
    line-height: 1.8;
    font-style: italic;
    font-size: 1.0625rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--text-dark);
    font-weight: 600;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-card.featured {
    grid-column: span 2;
}

.blog-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--bg-gray) 0%, var(--bg-light) 100%);
    position: relative;
}

.blog-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.blog-date {
    color: var(--text-muted);
}

.blog-category {
    color: var(--primary-color);
    font-weight: 600;
}

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

.blog-content h2 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

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

.blog-content p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.blog-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.blog-link:hover {
    gap: 0.5rem;
}

/* Career */
.career-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.career-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.career-intro p {
    font-size: 1.125rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.culture-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
}

.culture-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.culture-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

.positions-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.position-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.position-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.position-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.position-type {
    background: var(--bg-light);
    color: var(--text-medium);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.position-details p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.benefit-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.benefit-item p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.contact-info p {
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.0625rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.contact-item p {
    color: var(--text-medium);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: var(--radius-lg);
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 700;
}

.form-header p {
    color: var(--text-medium);
    line-height: 1.7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Map */
.map-container {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--bg-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
}

.map-placeholder p {
    margin-bottom: 0.5rem;
}

.map-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-dark);
    font-family: inherit;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-medium);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.footer-col h3 {
    font-size: 1.5rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }

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

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

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-image-col {
        order: -1;
        justify-content: center;
    }

    .hero-image-wrap {
        max-width: 100%;
    }

    .hero-float-tag {
        right: 0.5rem;
        top: 0.5rem;
        min-width: 140px;
    }

    .hero-float-tag--bottom {
        left: 0.5rem;
        bottom: 0.5rem;
        top: auto;
        right: auto;
    }

    .hero-proof {
        gap: 1.25rem;
        flex-wrap: wrap;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .blog-card.featured {
        grid-column: span 1;
    }

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

    .service-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .timeline-item {
        flex-direction: column;
    }

    .project-item-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .project-stats {
        grid-template-columns: 1fr;
    }

    .project-item-header {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .project-story {
        padding: 0 1.5rem;
    }

    .project-stats {
        padding: 1.5rem;
    }

    .project-main-image {
        height: 280px;
    }

    .project-gallery {
        height: 145px;
        grid-template-columns: 1fr 1fr;
    }

    .projects-snippets-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Services redesign: scientific top-down workflow */
.services-science .page-header {
    background: radial-gradient(circle at 20% 10%, rgba(37, 99, 235, 0.5) 0%, transparent 45%), linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #0f172a 100%);
}

.workflow-hero .system-banner {
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: center;
}

.system-badge {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    margin-bottom: 1rem;
}

.workflow-hero h2 {
    font-size: 2.3rem;
    margin-bottom: 0.9rem;
}

.workflow-hero p {
    color: var(--text-medium);
    font-size: 1.08rem;
}

.system-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.kpi-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

.kpi-card span {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 0.35rem;
}

.kpi-card strong {
    font-size: 0.98rem;
}

.section-headline {
    text-align: center;
    max-width: 840px;
    margin: 0 auto 2rem;
}

.section-headline p {
    color: var(--text-medium);
    font-size: 1.04rem;
}

.workflow-stack {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.workflow-layer {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    padding: 1.2rem;
}

.layer-index {
    font-size: 1.8rem;
    font-weight: 800;
    color: #93c5fd;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.layer-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.layer-content p {
    color: var(--text-medium);
    margin-bottom: 0.7rem;
}

.layer-content ul {
    padding-left: 1rem;
    color: var(--text-medium);
}

.service-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.matrix-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    background: #f8fafc;
}

.matrix-card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.4rem;
}

.matrix-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.matrix-card small {
    color: #1d4ed8;
    font-weight: 600;
}

.model-note {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    background: #0f172a;
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 2.2rem;
}

.model-note p {
    color: rgba(255, 255, 255, 0.82);
    margin: 0.8rem auto 1.2rem;
    max-width: 700px;
}

.note-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.7rem;
    margin-bottom: 1.4rem;
}

.note-grid div {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--radius-md);
    padding: 0.65rem;
    background: rgba(30, 41, 59, 0.85);
}

.note-grid span {
    font-size: 0.88rem;
}

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

    .layer-index {
        justify-content: flex-start;
    }
}

/* Social Icons — Footer */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-red, #c0392b);
    border-color: var(--primary-red, #c0392b);
    color: white;
    transform: translateY(-2px);
}

.footer-social svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

