/* section1 */
  @media (max-width: 768px) {
    main{
        overflow-x: hidden;
    }
          /* Navigation */
        .section1-nav {
           
            top: 0;
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items:flex-start;
          
            background-color: transparent;
            font-family: Instrument Sans, Arial, sans-serif;
            z-index: 1000;
        }
            .section1-nav {
                padding: 15px 20px;
                flex-direction: column;
                gap: 15px;
                /*  */
                
            }

            .section1-nav-left, .section1-nav-right {
                gap: 20px;
                display: none;
            }

            .section1-product-grid {
                width: 400px;
                height: 400px;
            }

            .section1-title {
                font-size: 90px;
            }

            .section1-footer {
                padding: 0px 0px;
                flex-direction: flex;
                gap: 2px;
                text-align: center;
                font-size: 10px;
            }
                 /* Main Content */
        .section1-main-container {
            height:100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            padding-top: 0px;
            padding-bottom: 0px;
            
        }
        }
/* section2 */
  @media (max-width: 768px) {
            .section2-stats {
                display: flex;
                gap: 10px;
                justify-content:flex-end;
            }

            .section2-footer {
                flex-direction: column;
                gap: 30px;
                padding: 0;
                width: 100%;
            }

            .section2-footer-left,
            .section2-footer-right {
                gap: 25px;
                justify-content: center;
            }

            .section2-footer-center {
                margin: 0;
            }

            .section2-star {
                font-size: 40px;
            }

            .section2-title {
                font-size: 6rem;
            }

            .section2-stats {
                display: flex;
                gap: 10px;
                justify-content:end;
            }
            
.section2-stat div {
    display: flex;
    background-color: white;
     display: flex;
 justify-content:center;
}
              .section2-title {
            font-size: 2.5rem;
            font-weight: 100;
            line-height: 1.1;
            margin-bottom: 0px;
            letter-spacing: -0.02em;
            font-family: "Anton", sans-serif;
            position: relative;
            z-index: 1;
             background-color: white;
        }

        .section2-title-line1 {
            color: #000;
            display: block;
             background-color: white;
        }

        .section2-title-line1 span {
            color: #888;
             background-color: white;
        }

        .section2-title-line2 {
            color: #000;
            display: block;
             background-color: white;
        }
             /* section2 */
     .section2-container {
           
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            padding: 50px 0px;
            font-family: 'Arial', sans-serif;
            position: relative;
        background-color: white;
            padding-bottom: 0px;
            max-width: 1400px;
            width: 100%;
            margin: 0 auto;
            perspective: 1200px;
            transform: scale(10);
            cursor: pointer;
        }
          .section2-stat-number {
            font-size: 3rem;
            font-weight: 900;
            color: #000;
            line-height: 1;
            margin-bottom: 0px;
            font-family: "Anton", sans-serif;
             background-color: white;
         
             
        }

        .section2-stat-plus {
            color: #ccc;
            font-size: clamp(3rem, 6vw, 6rem);
             background-color: white;
        }

        .section2-stat-label {
            font-size: 14px;
            color: #888;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 100;
             background-color: white;
             padding-top: 40px;
        }

        .section2-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 1300px;
            margin-top: 40px;
            padding: 120px 20px;
            /* padding-top: 50px; */
            position: relative;
            z-index: 1;
             background-color: white;
        }

        .section2-footer-left {
            display: flex;
            gap: 250px;
            align-items:flex-start;
            flex: 1;
             background-color: white;
        }

        .section2-footer-center {
            flex: 0 0 auto;
            display: flex;
            justify-content: center;
            margin: 0 60px;
             background-color: white;
        }

        .section2-footer-right {
            display: flex;
            gap: 250px;
            align-items: center;
            flex: 1;
            justify-content: flex-end;
             background-color: white;
        }

        .section2-social-icon {
            width: 40px;
            height: 40px;
            background-color: transparent;
            border-radius: 50%;
            border: 0.2px solid rgb(236, 234, 234);
            display: flex;
            align-items: center;
            justify-content: center;
            color: black;
            text-decoration: none;
            font-size: 18px;
            transition: all 0.3s ease;
        }

        .section2-social-icon:hover {
            color: #000;
            border-color: #777777;
            transform: translateY(-2px);
        }

        .section2-social-icon svg {
            width: 15px;
            height: 15px;
            fill: black;
            transition: fill 0.3s ease;
             background-color: white;
        }

        .section2-social-icon:hover svg {
            fill: #000;
             background-color: white;
        }

        .section2-all-services-btn {
            border: none;
            padding: 0;
            cursor: pointer;
            display: flex;
            align-items: stretch;
            text-transform: uppercase;
            font-size: 14px;
            font-weight: 100;
            transition: all 0.3s ease;
            overflow: hidden;
            background: transparent;
            margin-top: 0px;
            color: #797979;
        }

        .section2-btn-arrow-box {
            background-color: #666;
            color: white;
            padding: 15px 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.6s ease, background 0.3s ease;
        }

        .section2-btn-arrow-box:hover {
            transform: rotate(180deg) scale(0.5);
        }

        .section2-btn-text-box {
            background-color: black;
            color: white;
            padding: 15px 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .section2-btn-arrow {
            font-size: 16px;
            font-weight: bold;
            background-color: #666;
            transition: transform 0.6s ease;
        }
        }
/* section3 */
 @media (max-width: 768px) {
       .section3-container {
           padding: 0px 20px;
            height: 40vh;
       }

       .section3-header {
           top: 60px;
           font-size: 12px;
       }

       .section3-selected,
       .section3-projects {
           font-size: 20px;
       }

       .section3-year,
       .section3-number {
           bottom: 40px;
           font-size: 12px;
       }

       .section3-year {
           left: 20px;
       }

       .section3-number {
           right: 20px;
       }
   }

   @media (max-width: 480px) {

       .section3-selected,
       .section3-projects {
           font-size:48px;
           letter-spacing: -1px;
       }
         /* portfolio */
   .portfolio {
       background-color: #111;
   }

   .portfolio-frame-container:first-child {
       margin-top: 0px;
   }

   .portfolio-frame-container {
       margin: 50px auto;
       width: 70%;
       transition: width 0.3s ease;
       position: relative;
       background-color: #111;


   }

   .portfolio-frame {
       width: 100%;
       height: 300px;
       overflow: hidden;
       box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
       background-color: #111;
       position: relative;
   }

   .portfolio-frame img {
       width: 100%;
       height: 100%;
       object-fit: cover;
       display: block;
       background-color: #111;
   }

   .portfolio-center-button {
       position: absolute;
       top: 50%;
       left: 50%;
       transform: translate(-50%, -50%);
       width: 100px;
       height: 100px;
       background: #111;
       color: white;
       font-size: 2px;
       display: flex;
       align-items: center;
       justify-content: center;
       z-index: 3;
       cursor: pointer;
       transition: transform 0.6s ease, background 0.3s ease;
       background-color: #111;
   }

   .portfolio-center-button:hover {
       transform: translate(-50%, -50%) rotate(180deg) scale(0.9);

   }

   .portfolio-center-button svg {
       width: 40px;
       height: 40px;
       transition: transform 0.6s ease;
   }

   .portfolio-center-button:hover svg {
       transform: rotate(-180deg);
   }

   .portfolio-text-track-left {
       position: absolute;
       top: 50%;
       transform: translate(15%, -50%);
       white-space: nowrap;
       overflow: visible;
       z-index: 2;
       font-size: 80px;
       font-weight: bold;
       text-transform: uppercase;
       mix-blend-mode: difference;
       opacity: 0.8;
       display: flex;
       pointer-events: none;
       background-color: transparent;
   }

   .portfolio-text-track-right {
       position: absolute;
       top: 50%;
       transform: translate(-15%, -50%);
       white-space: nowrap;
       overflow: visible;
       z-index: 2;
       font-size:80px;
       font-weight: bold;
       text-transform: uppercase;
       mix-blend-mode: difference;
       opacity: 0.8;
       display: flex;
       pointer-events: none;
       background-color: transparent;
   }

   .portfolio-text-track-left {
       right: 50%;
       justify-content: flex-end;
   }

   .portfolio-text-track-right {
       left: 50%;
       justify-content: flex-start;
   }

   .portfolio-word {
       display: inline-block;
       margin: 0 40px;
       color: white;
       background-color: transparent;
       font-family: "Instrument Sans", sans-serif;
       font-weight: 600
   }
   }
   

/* section4 */
 @media (max-width: 768px) {
       .services-grid {
           flex-direction: column;
           gap: 20px;
       }

       .service-card {
           padding: 30px 25px;
           max-width: none;
           flex: 1;
       }
   .service-label {
       color: white;
       font-size: 14px;
       font-weight: 100;
       font-family: "Instrument Sans", sans-serif;
       margin-bottom: 40px;
       text-transform: uppercase;
   }
       .service-main-title {
           font-size: 20rem;
            line-height: 50px;
       }
          .service-header {
       text-align: center;
       margin-bottom: 50px;
       margin-top: 90px;

   }

   }

   @media (max-width: 480px) {
       .service-main-title {
           font-size: 2.5rem;
       }

       .service-container {
           padding: 20px 15px;
       }
   }
/* section5 */
   @media (max-width: 768px) {
       .section5-scroll-stage{
      height:100vh;          /* gives us scroll distance     */
      background-color:white;       /* dark backdrop for animation  */
      position:relative;
    }
     /* The rest is unchanged */
    .section5-hero{
      /* position:fixed; */
      top:50%;
      left:50%;
      /* transform:translate(-50%,-50%); */
      width:100vw;
      height:150vh;
       background-color:white;      
      z-index:10;
      display:flex;
      align-items:center;
      justify-content:center;
    }
    
        .section5-main-text {
            font-size: 4rem;
            line-height: 1.2;
            letter-spacing: -0.02em;
             padding-top: 10px;
            text-transform: uppercase;                          
            font-family: "Anton", sans-serif;
             background-color: white;
             max-width: 600px;
              margin: 0px auto 0rem;
             
        }
            .section5-asterisk {
                font-size: 2.5rem;
            }
                 .section5-container {
            background-color: white;
            text-align: center;
            max-width: 1200px;
            justify-content: center;
           justify-items: center;
           align-items: center;
            width: 100%;
            line-height: 0;
            margin-top: 0px;
        }

            .section5-main-text {
                margin-bottom: 2rem;
            }

            .section5-cta-text {
                position: static;
                margin-top: 2rem;
                text-align: center;
                font-size: 1rem;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 10px;
            }

            .section5-asterisk {
                font-size: 2rem;
            }

            .section5-subtitle {
                font-size: 0.9rem;
            }
        }
   
/* footer */

   @media (max-width: 768px) {
       .footer-content {
           grid-template-columns: 1fr 1fr;
           gap: 80px;
       }
          .footer-main {
       background-color: #111;
       padding: 50px 0px 0px 0px;

   }

       .footer-top {
           flex-direction: column;
           gap: 30px;
           align-items: flex-start;
       }

       .footer-bottom {
           flex-direction: column;
           gap: 20px;
           align-items:center;
       }

       .footer-credits {
           flex-direction: column;
           gap: 10px;
       }

       .footer-arrow {
           justify-self: center;
           margin-top: 20px;
       }
       
   .footer-link {
       color: white;
       text-decoration: none;
       font-size: 10px;
       text-transform: uppercase;
       letter-spacing: 0.5px;
       transition: color 0.3s ease;
       font-family: "Instrument Sans", sans-serif;
   }
   
   .footer-legal {
       display: flex;
       gap: 20px;
       font-size: 12px;
   }
   }