.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    background: #02103b;
    overflow: hidden;
    display: flex;
    align-items: center;
    isolation: isolate;
    perspective: 1600px;
    transform-style: preserve-3d;
}

.hero-bg-parallax {
    position: absolute;
    inset: -7%;
    z-index: 0;
    pointer-events: none;
    background: url('../../images/makkah-khana-e-kaba.webp') center center/cover no-repeat;
    transform: translate3d(0, 0, 0) scale(1.12);
    transform-origin: center;
    filter: saturate(112%) contrast(1.06);
    will-change: transform;
}

.hero-depth-grid {
    position: absolute;
    inset: -18%;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px) 0 0 / 100px 100px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px) 0 0 / 100px 100px,
        radial-gradient(circle at 65% 22%, rgba(253, 216, 53, 0.2) 0%, rgba(253, 216, 53, 0) 52%),
        radial-gradient(circle at 26% 80%, rgba(60, 132, 236, 0.2) 0%, rgba(60, 132, 236, 0) 56%);
    transform: translate3d(0, 16%, -170px) rotateX(66deg) rotateY(-8deg) scale(1.38);
    transform-origin: 50% 78%;
    opacity: 0.36;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

.hero-mouse-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: min(48vw, 620px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle,
            rgba(255, 227, 118, 0.52) 0%,
            rgba(255, 227, 118, 0.22) 34%,
            rgba(255, 227, 118, 0) 74%);
    mix-blend-mode: screen;
    filter: blur(5px);
    will-change: transform, opacity;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(118deg,
            rgba(1, 8, 28, 0.9) 6%,
            rgba(2, 17, 63, 0.78) 46%,
            rgba(11, 53, 136, 0.58) 74%,
            rgba(2, 11, 37, 0.9) 100%),
        radial-gradient(74% 62% at 14% 90%, rgba(2, 8, 28, 0.84) 0%, rgba(2, 8, 28, 0.14) 62%, rgba(2, 8, 28, 0) 100%),
        radial-gradient(46% 36% at 82% 12%, rgba(255, 221, 117, 0.22) 0%, rgba(255, 221, 117, 0) 72%);
    background-size: 145% 145%, 122% 122%, 140% 140%;
    background-position: 50% 50%, 18% 92%, 82% 12%;
    opacity: 0.97;
    animation: heroOverlayShift 14s ease-in-out infinite alternate;
    z-index: 2;
    will-change: transform, opacity, background-position;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: -32%;
    background:
        radial-gradient(circle at 12% 78%, rgba(255, 255, 255, 0.9) 0 1.1%, rgba(255, 255, 255, 0.3) 2.5%, rgba(255, 255, 255, 0) 7%),
        radial-gradient(circle at 22% 70%, rgba(253, 216, 53, 0.26) 0 1.4%, rgba(253, 216, 53, 0) 7.5%),
        radial-gradient(circle at 35% 62%, rgba(255, 255, 255, 0.2) 0 1.2%, rgba(255, 255, 255, 0) 7%),
        radial-gradient(circle at 50% 52%, rgba(253, 216, 53, 0.14) 0 1.4%, rgba(253, 216, 53, 0) 8%),
        radial-gradient(circle at 68% 42%, rgba(255, 255, 255, 0.14) 0 1%, rgba(255, 255, 255, 0) 6%),
        radial-gradient(circle at 86% 30%, rgba(255, 255, 255, 0.28) 0 0.8%, rgba(255, 255, 255, 0) 5%),
        linear-gradient(112deg,
            rgba(255, 255, 255, 0) 38%,
            rgba(255, 255, 255, 0.1) 46%,
            rgba(255, 255, 255, 0.32) 50%,
            rgba(255, 255, 255, 0.12) 54%,
            rgba(255, 255, 255, 0) 62%);
    background-size: 135% 135%;
    transform: translate3d(-34%, 14%, 0) rotate(-8deg) scale(0.96);
    opacity: 0;
    filter: blur(0.6px);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 6;
    animation: lensFlares 10.5s cubic-bezier(0.32, 0.02, 0.14, 1) infinite;
    will-change: transform, opacity;
}

.clouds-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../images/hero-clouds.webp') repeat-x center top;
    background-size: cover;
    opacity: 0.14;
    animation: moveClouds 80s linear infinite;
    z-index: 3;
    pointer-events: none;
    will-change: transform;
}

.hero-frame {
    position: absolute;
    top: 58%;
    left: 27%;
    transform: translate(-50%, -50%);
    width: 22%;
    max-width: 290px;
    z-index: 7;
    pointer-events: none;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-section:not(.is-ready) .hero-frame {
    animation: frameFallbackLoop 3.6s ease-in-out infinite alternate;
}

.hero-frame::after {
    content: '';
    position: absolute;
    inset: 20% 10% 20% 18%;
    border-radius: 40%;
    background: linear-gradient(90deg,
            rgba(101, 156, 255, 0) 0%,
            rgba(101, 156, 255, 0.34) 44%,
            rgba(101, 156, 255, 0.08) 78%,
            rgba(101, 156, 255, 0) 100%);
    transform: translateX(-18px) skewX(-12deg);
    filter: blur(13px);
    opacity: 0.34;
    mix-blend-mode: screen;
    pointer-events: none;
    animation: frameTrailPulse 2.4s ease-in-out infinite alternate;
}

.hero-frame img {
    width: 100%;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 2;
    backface-visibility: hidden;
    animation: frameInnerFloat 3.1s ease-in-out infinite alternate, frameMotionGlow 2.6s ease-in-out infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 45%;
    padding: 0 60px;
    margin-left: auto;
    margin-right: 5%;
    text-align: right;
    color: var(--text-light);
    overflow: hidden;
}

.hero-content>* {
    position: relative;
    z-index: 2;
}

.hero-content::after {
    content: '';
    position: absolute;
    inset: -35% -48%;
    background: linear-gradient(105deg,
            rgba(255, 255, 255, 0) 32%,
            rgba(255, 255, 255, 0.16) 44%,
            rgba(255, 255, 255, 0.56) 50%,
            rgba(255, 255, 255, 0.14) 56%,
            rgba(255, 255, 255, 0) 68%);
    transform: translateX(-160%) rotate(-16deg);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    animation: heroContentShine 6.1s cubic-bezier(0.33, 0.11, 0.2, 1) infinite;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: -1px;
    text-shadow: none;
}

.hero-title span {
    display: block;
}

.hero-title .hero-title-main {
    color: var(--accent-yellow);
}

.hero-title .hero-title-sub {
    color: #fff;
}

.hero-subtitle {
    font-size: 25px;
    margin-bottom: 45px;
    max-width: 500px;
    line-height: 2;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    padding-right: 20px;
    border-right: 3px solid var(--accent-yellow);
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    right: -3px;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-yellow), transparent);
    opacity: 0.5;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(253, 216, 53, 0.9);
    border: none;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    display: none;
}

.btn-hero:hover {
    background: rgba(253, 216, 53, 1);
    transform: translateY(-3px);
    box-shadow: none;
    gap: 12px;
}

.btn-hero::after {
    content: '\f060';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.hero-plane {
    position: absolute;
    top: 56%;
    left: 28%;
    transform: translate(-50%, -50%);
    width: 43%;
    max-width: 620px;
    z-index: 8;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-section:not(.is-ready) .hero-plane {
    animation: planeFallbackLoop 3.6s ease-in-out infinite alternate;
}

.hero-plane::after {
    content: '';
    position: absolute;
    inset: 24% 7% 24% 20%;
    border-radius: 42%;
    background: linear-gradient(90deg,
            rgba(255, 231, 123, 0) 0%,
            rgba(255, 231, 123, 0.42) 46%,
            rgba(255, 231, 123, 0.12) 80%,
            rgba(255, 231, 123, 0) 100%);
    transform: translateX(-28px) skewX(-14deg);
    filter: blur(15px);
    opacity: 0.36;
    mix-blend-mode: screen;
    pointer-events: none;
    animation: planeTrailPulse 1.9s ease-in-out infinite alternate;
}

.hero-plane img {
    width: 100%;
    transform: rotate(10deg);
    position: relative;
    z-index: 2;
    backface-visibility: hidden;
    animation: planeInnerFloat 2.5s ease-in-out infinite alternate, planeMotionGlow 2s ease-in-out infinite alternate;
}

@keyframes moveClouds {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -1000px 0;
    }
}

@keyframes heroOverlayShift {
    0% {
        opacity: 0.9;
        transform: scale(1.03) translate3d(0, 0, 0);
        background-position: 44% 44%, 14% 90%, 82% 12%;
    }

    30% {
        opacity: 0.98;
        transform: scale(1.07) translate3d(1.2%, -1.2%, 0);
        background-position: 53% 46%, 20% 86%, 76% 18%;
    }

    68% {
        opacity: 0.95;
        transform: scale(1.05) translate3d(-1.5%, 1.1%, 0);
        background-position: 56% 54%, 24% 92%, 84% 8%;
    }

    100% {
        opacity: 0.88;
        transform: scale(1.03) translate3d(0, 0, 0);
        background-position: 46% 52%, 16% 94%, 80% 14%;
    }
}

@keyframes lensFlares {
    0% {
        transform: translate3d(-34%, 14%, 0) rotate(-8deg) scale(0.96);
        background-position: 0% 0%;
        opacity: 0;
    }

    15% {
        opacity: 0;
        background-position: 8% 2%;
    }

    28% {
        transform: translate3d(-10%, 8%, 0) rotate(-8deg) scale(1);
        background-position: 22% 12%;
        opacity: 0.55;
    }

    40% {
        transform: translate3d(6%, 3%, 0) rotate(-8deg) scale(1.03);
        background-position: 36% 20%;
        opacity: 0.82;
    }

    52% {
        transform: translate3d(18%, -2%, 0) rotate(-8deg) scale(1.05);
        background-position: 52% 28%;
        opacity: 0.4;
    }

    62% {
        transform: translate3d(30%, -8%, 0) rotate(-8deg) scale(1.06);
        background-position: 68% 34%;
        opacity: 0;
    }

    78% {
        transform: translate3d(-22%, 10%, 0) rotate(-8deg) scale(0.98);
        background-position: 10% 6%;
        opacity: 0.28;
    }

    100% {
        transform: translate3d(34%, -12%, 0) rotate(-8deg) scale(1.04);
        background-position: 82% 42%;
        opacity: 0;
    }
}

@keyframes heroContentShine {

    0%,
    18% {
        transform: translateX(-160%) rotate(-16deg);
        opacity: 0;
    }

    31% {
        opacity: 0.8;
    }

    50% {
        transform: translateX(178%) rotate(-16deg);
        opacity: 0;
    }

    100% {
        transform: translateX(178%) rotate(-16deg);
        opacity: 0;
    }
}

@keyframes planeInnerFloat {
    0% {
        transform: rotate(7deg) translateY(2px) translateX(-1px);
    }

    100% {
        transform: rotate(14.5deg) translateY(-14px) translateX(2px);
    }
}

@keyframes planeFallbackLoop {
    0% {
        transform: translate(-50%, -50%) translate3d(-14px, -6px, 8px) rotate(1deg) rotateX(-2deg) rotateY(4deg);
    }

    100% {
        transform: translate(-50%, -50%) translate3d(20px, 14px, 24px) rotate(6.2deg) rotateX(2.8deg) rotateY(-5.6deg);
    }
}

@keyframes frameFallbackLoop {
    0% {
        transform: translate(-50%, -50%) translate3d(10px, 5px, 6px) rotate(-1deg) rotateX(1.4deg) rotateY(-3deg);
    }

    100% {
        transform: translate(-50%, -50%) translate3d(-16px, -12px, 18px) rotate(-5.5deg) rotateX(-2.4deg) rotateY(4.8deg);
    }
}

@keyframes frameInnerFloat {
    0% {
        transform: rotate(-1.2deg) translateY(2px) translateX(1px);
    }

    100% {
        transform: rotate(-4.4deg) translateY(-10px) translateX(-2px);
    }
}

@keyframes planeMotionGlow {
    0% {
        filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 0 rgba(253, 216, 53, 0));
    }

    55% {
        filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.44)) drop-shadow(0 0 20px rgba(253, 216, 53, 0.36));
    }

    100% {
        filter: drop-shadow(0 13px 26px rgba(0, 0, 0, 0.34)) drop-shadow(0 0 8px rgba(253, 216, 53, 0.15));
    }
}

@keyframes frameMotionGlow {
    0% {
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 0 rgba(137, 184, 255, 0));
    }

    55% {
        filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 16px rgba(137, 184, 255, 0.32));
    }

    100% {
        filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.32)) drop-shadow(0 0 7px rgba(137, 184, 255, 0.16));
    }
}

@keyframes planeTrailPulse {
    0% {
        transform: translateX(-30px) skewX(-14deg);
        opacity: 0.2;
    }

    100% {
        transform: translateX(-12px) skewX(-10deg);
        opacity: 0.5;
    }
}

@keyframes frameTrailPulse {
    0% {
        transform: translateX(-22px) skewX(-12deg);
        opacity: 0.2;
    }

    100% {
        transform: translateX(-8px) skewX(-9deg);
        opacity: 0.44;
    }
}

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

    .hero-content {
        width: 50%;
    }

    .hero-frame {
        width: 24%;
        left: 23%;
    }

    .hero-plane {
        width: 49%;
        left: 24%;
    }
}

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

    .hero-content {
        width: 58%;
        padding: 0 40px;
        margin-right: 2%;
    }

    .hero-frame {
        width: 30%;
        left: 18%;
    }

    .hero-plane {
        width: 56%;
        left: 20%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        height: 100svh;
        min-height: 100vh;
        min-height: 100svh;
        justify-content: center;
    }

    .hero-content {
        width: 100%;
        text-align: center;
        padding: 0 18px;
        margin: 0;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        margin-inline: auto;
        padding-right: 0;
        border-right: 0;
    }

    .hero-subtitle::before {
        display: none;
    }

    .btn-hero {
        font-size: 14px !important;
        font-weight: 800;
        padding: 8px 14px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .hero-frame,
    .hero-plane {
        display: none !important;
    }

    .hero-section::before,
    .hero-section::after,
    .clouds-bg,
    .hero-content::after {
        animation: none !important;
    }

    .hero-section::after,
    .hero-content::after,
    .hero-mouse-glow {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-section::before,
    .hero-section::after,
    .clouds-bg,
    .btn-hero::before,
    .hero-content::after,
    .hero-section:not(.is-ready) .hero-plane,
    .hero-section:not(.is-ready) .hero-frame,
    .hero-plane::after,
    .hero-frame::after,
    .hero-plane img,
    .hero-frame img,
    .logo::after {
        animation: none;
    }

    .hero-mouse-glow {
        opacity: 0;
    }
}
