/* Custom Cinerama Hero Section Styles */

/* Force headers to remain on top of layout breakouts */
.edgtf-mobile-header,
.edgtf-page-header {
    z-index: 9999 !important;
}

.cinerama-hero {
    position: relative;
    height: 100vh;
    min-height: 750px;
    background: #000;
    overflow: hidden;
    /* Viewport breakout to span full-width on mobile */
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.cinerama-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/alfa-home-slider-img-1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    animation: cineramaHeroZoom 25s ease-in-out infinite alternate;
}

@keyframes cineramaHeroZoom {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1.15);
    }
}

.cinerama-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.4) 60%, rgba(10, 10, 10, 0.9) 100%);
    z-index: 1;
}

/* 2. Tagline Layer - Centered above the middle */
.cinerama-hero-tagline {
    position: absolute;
    left: 51%;
    top: 53%;
    transform: translate(-50%, -155px);
    z-index: 4;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 10px;
    margin: 0;
    white-space: nowrap;
    opacity: 0;
    animation: cineramaTaglineFadeUp .8s .3s forwards;
}

/* 3. Title Layer - Centered exactly in the middle */
.cinerama-hero-title {
    position: absolute;
    left: 51%;
    top: 53%;
    transform: translate(-50%, -73px);
    z-index: 3;
    width: 91%;
    max-width: 917px;
    opacity: 0;
    animation: cineramaTitleFadeUp 1s .5s forwards;
    text-align: center;
}

.cinerama-hero-title img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-text-title {
    font-family: 'Playfair Display', serif;
    font-size: 90px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 12px;
    line-height: 1.05;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    display: inline-block;
}

/* 4. Awards Layer - Positioned relative to center */
.cinerama-hero-awards {
    position: absolute;
    left: 51%;
    top: 53%;
    transform: translate(-50%, 190px); /* relative to center alignment */
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    animation: cineramaCenterXFadeUp .8s .8s forwards;
}

.cinerama-hero-awards img {
    height: 56px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s ease-in-out;
}

.cinerama-hero-awards img:hover {
    transform: scale(1.08);
}

/* 5. Rating Layer - Positioned relative to center */
.cinerama-hero-rating {
    position: absolute !important;
    left: 51% !important;
    top: 54% !important;
    transform: translate(-50%, 290px) !important; /* relative to center alignment */
    z-index: 4 !important;
    opacity: 0;
    animation: cineramaCenterXFadeUp .8s 1.1s forwards !important;
}

.cinerama-hero-rating img {
    height: 39px;
    width: auto;
    object-fit: contain;
}

/* 6. Scroll Indicator - Bottom */
.cinerama-hero-scroll {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: 'Josefin Sans', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: cineramaScrollFadeUp .8s 1.4s forwards;
}

.cinerama-hero-scroll i {
    animation: cineramaBounceDown 2s infinite;
    font-size: 14px;
}

/* Dedicated Keyframe Animations to preserve horizontal centering and offsets */
@keyframes cineramaTaglineFadeUp {
    from {
        opacity: 0;
        transform: translate(-50%, -135px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -155px);
    }
}

@keyframes cineramaTitleFadeUp {
    from {
        opacity: 0;
        transform: translate(-50%, -53px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -73px);
    }
}

@keyframes cineramaCenterXFadeUp {
    from {
        opacity: 0;
        transform: translate(-50%, 210px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 190px);
    }
}

@keyframes cineramaScrollFadeUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes cineramaBounceDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

/* Responsive adjustments */
@media only screen and (max-width: 1024px) {
    .cinerama-hero-tagline {
        left: 50%;
        top: 36%;
        transform: translate(-50%, -50%);
        font-size: 14px;
        letter-spacing: 8px;
        animation: cineramaFadeUpMobile .8s .3s forwards;
    }
    .cinerama-hero-title {
        left: 50%;
        top: 45%;
        max-width: 680px;
        transform: translate(-50%, -50%);
        animation: cineramaFadeUpMobile 1s .5s forwards;
    }
    .hero-text-title {
        font-size: 65px;
        letter-spacing: 8px;
    }
    .cinerama-hero-awards {
        left: 50%;
        top: 64%;
        transform: translate(-50%, -50%);
        gap: 20px;
        animation: cineramaFadeUpMobile .8s .8s forwards;
    }
    .cinerama-hero-awards img {
        height: 48px;
    }
    .cinerama-hero-rating {
        left: 50%;
        top: 76%;
        transform: translate(-50%, -50%);
        animation: cineramaFadeUpMobile .8s 1.1s forwards;
    }
    .cinerama-hero-rating img {
        height: 32px;
    }

    @keyframes cineramaFadeUpMobile {
        from {
            opacity: 0;
            transform: translate(-50%, calc(-50% + 15px));
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }
}

@media only screen and (max-width: 768px) {
    .cinerama-hero-bg {
        background-position: center 30%; /* Shifted up to cut off top of head */
        transform: scale(1.25);
        animation: cineramaHeroZoomMobile 25s ease-in-out infinite alternate;
    }
    .cinerama-hero-tagline {
        left: 50%;
        top: 34%;
        transform: translate(-50%, -50%);
        font-size: 11px;
        letter-spacing: 5px;
    }
    .cinerama-hero-title {
        left: 50%;
        top: 44%;
        max-width: 320px;
        transform: translate(-50%, -50%);
    }
    .hero-text-title {
        font-size: 38px;
        letter-spacing: 5px;
    }
    .cinerama-hero-awards {
        left: 50%;
        top: 60%;
        transform: translate(-50%, -50%);
        gap: 12px;
    }
    .cinerama-hero-awards img {
        height: 34px;
    }
    .cinerama-hero-rating {
        left: 50%;
        top: 72%;
        transform: translate(-50%, -50%);
    }
    .cinerama-hero-rating img {
        height: 24px;
    }
    .cinerama-hero-scroll {
        bottom: 15px;
    }

    @keyframes cineramaHeroZoomMobile {
        from {
            transform: scale(1.25);
        }
        to {
            transform: scale(1.35);
        }
    }
}

/* Custom Mobile Sticky Header style override */
.edgtf-mobile-header.mobile-header-appear .edgtf-mobile-header-inner {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    transform: translateY(0) !important;
    z-index: 9999 !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Force header to be on top of custom page templates */
.edgtf-page-header, .edgtf-mobile-header {
    z-index: 10000 !important;
}

/* Subpage video background hero adjustments */
.project-detail-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* --- Contact Section Custom Layout & Design --- */

.contact-card-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 20px;
    box-sizing: border-box;
}

.contact-card-wrap {
    max-width: 1100px;
    margin: 0 auto;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 60px;
    box-sizing: border-box;
}

@media only screen and (max-width: 768px) {
    .contact-card-wrap {
        padding: 30px;
    }
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.contact-left {
    flex: 1 1 380px;
    display: flex;
    flex-direction: column;
}

.contact-right {
    flex: 1.2 1 450px;
}

.contact-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #cbd5e1;
    margin-bottom: 10px;
    display: block;
    font-weight: 700;
}

.form-control-premium {
    width: 100%;
    background: #151515 !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 4px;
    color: white !important;
    padding: 18px !important;
    margin-bottom: 25px;
    font-size: 14px;
    font-family: 'Josefin Sans', sans-serif;
    transition: 0.3s;
    box-sizing: border-box;
}

.form-control-premium:focus {
    border-color: white !important;
    background: #1a1a1a !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    outline: none;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-group-half {
    flex: 1 1 200px;
}

.btn-premium-submit {
    background: white !important;
    color: black !important;
    padding: 22px 60px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 5px;
    border: none !important;
    width: 100%;
    transition: 0.4s;
    border-radius: 5px;
    font-family: 'Josefin Sans', sans-serif;
    cursor: pointer;
}

.btn-premium-submit:hover {
    background: #cbd5e1 !important;
    transform: translateY(-3px);
}

.contact-social-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

@media only screen and (max-width: 768px) {
    .contact-social-links {
        margin-top: 30px;
    }
}

.social-link {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white !important;
    font-size: 16px;
    transition: 0.4s;
    text-decoration: none;
}

.social-link:hover {
    background: white;
    color: black !important;
    border-color: white;
    transform: translateY(-5px);
}
/* --- Team Section Background Fix --- */
#team.edgtf-parallax-row-holder {
    background-position: top center !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}

/* --- Logo and Footer Custom Styles --- */

/* Default logo — white (dark/transparent main header) */
.sporshia-logo-text {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 5px;
    color: #ffffff;
    text-transform: uppercase;
    text-decoration: none !important;
    display: inline-block;
    line-height: 30px;
    vertical-align: middle;
    transition: color 0.3s;
}

.sporshia-logo-text:hover {
    color: #cccccc;
}

/* Sticky header — turns black when header background becomes white on scroll */
.edgtf-sticky-header .sporshia-logo-text,
.edgtf-mobile-header .sporshia-logo-text,
.edgtf-mobile-logo-wrapper .sporshia-logo-text {
    color: #111111;
}

.edgtf-sticky-header .sporshia-logo-text:hover,
.edgtf-mobile-header .sporshia-logo-text:hover {
    color: #555555;
}

/* Sub-pages with light/white header background */
.edgtf-dark-header .sporshia-logo-text {
    color: #111111;
}

.edgtf-dark-header .sporshia-logo-text:hover {
    color: #555555;
}


.footer-social-link {
    color: white !important;
    font-size: 20px;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
    text-decoration: none;
    display: inline-block;
}

.footer-social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* --- Instagram Profile Ring in Footer --- */

.footer-insta-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-insta-ring:hover {
    transform: scale(1.06);
    box-shadow: 0 0 20px rgba(220, 39, 67, 0.5);
}

.footer-insta-img-wrap {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #0a0a0a;
    background: #111;
}

.footer-insta-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 50%;
}

.footer-instagram-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Josefin Sans', sans-serif;
    transition: opacity 0.3s, transform 0.3s;
}

.footer-instagram-follow-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.footer-instagram-follow-btn .fab {
    font-size: 15px;
}
