﻿/* ============================================================
   NEW DESIGN � Header + Hero (arqqa-style)
   ============================================================ */

/* -- Reset -- */
html {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* Fix: remove any margin added by bootstrap or old styles on main */
main {
    display: block;
    margin: 0;
    padding: 0;
}

/* -- Hide everything old -- */
.main-header,
.top-bar,
.sidebar-overlay,
.sidebar-panel {
    display: none !important;
}

/* ----------------------------------------
   SITE HEADER
---------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 8000;
    transition: background 0.4s ease;
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Left group: logo + hamburger */
.site-header-left {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo img {
    height: 38px;
    width: auto;
    display: block;
}

/* Hamburger � next to logo */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 10px;
    position: static;
    left: unset;
    transform: none;
    z-index: 2;
    margin-left: 80px;
}
.hamburger-btn span {
    display: block;
    width: 36px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: background 0.3s;
}
.hamburger-btn:hover span {
    background: #ef7824;
}

/* CTA � pill right */
.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}
.header-cta:hover {
    background: #ef7824;
    border-color: #ef7824;
    color: #0a0a0a;
}

/* ----------------------------------------
   NAV OVERLAY
---------------------------------------- */
.nav-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #0d0d0d !important;
    z-index: 99999 !important;
    display: flex !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition:
        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.nav-overlay.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.nav-overlay-inner {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 52px 64px;
}
.nav-overlay-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 200px;
    flex-shrink: 0;
}
.nav-overlay-logo img {
    height: 36px;
    width: auto;
}
.nav-overlay-social {
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.nav-overlay-social a {
    color: #3a3a3a;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition:
        color 0.3s,
        letter-spacing 0.3s;
}
.nav-overlay-social a:hover {
    color: #fff;
    letter-spacing: 0.08em;
}

.nav-overlay-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 64px;
    position: relative;
}
.nav-overlay-close {
    position: absolute;
    top: -10px;
    left: 64px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    opacity: 0.5;
    transition:
        transform 0.4s ease,
        opacity 0.3s;
}
.nav-overlay-close:hover {
    transform: rotate(90deg);
    opacity: 1;
}
.nav-overlay-close svg line {
    stroke: #fff;
}

.nav-overlay-links {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: nav-counter;
}
.nav-overlay-links > li {
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}
.nav-overlay.open .nav-overlay-links > li:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}
.nav-overlay.open .nav-overlay-links > li:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.17s;
}
.nav-overlay.open .nav-overlay-links > li:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.24s;
}
.nav-overlay.open .nav-overlay-links > li:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.31s;
}
.nav-overlay.open .nav-overlay-links > li:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.38s;
}
.nav-overlay.open .nav-overlay-links > li:nth-child(6) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.45s;
}
.nav-overlay:not(.open) .nav-overlay-links > li {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.nav-overlay-links > li > a {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
    padding: 5px 0;
    letter-spacing: -0.025em;
    position: relative;
    transition:
        color 0.35s ease,
        letter-spacing 0.4s ease;
}
.nav-overlay-links > li > a::before {
    counter-increment: nav-counter;
    content: counter(nav-counter, decimal-leading-zero);
    font-size: 0.7rem;
    font-weight: 400;
    color: #2a2a2a;
    letter-spacing: 0.06em;
    font-family: monospace;
    transition: color 0.3s;
    margin-right: -8px;
}
.nav-overlay-links > li > a::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ef7824;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-overlay-links > li > a:hover,
.nav-overlay-links > li > a.active {
    color: #ef7824;
    letter-spacing: -0.01em;
}
.nav-overlay-links > li > a:hover::after,
.nav-overlay-links > li > a.active::after {
    width: 100%;
}
.nav-overlay-links > li > a:hover::before {
    color: #ef7824;
}

.nav-plus {
    font-size: 1.4rem;
    font-weight: 300;
    color: #333;
    display: inline-block;
    transition:
        color 0.3s,
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-overlay-links > li > a:hover .nav-plus {
    color: #ef7824;
    transform: rotate(45deg);
}

.nav-sub {
    list-style: none;
    padding: 0 0 0 24px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.nav-sub.open {
    max-height: 220px;
}
.nav-sub li a {
    font-size: 1rem;
    color: #444;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition:
        color 0.25s,
        padding-left 0.3s;
}
.nav-sub li a:hover {
    color: #ef7824;
    padding-left: 10px;
}

.nav-overlay-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    flex-shrink: 0;
    min-width: 80px;
}
.nav-lang-switch {
    color: #333;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 6px;
    transition: color 0.25s;
}
.nav-lang-switch:hover {
    color: #fff;
}

/* ----------------------------------------
   HERO
---------------------------------------- */
.hero-new {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #0a0a0a;
}

.hero-new-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.hero-new-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-new-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transform: scale(1.06);
    transition: transform 9s ease;
}
.hero-new-slide.active .hero-new-bg {
    transform: scale(1);
}

.hero-new-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.55) 55%,
        rgba(0, 0, 0, 0.72) 100%
    );
}

/* Text content � bottom left inside container */
.hero-new-content {
    position: absolute;
    bottom: 16%;
    left: 0;
    right: 0;
    z-index: 4;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 48px;
    width: 100%;
}

.hero-new-content-inner {
    max-width: 720px;
}

.hero-new-title {
    font-size: clamp(2.6rem, 5vw, 5rem) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
    letter-spacing: -0.03em !important;
    margin: 0 0 40px !important;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 15px 34px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 3px;
    background: transparent;
    transition: all 0.35s ease;
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
}
.hero-new-btn:hover {
    background: #ef7824;
    border-color: #ef7824;
    color: #080808;
    transform: translateX(8px);
}
.hero-new-btn svg {
    flex-shrink: 0;
}

/* Scroll indicator � hidden (moved inline) */
.hero-scroll-indicator {
    display: none !important;
}

/* Scroll inline � fixed left side */
.hero-scroll-inline {
    position: absolute;
    left: 20px;
    bottom: 15%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 4;
}

.hero-scroll-inline-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll-inline span {
    font-size: 9px;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-weight: 500;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

@keyframes scrollPulse {
    0% {
        opacity: 0.3;
        transform: scaleY(0.6);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
    100% {
        opacity: 0.3;
        transform: scaleY(0.6);
        transform-origin: top;
    }
}
.hero-scroll-indicator span {
    font-size: 9px;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.4);
    writing-mode: horizontal-tb;
    transform: none;
    text-transform: uppercase;
    font-weight: 500;
}
.hero-scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.55),
        transparent
    );
    animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(1);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(0.5);
        transform-origin: top;
    }
}

/* Arrows � bottom right */
.hero-arrows {
    position: absolute;
    bottom: 48px;
    right: 52px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    z-index: 4;
}
.hero-arrow-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}
.hero-arrow-btn:hover {
    border-color: #ef7824;
    background: rgba(239, 120, 36, 0.14);
    color: #ef7824;
}

/* Contact float � fixed bottom left */
.hero-contact-float {
    position: fixed;
    bottom: 40px;
    left: 60px;
    background: #ef7824;
    color: #080808;
    padding: 13px 32px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    z-index: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 24px rgba(239, 120, 36, 0.32);
    white-space: nowrap;
}
.hero-contact-float:hover {
    background: #d4671f;
    color: #080808;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(239, 120, 36, 0.48);
}

/* ----------------------------------------
   RESPONSIVE
---------------------------------------- */
@media (max-width: 991px) {
    .site-header {
        padding: 0;
    }
    .site-header-inner {
        padding: 0 24px;
    }

    .header-cta {
        font-size: 12px;
        padding: 9px 18px;
    }

    .nav-overlay-inner {
        flex-direction: column;
        padding: 40px 28px;
        overflow-y: auto;
    }
    .nav-overlay-left {
        flex-direction: row;
        width: 100%;
        align-items: center;
        margin-bottom: 36px;
    }
    .nav-overlay-social {
        flex-direction: row;
        gap: 18px;
    }
    .nav-overlay-menu {
        padding: 0;
        flex: unset;
    }
    .nav-overlay-close {
        position: static;
        margin-bottom: 24px;
    }
    .nav-overlay-right {
        display: none;
    }

    .hero-new-content {
        padding: 0 24px;
        bottom: 20%;
    }
    .hero-new-content-inner {
        max-width: 100%;
    }
    .hero-scroll-indicator {
        display: none;
    }

    .hero-contact-float {
        left: 24px;
        transform: none;
        bottom: 28px;
    }
    .hero-contact-float:hover {
        transform: translateY(-4px);
    }

    .hero-arrows {
        right: 24px;
        bottom: 28px;
    }
}

@media (max-width: 576px) {
    .hero-new {
        min-height: 100svh;
    }
    .hero-new-title {
        font-size: 2.2rem !important;
    }
    .nav-overlay-links > li > a {
        font-size: 2rem;
    }
    .site-header-inner {
        height: 70px;
    }
    .header-cta {
        font-size: 11px;
        padding: 8px 16px;
    }
}

/* ════════════════════════════════════════
   HERO — SPIDER WEB CANVAS
   ════════════════════════════════════════ */
.hero-spider-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: all;
}

/* ════════════════════════════════════════
   ABOUT — NEW DESIGN
   ════════════════════════════════════════ */
.about-new-section {
    background: var(--bg-primary);
    padding: 100px 0 80px;
}

.about-new-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Left — big title */
.about-new-title {
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

/* Right — description */
.about-new-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.85;
    margin-bottom: 60px;
}

.about-new-desc p {
    margin: 0;
}

/* Counters grid */
.about-new-counters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 60px;
}

.about-new-counter-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-counter-number {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.about-counter-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.about-counter-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 900px) {
    .about-new-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .about-new-counters {
        grid-template-columns: 1fr 1fr;
        gap: 28px 30px;
    }
}

/* About spider canvas */
.about-new-section {
    position: relative;
    overflow: hidden;
}
.about-spider-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Hero description */
.hero-new-desc {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    max-width: 520px;
    margin: 18px 0 28px;
}
