/* Critical fonts - inline to avoid render blocking */
    @font-face {
      font-family: 'Orbitron';
      font-style: normal;
      font-weight: 600;
      font-display: swap;
      src: url(https://fonts.gstatic.com/s/orbitron/v31/yMJMMIlzdpvBhQQL_SC3X9yhF25-T1nyGy6BoWgz.woff2) format('woff2');
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    }
    
    @font-face {
      font-family: 'Share Tech Mono';
      font-style: normal;
      font-weight: 400;
      font-display: swap;
      src: url(https://fonts.gstatic.com/s/sharetechmono/v15/J7aHnp1uDWRBEqV98dVQztYldFcLowEF.woff2) format('woff2');
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    }

    :root {
        --black: #0c0c0c;
        --white: #ffffff;
        --gray: #3a3a3a;
        --accent: #ffffff;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background: #000;
      color: #fff;
      font-family: 'Orbitron', sans-serif;
      overflow-x: hidden;
    }

    body.noscroll {
      position: fixed;
      overflow: hidden;
      height: 100vh;
      width: 100%;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .hero {
      min-height: 100svh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      position: relative;
      padding: 0 5vw;
    }

    .ouroboros {
      position: relative;
      width: clamp(360px, 60vw, 580px);
      margin: 0 auto;
    }

    .ouroboros img {
      width: 100%;
      height: auto;
      display: block;
      /* Optimize paint operations */
      contain: layout style paint;
      /* Force hardware acceleration */
      transform: translateZ(0);
      backface-visibility: hidden;
    }

    .inner-content {
      position: absolute;
      top: 53%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
    }

    .inner-content img {
      width: clamp(100px, 30vw, 220px);
      max-width: 100%;
      height: auto;
      /* Optimize paint operations */
      contain: layout style paint;
      /* Force hardware acceleration */
      transform: translateZ(0);
      backface-visibility: hidden;
    }

    .presents {
      font-size: 0.9rem;
      color: #aaa;
      letter-spacing: 2px;
      font-family: 'Share Tech Mono', monospace;
    }

    /* MENU */
    .menu-wrapper {
      position: fixed;
      top: 40px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 1000;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .menu-button {
      font-family: 'Orbitron', sans-serif;
      font-weight: 600;
      padding: 10px 28px;
      border-radius: 60px;
      font-size: 16px;
      letter-spacing: 1px;
      cursor: pointer;
      border: 2px solid;
      transition: all 0.3s ease;
    }

    .menu-button.light {
      background: #fff;
      color: #000;
      border-color: #000;
    }

    .menu-button.dark {
      background: #000;
      color: #fff;
      border-color: #fff;
    }

    /* Açılır Menü Paneli */
    .menu-panel.dropdown {
      position: absolute;
      top: 60px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s ease;
      padding: 16px 24px;
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.1);
      display: flex;
      gap: 20px;
      flex-direction: column;
      align-items: center;
      min-width: 160px;
      pointer-events: none;
    }

    .menu-panel.dropdown.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
    }

    /* Renk teması */
    .menu-panel.light {
      background: #fff;
      color: #000;
    }

    .menu-panel.dark {
      background: #000;
      color: #fff;
    }

    .menu-panel a {
      font-family: 'Share Tech Mono', monospace;
      font-size: 14px;
      text-transform: uppercase;
      text-decoration: none;
      color: inherit;
      transition: all 0.2s ease;
    }

    .menu-panel a:hover {
      opacity: 0.6;
    }

    .corner-text {
      position: absolute;
      font-size: 0.75rem;
      letter-spacing: 1px;
      opacity: 0.8;
      font-family: 'Orbitron', sans-serif;
    }

    .bottom-left {
      bottom: 20px;
      left: 20px;
    }

    .bottom-right {
      bottom: 20px;
      right: 20px;
    }

    @media (max-width: 600px) {
      .menu-button {
        padding: 14px 36px;
        font-size: 16px;
        border-width: 3px;
      }
    
      .menu-panel.dropdown {
        min-width: 200px;
        padding: 20px;
        gap: 24px;
      }
    
      .menu-panel a {
        font-size: 16px;
      }
      
      .corner-text {
          font-size: 0.60rem;
        }
    }
    
    
    .about-section {
      position: relative;
      width: 100%;
      min-height: 100svh;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 5vw;
    }
    
    .background-video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
      opacity: 0.15;
      pointer-events: none;
    }
    
    .about-content {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: row;
      gap: 60px;
      max-width: 1200px;
      width: 100%;
      justify-content: space-between;
      align-items: flex-start;
      flex-wrap: wrap;
    }
    
    .about-left {
      flex: 1;
      min-width: 300px;
    }
    
    .about-left h2 {
      font-size: clamp(24px, 4vw, 42px);
      margin-bottom: 20px;
      font-weight: 700;
      line-height: 1.3;
    }
    
    .about-left p {
      font-family: 'Share Tech Mono', monospace;
      font-size: clamp(14px, 1.5vw, 18px);
      line-height: 1.7;
      color: #ddd;
    }
    
    .about-right {
      flex: 1;
      min-width: 300px;
    }
    
    .services-header {
      font-size: clamp(16px, 2vw, 24px);
      margin-bottom: 20px;
      text-transform: uppercase;
      font-weight: bold;
      letter-spacing: 1px;
      border-bottom: 2px solid #fff;
      padding-bottom: 6px;
    }
    
    .services-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    
    .services-list li {
      margin-bottom: 12px;
      font-family: 'Share Tech Mono', monospace;
      font-size: clamp(14px, 1.5vw, 18px);
      color: #ccc;
    }
    
    /* GENERATIVE AI */

    .genai-section {
        background: #fff;
        padding: 80px 5vw;
        color: #000;
      }
    
      .genai-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 40px;
        gap: 20px;
      }
    
      .genai-header h2 {
        font-size: clamp(24px, 4vw, 40px);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
      }

  .view-more-btn {
    background: #fff;
      color: #000;
      text-decoration: none;
      padding: 10px 24px;
      border-style: solid;
      font-family: 'Orbitron', sans-serif;
      font-weight: 600;
      font-size: 14px;
      transition: all 0.3s ease;
      cursor: pointer;
  }

  .view-more-btn:hover {
    background: #000;
    color: #fff;
    transform: scale(1.05);
  }

  .genai-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }

  .video-box {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  }

  .video-box video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }


  /* STRIP */
  .ourwork-strip {
    width: 100%;
    background: #fff;
    overflow: hidden;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
  }

  .strip-track {
    display: flex;
    width: max-content;
    animation: scrollInfinite 30s linear infinite;
  }

  .strip-track span {
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 6px;
    white-space: nowrap;
    color: #000;
    padding-right: 4vw;
  }

  @keyframes scrollInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* OUR WORK SECTION */
  .ourwork-section {
    background: #fff;
    color: #000;
    padding: 80px 5vw;
  }

  .ourwork-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
  }

  .ourwork-header h2 {
    font-size: clamp(24px, 4vw, 42px);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
  }

  .details-btn {
    background: #fff;
    color: #000;
    text-decoration: none;
    padding: 10px 24px;
    border-style: solid;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .details-btn:hover {
    background: #000;
    color: #fff;
    transform: scale(1.05);
  }
  

  /* GALLERY */
  .ourwork-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
  }

  .ourwork-gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
  }

  .ourwork-gallery img:hover {
    transform: scale(1.02);
  }


  /* OUTWORK DETAILS PANEL*/
  .ourwork-details {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100svh;
      background: #fff;
      color: #000;
      z-index: 2000;
      display: none;
      flex-direction: column;
      padding: 40px 5vw;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch; /* iOS native scroll */
      overscroll-behavior: contain;
    }


  .ourwork-details.show {
    display: flex;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #000;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
    font-family: 'Share Tech Mono', monospace;
    }
  
  .close-btn:hover {
      background: #222;
    }

  .details-content {
    max-width: 800px;
    margin: 80px auto 80px;
    font-family: 'Share Tech Mono', monospace;
  }

  .details-content h2 {
    font-size: clamp(24px, 5vw, 42px);
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
  }

  .details-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
  }

  .details-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
  }

  .details-content ul {
    list-style: square inside;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
  }
  
  
  /* TEAM SECTION */
    .section-border {
          width: 100%;
          height: 60px;
          overflow: hidden;
          position: relative;
        }
        
        .section-border::before {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          width: 200%; /* Genişliği iki kat yapar */
          height: 100%;
          background-image: url('../yuverse-img/stripyuverse.webp');
          background-repeat: repeat-x;
          background-size: contain;
          animation: scrollBorderLinear 40s linear infinite;
        }
        
        @keyframes scrollBorderLinear {
          0% { transform: translateX(0); }
          100% { transform: translateX(-50%); }
        }

        .team-container {
          display: flex;
          flex-wrap: nowrap; /* no wrap */
          gap: 60px;
          max-width: 1200px;
          margin: 0 auto;
          align-items: center; 
        }

        .team-image {
          position: relative;
          overflow: hidden;
          width: 100%;
          max-width: 500px; /* max width */
          aspect-ratio: 3 / 4;
          border: 2px solid #000;
          flex-shrink: 0; 
        }

        .team-image img {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: auto;
          object-fit: cover;
          display: block;
          transition: opacity 0.3s ease, filter 0.3s ease;
        }

        .team-image img.base {
          position: relative;
          z-index: 1;
          filter: none;
        }

        .team-image img.mask {
          z-index: 3;
          opacity: 0;
          pointer-events: none;
        }

        .team-image.active .base {
          filter: blur(5px);
        }

        .sticker-container {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          pointer-events: none;
        }

        .sticker {
          position: absolute;
          width: 50%;
          height: 100%;
          object-fit: cover;
          opacity: 0;
          transition: opacity 0.3s ease;
          pointer-events: auto;
        }

        .sticker.left { left: 0; }
        .sticker.right { right: 0; }

        .click-sticker {
          position: absolute;
          top: 0px;
          right: -10px;
          background: #000;
          color: #fff;
          padding: 20px 50px;
          font-size: 0.85rem;
          font-family: 'Orbitron', sans-serif;
          z-index: 5;
          opacity: 0.85;
          clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
          box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
        }

        .text-container {
          flex: 1;
          font-family: 'Kanit', sans-serif;
          text-align: left;
          padding: 20px;
          align-self: center; /* width center*/
        }

        .text-container h2 {
          font-family: 'Orbitron', sans-serif;
          font-size: 2.6rem;
          margin-bottom: 16px;
          border-bottom: 2px solid #000;
          display: inline-block;
          padding-bottom: 5px;
        }

        .text-container p {
          font-size: 1.1rem;
          line-height: 1.7;
          color: #111;
        }

        .profile-details {
          display: none;
        }

        .profile-details.active {
          display: block;
        }

        .skills {
          margin-top: 10px;
        }

        .skills span {
          display: inline-block;
          background: #000;
          color: #fff;
          font-size: 0.9rem;
          padding: 6px 10px;
          border-radius: 4px;
          margin: 4px 4px 0 0;
        }
        
        @media (max-width: 1024px) {
        .team-container {
          flex-direction: column;
          align-items: center;
          gap: 40px;
          padding: 0 4vw;
        }
    
        .team-image {
          width: 90%;
          max-width: 400px;
          aspect-ratio: 3 / 4;
        }
    
        .click-sticker {
          font-size: 0.75rem;
          padding: 10px 20px;
          right: 0;
        }
    
        .text-container {
          width: 100%;
          padding: 0;
          text-align: center;
        }
    
        .text-container h2 {
          font-size: 2rem;
        }
    
        .text-container p {
          font-size: 1rem;
        }
    
        .skills span {
          font-size: 0.85rem;
          padding: 5px 8px;
        }
      }
    
      @media (max-width: 480px) {
        .click-sticker {
          font-size: 0.7rem;
          padding: 8px 16px;
        }
    
        .text-container h2 {
          font-size: 1.6rem;
        }
    
        .text-container p {
          font-size: 0.95rem;
        }
    
        .skills span {
          font-size: 0.8rem;
        }
      }
      
      
      /* Footer Styling */
        .footer-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
            padding: 40px 20px;
            background-color: var(--white);
          }
    
          .footer-logos {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
          }
    
          .footer-logos img {
            height: 100px;
            width: auto;
          }
    
          .footer-logos span {
            font-size: 1rem;
            font-family: 'Kanit', sans-serif;
            color: var(--black);
          }
    
          .footer-handle {
            font-size: 2.8rem;
            font-weight: 900;
            font-family: 'Orbitron', sans-serif;
            letter-spacing: 2px;
            color: var(--black);
          }
    
          .footer-subtext {
            font-size: 0.75rem;
            font-family: 'Kanit', sans-serif;
            opacity: 0.8;
            color: var(--black);
          }
    
          .footer-links,
          .footer-meta {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 16px;
            font-family: 'Kanit', sans-serif;
            font-size: 1rem;
            align-items: center;
          }
    
          .footer-links a,
          .footer-meta a,
          .footer-meta span {
            color: var(--black);
            text-decoration: none;
          }
    
          .footer-links a i {
            font-size: 1.4rem;
          }
    
          .footer-meta span {
            margin: 0 5px;
          }
    
          @media (max-width: 600px) {
            .footer-logos {
              flex-direction: column;
            }
            .footer-handle {
              font-size: 2rem;
            }
          }
          
    /* PRELOADER */
    
    #preloader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100svh;
      background: #000;
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      z-index: 9999;
      font-family: 'Orbitron', sans-serif;
      transition: opacity 0.8s ease, visibility 0.8s ease;
    }
    
    .preloader-content {
      text-align: center;
    }
    
    .static-text {
      font-size: clamp(2.5rem, 6vw, 6rem);
      font-weight: 700;
      letter-spacing: 4px;
    }
    
    .dynamic-text {
      font-size: clamp(2rem, 5vw, 5rem);
      color: #ffebb7;
      animation: changeWord 3s infinite;
      margin-top: 20px;
    }
    
    @keyframes changeWord {
      0%, 20% { content: 'BRAVE'; }
      33%, 53% { content: 'REBEL'; }
      66%, 86% { content: 'YUFORGE'; }
    }

    /* Performance optimizations */
    .lazy-load {
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    
    .lazy-load.loaded {
      opacity: 1;
    }
    
    /* Reduce paint operations */
    .will-change {
      will-change: transform, opacity;
    }
    
    /* Optimize animations */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }