/* =========================================================
   RASEEF LINK
   Responsive Stylesheet
   assets/css/responsive.css
========================================================= */


/* =========================================================
   LARGE SCREENS
========================================================= */

@media (max-width: 1200px) {

    .container {
        width: min(100% - 32px, 1120px);
    }

    .main-nav {
        gap: 2px;
    }

    .nav-link {
        padding-inline: 8px;

        font-size: 12px;
    }

    .gateway-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-grid {
        gap: 40px;
    }

}


/* =========================================================
   TABLET / SMALL DESKTOP
========================================================= */

@media (max-width: 1024px) {

    :root {
        --header-height: 74px;
    }

    .container {
        width: min(100% - 30px, 960px);
    }


    /* -------------------------
       HEADER
    ------------------------- */

    .brand-logo {
        width: 43px;
        height: 43px;
    }

    .brand-text strong {
        font-size: 15px;
    }

    .brand-text small {
        font-size: 9px;
    }

    .main-nav {
        gap: 0;
    }

    .nav-link {
        padding-inline: 7px;

        font-size: 11px;
    }

    .header-controls {
        gap: 5px;
    }

    .language-switcher {
        height: 32px;
    }

    .language-btn {
        width: 31px;
        height: 26px;

        font-size: 10px;
    }

    .theme-toggle {
        min-width: 34px;
        height: 32px;

        padding-inline: 7px;

        font-size: 10px;
    }


    /* -------------------------
       HERO
    ------------------------- */

    .hero-section {
        padding: 70px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .hero-content {
        max-width: 850px;

        margin-inline: auto;

        text-align: center;
    }

    html[dir="rtl"] .hero-content,
    html[dir="ltr"] .hero-content {
        text-align: center;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        min-height: 470px;
    }

    .hero-map-card {
        max-width: 650px;
    }


    /* -------------------------
       NETWORK
    ------------------------- */

    .gateway-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* -------------------------
       SERVICES
    ------------------------- */

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* -------------------------
       PROCESS
    ------------------------- */

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* -------------------------
       NETWORK VISUAL
    ------------------------- */

    .network-visual-wrapper {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .network-visual-content {
        max-width: 800px;
    }

    .route-map {
        min-height: 420px;
    }


    /* -------------------------
       FEATURES
    ------------------------- */

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* -------------------------
       FOOTER
    ------------------------- */

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 3;
    }

}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 900px) {

    :root {
        --header-height: 70px;
    }

    .container {
        width: min(100% - 28px, 760px);
    }


    /* -------------------------
       HEADER
    ------------------------- */

    .header-inner {
        position: relative;

        min-height: var(--header-height);

        gap: 8px;
    }

    .brand {
        max-width: calc(100% - 120px);
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-text strong {
        font-size: 14px;
    }

    .brand-text small {
        font-size: 8px;
    }


    /* -------------------------
       HIDE DESKTOP CONTROLS
    ------------------------- */

    .header-controls {
        margin-inline-start: 0;

        gap: 5px;
    }

    .language-switcher {
        height: 30px;
    }

    .language-btn {
        width: 29px;
        height: 24px;

        font-size: 9px;
    }

    .language-divider {
        font-size: 8px;
    }

    .theme-toggle {
        width: 34px;
        min-width: 34px;

        height: 30px;

        padding: 0;
    }

    .theme-toggle [data-theme-label] {
        display: none;
    }

    .theme-toggle [data-theme-icon] {
        width: 18px;
        height: 18px;

        font-size: 14px;
    }


    /* -------------------------
       HAMBURGER
    ------------------------- */

    .menu-toggle {
        display: block;

        order: 3;

        flex-shrink: 0;
    }

    html[dir="rtl"] .menu-toggle {
        margin-inline-start: 0;
        margin-inline-end: auto;
    }

    html[dir="ltr"] .menu-toggle {
        margin-inline-start: auto;
        margin-inline-end: 0;
    }


    /* -------------------------
       NAVIGATION PANEL
    ------------------------- */

    .main-nav {
        position: absolute;

        top: calc(100% + 1px);

        inset-inline: 0;

        z-index: 999;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 4px;

        padding: 12px;

        background: var(--surface);

        border: 1px solid var(--border-color);

        border-top: 0;

        border-radius: 0 0 16px 16px;

        box-shadow: var(--shadow-lg);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-8px);

        pointer-events: none;

        transition:
            opacity var(--transition),
            visibility var(--transition),
            transform var(--transition);
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);

        pointer-events: auto;
    }

    .nav-link {
        display: flex;
        align-items: center;

        width: 100%;
        min-height: 44px;

        padding-inline: 14px;

        border-radius: 9px;

        color: var(--text-primary);

        font-size: 13px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--surface-soft);

        color: var(--blue);
    }

    .nav-link.active::after {
        display: none;
    }


    /* -------------------------
       HAMBURGER ANIMATION
    ------------------------- */

    .menu-toggle span {
        transition:
            transform 0.25s ease,
            opacity 0.25s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }


    /* -------------------------
       HERO
    ------------------------- */

    .hero-section {
        padding: 60px 0 65px;
    }

    .hero-content h1 {
        font-size: clamp(30px, 7vw, 48px);

        letter-spacing: -0.5px;
    }

    .hero-description {
        font-size: 15px;

        line-height: 1.9;
    }

    .hero-visual {
        min-height: 410px;
    }

    .hero-map-card {
        max-width: 620px;

        border-radius: 22px;
    }


    /* -------------------------
       SECTIONS
    ------------------------- */

    .section {
        padding: 75px 0;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .section-heading h2 {
        font-size: clamp(26px, 6vw, 36px);
    }


    /* -------------------------
       NETWORK
    ------------------------- */

    .gateway-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 14px;
    }

    .gateway-card {
        min-height: 235px;

        padding: 21px;
    }

    .network-highlight {
        align-items: flex-start;

        flex-direction: column;

        padding: 25px;
    }


    /* -------------------------
       TRACKING
    ------------------------- */

    .tracking-box {
        padding: 32px;
    }


    /* -------------------------
       RFQ
    ------------------------- */

    .rfq-card {
        flex-direction: column;

        align-items: flex-start;

        padding: 32px;
    }


    /* -------------------------
       FINAL CTA
    ------------------------- */

    .final-cta-inner {
        align-items: flex-start;

        flex-direction: column;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .container {
        width: min(100% - 24px, 600px);
    }


    /* -------------------------
       HEADER
    ------------------------- */

    .header-inner {
        gap: 5px;
    }

    .brand {
        gap: 7px;

        max-width: calc(100% - 112px);
    }

    .brand-logo {
        width: 37px;
        height: 37px;
    }

    .brand-text strong {
        font-size: 12px;
    }

    .brand-text small {
        font-size: 7px;
    }

    .header-controls {
        gap: 4px;
    }

    .language-switcher {
        height: 29px;
    }

    .language-btn {
        width: 27px;
        height: 23px;

        font-size: 8px;
    }

    .theme-toggle {
        width: 31px;
        min-width: 31px;

        height: 29px;
    }

    .theme-toggle [data-theme-icon] {
        font-size: 13px;
    }

    .menu-toggle {
        width: 37px;
        height: 37px;

        padding: 6px;
    }


    /* -------------------------
       HERO
    ------------------------- */

    .hero-section {
        padding: 50px 0;
    }

    .hero-badge {
        margin-bottom: 15px;

        padding: 6px 10px;

        font-size: 10px;
    }

    .hero-content h1 {
        margin-bottom: 17px;

        font-size: clamp(27px, 8vw, 38px);
    }

    .hero-description {
        margin-bottom: 23px;

        font-size: 14px;

        line-height: 1.85;
    }

    .hero-actions {
        flex-direction: column;

        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 20px;

        flex-wrap: wrap;
    }

    .hero-stat strong {
        font-size: 19px;
    }

    .hero-stat span {
        font-size: 9px;
    }

    .hero-visual {
        min-height: 320px;
    }

    .hero-map-card {
        aspect-ratio: 1 / 0.9;

        border-radius: 18px;
    }


    /* -------------------------
       NETWORK NODES
    ------------------------- */

    .network-node {
        min-width: 55px;
    }

    .network-node strong {
        font-size: 8px;
    }

    .network-node span {
        font-size: 6px;
    }

    .node-icon {
        width: 45px;
        height: 45px;

        margin-bottom: 5px;

        font-size: 11px;
    }

    .node-point {
        width: 10px;
        height: 10px;

        margin-bottom: 4px;

        border-width: 2px;
    }

    .node-china {
        top: 8%;
        right: 43%;
    }

    .node-jeddah {
        top: 22%;
        right: 8%;
    }

    .node-dubai {
        top: 43%;
        right: 4%;
    }

    .node-djibouti {
        bottom: 15%;
        right: 19%;
    }

    .node-yemen {
        bottom: 8%;
        left: 46%;
    }

    .node-turkiye {
        top: 13%;
        left: 8%;
    }

    .line-china {
        width: 115px;
    }

    .line-jeddah {
        width: 130px;
    }

    .line-dubai {
        width: 135px;
    }

    .line-djibouti {
        width: 125px;
    }

    .line-yemen {
        width: 90px;
    }

    .line-turkiye {
        width: 160px;
    }


    /* -------------------------
       FLOATING CARDS
    ------------------------- */

    .floating-card {
        padding: 7px 9px;

        border-radius: 9px;
    }

    .floating-icon {
        width: 24px;
        height: 24px;

        font-size: 11px;
    }

    .floating-card strong {
        font-size: 8px;
    }

    .floating-card small {
        font-size: 6px;
    }

    .floating-card-one {
        top: 5%;
        left: 4%;
    }

    .floating-card-two {
        right: 3%;
        bottom: 4%;
    }


    /* -------------------------
       SECTIONS
    ------------------------- */

    .section {
        padding: 60px 0;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    .section-heading p {
        font-size: 13px;
    }


    /* -------------------------
       NETWORK
    ------------------------- */

    .gateway-grid {
        grid-template-columns: 1fr;
    }

    .gateway-card {
        min-height: auto;

        padding: 22px;
    }

    .gateway-card p {
        min-height: auto;
    }

    .network-highlight {
        padding: 23px;
    }

    .network-highlight h3 {
        font-size: 19px;
    }


    /* -------------------------
       SERVICES
    ------------------------- */

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 23px;
    }

    .service-card p {
        min-height: auto;
    }


    /* -------------------------
       PROCESS
    ------------------------- */

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-card {
        padding: 25px 22px;
    }


    /* -------------------------
       NETWORK VISUAL
    ------------------------- */

    .network-visual-wrapper {
        padding: 25px 20px;

        border-radius: 20px;
    }

    .network-visual-content h2 {
        font-size: 27px;
    }

    .network-visual-content > p {
        font-size: 13px;
    }

    .route-map {
        min-height: 330px;

        border-radius: 16px;
    }

    .route-node {
        font-size: 7px;
    }

    .route-node span {
        width: 7px;
        height: 7px;
    }

    .route-node-main {
        padding: 9px 12px;
    }

    .route-node-main span {
        width: 28px;
        height: 28px;

        font-size: 9px;
    }

    .route-node-asia {
        top: 14%;
        right: 5%;
    }

    .route-node-jeddah {
        top: 27%;
        right: 24%;
    }

    .route-node-dubai {
        top: 42%;
        right: 7%;
    }

    .route-node-djibouti {
        bottom: 24%;
        right: 22%;
    }

    .route-node-yemen {
        bottom: 10%;
        left: 43%;
    }

    .route-node-europe {
        top: 12%;
        left: 6%;
    }

    .route-caption {
        bottom: 12px;

        padding: 5px 8px;

        font-size: 7px;
    }


    /* -------------------------
       TRACKING
    ------------------------- */

    .tracking-box {
        padding: 25px 20px;

        border-radius: 20px;
    }

    .tracking-content h2 {
        font-size: 27px;
    }

    .tracking-content p {
        font-size: 12px;
    }

    .tracking-form {
        flex-direction: column;
    }

    .tracking-form input,
    .tracking-form .btn {
        width: 100%;
    }


    /* -------------------------
       RFQ
    ------------------------- */

    .rfq-card {
        padding: 25px 20px;

        border-radius: 20px;
    }

    .rfq-content h2 {
        font-size: 26px;
    }

    .rfq-content p {
        font-size: 12px;
    }

    .rfq-action {
        width: 100%;
    }

    .rfq-action .btn {
        width: 100%;
    }


    /* -------------------------
       FEATURES
    ------------------------- */

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 23px;
    }


    /* -------------------------
       FINAL CTA
    ------------------------- */

    .final-cta {
        padding: 60px 0;
    }

    .final-cta h2 {
        font-size: 29px;
    }

    .final-cta p {
        font-size: 12px;
    }

    .final-cta-actions {
        width: 100%;

        flex-direction: column;
    }

    .final-cta-actions .btn {
        width: 100%;
    }


    /* -------------------------
       FOOTER
    ------------------------- */

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        align-items: flex-start;

        flex-direction: column;
    }

    .footer-legal {
        flex-wrap: wrap;

        gap: 10px 16px;
    }


    /* -------------------------
       COOKIE
    ------------------------- */

    .cookie-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;

        flex-direction: column;
        align-items: stretch;

        padding: 15px;
    }

    .cookie-content {
        align-items: flex-start;
    }

    .cookie-actions {
        justify-content: space-between;
    }

    .cookie-actions .btn {
        flex: 1;
    }


    /* -------------------------
       BACK TO TOP
    ------------------------- */

    .back-to-top {
        right: 15px;
        bottom: 15px;

        width: 38px;
        height: 38px;

        font-size: 16px;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 420px) {

    .container {
        width: min(100% - 18px, 390px);
    }

    .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 11px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
    }

    .header-controls {
        gap: 3px;
    }

    .language-switcher {
        height: 27px;
    }

    .language-btn {
        width: 25px;
        height: 21px;

        font-size: 7px;
    }

    .theme-toggle {
        width: 28px;
        min-width: 28px;

        height: 27px;
    }

    .theme-toggle [data-theme-icon] {
        font-size: 12px;
    }

    .menu-toggle {
        width: 34px;
        height: 34px;
    }


    /* HERO */

    .hero-content h1 {
        font-size: 27px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-visual {
        min-height: 285px;
    }


    /* NETWORK MAP */

    .route-map {
        min-height: 290px;
    }

    .network-node strong {
        font-size: 7px;
    }

    .network-node span {
        display: none;
    }

    .floating-card {
        display: none;
    }


    /* FINAL */

    .final-cta h2 {
        font-size: 26px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}