/* Storyboard Services CSS - Refactored for Premium Look */

:root {
    --sb-primary: #1e40af;
    /* Blueprint Blue */
    --sb-secondary: #0ea5e9;
    /* Sketch Blue */
    --sb-accent: #f59e0b;
    /* Highlight Amber */
    --sb-dark: #0f172a;
    --sb-light: #f8fafc;
    --sb-card-bg: #ffffff;
    --sb-text: #475569;
}

/* Specific Page Overrides */

/* Hero Section with Blueprint Effect */
/* Hero Section with Blueprint Effect - Light Theme */
.sb-hero {
    background: #fdfdfd;
    /* Very light background */
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

/* Flex container for Hero Content */
.sb-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

@media (max-width: 991px) {
    .sb-hero .container {
        flex-direction: column;
        text-align: center;
    }
}

.sb-hero::before {
    content: none;
    /* Remove dark grid overlay */
}

.sb-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--sb-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.sb-hero h1 span {
    color: #3b82f6;
    /* Blue for StoryBoard */
}

.sb-hero p {
    font-size: 1.25rem;
    color: var(--sb-text);
    max-width: 600px;
}

/* Floating Sketch Elements in Hero */
.scribble-decoration {
    position: absolute;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    pointer-events: none;
    animation: pulse-border 4s infinite;
}

.scribble-1 {
    top: 20%;
    left: 10%;
    width: 100px;
    height: 60px;
    transform: rotate(-5deg);
}

.scribble-2 {
    bottom: 30%;
    right: 15%;
    width: 80px;
    height: 120px;
    transform: rotate(10deg);
}

@keyframes pulse-border {

    0%,
    100% {
        border-color: rgba(255, 255, 255, 0.1);
    }

    50% {
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* Strategy Grid Icons */
.sb-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sb-primary), var(--sb-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.3);
}

/* Alternating Sections - Image Frame */
.sb-img-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
}

/* Hand-drawn look annotation for emphasis */
.sb-annotation {
    font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif;
    /* Fallback to handwriting style */
    color: var(--sb-accent);
    transform: rotate(-2deg);
    display: inline-block;
    position: relative;
}

/* CTA Specifics */
.sb-cta-wrapper {
    background: linear-gradient(135deg, var(--sb-dark), var(--sb-primary));
    color: white;
    padding: 80px 20px;
    border-radius: 20px;
    text-align: center;
    margin: 40px auto;
    max-width: 1000px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.sb-cta-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.03),
            rgba(255, 255, 255, 0.03) 10px,
            transparent 10px,
            transparent 20px);
}

.sb-btn-glow {
    background: linear-gradient(135deg, var(--sb-primary), var(--sb-secondary));
    color: white;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 30px;
    text-decoration: none;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    z-index: 10;
    position: relative;
    letter-spacing: 0.5px;
}

.sb-btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.6);
    color: white;
    background: linear-gradient(135deg, var(--sb-secondary), var(--sb-primary));
}

/* Strategy List - New Layout */
.strategy-list-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.strategy-item {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.strategy-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.strategy-icon {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.strategy-text {
    margin: 0;
    font-size: 1.1rem;
    color: var(--sb-text);
}

/* Border colors for strategy items */
.strategy-item:nth-child(1),
.strategy-item:nth-child(4) {
    border-left: 5px solid var(--sb-primary);
}

.strategy-item:nth-child(1) .strategy-icon,
.strategy-item:nth-child(4) .strategy-icon {
    color: var(--sb-primary);
}

.strategy-item:nth-child(2),
.strategy-item:nth-child(5) {
    border-left: 5px solid var(--sb-secondary);
}

.strategy-item:nth-child(2) .strategy-icon,
.strategy-item:nth-child(5) .strategy-icon {
    color: var(--sb-secondary);
}

.strategy-item:nth-child(3),
.strategy-item:nth-child(6) {
    border-left: 5px solid var(--sb-accent);
}

.strategy-item:nth-child(3) .strategy-icon,
.strategy-item:nth-child(6) .strategy-icon {
    color: var(--sb-accent);
}

/* -- Refactored Inline Styles -- */

/* Hero Specifics */
.sb-scribble-dark {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.sb-hero-layout {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.sb-hero-img-stack {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Grid Utility */
.sb-grid-center {
    align-items: center;
}

.sb-grid-large-gap {
    gap: 60px;
}

.sb-grid-mb-large {
    margin-bottom: 100px;
}

/* Info Box */
.sb-intro-box {
    background: var(--sb-dark);
    padding: 40px;
    border-radius: 12px;
    color: white;
}

.sb-intro-text-p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 0;
}

/* Section Titles */
.sb-section-title-center {
    text-align: center;
    margin-bottom: 50px;
}

.sb-section-title-left {
    text-align: left;
}

/* Info Cards (What We Do/Offer) */
.sb-info-card {
    background: var(--sb-light);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 0;
}

.sb-info-card-primary {
    border-left: 5px solid var(--sb-primary);
}

.sb-info-card-secondary {
    border-left: 5px solid var(--sb-secondary);
}

.sb-info-card-text {
    font-size: 1.1rem;
    color: var(--sb-text);
    line-height: 1.8;
    margin-bottom: 0;
}

.sb-block-img {
    width: 100%;
    display: block;
}

/* CTA */
.sb-cta-title-text {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

/* Flex Utilities */
.sb-flex-1 {
    flex: 1;
}

/* -- Creative Blueprint Hero Redesign -- */
.sb-hero-bg-grid {
    background-color: #fdfdfd;
    background-image: linear-gradient(#f0f0f0 1px, transparent 1px),
        linear-gradient(90deg, #f0f0f0 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.sb-hero-bg-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(255, 255, 255, 0.8) 100%);
    pointer-events: none;
}

.sb-blueprint-headline {
    font-size: 4rem;
    font-weight: 800;
    color: var(--sb-dark);
    margin-bottom: 20px;
    line-height: 1.1;
    position: relative;
    display: inline-block;
}

.sb-blueprint-headline span {
    color: var(--sb-primary);
    position: relative;
}

.sb-blueprint-headline span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(30, 64, 175, 0.1);
    transform: rotate(-2deg);
    z-index: -1;
    border-radius: 4px;
}

.sb-image-stack-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    /* Fixed height for the floating effect */
    display: flex;
    align-items: center;
    justify-content: center;
}

.sb-floating-card {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 8px solid white;
    background: white;
    transition: all 0.5s ease;
    max-width: 80%;
}

.sb-card-1 {
    top: 10%;
    right: 5%;
    transform: rotate(-3deg);
    z-index: 2;
    animation: float-gentle 6s ease-in-out infinite;
    width: 70%;
}

.sb-card-2 {
    bottom: 15%;
    left: 5%;
    transform: rotate(2deg);
    z-index: 1;
    animation: float-gentle 6s ease-in-out infinite reverse;
    width: 75%;
}

.sb-floating-card:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 10;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

@keyframes float-gentle {

    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-15px) rotate(-3deg);
    }
}

@keyframes float-gentle-reverse {

    0%,
    100% {
        transform: translateY(0) rotate(2deg);
    }

    50% {
        transform: translateY(15px) rotate(2deg);
    }
}

/* Mobile Adjustments for Blueprint */
@media (max-width: 991px) {
    .sb-image-stack-wrapper {
        height: auto;
        min-height: 400px;
        margin-top: 50px;
    }

    .sb-card-1 {
        top: 0;
        right: auto;
        width: 80%;
    }

    .sb-card-2 {
        bottom: 0;
        left: auto;
        width: 80%;
        margin-top: -50px;
        /* Overlap manually */
    }

    .sb-blueprint-headline {
        font-size: 2.5rem;
    }
}
@media (max-width: 768px) {
.sb-cta-title-text {
  font-size: 1.5rem;
  margin-bottom: 0px;
}
    .sb-btn-glow {
  padding: 16px 10px;
  font-size: 12px;
        }
}