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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
    line-height: 1.6;
    background: #2a2a2a;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(37, 67, 86, 0.95);
    padding: 0.5rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
}

.logo span {
    color: #f05d2a;
}

/* Global link styles */
a {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/pcmc-primo-the-polar-bear-hero.png');
    background-size: cover;
    background-position: center;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 50 Q 25 30, 50 50 T 100 50" stroke="rgba(255,255,255,0.1)" fill="none" stroke-width="2"/><path d="M0 70 Q 25 50, 50 70 T 100 70" stroke="rgba(255,255,255,0.05)" fill="none" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 1000px;
    margin-top: 35%;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-content .highlight {
    color: #f05d2a;
    font-weight: 600;
}

.learn-more-btn {
    display: inline-block;
    background: #f05d2a;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1.5rem;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.learn-more-btn:hover {
    background: #d94d1f;
}

/* Main Content */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
    background: #2a2a2a;
}

.section-title {
    font-size: 2.5rem;
    color: #f05d2a;
    margin-bottom: 2rem;
    text-align: center;
}   

.contact-section .section-title {
    color: #254356;
}

/* HubSpot Form Container */
.hs-form-frame {
    overflow: hidden !important;
    max-height: 600px !important;
}

/* Hide HubSpot branding by cutting it off */
#hs-form-virality-container {
    display: none !important;
}

.description {
    font-size: 1.25rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 0rem;
    color: #c0c0c0;
    line-height: 1.8;
}

.description .highlight-text {
    color: #5ec9a4;
    font-weight: 700;
}

/* Video Section */
.video-section {
    margin: 0rem 0;
    padding: 2rem;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Video.js custom styling to match site design */
.video-js {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Translucent overlay on video when paused to make button stand out */
.video-js .vjs-poster,
.video-js.vjs-paused:not(.vjs-has-started) .vjs-poster {
    background-size: cover;
    background-position: center;
}

.video-js::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-js.vjs-playing::before,
.video-js.vjs-seeking::before,
.video-js.vjs-waiting::before {
    opacity: 0;
}

/* Big play button - centered orange circle with play arrow */
.video-js .vjs-big-play-button {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    background-color: rgba(240, 93, 42, 0.9) !important;
    border: none !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    transition: all 0.3s ease !important;
    z-index: 2;
    line-height: 80px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Center the play icon inside the button */
.video-js .vjs-big-play-button .vjs-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.video-js .vjs-big-play-button .vjs-icon-placeholder:before {
    position: relative;
    top: 0;
    left: 3px; /* Slight offset to visually center the triangle */
    font-size: 2.5em;
    line-height: 1;
}

/* Hover state - solid orange with scale effect */
.video-js:hover .vjs-big-play-button {
    background-color: rgba(240, 93, 42, 1) !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
}

/* No orange overlay on video hover - only on button hover */
.video-js .vjs-poster {
    transition: none;
}

/* Control bar styling */
.video-js .vjs-control-bar {
    background-color: rgba(43, 51, 63, 0.95);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.video-js .vjs-play-progress,
.video-js .vjs-volume-level {
    background-color: #f05d2a;
}

.video-js .vjs-slider:hover .vjs-play-progress,
.video-js .vjs-slider:hover .vjs-volume-level {
    background-color: #ff7043;
}

/* Hide big play button when video is playing */
.video-js.vjs-playing .vjs-big-play-button,
.video-js.vjs-has-started .vjs-big-play-button {
    display: none;
}

/* Responsive video player */
@media (max-width: 768px) {
    .video-js .vjs-big-play-button {
        width: 60px !important;
        height: 60px !important;
        line-height: 60px !important;
    }

    .video-js .vjs-big-play-button .vjs-icon-placeholder:before {
        font-size: 2em;
    }
}

/* Solution Structure */
.solution-structure {
    margin: 2rem 0;
}

.solution-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.solution-columns > div {
    display: flex;
    flex-direction: column;
}

.column-header {
    background: #5ec9a4;
    color: #1a3a3a;
    padding: 1.5rem;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    border-radius: 10px 10px 0 0;
}

.column-content {
    background: #3a3a3a;
    padding: 3rem 2rem;
    border-radius: 0 0 10px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Physical Tracker Column */
.tracker-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.flow-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.flow-icon {
    width: 120px;
    height: 120px;
    border: 4px solid #5ec9a4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    flex-shrink: 0;
    font-size: 3rem;
    overflow: hidden;
}

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

.flow-text {
    flex: 1;
    font-size: 1.05rem;
    color: #c0c0c0;
    line-height: 1.6;
    text-align: left;
}

.flow-arrow {
    text-align: center;
    color: #5ec9a4;
    font-size: 2rem;
    margin: -1rem 0;
}

/* Digital Platform Column */
.platform-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.report-preview {
    background: #1a1a2e;
    border-radius: 10px;
    padding: 1.5rem;
    color: white;
}

.report-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f05d2a;
}

.report-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.report-title {
    color: #f05d2a;
    font-weight: 700;
    font-size: 1.1rem;
}

.report-subtitle {
    color: #5ec9a4;
    font-size: 0.9rem;
}

.report-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.report-row {
    display: flex;
    justify-content: space-between;
    grid-column: span 2;
}

.report-label {
    color: #aaa;
}

.report-value {
    color: white;
}

.report-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.report-footer-label {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.report-provider {
    font-family: 'Brush Script MT', cursive;
    font-size: 1.5rem;
    color: white;
}

.report-qr {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 5px;
}

.features-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5ec9a4;
    margin-bottom: 1.5rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #2a2a2a;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #4a4a4a;
}

.feature-check {
    width: 30px;
    height: 30px;
    background: #5ec9a4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a3a3a;
    font-size: 1.2rem;
    flex-shrink: 0;
    font-weight: bold;
}

.feature-text {
    color: #c0c0c0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Solution Overview */
.solution-overview-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.stakeholder-section .solution-overview-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.solution-overview-title {
    font-size: 2rem;
    color: #5ec9a4;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

/* Solution Overview */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 3rem;
    margin-bottom: 6rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Flip Card Container - Only for "How it Works" cards */
.solution-overview-section .solution-grid .solution-card-container {
    perspective: 1000px;
    height: 180px;
}

.solution-overview-section .solution-grid .solution-card {
    position: relative;
    width: 100%;
    height: 180px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.solution-overview-section .solution-grid .solution-card.flipped {
    transform: rotateY(180deg) translateY(-5px);
}

.solution-overview-section .solution-grid .solution-card:hover:not(.flipped) {
    transform: translateY(-5px);
}

.solution-overview-section .solution-grid .solution-card-front,
.solution-overview-section .solution-grid .solution-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #3a3a3a;
    border: 2px solid #5ec9a4;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.solution-overview-section .solution-grid .solution-card-back {
    transform: rotateY(180deg);
}

.solution-overview-section .solution-grid .solution-card-front h3 {
    color: #5ec9a4;
    font-size: 1.3rem;
    margin-bottom: 0;
    text-decoration: none;
}

.solution-overview-section .solution-grid .solution-card-back p {
    color: #c0c0c0;
    line-height: 1.6;
    margin: 0;
}

/* Regular Solution Cards - Stakeholder section */
.stakeholder-section .solution-card {
    background: #3a3a3a;
    border: 2px solid #5ec9a4;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: block;
}

.stakeholder-section .solution-card:hover {
    transform: translateY(-5px);
}

.stakeholder-section .solution-card a {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.stakeholder-section .solution-card a:visited,
.stakeholder-section .solution-card a:active {
    text-decoration: none !important;
}

.stakeholder-section .solution-card h3 {
    color: #5ec9a4;
    font-size: 1.3rem;
    margin-bottom: 0;
    text-decoration: none;
}

/* Stakeholder Sections */
.stakeholder-section {
    margin: 2rem 0;
    padding: 2rem 2rem;
    background: #2a2a2a;
}

.stakeholder-container {
    max-width: 1200px;
    margin: 0 auto;
}

.stakeholder-box {
    display: flex;
    flex-direction: column;
    background: #3a3a3a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4rem;
}

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

.stakeholder-header {
    background: #5ec9a4;
    color: #1a3a3a;
    padding: 1.5rem;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
}

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

.stakeholder-left {
    color: #c0c0c0;
}

.stakeholder-value-prop {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.stakeholder-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stakeholder-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.stakeholder-bullets li::before {
    content: "•";
    color: #5ec9a4;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: -0.25rem;
}

.stakeholder-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stakeholder-image-placeholder {
    width: 100%;
    height: 300px;
    background: #2a2a2a;
    border: 2px dashed #5ec9a4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5ec9a4;
    font-size: 1rem;
    text-align: center;
    padding: 1rem;
}

.stakeholder-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: 8px;
}

.solution-icon {
    width: 70px;
    height: 70px;
    background: #d0d0d0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    overflow: hidden;
}

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

.solution-card h3 {
    color: #5ec9a4;
    font-size: 1.3rem;
    margin-bottom: 0;
    text-decoration: none;
}

.solution-card a h3 {
    text-decoration: none !important;
    border-bottom: none !important;
}

.solution-card p {
    color: #c0c0c0;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background: #d5d5d5;
    padding: 5rem 2rem;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-email {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-email p {
    color: #333333;
}

/* Footer */
footer {
    background: #254356;
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo p {
    font-size: 0.9rem;
    color: #f05d2a;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 0.75rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Floating Back to Top Button */
.floating-back-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #f05d2a;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(240, 93, 42, 0.3);
    color: white;
    font-weight: bold;
}

.floating-back-button.show {
    display: flex;
}

.floating-back-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(240, 93, 42, 0.5);
}

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

    .hero-content .tagline {
        font-size: 1.2rem;
    }

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

    .contact-form {
        padding: 2rem 1.5rem;
    }

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

    .solution-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto 0.75rem;
    }

    .solution-card h3 {
        font-size: 1.1rem;
    }

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

    .flow-item {
        flex-direction: column;
        text-align: center;
    }

    .flow-icon {
        width: 100px;
        height: 100px;
    }

    .stakeholder-content-split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stakeholder-image-placeholder {
        height: 200px;
    }
}
