/* assets/css/hero.css */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-bg-dark);
    padding: 9rem 0 5rem 0; /* Padding to prevent header overlap */
    overflow: hidden;
    z-index: 5;
}

/* Background huge text */
.hero-bg-text {
    bottom: 5%;
    left: 8%;
    font-size: 14vw;
    line-height: 1;
    z-index: 1;
    opacity: 0.8;
}

/* Vertical Bars (Left Social, Right Scroll) */
.vertical-bar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
}

.left-bar {
    left: 2.5rem;
}

.right-bar {
    right: 2.5rem;
}

/* Rotated social menu */
.vertical-socials {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: left center;
    white-space: nowrap;
}

.vertical-socials li {
    display: inline-block;
}

.vertical-socials a {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-text-muted);
}

.vertical-socials a:hover {
    color: var(--color-accent);
}

.vertical-socials .bullet {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

/* Rotated scroll down */
.vertical-scroll {
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: rotate(90deg) translateX(-50%);
    transform-origin: right center;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-text-muted);
}

.vertical-scroll:hover {
    color: var(--color-accent);
}

.scroll-arrow {
    width: 14px;
    height: 14px;
    transform: rotate(-90deg); /* Counter-act rotation of container */
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(-90deg) translateX(0);
    }
    40% {
        transform: rotate(-90deg) translateX(-6px);
    }
    60% {
        transform: rotate(-90deg) translateX(-3px);
    }
}

/* Hero Content & Layout */
.hero-container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--color-accent);
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.hero-title-accent {
    color: var(--color-text-light);
    font-weight: 400;
    font-family: var(--font-heading);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Hero Image & Video Showcase Area */
.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Special top-right corner cut */
    border-radius: 60px 0px 60px 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: var(--transition-slow);
    filter: brightness(0.9);
}

.hero-image-wrapper:hover .hero-img {
    transform: scale(1.04);
}

/* Pulsing Play Button Styling */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    z-index: 5;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.play-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.video-play-btn i,
.video-play-btn svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-light);
    transform: translateX(2px); /* Centering triangle icon */
}

/* Button Pulse Animation */
.video-play-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: pulsePlay 2s infinite;
    z-index: -1;
}

@keyframes pulsePlay {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.video-play-btn:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn:hover .play-icon-wrapper {
    background-color: rgba(18, 30, 33, 0.2);
}

.video-play-btn:hover i,
.video-play-btn:hover svg {
    color: var(--color-text-dark);
}

/* Video Player Modal/Frame styles */
.video-player-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 20;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.video-player-iframe.active {
    display: block;
    opacity: 1;
}

.video-player-iframe iframe {
    width: 100%;
    height: 100%;
}

.close-video {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 30;
    background: rgba(0,0,0,0.6);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Customisations */
@media (max-width: 1200px) {
    .left-bar, .right-bar {
        display: none; /* Hide vertical text menus on medium devices to avoid overlap */
    }
    .hero-section {
        padding: 8rem 0 4rem 0;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-badge {
        border-left: none;
        border-bottom: 2px solid var(--color-accent);
        padding-left: 0;
        padding-bottom: 0.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        margin: 0 auto 2rem auto;
    }

    .hero-img {
        height: 360px;
    }
}
