/*
 * NOYAN SANAT — HOMEPAGE HERO
 * Animated navy/gold engineering background
 * Compatible with the current front-page.php hero markup.
 */

.noyan-hero {
    --hero-bg: #061426;
    --hero-bg-deep: #020b17;
    --hero-gold: #f5a400;
    --hero-gold-light: #ffc247;
    --hero-white: #f7f9fc;
    --hero-muted: #c6d0df;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 650px;
    padding: clamp(64px, 7vw, 100px) 0 64px;
    color: var(--hero-white);
    background:
        radial-gradient(ellipse at 18% 64%, rgba(14, 67, 113, .36), transparent 46%),
        radial-gradient(ellipse at 78% 34%, rgba(181, 112, 12, .13), transparent 36%),
        linear-gradient(115deg, #071a30 0%, #061426 48%, #020b17 100%);
}

.noyan-hero *,
.noyan-hero *::before,
.noyan-hero *::after {
    box-sizing: border-box;
}

.noyan-hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: clamp(28px, 4vw, 58px);
    direction: ltr;
}

/* Background layers */

.noyan-hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.hero-blueprint-grid {
    position: absolute;
    inset: -50px;
    opacity: .22;
    background-image:
        linear-gradient(rgba(112, 166, 208, .17) 1px, transparent 1px),
        linear-gradient(90deg, rgba(112, 166, 208, .17) 1px, transparent 1px);
    background-size: 42px 42px;
    background-position: 0 0;
    -webkit-mask-image: linear-gradient(110deg, #000 0%, rgba(0,0,0,.72) 55%, transparent 100%);
    mask-image: linear-gradient(110deg, #000 0%, rgba(0,0,0,.72) 55%, transparent 100%);
    animation: noyan-grid-drift 34s linear infinite;
    will-change: background-position;
}

/* Soft moving blue light across the technical grid */
.hero-blueprint-grid::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 25%,
        rgba(77, 157, 218, .08) 43%,
        rgba(77, 157, 218, .19) 50%,
        rgba(77, 157, 218, .07) 57%,
        transparent 74%
    );
    background-size: 220% 100%;
    animation: noyan-grid-scan 17s ease-in-out infinite alternate;
}

.hero-light-orb {
    position: absolute;
    width: min(38vw, 470px);
    aspect-ratio: 1;
    top: 8%;
    right: 3%;
    border: 1px solid rgba(245, 164, 0, .16);
    border-radius: 50%;
    box-shadow:
        0 0 70px rgba(245, 164, 0, .07),
        inset 0 0 70px rgba(245, 164, 0, .035);
    animation: noyan-orb-breathe 8s ease-in-out infinite alternate;
}

/* Two orbit rings */
.hero-light-orb::before,
.hero-light-orb::after {
    content: "";
    position: absolute;
    inset: -13%;
    border: 1px solid rgba(245, 164, 0, .23);
    border-radius: 50%;
    transform: rotate(-24deg) scaleY(.43);
    box-shadow: 0 0 18px rgba(245, 164, 0, .035);
}

.hero-light-orb::before {
    border-top-color: rgba(255, 194, 71, .9);
    border-left-color: rgba(255, 194, 71, .48);
    animation: noyan-orbit-one 28s linear infinite;
}

.hero-light-orb::after {
    inset: 7%;
    border-right-color: rgba(255, 194, 71, .8);
    border-bottom-color: rgba(245, 164, 0, .08);
    transform: rotate(38deg) scaleY(.58);
    animation: noyan-orbit-two 38s linear infinite reverse;
}

.hero-gold-line {
    position: absolute;
    width: 600px;
    height: 1px;
    overflow: visible;
    background: linear-gradient(90deg, transparent, rgba(245,164,0,.72), transparent);
    opacity: .58;
    transform: rotate(-35deg);
    transform-origin: center;
}

.hero-gold-line-one {
    top: 20%;
    left: -15%;
}

.hero-gold-line-two {
    bottom: 15%;
    right: -20%;
}

/* Moving light point on each diagonal line */
.hero-gold-line::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffe0a0;
    box-shadow:
        0 0 7px 2px rgba(255, 194, 71, .85),
        0 0 20px 5px rgba(245, 164, 0, .38);
    transform: translate(-50%, -50%);
    animation: noyan-line-particle 8s ease-in-out infinite;
}

.hero-gold-line-two::after {
    animation-delay: -4s;
    animation-duration: 11s;
}

/* Cabinet image */

.noyan-hero-visual {
    position: relative;
    min-width: 0;
    min-height: 470px;
    direction: ltr;
}

.hero-visual-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1.16 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(245, 164, 0, .2);
    border-radius: 18px;
    background:
        radial-gradient(ellipse at 50% 65%, rgba(245, 164, 0, .13), transparent 58%),
        linear-gradient(145deg, rgba(18, 43, 68, .7), rgba(2, 11, 23, .92));
    box-shadow: 0 28px 75px rgba(0, 0, 0, .38), 0 0 40px rgba(245, 164, 0, .06);
}

.hero-industrial-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: saturate(.94) contrast(1.04);
    transform: scale(1.015);
    transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .8s ease;
}

.noyan-hero-visual:hover .hero-industrial-image {
    transform: scale(1.045);
    filter: saturate(1.02) contrast(1.06);
}

.hero-image-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(2, 11, 23, .02) 55%, rgba(2, 11, 23, .55) 100%),
        linear-gradient(90deg, rgba(2, 11, 23, .08), transparent 28%, transparent 78%, rgba(2, 11, 23, .2));
}

.hero-image-caption {
    position: absolute;
    z-index: 2;
    right: 22px;
    bottom: 18px;
    left: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(245, 164, 0, .48);
    color: #d0d9e5;
    font-size: 10px;
    letter-spacing: 2px;
}

.hero-image-caption span { opacity: .8; }
.hero-image-caption strong { color: var(--hero-gold-light); }

/* Hero copy */

.noyan-hero-content {
    min-width: 0;
    direction: rtl;
    text-align: right;
}

.hero-eyebrow,
.hero-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow {
    margin-bottom: 20px;
    color: var(--hero-gold-light);
    font-size: 14px;
    font-weight: 800;
}

.hero-eyebrow i,
.hero-kicker i {
    display: inline-block;
    flex: 0 0 25px;
    width: 25px;
    height: 2px;
    background: var(--hero-gold);
}

.hero-kicker {
    width: fit-content;
    max-width: 100%;
    margin-bottom: 22px;
    padding: 10px 15px;
    border: 1px solid rgba(245, 164, 0, .32);
    border-radius: 4px;
    background: rgba(4, 15, 29, .48);
    color: #d8e0eb;
    font-size: 12px;
    line-height: 1.9;
}

.noyan-hero-content h1 {
    margin: 0 0 22px;
    color: var(--hero-white);
    font-size: clamp(38px, 4.15vw, 64px);
    font-weight: 900;
    line-height: 1.42;
    letter-spacing: -1.8px;
}

.noyan-hero-content h1 em {
    color: var(--hero-gold);
    font-style: normal;
}

.hero-description {
    max-width: 620px;
    margin: 0 0 28px;
    color: var(--hero-muted);
    font-size: 16px;
    line-height: 2.15;
}

.noyan-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 34px;
}

.hero-button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 23px;
    border: 1px solid transparent;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.hero-button span {
    font-size: 19px;
    line-height: 1;
}

.hero-button-primary {
    color: #101827 !important;
    background: linear-gradient(110deg, #ffd16c, #f5a400);
    box-shadow: 0 8px 28px rgba(245, 164, 0, .2);
}

.hero-button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(245, 164, 0, .35);
}

.hero-button-outline {
    color: #fff !important;
    border-color: rgba(245, 164, 0, .75);
    background: rgba(3, 13, 25, .55);
}

.hero-button-outline:hover {
    color: var(--hero-gold-light) !important;
    background: rgba(245, 164, 0, .08);
    transform: translateY(-2px);
}

.noyan-hero-stats {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 25px);
    padding-top: 21px;
    border-top: 1px solid rgba(157, 181, 207, .2);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-stat strong {
    color: var(--hero-gold);
    font-size: 27px;
    font-weight: 900;
}

.hero-stat span {
    color: #d6deea;
    font-size: 13px;
}

.hero-stat-divider {
    flex: 0 0 1px;
    width: 1px;
    height: 42px;
    background: rgba(190, 207, 226, .35);
}

/* Tablet */

@media (max-width: 1024px) {
    .noyan-hero {
        padding: 58px 0 48px;
    }

    .noyan-hero-container {
        gap: 25px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .noyan-hero-visual { min-height: 380px; }
    .hero-visual-image-wrap { aspect-ratio: 1 / 1; }

    .noyan-hero-content h1 {
        font-size: clamp(34px, 4.3vw, 48px);
        letter-spacing: -1px;
    }

    .hero-description { font-size: 14px; }
    .hero-button { min-height: 49px; padding: 0 17px; font-size: 12px; }
    .noyan-hero-stats { gap: 13px; }
    .hero-stat strong { font-size: 23px; }
    .hero-stat span { font-size: 11px; }
}

/* Mobile */

@media (max-width: 767px) {
    .noyan-hero {
        min-height: auto;
        padding: 35px 0 40px;
    }

    .noyan-hero-container {
        display: flex;
        flex-direction: column;
        gap: 23px;
    }

    .noyan-hero-content {
        order: 1;
        width: 100%;
    }

    .noyan-hero-visual {
        order: 2;
        width: 100%;
        min-height: 0;
    }

    .hero-eyebrow {
        margin-bottom: 15px;
        font-size: 12px;
    }

    .hero-kicker {
        margin-bottom: 16px;
        padding: 8px 11px;
        font-size: 10px;
    }

    .noyan-hero-content h1 {
        margin-bottom: 15px;
        font-size: clamp(32px, 8.3vw, 44px);
        line-height: 1.48;
        letter-spacing: -.8px;
    }

    .hero-description {
        margin-bottom: 20px;
        font-size: 13px;
        line-height: 2.05;
    }

    .noyan-hero-actions {
        gap: 9px;
        margin-bottom: 23px;
    }

    .hero-button {
        min-height: 46px;
        padding: 0 14px;
        font-size: 11px;
    }

    .noyan-hero-stats {
        justify-content: space-between;
        gap: 8px;
        padding-top: 15px;
    }

    .hero-stat strong { font-size: 21px; }
    .hero-stat span { font-size: 10px; }
    .hero-stat-divider { height: 32px; }

    .hero-visual-image-wrap {
        aspect-ratio: 1.12 / 1;
        border-radius: 12px;
    }

    .hero-image-caption {
        right: 13px;
        bottom: 11px;
        left: 13px;
        font-size: 8px;
    }

    .hero-light-orb {
        width: 78vw;
        top: 36%;
        right: -18%;
        opacity: .75;
    }

    .hero-gold-line {
        width: 380px;
        opacity: .38;
    }
}

@media (max-width: 380px) {
    .noyan-hero-content h1 { font-size: 30px; }
    .hero-button { padding: 0 11px; font-size: 10px; }
    .noyan-hero-actions { gap: 7px; }
}

/* Motion definitions */

@keyframes noyan-grid-drift {
    from { background-position: 0 0; }
    to { background-position: 84px 42px; }
}

@keyframes noyan-grid-scan {
    from { background-position: 100% 0; opacity: .35; }
    to { background-position: 0% 0; opacity: .85; }
}

@keyframes noyan-orbit-one {
    from { transform: rotate(-24deg) scaleY(.43); }
    to { transform: rotate(336deg) scaleY(.43); }
}

@keyframes noyan-orbit-two {
    from { transform: rotate(38deg) scaleY(.58); }
    to { transform: rotate(398deg) scaleY(.58); }
}

@keyframes noyan-orb-breathe {
    from { box-shadow: 0 0 45px rgba(245,164,0,.045), inset 0 0 45px rgba(245,164,0,.025); }
    to { box-shadow: 0 0 85px rgba(245,164,0,.12), inset 0 0 75px rgba(245,164,0,.06); }
}

@keyframes noyan-line-particle {
    0% { left: 3%; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { left: 97%; opacity: 0; }
}

/* Accessibility: honor the visitor's reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .noyan-hero *,
    .noyan-hero *::before,
    .noyan-hero *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   HERO REFINEMENT — visual balance, readability and focus
   Keeps the existing markup, image and motion language.
   ========================================================= */

/* Keep the technical rings present without letting them compete
   with the headline and primary call to action. */
.noyan-hero .hero-light-orb {
    width: clamp(270px, 30vw, 390px);
    top: 17%;
    right: 7%;
    opacity: .36;
    border-color: rgba(245, 164, 0, .11);
}

.noyan-hero .hero-light-orb::before,
.noyan-hero .hero-light-orb::after {
    border-color: rgba(245, 164, 0, .14);
    box-shadow: 0 0 14px rgba(245, 164, 0, .025);
}

.noyan-hero .hero-light-orb::before {
    border-top-color: rgba(255, 194, 71, .55);
    border-left-color: rgba(255, 194, 71, .28);
}

.noyan-hero .hero-light-orb::after {
    border-right-color: rgba(255, 194, 71, .48);
    border-bottom-color: rgba(245, 164, 0, .07);
}

/* Slightly tighter rhythm gives the text block a cleaner hierarchy. */
.noyan-hero-content h1 {
    margin-bottom: 18px;
    line-height: 1.36;
}

.noyan-hero .hero-description {
    max-width: 590px;
    margin-bottom: 25px;
    line-height: 2.05;
}

.noyan-hero .noyan-hero-actions {
    gap: 12px;
    margin-bottom: 30px;
}

.noyan-hero .noyan-hero-stats {
    padding-top: 19px;
}

/* Visible keyboard focus without changing the resting button design. */
.noyan-hero a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
    border-radius: 40px;
}

.noyan-hero .hero-button:active {
    transform: translateY(0) scale(.985);
}

@media (max-width: 1024px) {
    .noyan-hero .hero-light-orb {
        width: 32vw;
        top: 19%;
        right: 5%;
        opacity: .3;
    }

    .noyan-hero-content h1 {
        line-height: 1.4;
    }

    .noyan-hero .hero-description {
        margin-bottom: 21px;
    }
}

@media (max-width: 767px) {
    .noyan-hero .hero-light-orb {
        width: 70vw;
        top: 37%;
        right: -20%;
        opacity: .3;
    }

    .noyan-hero-content h1 {
        margin-bottom: 14px;
        line-height: 1.43;
    }

    .noyan-hero .hero-description {
        margin-bottom: 19px;
        line-height: 2.05;
    }

    .noyan-hero .noyan-hero-actions {
        gap: 9px;
        margin-bottom: 22px;
    }

    .noyan-hero .noyan-hero-stats {
        padding-top: 15px;
    }
}

@media (max-width: 380px) {
    .noyan-hero .hero-light-orb {
        width: 78vw;
        right: -28%;
    }

    .noyan-hero .hero-button {
        min-height: 44px;
    }
}

/* =========================================
   HERO IMAGE - FINAL DISPLAY FIX
   ========================================= */

.noyan-hero .noyan-hero-visual .hero-visual-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1.16 / 1;
    height: auto;
    padding: 0;
    overflow: hidden;
}

.noyan-hero .noyan-hero-visual .hero-visual-image-wrap > img.hero-industrial-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0;
    min-height: 0;
    object-fit: cover !important;
    object-position: center center !important;
    flex: 1 1 auto;
    transform: none;
}
/* Fix: Hero image fills its frame */
.noyan-hero .hero-visual-image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: block;
    aspect-ratio: 1.16 / 1;
}

.noyan-hero .hero-industrial-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
}

.noyan-hero .hero-visual-image-wrap .hero-image-overlay {
    position: absolute;
    inset: 0;
}

.noyan-hero .hero-visual-image-wrap .hero-image-caption {
    position: absolute;
    right: 22px;
    bottom: 18px;
    left: 22px;
}