:root {
    --primary-color: #007bff;
    /* Tech Blue */
    --secondary-color: #00d2ff;
    /* Cyan */
    --accent-color: #3b82f6;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --text-light: #505c6e;
    --card-bg: rgba(255, 255, 255, 0.92);
    /* High opacity for structure */
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font-main: 'Outfit', sans-serif;
    --gap-size: 15px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.45;
    overflow-x: hidden;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* Background Animation */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 25s infinite alternate;
}

.globe-1 {
    width: 600px;
    height: 600px;
    background: var(--secondary-color);
    top: -100px;
    left: -150px;
}

.globe-2 {
    width: 700px;
    height: 700px;
    background: var(--primary-color);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(40px, 40px);
    }
}

header {
    text-align: center;
    padding: 30px 20px 30px;
    opacity: 0;
    animation: fadeInDown 0.8s ease-out forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container img {
    height: 55px;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05) rotate(-2deg);
}

h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.5px;
    margin-bottom: 0.2rem;
}

.subtitle {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

/* 
   STRICT CANVAS LAYOUT 
*/
.canvas-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: var(--gap-size);
}

.canvas-top-section {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: var(--gap-size);
    min-height: 700px;
}

.canvas-bottom-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-size);
    min-height: 250px;
}

/* BLOCK STYLING & ANIMATION */
.canvas-block {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;

    /* Animation Initial State */
    opacity: 0;
    transform: translateY(30px);
    transition:
        transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
}

/* The 'visible' class will be added by JS for the staggered effect */
.canvas-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.canvas-block:hover {
    transform: translateY(-8px) scale(1.005);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
    z-index: 10;
}

/* Grid Positioning */
.key-partners {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.canvas-top-section>.column-split {
    grid-column: span 1;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: var(--gap-size);
}

.column-split .canvas-block {
    flex: 1;
}

.value-proposition {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.96), rgba(240, 248, 255, 0.96));
    border-top: 4px solid var(--primary-color);
    /* Continuous Pulse Animation */
    animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 123, 255, 0.3);
        transform: scale(1.02);
        border-color: var(--secondary-color);
    }

    100% {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        transform: scale(1);
    }
}

/* Pause pulse on hover so the standard hover effect takes over cleanly */
.value-proposition:hover {
    animation-play-state: paused;
}

.customer-segments {
    grid-column: 5 / 6;
    grid-row: 1 / 3;
}

/* CONTENT STYLING */
.block-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.04);
    padding-bottom: 12px;
    gap: 12px;
}

.icon-container {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.canvas-block:hover .icon-container {
    transform: scale(1.15) rotate(5deg);
}

.icon-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    transition: filter 0.3s ease;
}

.canvas-block:hover .icon-container img {
    filter: drop-shadow(0 4px 8px rgba(0, 123, 255, 0.2));
}

.block-header h2 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-color);
    line-height: 1.2;
    transition: color 0.3s ease;
}

.canvas-block:hover .block-header h2 {
    color: var(--primary-color);
}

.block-content ul {
    list-style: none;
    font-size: 0.9rem;
}

.block-content li {
    margin-bottom: 10px;
    color: var(--text-light);
    padding-left: 14px;
    position: relative;
    text-align: left;
    transition: transform 0.2s ease, color 0.2s ease;
    cursor: default;
}

/* List Item Hover Effect */
.block-content li:hover {
    transform: translateX(5px);
    color: var(--text-color);
}

.block-content li::before {
    content: "▪";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1.5;
    transition: transform 0.2s ease;
}

.block-content li:hover::before {
    transform: scale(1.5);
    color: var(--secondary-color);
}

.block-content strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Footer styling */
footer {
    text-align: center;
    padding-top: 40px;
    color: var(--text-light);
    font-size: 0.85rem;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* IMAGE ZOOM OVERLAY */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let mouse pass through so hover doesn't get stuck flicking */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-overlay.visible {
    opacity: 1;
}

.zoom-card {
    background: rgba(255, 255, 255, 0.2);
    /* Glassy background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.zoom-overlay.visible .zoom-card {
    transform: scale(1) translateY(0);
}

.zoom-card img {
    max-height: 50vh;
    /* Max 50% of screen height */
    max-width: 50vw;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* RESPONSIVENESS */
@media (max-width: 1280px) {
    .canvas-top-section {
        grid-template-columns: repeat(3, 1fr);
        display: flex;
        flex-wrap: wrap;
        height: auto;
    }

    .canvas-block,
    .column-split {
        width: 31%;
        flex-grow: 1;
        min-height: 400px;
    }

    .key-partners,
    .value-proposition,
    .customer-segments {
        grid-row: auto;
        grid-column: auto;
    }

    .canvas-bottom-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .canvas-block,
    .column-split {
        width: 100%;
        min-height: auto;
    }

    .canvas-top-section {
        flex-direction: column;
    }
}