/* =========================================================================
   DOTS MEDIA — RESPONSIVE STYLESHEET
   Loaded last (after every section's own CSS) so these rules always
   win the cascade on smaller screens without needing !important.

   BREAKPOINTS
     1. Tablet        — max-width: 1100px
     2. Mobile         — max-width: 768px
     3. Small Mobile   — max-width: 480px
     4. Very Small     — max-width: 360px

   Each breakpoint is organised section-by-section, in the same
   top-to-bottom order the sections appear on the page:
   Header, Hero, Partners, About, Stats, Why Us / Trust, Process,
   Services, Portfolio, Testimonial, CTA, Footer.
   ========================================================================= */


/* =========================================================================
   MOBILE MENU TOGGLE — base state
   The hamburger button is hidden on desktop/tablet by default. It is
   switched on inside the Mobile breakpoint below, once the full
   .nav-links list is hidden and replaced by the slide-down menu.
   ========================================================================= */

.mobile-menu-toggle {
    display: none;
}


/* =========================================================================
   1. TABLET — max-width: 1100px
   ========================================================================= */

@media (max-width: 1100px) {

    /* ---------------------------------------------------------------
       HEADER / NAVIGATION
       --------------------------------------------------------------- */

    .navbar {
         justify-content: space-between;
    }

    .nav-links {
        gap: 24px;
    }


    /* ---------------------------------------------------------------
       HERO
       --------------------------------------------------------------- */

    .hero-wrap {
        padding: 30px 40px 70px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-title {
        font-size: 50px;
    }

    .hero-description {
        max-width: 650px;
    }

    .hero-image-card {
        height: 520px;
    }


    /* ---------------------------------------------------------------
       ABOUT
       --------------------------------------------------------------- */

    .about {
        grid-template-columns: 1fr;
        gap: 50px;

        padding: 40px;
    }

    .about-tag {
        margin-bottom: 40px;
    }

    .about-image {
        height: 500px;
    }


    /* ---------------------------------------------------------------
       STATS
       --------------------------------------------------------------- */

    .stats {
        padding-left: 40px;
        padding-right: 40px;
    }


    /* ---------------------------------------------------------------
       WHY US / TRUST
       --------------------------------------------------------------- */

    .why-us-header {
        padding-left: 40px;
        padding-right: 40px;
    }


    /* ---------------------------------------------------------------
       PROCESS
       --------------------------------------------------------------- */

    .process-wrap {
        padding-left: 40px;
        padding-right: 40px;
    }

    .process {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .process-visual {
        position: relative;
        top: auto;

        height: 500px;
    }


    /* ---------------------------------------------------------------
       SERVICES
       --------------------------------------------------------------- */

    .services-wrap {
        padding-left: 40px;
        padding-right: 40px;
    }


    /* ---------------------------------------------------------------
       PORTFOLIO
       --------------------------------------------------------------- */

    .portfolio-wrap {
        padding-left: 40px;
        padding-right: 40px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-card.offset {
        margin-top: 0;
    }


    /* ---------------------------------------------------------------
       TESTIMONIAL
       --------------------------------------------------------------- */

    .testimonial {
        padding-left: 40px;
        padding-right: 40px;
    }


    /* ---------------------------------------------------------------
       CTA
       --------------------------------------------------------------- */

    .cta {
        padding-left: 40px;
        padding-right: 40px;
    }


    /* ---------------------------------------------------------------
       FOOTER
       --------------------------------------------------------------- */

    .footer {
        padding-left: 40px;
        padding-right: 40px;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

}


/* =========================================================================
   2. MOBILE — max-width: 768px
   ========================================================================= */

@media (max-width: 768px) {

    /* ---------------------------------------------------------------
       GLOBAL
       --------------------------------------------------------------- */

    html,
    body {
        overflow-x: hidden;
    }


    /* ---------------------------------------------------------------
       HEADER / NAVIGATION
       The full nav-links list is hidden by default on mobile and the
       hamburger button takes its place. JavaScript toggles the
       ".menu-open" class on ".navbar" to reveal the slide-down menu.
       --------------------------------------------------------------- */

    .navbar {
        position: relative;
        z-index: 10001;

        margin-bottom: 40px;

        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-links {
        display: none;
    }

    .btn-get-in-touch {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        width: 34px;
        height: 34px;

        margin-left: auto;

        padding: 0;
        gap: 5px;

        background: transparent;
        border: 0;

        cursor: pointer;

        position: relative;
        z-index: 10002;
    }

    .mobile-menu-toggle span {
        display: block;

        width: 21px;
        height: 2px;

        background: #ffffff;

        transition:
            transform 0.3s ease,
            opacity 0.3s ease;
    }

    /* Hamburger morphs into an X while the menu is open */
    .navbar.menu-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .navbar.menu-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .navbar.menu-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /*
     * Open menu panel.
     * height:auto lets the panel size itself to its own content —
     * the hero section behind it stays visible below the links,
     * matching the reference design.
     */
    .navbar.menu-open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        position: fixed;
        top: 68px;
        left: 0;
        right: 0;

        width: 100%;
        height: auto;

        gap: 0;
        margin: 0;
        padding: 28px 24px 90px;

        background: #0a0705;
        border: 0;
        border-radius: 0 0 20px 20px;
        backdrop-filter: none;

        overflow: visible;

        z-index: 10000;
    }

    .navbar.menu-open .nav-links li {
        width: 100%;

        margin: 0;
        padding: 0;
    }

    .navbar.menu-open .nav-links a {
        display: block;

        width: 100%;

        padding: 12px 0;

        color: #ffffff;
        font-size: 14px;
        line-height: 1.4;
    }

    .navbar.menu-open .nav-links a.active {
        color: #ffffff;
    }

    /* Mobile "GET IN TOUCH" pill, shown at a fixed spot inside the open menu */
    .navbar.menu-open .btn-get-in-touch {
        display: flex;
        align-items: center;
        justify-content: center;

        position: fixed;
        top: 328px;
        left: 20px;
        right: 20px;

        width: auto;
        height: 36px;

        padding: 0 20px;

        background: #ff7a1a;
        color: #0a0705;

        border: 0;
        border-radius: 999px;

        font-size: 10px;
        font-weight: 700;

        z-index: 10001;
    }


    /* ---------------------------------------------------------------
       HERO
       --------------------------------------------------------------- */

    .hero-wrap {
        min-height: auto;

        padding: 24px 20px 60px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;

        gap: 40px;
    }

    .hero-tag {
        font-size: 10px;
        letter-spacing: 1.5px;

        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 38px;
        line-height: 1.05;
        letter-spacing: -0.5px;

        margin-bottom: 22px;
    }

    .hero-description {
        max-width: 100%;

        font-size: 14px;
        line-height: 1.7;

        margin-bottom: 28px;
    }

    .carousel-dot {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;

        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;

        justify-content: center;

        padding: 14px 20px;

        font-size: 12px;
    }

    .hero-image-card {
        width: 100%;
        height: 420px;

        border-radius: 18px;
    }

    .badge {
        left: 14px;
        bottom: 14px;

        padding: 12px 16px;

        border-radius: 12px;
    }

    .badge .badge-label {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .badge .badge-value {
        font-size: 14px;
    }


    /* ---------------------------------------------------------------
       PARTNERS
       --------------------------------------------------------------- */

    .partners-wrap {
        padding: 50px 0;
    }

    .partners {
        padding-bottom: 30px;
    }

    .partners-label {
        font-size: 10px;
        letter-spacing: 2.5px;

        margin-bottom: 28px;
    }

    .marquee-track span {
        font-size: 24px;

        padding: 0 30px;
    }


    /* ---------------------------------------------------------------
       ABOUT
       --------------------------------------------------------------- */

    .about {
        grid-template-columns: 1fr;
        gap: 35px;

        padding: 30px 20px 0;
    }

    .about-tag {
        font-size: 10px;

        margin-bottom: 35px;
    }

    .about-text p {
        font-size: 14px;
        line-height: 1.7;
    }

    .about-image {
        width: 100%;
        height: 360px;

        border-radius: 16px;
    }


    /* ---------------------------------------------------------------
       STATS
       Note: .stats stays visible on mobile — do not hide
       .stats-outer here, since the Why Us / Trust section below
       also shares that wrapper class.
       --------------------------------------------------------------- */

    .stats {
        padding: 50px 20px;
    }

    .stats-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    .stat-item .stat-number {
        font-size: 42px;
    }

    .stat-item .stat-label {
        font-size: 10px;
        letter-spacing: 1px;
        line-height: 1.4;
    }


    /* ---------------------------------------------------------------
       WHY US / TRUST
       The circular orbit diagram doesn't fit a narrow viewport, so
       the whole Why Us block is hidden on mobile. :has() scopes this
       to ONLY the .stats-outer that contains .why-us-header, so the
       real Stats section above is left untouched.
       --------------------------------------------------------------- */

    .stats-outer:has(.why-us-header) {
        display: none;
    }


    /* ---------------------------------------------------------------
       PROCESS
       --------------------------------------------------------------- */

    .process-wrap {
        padding: 70px 20px;
    }

    .process-tag {
        font-size: 10px;
    }

    .process-title {
        font-size: 32px;
        line-height: 1.05;

        margin-bottom: 40px;
    }

    .timeline {
        padding-left: 25px;
    }

    .step {
        padding-bottom: 40px;
    }

    .step .step-title {
        font-size: 19px;
    }

    .step .step-desc {
        font-size: 13px;
        line-height: 1.6;
    }

    .process-visual {
        width: 100%;
        height: 360px;

        border-radius: 16px;
        overflow: hidden;
    }


    /* ---------------------------------------------------------------
       SERVICES
       --------------------------------------------------------------- */

    .services-wrap {
        padding: 70px 20px;
    }

    .services {
        width: 100%;
    }

    .services-title {
        font-size: 32px;
        line-height: 1.08;

        margin-bottom: 35px;
    }

    .service-header {
        gap: 12px;

        padding: 22px 8px;
    }

    .service-num {
        width: 22px;

        font-size: 10px;
    }

    .service-title {
        font-size: 17px;
        line-height: 1.3;
    }

    .service-arrow {
        font-size: 17px;
    }

    .service-item.active .service-body {
        padding-left: 42px;
        padding-right: 8px;
    }

    .service-body p {
        font-size: 13px;
        line-height: 1.65;
    }


    /* ---------------------------------------------------------------
       PORTFOLIO / OUR WORK
       --------------------------------------------------------------- */

    .portfolio-wrap {
        padding: 70px 20px 90px;
    }

    .portfolio-title {
        font-size: 32px;
        line-height: 1.08;

        margin-bottom: 40px;
    }

    .portfolio-grid {
        display: grid;
        grid-template-columns: 1fr;

        gap: 24px;
    }

    .portfolio-card.offset {
        margin-top: 0;
    }

    .card-image {
        width: 100%;
        height: 230px;
    }


    /* ---------------------------------------------------------------
       TESTIMONIAL
       --------------------------------------------------------------- */

    .testimonial {
        padding: 70px 20px 50px;
    }

    .quote-icon {
        font-size: 70px;
    }

    .quote-text {
        min-height: 180px;

        font-size: 19px;
        line-height: 1.45;
    }

    .testimonial-footer {
        align-items: flex-end;

        gap: 20px;
    }


    /* ---------------------------------------------------------------
       CTA
       --------------------------------------------------------------- */

    .cta {
        padding: 80px 20px 100px;
    }

    .cta-tag {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .cta p {
        font-size: 14px;
        line-height: 1.7;
    }


    /* ---------------------------------------------------------------
       FOOTER
       --------------------------------------------------------------- */

    .footer {
        padding: 55px 20px 25px;
    }

    .footer-top {
        display: grid;
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;

        gap: 20px;
    }

}


/* =========================================================================
   3. SMALL MOBILE — max-width: 480px
   ========================================================================= */

@media (max-width: 480px) {

    /* ---------------------------------------------------------------
       HEADER / NAVIGATION
       --------------------------------------------------------------- */

    .navbar {
        padding-left: 16px;
        padding-right: 16px;
    }

   .logo {
    margin-right: auto;
    margin-left: 0;

    text-align: left;
}
    /* Mobile menu stays full width down to the smallest screens */
    .navbar.menu-open .nav-links {
        left: 0;
        right: 0;

        width: 100%;

        padding-left: 20px;
        padding-right: 20px;
    }

    /* Active link gets an underline instead of a solid colour change */
    .navbar.menu-open .nav-links a.active {
        display: inline-block;

        width: auto !important;

        padding-bottom: 8px;

        border-bottom: 2px solid #ff7a1a;
    }

    .navbar.menu-open .nav-links a.active::after {
        display: none !important;
    }


    /* ---------------------------------------------------------------
       HERO
       --------------------------------------------------------------- */

    .hero-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-tag {
        font-size: 9px;
    }

    .hero-image-card {
        height: 340px;
    }

    .badge {
        left: 12px;
        bottom: 12px;

        padding: 10px 14px;
    }

    .badge .badge-value {
        font-size: 13px;
    }


    /* ---------------------------------------------------------------
       PARTNERS
       --------------------------------------------------------------- */

    .marquee-track span {
        font-size: 21px;

        padding: 0 24px;
    }


    /* ---------------------------------------------------------------
       ABOUT
       --------------------------------------------------------------- */

    .about {
        padding-left: 16px;
        padding-right: 16px;
    }

    .about-image {
        height: 300px;
    }


    /* ---------------------------------------------------------------
       STATS
       --------------------------------------------------------------- */

    .stats {
        padding-left: 16px;
        padding-right: 16px;
    }

    .stats-row {
        gap: 30px 15px;
    }

    .stat-item .stat-number {
        font-size: 36px;
    }

    .stat-item .stat-label {
        font-size: 9px;
    }


    /* ---------------------------------------------------------------
       PROCESS
       --------------------------------------------------------------- */

    .process-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .process-title {
        font-size: 28px;
    }

    .process-visual {
        height: 300px;
    }


    /* ---------------------------------------------------------------
       SERVICES
       --------------------------------------------------------------- */

    .services-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .services-title {
        font-size: 28px;
    }

    .service-header {
        padding: 20px 6px;
    }

    .service-title {
        font-size: 15px;
    }

    .service-item.active .service-body {
        padding-left: 38px;
    }


    /* ---------------------------------------------------------------
       PORTFOLIO / OUR WORK
       --------------------------------------------------------------- */

    .portfolio-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .portfolio-title {
        font-size: 28px;
    }

    .card-image {
        height: 210px;
    }


    /* ---------------------------------------------------------------
       TESTIMONIAL
       --------------------------------------------------------------- */

    .testimonial {
        padding-left: 16px;
        padding-right: 16px;
    }

    .quote-text {
        min-height: 160px;

        font-size: 17px;
    }


    /* ---------------------------------------------------------------
       CTA
       --------------------------------------------------------------- */

    .cta {
        padding-left: 16px;
        padding-right: 16px;
    }


    /* ---------------------------------------------------------------
       FOOTER
       --------------------------------------------------------------- */

    .footer {
        padding-left: 16px;
        padding-right: 16px;
    }

}


/* =========================================================================
   4. VERY SMALL MOBILE — max-width: 360px
   ========================================================================= */

@media (max-width: 360px) {

    /* ---------------------------------------------------------------
       HERO
       --------------------------------------------------------------- */

    .hero-title {
        font-size: 30px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-image-card {
        height: 280px;
    }

    .badge {
        min-width: 155px;

        padding: 9px 12px;
    }

    .badge .badge-value {
        font-size: 12px;
    }


    /* ---------------------------------------------------------------
       STATS
       --------------------------------------------------------------- */

    .stat-item .stat-number {
        font-size: 31px;
    }


    /* ---------------------------------------------------------------
       PROCESS / SERVICES / PORTFOLIO — shared title sizing
       --------------------------------------------------------------- */

    .process-title,
    .services-title,
    .portfolio-title {
        font-size: 26px;
    }

    .process-visual {
        height: 270px;
    }


    /* ---------------------------------------------------------------
       SERVICES
       --------------------------------------------------------------- */

    .service-title {
        font-size: 14px;
    }


    /* ---------------------------------------------------------------
       TESTIMONIAL
       --------------------------------------------------------------- */

    .quote-text {
        font-size: 16px;
    }

}