:root {
    /* Colors */
    --bg-color: #ffffff;
    /* Pure white background */
    --text-primary: #1A1A1A;
    /* Near black */
    --text-secondary: #4A5568;
    --accent-color: #5D5FEF;
    /* Soft violet/blue */
    --accent-hover: #4A4CD0;
    --white: #FFFFFF;

    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Layout */
    --max-width: 1200px;
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

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

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 95, 239, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--text-primary);
    background-color: #f8f9fa;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #F3F4FE;
    /* Very Light Purple as requested */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(93, 95, 239, 0.1);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:not(.btn):hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Navbar height */
    position: relative;
    overflow: hidden;
    background-color: var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    height: 100%;
}

.hero-content {
    padding-right: 20px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -1.5px;
    color: var(--text-primary);
}

.hero-content .subheading {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 90%;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero-visual {
    position: relative;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* New Hero Element Style (Rotated) */
.hero-element-container {
    position: relative;
    width: auto;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-element-img {
    max-width: 900px;
    /* 1.5x Bigger as requested */
    width: 150%;
    /* Force it larger than container if needed */
    height: auto;
    object-fit: contain;
    transform: rotate(-5deg);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s ease;
    margin-left: -100px;
    /* Center it better since it's huge now */
}

.hero-element-img:hover {
    transform: rotate(0deg) scale(1.05);
}

/* Metrics Section */
.metrics-section {
    background: var(--white);
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
}

.metrics-shell {
    padding: clamp(24px, 3vw, 48px);
    border-radius: 28px;
    border: 1px solid rgba(17, 25, 54, 0.08);
    background: #fff;
    box-shadow: 0 20px 40px rgba(17, 25, 54, 0.08);
}

.metrics-head {
    text-align: center;
    margin-bottom: 28px;
}

.metrics-section .section-title {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 0;
}

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


.metric-card {
    text-align: center;
    padding: 24px 18px 28px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(15, 18, 65, 0.08);
    box-shadow: 0 10px 25px rgba(17, 25, 54, 0.06);
}

.metric-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(93, 95, 239, 0.12);
}

.metric-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--accent-color);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.metric-name {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: rgba(17, 36, 64, 0.55);
    margin-bottom: 6px;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 3.5vw, 3rem);
    color: #0f1540;
    display: block;
    margin-bottom: 4px;
}

.metric-underline {
    width: 40px;
    height: 3px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #5d5fef, #f95738);
}

.metric-desc {
    margin: 0;
    color: rgba(17, 36, 64, 0.75);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Section Tag Utility */
.section-tag {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.72rem;
    color: rgba(17, 36, 64, 0.5);
    margin-bottom: 12px;
}

/* Services Section */
/* .services-section {
    background: linear-gradient(120deg, #f8faff 0%, #eef3ff 100%);
} */

.services-shell {
    background: rgba(255, 255, 255, 0.8);
    padding: clamp(24px, 4vw, 60px);
    border-radius: 36px;
    border: 1px solid rgba(15, 18, 65, 0.08);
    box-shadow: 0 20px 50px rgba(15, 18, 65, 0.1);
}

.section-intro {
    text-align: center;
    margin-bottom: 32px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.service-card {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(93, 95, 239, 0.2);
    background: #fff;
    font-weight: 600;
    text-align: center;
    color: #111c3a;
    box-shadow: 0 10px 25px rgba(15, 18, 65, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(15, 18, 65, 0.14);
}

.service-footnote {
    text-align: center;
    color: rgba(17, 28, 58, 0.75);
    font-weight: 600;
    margin: 0;
}

/* Fit Section */
.fit-section {
    background: linear-gradient(135deg, #f7f4ff 0%, #ece6ff 80%);
    color: #0f1540;
    border-radius: 40px;
}

.fit-shell {
    padding: clamp(28px, 4vw, 60px);
    border-radius: 34px;
    border: 1px solid rgba(93, 95, 239, 0.25);
    background: #ffffff;
    box-shadow: 0 25px 60px rgba(17, 25, 54, 0.12);
    position: relative;
    overflow: hidden;
}

.fit-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(93, 95, 239, 0.15), transparent 55%);
    pointer-events: none;
}

.fit-shell .section-tag {
    color: rgba(15, 21, 64, 0.6);
}

.fit-shell .section-title {
    color: #0f1540;
    text-align: center;
    margin-bottom: 32px;
}

.fit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.fit-card {
    padding: 28px;
    border-radius: 24px;
    border: 1px solid rgba(93, 95, 239, 0.2);
    background: linear-gradient(145deg, rgba(93, 95, 239, 0.08), rgba(255, 255, 255, 0.9));
    box-shadow: 0 15px 35px rgba(15, 18, 65, 0.12);
}

.fit-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.15rem;
    color: #5d5fef;
}

.fit-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fit-card ul li {
    position: relative;
    padding-left: 32px;
    line-height: 1.5;
    color: rgba(15, 21, 64, 0.85);
}

.fit-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.fit-card--good {
    background: linear-gradient(145deg, rgba(93, 95, 239, 0.12), rgba(255, 255, 255, 0.95));
}

.fit-card--good ul li::before {
    content: '✓';
    color: #3dbfb6;
    border-color: rgba(61, 191, 182, 0.4);
}

.fit-card--limit {
    background: linear-gradient(145deg, rgba(249, 87, 56, 0.08), rgba(255, 255, 255, 0.95));
    border-color: rgba(249, 87, 56, 0.35);
}

.fit-card--limit h3 {
    color: #f95738;
}

.fit-card--limit ul li::before {
    content: '✕';
    color: #f95738;
    border-color: rgba(249, 87, 56, 0.4);
}

/* Floating / Scattered Elements */
.floating-element {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Position 1: Top Right (Hero area) */
.pos-1 {
    width: 180px;
    top: 70%;
    right: 5%;
    transform: rotate(15deg);
}

/* Position 2: Middle Left (Hero/Credibility overlap) */
.pos-2 {
    width: 220px;
    top: 25%;
    left: -60px;
    transform: rotate(-10deg);
}

/* Position 3: Middle Right (Credibility area) */
.pos-3 {
    width: 200px;
    top: 50%;
    right: -20px;
    transform: rotate(8deg);
    z-index: 10;
}

/* Position 4: Bottom Left (Booklet area) */
.pos-4 {
    width: 250px;
    bottom: 50px;
    left: 2%;
    transform: rotate(-15deg);
}

/* Responsive Hide */
@media (max-width: 768px) {
    .floating-element {
        opacity: 0.4;
        width: 120px;
    }

    .pos-2,
    .pos-3 {
        display: none;
    }
}

/* Credibility Section */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid #E2E8F0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-secondary);
}

/* Booklet Section - Sticky Horizontal Scroll */
.booklet-section {
    position: relative;
    height: 300vh;
    /* Make section tall to allow vertical scrolling to drive horizontal movement */
    padding: 0;
    background-color: var(--white);
}

.booklet-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
}

.booklet-inner-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 60px;
    /* Space for nav */
}

.booklet-track-wrapper {
    width: 100%;
    overflow: hidden;
    margin-top: 20px;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.booklet-track {
    display: flex;
    gap: 60px;
    /* More space between items */
    width: max-content;
    padding-left: 10vw;
    /* Start offset */
    will-change: transform;
    align-items: center;
}

.booklet-track .book-page {
    position: relative;
    width: 45vh;
    /* Responsive size based on viewport height */
    height: 60vh;
    max-width: 600px;
    max-height: 800px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: #fff;
    transition: transform 0.3s ease;
}

.booklet-track .book-page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fdfdfd;
}

/* Industry Section */
.industry-section {
    position: relative;
    margin-top: var(--space-lg);
    border-radius: 40px;
    background: linear-gradient(140deg, #fdfdff 0%, #eef2ff 65%);
    border: 1px solid rgba(93, 95, 239, 0.12);
    overflow: hidden;
}

.industry-section::before,
.industry-section::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    z-index: 0;
}

.industry-section::before {
    top: -60px;
    right: -80px;
    background: rgba(93, 95, 239, 0.6);
}

.industry-section::after {
    bottom: -90px;
    left: -60px;
    background: rgba(249, 87, 56, 0.5);
}

.industry-section .container {
    position: relative;
    z-index: 1;
}

.industry-shell {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: clamp(24px, 4vw, 48px);
}

.industry-head {
    text-align: center;
}

.industry-head::after {
    content: '';
    display: block;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #5d5fef, #f95738);
    margin: 20px auto 0;
    border-radius: 999px;
}

.industry-section .section-title {
    margin-bottom: 0;
    text-align: center;
    letter-spacing: -0.04em;
}

/* Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.work-item {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 32px;
    background: #ffffff;
    border: 1px solid rgba(93, 95, 239, 0.18);
    box-shadow: 0 25px 50px rgba(15, 18, 65, 0.12);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.work-item::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 24px;
    border: 1px dashed rgba(93, 95, 239, 0.12);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.work-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 60px rgba(15, 18, 65, 0.2);
    border-color: rgba(93, 95, 239, 0.35);
}

.work-item:hover::after {
    opacity: 1;
}

.work-image {
    height: 260px;
    overflow: hidden;
    background: #f4f4f4;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-item:hover .work-image img {
    transform: scale(1.06);
}

.work-content {
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.work-content h3 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--accent-color);
}

.work-content p {
    margin: 0;
    color: rgba(15, 18, 65, 0.75);
}

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

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.workflow-step {
    padding: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    /* Stronger Blue/White Gradient */
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 20px rgba(93, 95, 239, 0.1);
}

/* About Section Styles */
.about-img-container {
    position: relative;
    width: 100%;
    max-width: 250px;
    /* Appropriately sized for alignment */
    height: auto;
    border-radius: 40px;
    /* Curved Edges */
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: none;
    /* No rotation for proper alignment */
    margin: 0 auto;
    /* Centered */
}

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

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(93, 95, 239, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.workflow-step h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.workflow-step p {
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* Visual Footer Section */
.footer-visual-section {
    position: relative;
    background-image: url('elements/footer.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 120px 0 60px;
    /* Large top padding, space at bottom */
    text-align: center;
    color: var(--text-primary);
    min-height: 600px;
    /* Ensure tall enough for image */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Content at top */
    isolation: isolate;
    /* Create stacking context */
}

/* Overlay to improve text visibility (Fades the image) */
.footer-visual-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.51);
    /* 85% White Overlay */
    z-index: -1;
    /* Behind content */
}

.footer-container {
    position: relative;
    z-index: 1;
    /* Ensure text sits on top */
    max-width: 800px;
    margin: 0 auto;
}

.footer-container h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #000;
    /* Ensure pitch black for contrast */
}

.footer-container p {
    font-size: 1.25rem;
    color: var(--text-primary);
    /* Darker than secondary for visibility */
    margin-bottom: 40px;
    font-weight: 500;
}

.footer-bottom-links {
    margin-top: auto;
    /* Push to bottom if flex container stretches, or just margin */
    padding-top: 60px;
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    font-weight: 500;
    font-weight: 1000;
}

/* Custom Buttons for Footer Alignment */
.cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    /* Proper spacing */
    flex-wrap: wrap;
    /* Handle mobile */
}

/* Force Hero Buttons Left */
.hero-section .cta-group {
    justify-content: flex-start;
}

.btn-black {
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 14px 32px;
    border-radius: 8px;
    /* Slightly squarer than pill */
    font-weight: 600;
    min-width: 160px;
    /* Uniform sizes */
    text-align: center;
}

.btn-black:hover {
    background-color: #333;
    border-color: #333;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.8);
    /* Slight bg for readability */
    color: #000;
    border: 2px solid #000;
    /* Darker border for visibility */
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    min-width: 160px;
    text-align: center;
}

.btn-outline:hover {
    background-color: #000;
    color: #fff;
}

/* Toast Notification */
.toast-notice {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 21, 64, 0.95);
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 4000;
}

.toast-notice.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(4, 6, 20, 0.85);
    backdrop-filter: blur(18px);
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vh, 48px);
    overflow-y: auto;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), rgba(7, 11, 32, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    width: min(960px, 94%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.6);
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s ease, transform 0.2s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: stretch;
}

.modal-image-container {
    background: #050a1f;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-image-container img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-radius: 22px;
}

.modal-text {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: #f5f6ff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
}

.modal-text h3 {
    font-size: 2rem;
    color: #fff;
}

.modal-text p {
    color: rgba(245, 246, 255, 0.85);
    line-height: 1.6;
}

.modal-divider {
    width: 65px;
    height: 3px;
    background: linear-gradient(90deg, #5d5fef, #f95738);
    border-radius: 999px;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid #E2E8F0;
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 968px) {
    .hero-section {
        padding-top: 120px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content .subheading,
    .cta-group {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .hero-visual {
        min-height: 400px;
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .industry-shell {
        grid-template-columns: 1fr;
    }

    .industry-head {
        border-right: none;
        border-bottom: 1px solid rgba(93, 95, 239, 0.2);
        padding-right: 0;
        margin-bottom: 16px;
    }

    .industry-head::after {
        width: 40px;
        margin-top: 16px;
    }

    .metrics-shell,
    .services-shell,
    .fit-shell {
        padding: 28px;
        border-radius: 24px;
    }

    .metrics-grid,
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

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

    .hero-section .cta-group {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    .industry-section {
        border-radius: 32px;
    }

    .work-item {
        min-height: 340px;
    }

    .work-content {
        padding: 24px;
    }

    .industry-head::after {
        display: none;
    }

    .work-grid,
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cta-container h2 {
        font-size: 1.8rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .cta-group .btn {
        width: 100%;
        text-align: center;
    }

    .modal-grid {
        grid-template-columns: 1fr;
        height: auto;
        overflow-y: auto;
        max-height: 90vh;
    }

    .modal-image-container {
        height: auto;
        padding: 20px;
    }

    .modal-text {
        padding: 24px;
    }

    .profile-container {
        width: 300px;
        height: 300px;
    }

    .profile-img {
        width: 260px;
        height: 260px;
    }

    /* On mobile, standard horizontal scroll might be better than valid sticky for UX */
    .booklet-section {
        height: auto;
        padding-bottom: 40px;
    }

    .booklet-sticky-container {
        height: auto;
        position: relative;
        top: 0;
    }

    .booklet-track-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
    }

    .booklet-track {
        width: max-content;
        transform: none !important;
        /* Disable JS transform on mobile */
        padding-left: 20px;
        gap: 20px;
    }

    .booklet-track .book-page {
        scroll-snap-align: center;
        width: 80vw;
        height: 50vh;
    }
}

@media (max-width: 600px) {
    .hero-section {
        padding-top: 140px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

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

    .metrics-shell,
    .services-shell,
    .fit-shell {
        padding: 20px;
    }

    .service-card,
    .fit-card,
    .metric-card {
        padding: 20px;
    }

    .service-card {
        font-size: 0.95rem;
    }

    .fit-card ul li {
        padding-left: 28px;
    }

    .footer-container h2 {
        font-size: 2.2rem;
    }

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

    .work-image {
        height: 220px;
    }
}