:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --secondary-text: #555555;
    --accent-color: #000000;
    --border-color: #e5e5e5;
    --card-bg: #f5f5f5;
    /* Light grey for cards */
    --font-primary: 'Inter', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
    --section-padding: 6rem;
    --resume-h2-size: 1.5rem;
    --resume-h3-size: 1rem;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.05rem;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding) 0;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    /* Tighter gap for smaller feel */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: #fff;
    /* White text on black button */
    border-radius: 99px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-link {
    font-weight: 600;
    text-decoration: underline;
}

.btn-full {
    width: 100%;
}

/* Header */
header {
    padding: 0.75rem 0;
    /* Compact padding */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 1.5rem;
    /* Floating from top */
    left: 50%;
    transform: translateX(-50%);
    /* Centered */
    width: 90%;
    max-width: var(--max-width);
    /* Match content width (1200px) */
    z-index: 1000;
    border: 1px solid var(--border-color);
    /* Full Border */
    border-radius: 99px;
    /* Pill shape */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    /* Subtle shadow */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 0 0.75rem;
    /* Match vertical padding for symmetry */
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.01em;
    z-index: 2;
    padding-left: 0.5rem;
    /* Clean alignment from edge */
    transition: transform 0.3s ease;
}

/* Compensate logo position when back button is present */
.has-back .logo {
    padding-left: 4.5rem;
    /* Push logo right to avoid overlap */
}

/* Nav Links - Absolutely Centered */
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    opacity: 0.5;
    /* Pale default */
}

.nav-links a.active {
    color: #000;
    font-weight: 600;
}

/* Small Button for Header */
/* Small Button for Header */
.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    z-index: 2;
    margin-right: 0;
    /* Clear margin, using container padding for spacing */
}

.nav-links a.active,
.nav-links a:hover {
    opacity: 1;
    font-weight: 600;
}

/* Back Link for Header */
.header-back {
    position: absolute;
    left: 1.5rem;
    z-index: 3;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    transition: background-color 0.8s cubic-bezier(0.65, 0, 0.35, 1), transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.header-back:hover {
    background: #eee;
    transform: translateX(-2px);
}

.header-back i {
    font-size: 0.9rem;
    color: var(--text-color);
    display: inline-block;
    transform: rotate(0deg);
    /* Ensure transform works */
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), color 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

.header-back.is-scrolled {
    background: var(--accent-color);
    /* Bright blue indicator */
}

.header-back.is-scrolled i {
    transform: rotate(90deg);
    color: #fff;
}

/* Hero */
.hero {
    padding-top: 10rem;
    text-align: center;
    position: relative;
    /* Background elements could go here */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
}

/* Articles/Cards */
.article-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-color);
    height: 100%;
    margin-bottom: 20px;
    /* Keep existing margin-bottom */
}

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

.card-image {
    aspect-ratio: 16 / 9;
    background: #fff;
    /* Match white mockup backgrounds */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.card-content {
    padding: 1.25rem;
}

.card-content h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.card-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.8rem;
    background: #f0f0f0;
    border-radius: 99px;
    color: var(--secondary-text);
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.greeting {
    display: block;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

/* Trusted By */
.trusted-by {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    opacity: 0.5;
}

.logo-item {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Newsletter */
.newsletter-content {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #fff;
    /* White input */
    color: #000;
}

.checkbox-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--secondary-text);
    align-items: center;
}


/* Footer */
footer {
    padding: 3rem 0;
    text-align: left;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1400px;
    /* More expansive width */
    width: 92%;
    margin: 0 auto;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.4);
    /* Paler color */
    flex: 1;
}

.footer-nav {
    margin-top: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex: 2;
}

.footer-nav a {
    color: var(--secondary-text);
    transition: all 0.2s ease;
    opacity: 0.5;
    font-size: 0.95rem;
}

.footer-nav a.active,
.footer-nav a:hover {
    color: #000;
    opacity: 1;
    font-weight: 600;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    flex: 1;
}

.footer-socials a {
    color: var(--secondary-text);
    font-size: 1.2rem;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.footer-socials a:hover {
    opacity: 1;
    color: #000;
}

@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .footer-socials {
        justify-content: center;
    }
}

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

    h2 {
        font-size: 2rem;
    }

    .grid-2,
    .newsletter-content {
        grid-template-columns: 1fr;
    }

    .newsletter-content {
        padding: 2rem;
        gap: 2rem;
    }

    .nav-links {
        display: none;
        /* Add toggle later if needed, simple for now */
    }

    .nav-links {
        display: none;
        /* Add toggle later if needed, simple for now */
    }
}

/* Resume Page Specifics */
.resume-intro {
    max-width: 100%;
    margin-bottom: 3rem;
    line-height: 1.7;
    color: var(--text-color);
}

.resume-intro p,
.resume-section p,
.resume-list,
.resume-title,
.resume-date,
.achievement-box {
    font-size: 0.95rem;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.resume-header h1 {
    margin-bottom: 0;
    font-size: 2.2rem;
    font-weight: 700;
}

.resume-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    align-items: start;
}

.resume-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.resume-main {
    padding-left: 0;
}

.resume-section {
    margin-bottom: 3.5rem;
}

.resume-section h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Sidebar Specific */
.sidebar-box {
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.sidebar-box h2 {
    border-bottom: none;
    margin-bottom: 1rem;
    padding-bottom: 0;
    font-size: 0.9rem;
}

.sidebar-box h3 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    color: var(--secondary-text);
    letter-spacing: 0.05em;
}

.sidebar-box p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.sidebar-box p:last-child {
    margin-bottom: 0;
}

/* Timeline Style for Experience */
.experience-timeline {
    position: relative;
    padding-left: 1.5rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0;
    width: 1px;
    background: var(--border-color);
}

.resume-item {
    position: relative;
    margin-bottom: 3rem;
}

.resume-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 11px;
    height: 11px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.experience-header-box {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.resume-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0;
}

.resume-date {
    font-size: 0.9rem;
    color: var(--secondary-text);
    font-weight: 500;
}

.achievement-box {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.resume-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--secondary-text);
    margin-bottom: 3rem;
    max-width: 800px;
}

@media (max-width: 1024px) {
    .resume-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .experience-header-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Project Cards */
.project-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    /* Performance optimizations for scroll lag */
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
    /* Placeholder size for layout */
    contain: layout;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.project-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fff;
    position: relative;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 3rem;
    background: #f0f0f0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Prevent "zooming" or cropping of designs */
    transition: transform 0.5s ease;
}


.project-info {
    padding: 1.25rem;
    /* Match .card-content from index */
}

.project-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000;
}

.project-info p {
    font-size: 0.9rem;
    /* Match home page p size */
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

.project-category {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #f0f0f0;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary-text);
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Specific Portfolio Heading */
.portfolio-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Case Study Details */
.cs-header {
    padding-top: 8rem;
    padding-bottom: 3.5rem;
    /* Standardized to match content section gaps */
    background: #f9f9f9;
}

.cs-header .cs-image-box {
    height: 600px;
    /* Match ImmoAssist scale */
    overflow: hidden;
    border-radius: 32px;
}

.cs-header .cs-image-box img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top;
    /* Crop from top as requested */
}

.cs-title-wrapper {
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    align-items: flex-start;
    /* Align tag with left side of title */
    gap: 1.25rem;
    /* Space between title and tag */
    margin-bottom: 1.5rem;
    /* Reduced from 3.5rem */
}

.cs-title {
    font-size: 2.5rem;
    /* Standardized h1 size */
    font-weight: 800;
    margin-bottom: 0;
    color: #000;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.cs-title-wrapper .cs-section-tag {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    background: #5D8DFE;
    /* Solid blue */
    color: #fff;
    /* White text */
    border: none;
    border-radius: 99px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.cs-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-text);
    margin-bottom: 2rem;
    max-width: 800px;
    line-height: 1.6;
}

/* Impact Section Styles */
.cs-impact-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 0;
    /* Reduced from 1rem */
    margin-bottom: 2rem;
    padding: 0.5rem 0;
    /* Removed borders for a cleaner look */
}

.cs-impact-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    flex: 0 0 100px;
}

.cs-impact-grid {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}

.cs-impact-card {
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cs-impact-card span:first-child {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.cs-impact-card span:last-child {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
}

/* Utilities */
.text-justify {
    text-align: justify;
}

.cs-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    /* Reduced from 4rem */
    padding-top: 2.5rem;
    /* Reduced from 3rem */
    border-top: 1px solid var(--border-color);
}

.cs-meta-grid.no-border {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.cs-meta-item h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 0.5rem;
}

.cs-meta-item p {
    font-size: 1.1rem;
    color: #000;
    font-weight: 500;
}

.cs-content-section {
    padding: 3rem 0;
}

.no-margin-top {
    margin-top: 0 !important;
}

.mb-1 {
    margin-bottom: 1rem !important;
}

.mb-2 {
    margin-bottom: 2rem !important;
}

.mb-3 {
    margin-bottom: 3rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.cs-content-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secondary-text);
}

.cs-section-tag {
    display: inline-block;
    color: #5D8DFE;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 3rem;
    /* Standardized to match image gap */
}

.cs-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    /* Standardized margin */
    line-height: 1.2;
    color: #000;
    letter-spacing: -0.01em;
    text-align: left;
}

.cs-text-content {
    max-width: 800px;
    margin-bottom: 2.5rem;
}

.cs-content-section .container>*:last-child,
.cs-text-content:last-child,
.cs-grid:last-child,
.cs-image-box:last-child {
    margin-bottom: 0 !important;
}

/* Global Refinements for Projects 4-11 */
.cs-simple-details .cs-content-section {
    padding: 3rem 0;
}

.cs-simple-details .cs-meta-grid.no-border {
    margin-top: 0;
    padding-top: 0;
}

.cs-meta-split {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .cs-meta-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Global Compact Metadata (Projects 3-11) */
.cs-simple-details .cs-meta-grid {
    gap: 1rem;
    /* Ultra-tight space between Role and Company as requested */
}

.cs-simple-details .cs-meta-item .cs-section-tag {
    font-size: 0.8rem;
    margin-bottom: 0;
    /* Removed margin for tighter grouping */
}

.cs-simple-details .cs-meta-item p {
    font-size: 0.95rem;
    /* Slightly smaller text for better proportion */
    font-weight: 500;
    margin-bottom: 0;
    /* Removed extra padding as requested */
    color: var(--secondary-text);
}

.cs-simple-details .cs-text-content p:last-child {
    margin-bottom: 0 !important;
}

.cs-text-content p {
    font-size: 1.1rem;
    line-height: 1.6;
}

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

.cs-feature-card {
    background: #fff;
    padding: 2.5rem;
    /* Slightly reduced for better balance in square */
    border-radius: 32px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.cs-feature-card.cs-square-card {
    aspect-ratio: 1 / 1;
}

.cs-feature-card i {
    font-size: 2.5rem;
    color: #5D8DFE;
    margin-bottom: 1.5rem;
}

.cs-feature-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.cs-feature-card p {
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.cs-feature-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.cs-image-box {
    width: 100%;
    margin-bottom: 3rem;
    /* Increased from 2rem for consistent gallery rhythm */
    position: relative;
    overflow: visible;
    /* Allow "zoom outside" pop-out */
}

/* Fix for Hero Image Bottom Margin */
.cs-header .cs-image-box {
    margin-bottom: 0;
}

.cs-image-box:last-child {
    margin-bottom: 0;
}

.cs-image-box img {
    width: 100%;
    display: block;
    border-radius: 32px;
    /* Standardized radius directly on image */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    background: #f0f0f0;
    border: 1px solid var(--border-color);
}

.cs-image-box.no-border img {
    border: none;
    background: transparent;
    box-shadow: none;
}

/* "Zoom Outside" hover effect for personas */
.cs-image-box.persona-box:hover img {
    transform: translateY(-15px) scale(1.08);
    /* Pop-out zoom outside container */
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
    z-index: 10;
    position: relative;
}

.cs-placeholder-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #aaa;
    gap: 1rem;
}

.cs-placeholder-image i {
    font-size: 4rem;
    opacity: 0.3;
}

.cs-icon-row {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 3rem;
}

.cs-competitor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.cs-competitor-item img {
    height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.cs-competitor-item:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-5px);
}

.cs-competitor-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: capitalize;
}

.cs-icon-row img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.cs-accent-bg {
    background: #5D8DFE;
    color: #fff;
    /* Removed border-radius and horizontal margins for consistency with other sections */
    margin: 4rem 0;
}

.cs-accent-bg .cs-section-tag,
.cs-accent-bg .cs-section-title,
.cs-accent-bg p {
    color: #fff;
}

.cs-accent-bg .cs-grid .cs-feature-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cs-accent-bg .cs-grid .cs-feature-card h4,
.cs-accent-bg .cs-grid .cs-feature-card p,
.cs-accent-bg .cs-grid .cs-feature-card i {
    color: #fff;
}

@media (max-width: 992px) {
    .cs-title {
        font-size: 2.2rem;
    }

    .cs-section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .cs-header {
        padding-top: 8rem;
    }

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

    .cs-section-title {
        font-size: 1.4rem;
    }

    .cs-accent-bg {
        margin: 2rem 0;
    }

    .cs-icon-row {
        gap: 2rem;
        justify-content: center;
    }
}

/* Split Section for Small Illustrations */
.cs-split {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin-bottom: 0;
}

.cs-split.reverse {
    flex-direction: row-reverse;
}

.cs-split-text {
    flex: 1;
    text-align: left;
}

.cs-split-image {
    flex: 0 0 300px;
    /* Reduced from 350px */
    max-width: 300px;
}

.cs-split-image img {
    width: 100%;
    height: auto;
    /* Removed background/border styles here for transparent PNG support */
    display: block;
}

.cs-competitive-list li {
    white-space: nowrap;
    /* Keep competitive analysis items in one line */
}

@media (max-width: 900px) {
    .cs-split {
        flex-direction: column !important;
        gap: 3rem;
    }

    .cs-split-image {
        flex: 1;
        max-width: 300px;
    }

    .cs-competitive-list li {
        white-space: normal;
        /* Wrap on small screens */
    }
}

/* Contact Form Enhancements */
.error-text {
    display: none;
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    font-weight: 500;
}

.error-text.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

/* Interesting Button Motion */
.btn-full {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #000 !important;
    color: #fff !important;
    border: none;
    cursor: pointer;
}

.btn-full:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-full::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn-full:hover::after {
    opacity: 1;
    animation: pulseGradient 2s infinite;
}

@keyframes pulseGradient {
    0% {
        transform: translate(-10%, -10%);
    }

    50% {
        transform: translate(10%, 10%);
    }

    100% {
        transform: translate(-10%, -10%);
    }
}

.btn-full:active {
    transform: scale(0.98);
}

/* Form Loading State */
.btn-full.loading {
    background: #555 !important;
    pointer-events: none;
}

.btn-full.loading i {
    animation: spin 1s linear infinite;
    margin-right: 0.8rem !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* RU Data Theme & Analytical Design */
.cs-accent-bg.cs-rudata-theme {
    background: #1E3462;
    /* Sophisticated Navy Blue */
    color: #fff;
    position: relative;
    overflow: hidden;
    margin: 4rem 0;
    border-radius: 0;
}

.cs-accent-bg.cs-rudata-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(228, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(228, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.cs-accent-bg.cs-rudata-theme .cs-section-tag {
    color: #E4F3FF;
    /* Light blue accent */
}

.cs-accent-bg.cs-rudata-theme .cs-feature-card i {
    color: #E4F3FF;
}

.cs-accent-bg.cs-rudata-theme .cs-feature-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(228, 243, 255, 0.3);
    /* Tinted border for glow */
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2),
        inset 0 0 15px rgba(228, 243, 255, 0.05);
    /* Subtle inner glow */
    height: 100%;
}

.cs-rudata-accent {
    color: #1E3462 !important;
}

.cs-rudata-bg-tag {
    background: #1E3462 !important;
    color: #fff !important;
}

/* Nexpat Theme */
.cs-nexpat-accent {
    color: #8B5CF6 !important;
}

.cs-nexpat-bg-tag {
    background: #8B5CF6 !important;
    color: #fff !important;
}

.cs-nexpat-light {
    color: #C8BAE1 !important;
}

/* LumberJack Theme */
.cs-lumberjack-accent {
    color: #F8762F !important;
}

.cs-lumberjack-bg-tag {
    background: #F8762F !important;
    color: #fff !important;
}

.cs-lumberjack-secondary {
    color: #112F3B !important;
}

.cs-lumberjack-bg-tag-2 {
    background: #112F3B !important;
    color: #fff !important;
}

/* Lumberjack Specific Layout */
.lumberjack-page .cs-header .cs-image-box {
    height: auto;
}

.lumberjack-page .cs-header .cs-image-box img {
    height: auto;
    object-fit: initial;
}

/* Habit Tracker Theme */
.cs-habit-tracker-accent {
    color: #5B44E7 !important;
}

.cs-habit-tracker-bg-tag {
    background: #5B44E7 !important;
    color: #fff !important;
}

/* Habit Tracker Specific Layout */
.habit-tracker-page .cs-header .cs-image-box {
    height: auto;
}

.habit-tracker-page .cs-header .cs-image-box img {
    height: auto;
    object-fit: initial;
}

/* IR Trade Theme */
.cs-ir-trade-accent {
    color: #546DD1 !important;
}

.cs-ir-trade-bg-tag {
    background: #546DD1 !important;
    color: #fff !important;
}

.cs-ir-trade-secondary {
    color: #FF626A !important;
}

.cs-ir-trade-bg-tag-2 {
    background: #FF626A !important;
    color: #fff !important;
}

/* Orbifo Theme */
.cs-orbifo-accent {
    color: #12B88D !important;
}

.cs-orbifo-bg-tag {
    background: #12B88D !important;
    color: #fff !important;
}

.cs-orbifo-secondary {
    color: #27E2B1 !important;
}

.cs-orbifo-bg-tag-2 {
    background: #27E2B1 !important;
    color: #fff !important;
}

/* My Recipe Theme */
.cs-myrecipe-accent {
    color: #FF4141 !important;
}

.cs-myrecipe-bg-tag {
    background: #FF4141 !important;
    color: #fff !important;
}

/* Line Runner Theme */
.cs-linerunner-accent {
    color: #CC81CC !important;
}

.cs-linerunner-bg-tag {
    background: #CC81CC !important;
    color: #fff !important;
}

.cs-linerunner-secondary {
    color: #52B9C5 !important;
}

.cs-linerunner-bg-tag-2 {
    background: #52B9C5 !important;
    color: #fff !important;
}

/* Line Runner Specific Layout */
.line-runner-page .cs-header .cs-image-box {
    height: auto;
}

.line-runner-page .cs-header .cs-image-box img {
    height: auto;
    object-fit: initial;
}

/* Kindness Wall Theme */
.cs-kindnesswall-accent {
    color: #0A7B5A !important;
}

.cs-kindnesswall-bg-tag {
    background: #0A7B5A !important;
    color: #fff !important;
}

/* Specific Layout Adjustments */
.kindness-wall-page .cs-header .cs-image-box {
    height: auto;
}

.kindness-wall-page .cs-header .cs-image-box img {
    height: auto;
    object-fit: initial;
}

.cs-mobile-mockup {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .cs-mobile-mockup {
        max-width: 100%;
    }
}

/* Dynamic Pass Theme */
.cs-dynamicpass-accent {
    color: #45FFA6 !important;
}

.cs-dynamicpass-bg-tag {
    background: #45FFA6 !important;
    color: #364453 !important;
}

.cs-dynamicpass-secondary {
    color: #364453 !important;
}

.cs-dynamicpass-bg-tag-2 {
    background: #364453 !important;
    color: #fff !important;
}

/* Dynamic Pass Specific Layout */
.dynamicpass-page .cs-header .cs-image-box {
    height: auto;
}

.dynamicpass-page .cs-header .cs-image-box img {
    height: auto;
    object-fit: initial;
}