/* Home page-specific styles */
.hero-slide-1 {
    background-image: url('../images/slide_3.jpg');
}

.hero-slide-2 {
    background-image: url('../images/hero_medical_curtain.jpg');
}

.hero-slide-3 {
    background-image: url('../images/slide_2new.jpg');
}

.btn-outline-light {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    color: #ffffff !important;
}

.brand-img-slide-3 {
    background-image: url('../images/slide_3.jpg');
}

.brand-img-slide-2 {
    background-image: url('../images/curtain-home.png');
}

.brand-img-blind {
    background-image: url('../images/blind.jpeg');
}

.hotspot-link {
    text-decoration: none;
    color: inherit;
}

.hotspot-shield-position {
    top: 45%;
    left: 15%;
}

.hotspot-logo-tight {
    max-height: 40px;
    margin-bottom: 1px;
}

.hotspot-logo {
    max-height: 30px;
    margin-bottom: 5px;
}

.hotspot-blind-position {
    top: 35%;
    left: 30%;
}

.track-hotspot {
    top: 15%;
    right: 55%;
}

.expertise-section-border {
    border-top: 1px solid #e2e8f0;
}

.expertise-header {
    margin-bottom: 40px;
}

.expertise-label {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expertise-title {
    font-size: 2.5rem;
}

.expertise-subtitle {
    color: #64748b;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.milestones-header {
    margin-bottom: 45px;
}

.milestones-label {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.milestones-title {
    font-size: 2.5rem;
}

.milestones-subtitle {
    color: #64748b;
}

.home-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.milestones-cta {
    margin-top: 60px;
}

.intro-grid-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.intro-label {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.intro-title {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-weight: 800;
}

.intro-title-accent {
    color: var(--primary-color);
}

.intro-paragraph {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.8;
}

.intro-paragraph:last-of-type {
    margin-bottom: 40px;
}

.intro-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

#homepagePopup {
    display: none;
}

/* ========================================
   VIDEO SECTION STYLES
   ======================================== */
.video-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(62, 196, 225, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.video-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(62, 196, 225, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.video-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.video-label {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-title {
    font-size: 2.5rem;
}

.video-subtitle {
    color: #64748b;
}

/* Video Filters */
.video-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.video-filter-btn {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.video-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    color: var(--secondary-color);
}

.video-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(62, 196, 225, 0.3);
}

/* Video Category Tag */
.video-cat-tag {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1px;
    padding: 4px 10px;
    background: rgba(62, 196, 225, 0.1);
    border-radius: 6px;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* Video Card */
.video-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
}

.video-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 70px rgba(62, 196, 225, 0.15);
    background: rgba(255, 255, 255, 0.95);
    border-color: #fff;
}

/* Shine effect on hover */
.video-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 5;
    transition: 0s;
}

.video-card:hover::after {
    left: 200%;
    transition: 0.8s ease-in-out;
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.video-thumbnail img,
.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.video-card:hover .video-thumbnail img,
.video-card:hover .video-thumbnail video {
    transform: scale(1.1);
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.video-card:hover .video-overlay {
    background: transparent;
}

/* Play Button */
.play-button {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.play-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.5s ease;
    animation: playPulse 2.5s ease-in-out infinite;
}

@keyframes playPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.play-button svg {
    width: 36px;
    height: 36px;
    margin-left: 5px;
}

.video-card:hover .play-button {
    transform: scale(1.1) rotate(15deg);
    background: var(--primary-solid);
    border-color: var(--primary-solid);
    box-shadow: 0 15px 40px rgba(62, 196, 225, 0.4);
}

/* Video Duration Badge */
.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Video Info */
.video-info {
    padding: 18px 22px;
}

.video-info h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 8px;
    line-height: 1.3;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
}

.video-card:hover .video-info h4 {
    color: var(--primary-solid);
    transform: translateX(5px);
}

.video-info .inline-brand-logo {
    height: 30px;
    margin-left: -8px;
    /* Optical alignment to align with text below */
    vertical-align: middle;
}

.video-info p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.video-card:hover .video-info p {
    color: var(--secondary-color);
}

/* Video CTA */
.video-cta {
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

/* ========================================
   VIDEO MODAL STYLES
   ======================================== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.4s ease;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: transparent;
    animation: modalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(30px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10001;
}

.video-modal-close:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: rotate(90deg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* ========================================
   RESPONSIVE VIDEO SECTION
   ======================================== */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-section {
        padding: var(--section-padding-mobile);
    }

    .video-title {
        font-size: 2.2rem;
    }

    .video-subtitle {
        font-size: 1rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .video-card {
        border-radius: 16px;
    }

    .play-button {
        width: 60px;
        height: 60px;
    }

    .play-button svg {
        width: 24px;
        height: 24px;
    }

    .video-info {
        padding: 20px;
    }

    .video-info h4 {
        font-size: 1rem;
    }

    .video-modal-content {
        width: 95%;
    }

    .video-modal-close {
        top: -40px;
        font-size: 32px;
    }
}

/* CSS Variables - used by inline styles */
:root {
    --primary-color: #3ec4e1;
    --secondary-color: #0a0e27;
    --text-color: #64748b;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* NOTE: .logo, .cura-brand-card, .project-card, .stat-card, .hotspot-arrow 
           styles are defined in style.css - removed duplicates here */

/* Animations (used by hero content) */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Scroll Animation Class */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Popup Styles (Preserved) */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.4s ease;
}

.popup-content {
    position: relative;
    background: transparent;
    max-width: 800px;
    width: auto;
    display: flex;
    justify-content: center;
    box-shadow: none;
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    font-weight: 300;
    opacity: 0.8;
    transition: all 0.3s;
    z-index: 10001;
    line-height: 1;
}

.popup-close:hover {
    opacity: 1;
    transform: rotate(90deg);
    color: var(--primary-color);
}

.popup-img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* CTA Section Premium Redesign */
.cta-section {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f4d 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(62, 196, 225, 0.08) 0%, transparent 60%);
    animation: rotateBG 20s linear infinite;
}

@keyframes rotateBG {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.8rem;
    margin-bottom: 25px;
    background: linear-gradient(to right, #fff, #3ec4e1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.cta-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* 3D Tilt Effect Base */
.tilt-effect {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Staggered Animation Defaults */
.stagger-container>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-container.is-visible>* {
    opacity: 1;
    transform: translateY(0);
}