html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #264059; /* Deep blue background */
    z-index: -10; /* Place behind all other content */
}
/* Remove flex from body */
body {
    min-height: 100vh;
    position: relative;
    overflow-y: auto; /* Allow vertical scrolling */
}


/* Add a content wrapper for flex layout */
.content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    /* Add other styles as needed */
}


/* Background image for index.html */
.index-body {
    background-image: url('../assets/images/comfy.png'); /* Only apply to index.html */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: auto;
}

h1 {
    color: pink;
}

/* Background video for services.html */
.services-body-video {
    /* No background image, just video */
}

/* Background image for contact.html */
.contact-body {
    background-image: url('../assets/images/contact.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@font-face {
    font-family:'Livvic ExtraLight';
    src: url('../assets/fonts/Livvic ExtraLight.woff2') format('woff2');
    font-weight: 275;
    font-style: normal;
    font-stretch: normal;
    unicode-range: U+0020-2083;
}
@font-face {
    font-family:'Livvic Medium';
    src: url('../assets/fonts/Livvic Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-stretch: normal;
    unicode-range: U+0020-2083;
}

#backgroundVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* Keeps the video behind the content */
    opacity: 0.25; /* Adjust opacity */
    pointer-events: none; /* Prevent the video from intercepting scroll events */
}

/* Styles for the big logo outside the header */
.logo-big {
    width: 80%; /* Use percentage to make it responsive */
    max-width: 300px; /* Maximum width to maintain aesthetics */
    margin-top: 120px; /* Space from the top */
    z-index: 1;
}

.main-logo-big {
    width: 100%; /* Full width of the container */
    max-width: 500px; /* Maximum width to maintain aesthetics */
    margin-top: 120px; /* Space from the top */
    z-index: 1;
}

.short-info {
    font-family: "Livvic ExtraLight", "Times New Roman", Georgia, Serif;
    font-size: 18px;
    width: 90%; /* Slightly less than full width for better reading */
    max-width: 1200px;
    text-align: center;
    color: #fff; /* White text color */
    padding: 20px;
    margin-top: 20px; /* Space between logo and text */
    border-radius: 10px;
    z-index: 1;

    /* Glass-like background */
    background: rgba(0,0,0, 0.5); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Blurred background behind the text */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.short-info-left {
    font-family: "Livvic ExtraLight", "Times New Roman", Georgia, Serif;
    font-size: 18px;
    width: 90%;
    max-width: 1200px;
    color: #fff;
    padding: 20px 20px 20px;
    margin-top: 20px;
    border-radius: 10px;
    z-index: 1;
    background: rgba(0,0,0, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.short-info h1,
.short-info h2,
.short-info h3,
.short-info p,
.short-info ul,
.short-info ol {
    text-align: center;
    margin-left: 0;
    margin-right: 0;
}

.short-info-left h1,
.short-info-left h2,
.short-info-left h3,
.short-info-left p,
.short-info-left ul,
.short-info-left ol {
    text-align: left;
    margin-left: 20px;
    margin-right: 20px;
}

.short-info p{
    max-width: 600px;
    margin: 0 auto; /* Centers the paragraph inside the container */
}

.short-info ul{
    max-width: 600px;
    margin: 0 auto; /* Centers the paragraph inside the container */
    text-align: left;
}


.info-link {
    font-family: "Livvic Medium", "Times New Roman", Georgia, Serif;
    font-size: 15px;
    color: #fff; /* Adjust text color as necessary */
    font-size: 1em;
    text-decoration: none;
    margin-top: 20px;
    margin-bottom: 40px; /* Extra space at the bottom */
    z-index: 1;
}

/* Gold color for the email link */
a {
    color: pink;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.projects-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    z-index: 1; /* Ensure the project section stays above the video */
}

.projects-section p {
    margin: 0 2px;
    /* Additional styling as needed */
}

.projects-section h2 {
    margin-bottom: 6px;
}

.project-item {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; /* Space between items */
}


.project-item h2, .project-item p {
    text-decoration: none; /* Ensure no underline on the text inside the link */
    color: inherit; /* Maintain the text color */
}

/* Project image */
.project-image {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    margin-right: 20px;
}

/* Project info */
.project-info {
    flex-grow: 1; /* Allow project info to take available space */
    text-align: left;
    color: white;
    font-family: "Livvic ExtraLight", "Times New Roman", Georgia, Serif;
    font-size: 1em;
    position: relative; /* For positioning within the project item */
}


.learn-more {
    float: right;
    margin-left: 20px;
    margin-top:5px;
    padding: 10px 15px;
    background-color: #ff69b4; /* Adjust color to match your theme */
    background-color: white; /* Adjust color to match your theme */
    color: black;
    text-decoration: none;
    font-family: "Livvic Medium", "Times New Roman", Georgia, Serif;
    font-size: 0.9em;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.learn-more:hover {
    background-color: #ffa0cf;
    text-decoration: none;
}


.link-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    z-index: 1; /* Ensure the project section stays above the video */
}

.link-section p {
    margin: 0 2px;
    /* Additional styling as needed */
}

.link-section h2 {
    margin-bottom: 6px;
}

.link-item {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; /* Space between items */
}


.link-item h2, .link-item p {
    text-decoration: none; /* Ensure no underline on the text inside the link */
    color: inherit; /* Maintain the text color */
}

/* Project image */
.link-image {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    margin-right: 20px;
}

/* Project info */
.link-info {
    flex-grow: 1; /* Allow project info to take available space */
    text-align: left;
    color: white;
    font-family: "Livvic ExtraLight", "Times New Roman", Georgia, Serif;
    font-size: 1em;
    position: relative; /* For positioning within the project item */
}

/*
.banner {
    z-index: 1;
    margin-top: 50px;
}
*/

/* Bold text styling added to allow <b> elements to display correctly */
b {
    font-family: "Livvic Medium", "Times New Roman", Georgia, Serif;
    font-weight: 500;
}

/* Scroll reveal animations for sections */
/* Remove generic scroll reveal rules for headlines to avoid conflicts */
/*
.scroll-reveal h1,
.scroll-reveal h2 {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-reveal.in-view h1,
.scroll-reveal.in-view h2 {
    opacity: 1;
    transform: scale(1);
}
*/

/* Individual scroll reveal blocks */
.scroll-reveal .reveal-block {
    /* No animation on the container itself */
}

/* Animate h2 and p within each reveal block separately */
.scroll-reveal .reveal-block h2,
.scroll-reveal .reveal-block p {
    opacity: 0;
    transform: translateY(30px);
}

/* When the reveal block is in view, animate h2 first */
.scroll-reveal .reveal-block.in-view h2 {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Then animate the paragraph with an extra delay */
.scroll-reveal .reveal-block.in-view p {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

/* Staggered delays for each block (headline is child 1) */
.scroll-reveal .reveal-block:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal .reveal-block:nth-child(3) { transition-delay: 0.4s; }
.scroll-reveal .reveal-block:nth-child(4) { transition-delay: 0.6s; }
.scroll-reveal .reveal-block:nth-child(5) { transition-delay: 0.8s; }
.scroll-reveal .reveal-block:nth-child(6) { transition-delay: 1s; }

/* Steps box style */
.step-box {
    border: 1px solid rgba(255,255,255,1);
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin: 20px auto;
    text-align: left;
    background: rgba(0,0,0,0.5);
    font-family: "Livvic ExtraLight", "Times New Roman", Georgia, Serif;
    color: #fff;
}
.step-box h2 {
    margin-top: 0;
    color: #ffc0cb;
}
.step-number {
    font-size: 1.5em;
    font-family: "Livvic Medium", "Times New Roman", Georgia, Serif;
    color: #ffc0cb;
    margin-right: 5px;
}
.step-item {
    margin-bottom: 10px;
}

.step-item p {
    margin-left: 32px;
    text-align: left;
}

/* Video grid and video item styles */
.video-grid {
    margin-left: 100px;
    margin-right: 100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.video-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    background: none;
}

.video-item iframe {
    width: 100%;
    aspect-ratio: 9 / 16;
    height: auto;
    min-height: 0;
    max-height: none;
    border-radius: 10px 10px 0 0;
    display: block;
    background: #222;
}

/* For browsers that do not support aspect-ratio on iframe, fallback: */
@supports not (aspect-ratio: 9 / 16) {
    .video-item iframe {
        height: calc(100vw * 16 / 9);
        max-height: 480px;
    }
}

.video-meta {
    background: rgba(255,255,255,0.10);
    border-radius: 0 0 12px 12px;
    padding: 16px 10px 14px 10px;
    margin-top: 0;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 70px;   /* Fixed min height */
    max-height: 70px;   /* Fixed max height */
    justify-content: center;
    overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .video-grid {
        margin-left: 10px;
        margin-right: 10px;
        grid-template-columns: 1fr;
    }
}

#what-you-get {
    scroll-margin-top: 80px; /* adjust the offset as needed */
}

/* Left-aligned list style */
.list-left {
    text-align: left;
    margin: 0 auto;
    max-width: 600px;
}

.list-left h3 {
    text-align: left;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start; /* Change from center to flex-start to align with first line */
}

.bullet-star {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 6px; /* Add slight top margin to align with text */
    filter: brightness(0) invert(1); /* Make SVG white */
}

.video-learn-more {
    margin-top: 12px;
    display: inline-block;
    padding: 10px 15px;
    background-color: white;
    color: black;
    text-decoration: none;
    font-family: "Livvic Medium", "Times New Roman", Georgia, Serif;
    font-size: 0.9em;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.video-learn-more:hover {
    background-color: pink;
    text-decoration: none;
}

.video-meta {
    background: rgba(255,255,255,0.10);
    border-radius: 0 0 12px 12px;
    padding: 16px 10px 14px 10px;
    margin-top: 0;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 70px;   /* Fixed min height */
    max-height: 70px;   /* Fixed max height */
    justify-content: center;
    overflow: hidden;
}

.video-title {
    font-family: "Livvic Medium", "Times New Roman", Georgia, Serif;
    font-size: 1.1em;
    color: #fff;
    text-align: center;
    background: none;
    line-height: 1.3;
    word-break: break-word;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-case-btn {
    min-width: 150px;
    display: inline-block;
    padding: 10px 15px;
    background-color: white;
    color: black;
    text-decoration: none;
    font-family: "Livvic Medium", "Times New Roman", Georgia, Serif;
    font-size: 0.9em;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.video-case-btn:hover {
    background-color: pink;
    color: black;
    text-decoration: none;
}


.cta-button a{
    margin-top: 20px !important;
    width: 400px !important;

}

.cta-button {
    margin: 20px;
    padding: 10px 15px;
    width:400px;
    text-align: center;
    background-color: white; /* Adjust color to match your theme */
    color: black;
    text-decoration: none;
    font-family: "Livvic Medium", "Times New Roman", Georgia, Serif;
    font-size: 0.9em;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: pink;
    text-decoration: none;
}

.hero-banner-training {
    width: 100vw;
    max-width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
}
.hero-banner-training img {
    width: 100vw;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .br-lg { display: none; }
}
@media (min-width: 1025px) {
    .br-lg { display: inline; }
    .br-lg::after { content: "\A"; white-space: pre; }
}

/* Workshop modules section (training.php) */
.workshop-modules-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 40px;
}

.workshop-module {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: rgba(0,0,0,0.35);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 0;
    width: 100%;
    max-width: 1200px;
    min-height: 340px;
}

.workshop-module-media {
    max-width: 40%;
    min-width: 30%;
    position: relative;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.workshop-module-image {
    width: 100%;
    height: 100%;
    min-height: 460px;
    display: block;
    margin: 0 auto;
    object-fit: cover; /* changed from contain to cover */
    border-radius: 0;
    z-index: 1;
    position: relative;
}

/* For mobile: adjust height so image doesn't overflow */
@media (max-width: 768px) {
    .workshop-module-image {
        max-height: 420px;
        height: 100%;
    }
}

.workshop-module-overlay {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    border-radius: 0;
}

.workshop-module-content {
    flex: 2 1 0;
    padding: 36px 36px 36px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.workshop-module-content h2 {
    font-size: 2.1rem;
    margin-top: 0;
    margin-bottom: 12px;
    color: inherit;
}
.workshop-module-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: inherit;
}
.workshop-module-content ul {
    margin: 0 0 16px 0;
    padding-left: 20px;
    text-align: left;
}
.workshop-module-content li {
    margin-bottom: 6px;
    font-size: 1.08em;
}

/* Emoji bullets for workshop modules (class-based) */
.module1-brain li {
    list-style: none;
    position: relative;
    padding-left: 2em;
}
.module1-brain li::before {
    content: "\1F9E0"; /* 🧠 */
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 1.2em;
    line-height: 1;
}

.module1-rocket li,
.module2-rocket li,
.module3-rocket li {
    list-style: none;
    position: relative;
    padding-left: 2em;
}
.module1-rocket li::before,
.module2-rocket li::before,
.module3-rocket li::before {
    content: "\1F680"; /* 🚀 */
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 1.2em;
    line-height: 1;
}

.module2-star li {
    list-style: none;
    position: relative;
    padding-left: 2em;
}
.module2-star li::before {
    content: "\2728"; /* ✨ */
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 1.2em;
    line-height: 1;
}

.module3-robot li {
    list-style: none;
    position: relative;
    padding-left: 2em;
}
.module3-robot li::before {
    content: "\1F916"; /* 🤖 */
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 1.2em;
    line-height: 1;
}

.workshop-module-cta {
    margin-top: 10px;
    min-width: 180px;
    display: inline-block;
    padding: 12px 24px;
    background-color: white;
    color: black;
    text-decoration: none;
    font-family: "Livvic Medium", "Times New Roman", Georgia, Serif;
    font-size: 1em;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
}
.workshop-module-cta:hover {
    background-color: pink;
    color: black;
    text-decoration: none;
}

.module-blue .workshop-module-cta { background: #bedbff; color: #222; }
.module-blue .workshop-module-cta:hover { background: #e0f0ff; }
.module-yellow .workshop-module-cta { background: #ffe9be; color: #222; }
.module-yellow .workshop-module-cta:hover { background: #fff5df; }
.module-pink .workshop-module-cta { background: #ffbecc; color: #222; }
.module-pink .workshop-module-cta:hover { background: #ffe0ea; }

.module-blue h2 { color: #bedbff; }
.module-yellow h2 { color: #ffe9be; }
.module-pink h2 { color: #ffbecc; }

/* Responsive styles */
@media (max-width: 768px) {
    .workshop-module {
        flex-direction: column;
        min-height: 0;
    }
    .workshop-module-media {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        height: 220px;
    }
    .workshop-module-image {
        min-height: 180px;
        max-height: 220px;
    }
    .workshop-module-content {
        padding: 24px 16px 24px 16px;
    }
}
@media (max-width: 600px) {
    .workshop-module-content h2 {
        font-size: 1.3rem;
    }
    .workshop-module-content h3 {
        font-size: 1.05rem;
    }
    .workshop-module-content {
        padding: 14px 4vw 18px 4vw;
    }
}

.section-divider {
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 32px 0 18px 0;
    font-size: 1.25em;
    font-family: "Livvic Medium", "Times New Roman", Georgia, Serif;
    color: #fff;
    letter-spacing: 0.02em;
}
.section-divider .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fff 60%, transparent);
    margin: 0 16px;
    opacity: 0.4;
}

/* Case Area Styles */
.case-area {
    background: rgba(255, 255, 255, 0.05); /* Subtle background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.case-area h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff; /* White title */
    text-align: left;
}

.case-area p {
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

/* Case Content Layout */
.case-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.case-image {
    flex: 0 0 250px; /* Fixed width for the image column */
    max-width: 30%;
}

.case-image img {
    width: 100%;
    height: auto;
    display: block;
    /* border-radius: 10px; Optional if needed */
}

/* Adjust video grid when inside case-content */
.case-content .video-grid {
    flex: 1;
    margin-left: 0;
    margin-right: 0;
    gap: 100px;
}

/* Mobile responsiveness for case content */
@media (max-width: 900px) {
    .case-content {
        flex-direction: column;
    }
    
    .case-image {
        max-width: 100%;
        flex: 0 0 auto;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .case-image img {
        max-width: 300px; /* Limit image size on mobile */
        margin: 0 auto;
    }
}
