@import url('https://fonts.googleapis.com/css2?family=Stick+No+Bills:wght@200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gruppo&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root{
    --backgroundBlack : #101010;
    --theRed:#b21927;
}

html{
    background-color: var(--backgroundBlack);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.fullscreen{
    width: 100dvw;
    height: 100dvh;
    padding-bottom: 10dvh;
}
#lnc{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.line {
    position: absolute;
    background: #2c2c2c;
    border-radius: 2px;
}

.line.horizontal {
    height: 2px;
    width: 100%;
}

.line.vertical {
    width: 2px;
    height: 100%;
}

.thick-segment {
    position: absolute;
    background: var(--theRed);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--backgroundBlack);
    font-family: "HKGroteskWide", sans-serif;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
}

.thick-segment.horizontal {
    height: 24px;
    top: -11px;
}

.thick-segment.vertical {
    left: -11px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.cdt {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #2c2c2c;
    border-radius: 50%;
    z-index: 3;
}

.msr {
    position: absolute;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #2c2c2c;
    font-weight: bold;
}
#drop-in{
    display: flex;
    justify-content: center;
    align-items: center;
}

#drop-in > #logo{
    width: 95dvw;
    height:auto
}



.horizontal-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.horizontal-wrapper {
  display: flex;
  z-index: 5;
}

.panel {
  display: flex;
  align-items: center;
  height: 100vh;
  margin-left: 25dvw;
  padding-right: 25dvw;
}

.longText {
  font-size: 7rem;
  white-space: nowrap;
  padding: 2rem;
  width: max-content;
  font-family: "HKGroteskWide", sans-serif;
}

@media (max-width: 768px) {
  
  .horizontal-section {
    height: auto;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
  }

  .horizontal-wrapper {
    display: block;
    width: 100%;
  }

  .panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    margin: 0;
    padding: 0 1rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .longText {
    white-space: normal;  
    font-size: 3rem;
    text-align: center;
    padding: 0;
    margin: 0;
    width: 100%;          
    max-width: 100%;    
    word-wrap: break-word; 
    hyphens: auto;        
  }
}


.title {
  font-family: "HKGroteskWide", sans-serif;
  font-weight: 900;
  color: var(--theRed);
  font-size: clamp(40px, 7vw, 150px);
  line-height: 80%;
  padding-left: 5dvw;
  transform: translateY(1dvh);
  width: 75dvw;
}

/* Override on small screens, for example */
@media (max-width: 768px) {
  .title {
    width: 100dvw;
    padding-left: 5dvw;
  }
}

#devList{
    height: fit-content !important;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 0.8fr));
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

 .card-container {
    position: relative;
    width: 280px;
    height: 275px;
    margin: 40px auto;
}

 .profile-card {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.9);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    transition: all 0.3s ease;
}

 .profile-card:hover {
    background: rgba(30, 30, 30, 0.95);
    transform: translateY(-2px);
}

 .profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transform:rotate(-25deg)
}

 .profile-name {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

 .profile-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-bottom: 12px;
}

 .social-links {
    padding-top: 10px;
    display: flex;
    gap: 8px;
}

 .social-link {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease;
}

 .social-link:hover {
    transform: scale(1.1);
}

.social-link.twitter { background: #1da1f2; }
.social-link.youtube { background: #ff0000; }
.social-link.github { background: #333; }
.social-link.linkedin { background: #0077b5; }
.social-link.instagram { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
}

 /* Border Animation Elements */
.border-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

 .border-line.horizontal {
    height: 1px;
    width: 100%;
}

 .border-line.vertical {
    width: 1px;
    height: 100%;
}

.border-line.top { top: 0; left: 0; }
.border-line.bottom { bottom: 0; left: 0; }
.border-line.left { left: 0; top: 0; }
.border-line.right { right: 0; top: 0; }

 .border-segment {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    z-index: 5;
    border-radius: 2px;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
}

 .border-segment.horizontal {
    height: 3px;
}

 .border-segment.vertical {
    width: 3px;
}

 .corner-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    z-index: 5;
}

 .corner-dot.top-left { top: -3px; left: -3px; }
.corner-dot.top-right { top: -3px; right: -3px; }
.corner-dot.bottom-left { bottom: -3px; left: -3px; }
.corner-dot.bottom-right { bottom: -3px; right: -3px; }

 .measurement {
    position: absolute;
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    font-family: monospace;
    z-index: 5;
}

 @media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    
    .card-container {
        width: 100%;
        max-width: 300px;
        height: 275px;
        margin: 20px auto;
    }
    
    .profile-image {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .profile-name {
        font-size: 16px;
    }
    
    .social-link {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
}

.tdModelFlex{
    position: absolute;
}

.debug {
    border: 1px solid var(--theRed);
    
}
.debug::after {
    content: "DEBUG";
    position: absolute;
    left: 10px;
    background-color: var(--theRed);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: sans-serif;
    overflow: visible;
}


.contactList {
    width: 80dvw;
    display: flex;
    flex-direction: column;
    gap: 10dvh; 
    padding: 0;
    margin-left: 10dvw;
    margin-top: 5dvh;
}

.contactList > .chipped-shape:nth-child(even) {
    align-self: flex-end;
}

.chipped-shape {
    background: var(--theRed);
    position: relative;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}
.small {
    width: 200px;
    height: 60px;
    margin: 20px 0;
}
.medium {
    width: 400px;
    height: 80px;
    margin: 20px 0;
}
.large {
    width: 600px;
    height: 100px;
    margin: 20px 0;
}
.extra-large {
    width: 800px;
    height: 120px;
    margin: 20px 0;
}
.chip-top-left {
    clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%, 0 30px);
}
.chip-top-right {
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}
.chip-bottom-left {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}
.chip-bottom-right {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}
.responsive-shape {
    width: 60dvw;
    height: 17.5dvh;
}
.small-chip {
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
}
.large-chip {
    clip-path: polygon(0 0, calc(100% - 50px) 0, 100% 50px, 100% 100%, 0 100%);
}
.opposite-shape {
    align-self: flex-end;
}

@keyframes text-scrolling {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: clamp(75px, 10dvw, 100px);
}

.animate-text {
  display: flex;
  position: absolute;
  will-change: transform;
  animation: text-scrolling 20s linear infinite;
}

.animate-text.left {
  animation-direction: reverse;
}

.marqSpan {
  font-size: clamp(100px, 15dvw, 140px);
  color: transparent;
  -webkit-text-stroke: 1px var(--backgroundBlack);
  text-transform: uppercase;
  line-height: 0.75;
  font-weight: 500;
  font-family: "Widebody", sans-serif;
  filter: blur(2px);
  white-space: nowrap;
  display: inline-block;
  padding-right: 2rem; /* space between repeats if duplicated */
}

.content {
    width: 100%;
    height: 17.5dvh;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.content > img {
    height: 60%;
    width: auto;
}

.linkTitle {
    position: relative;
    font-size: clamp(20px,5dvw,40px);
    font-family: 'Montserrat', sans-serif;
    color: var(--backgroundBlack);
    margin: 0;
    width: 80%;
}

.content.rev {
    justify-content: flex-start;
    flex-direction: row-reverse;
}

.content.rev > .linkTitle{
    text-align: right;
}

.fragment {
    position: absolute;
    background: var(--theRed);
    pointer-events: none;
    z-index: 10;
    will-change: transform, opacity;
}

  .fragment .fragment-content {
    position: absolute;
    overflow: hidden;
}

  .fragment .animate-text {
    position: absolute;
    top: 0;
    left: 0;
}

  .fragment .content {
    position: absolute;
    top: 0;
    left: 0;
}

  .shattered {
    opacity: 0;
    pointer-events: none;
}

  @keyframes shatter {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--dx), var(--dy)) rotate(var(--rotation)) scale(0.7);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .contactList > .chipped-shape:nth-child(even) {
        align-self: flex-start;
    }
    
    .contactList {
        width: 90dvw;
        margin-left: 5dvw;
        gap: 25px;
    }
    
    .small, .medium, .large, .extra-large {
        width: 100%;
        max-width: 90dvw;
        margin: 10px 0;
    }
    
    .responsive-shape {
        width: 90dvw;
        height: 10dvh;
    }
    .content {
        height: 10dvh;
        gap: 10px;             
    }
}


body.freeze-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

#gun {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 3;
  opacity: 1;
  overflow: hidden;
  pointer-events: none;
}

#divFullSreen{
    position:absolute;
    z-index: 10;
    pointer-events: none;
}

#loader {
    position: fixed;
    z-index: 100;
    background-color: #020202;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center; /* <-- THIS is what you need */
    width: 100vw;
    height: 100vh;
}


#loader > img{
    position: relative;
    height: 60dvh;
    display: inline-block;
}

#ldvid{
    position: absolute;
    height: 60dvh;
}

@media (max-width:768px) {
    #ldvid{
        position: absolute;
        height: 10dvh;
    }
}

#about_game {
    position: fixed;
    background: var(--theRed);
    width: 100dvw;
    height: 100dvh;
    top: 0;
    left: 0;
    z-index: 1000;
    display: none;
}

 .scrollText {
    font-family: "HKGroteskWide", sans-serif;
    font-size: clamp(20px, 18vw, 225px);
    font-weight: 700;
    width: 100dvw;
    height: 500dvh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    line-height: 80%;
}

#about_game {
    position: fixed;
    background: var(--theRed);
    width: 100dvw;
    height: 100dvh;
    top: 0;
    left: 0;
    z-index: 1000;
    display: none;
}

.scrollText {
    font-family: "HKGroteskWide", sans-serif;
    font-size: clamp(16px, 12vw, 225px);
    font-weight: 700;
    width: 100dvw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    line-height: 80%;
    padding: 0 5vw;
    box-sizing: border-box;
    position: relative;
}

#showcase {
    width: 100dvw;
    height: 500dvh;
}

#scrollingText {
    position: absolute;
}

.scrollText.behind {
    z-index: 5;
    max-width: 95dvw;
}

.scrollText.front {
    z-index: 10000;
    max-width: 95dvw;
}

.font_wire {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    color: transparent;
    -webkit-text-stroke: 3px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    line-height: inherit;
    padding: inherit;
}

.scrollText:nth-child(1) { top: 0%; }
.scrollText:nth-child(2) { top: 16.66%; }
.scrollText:nth-child(3) { top: 33.33%; }
.scrollText:nth-child(4) { top: 50%; }
.scrollText:nth-child(5) { top: 66.66%; }
.scrollText:nth-child(6) { top: 83.33%; }

#contacts {
    padding-top: 10dvh;
    height: max-content;
    padding-bottom: 15dvh;
    z-index: 2;
}

.lowGlore {
    background: linear-gradient(to top, rgba(10, 10, 10, 0.8), transparent, transparent);
    pointer-events: none;
    z-index: 10001;
    position: absolute;
    bottom: 0;
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    .scrollText {
        font-size: clamp(14px, 10vw, 80px);
        padding: 0 3vw;
        line-height: 85%;
    }
    
    .scrollText.behind,
    .scrollText.front {
        max-width: 94vw;
    }
    
    .font_wire {
        -webkit-text-stroke: 2px rgba(255, 255, 255, 0.8);
    }
    
    #contacts {
        padding-top: 8dvh;
        padding-bottom: 12dvh;
    }
}

@media (max-width: 480px) {
    .scrollText {
        font-size: clamp(12px, 8vw, 60px);
        padding: 0 2vw;
        line-height: 90%;
    }
    
    .font_wire {
        -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.8);
    }
    
    #contacts {
        padding-top: 6dvh;
        padding-bottom: 10dvh;
    }
}


#footer-3d-container {
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(8, 8, 8, 1), transparent);
    z-index: 1;
}

.blur_overlay_footer {
    backdrop-filter: blur(1.25px);
    position: absolute;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-direction: column;
    padding: 0 10px;
    box-sizing: border-box;
}

.logos {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    align-content: center;
    gap: 8px;
    padding: 8px;
    flex-direction: row;
    width: 100%;
    height: max-content;
}

.logos > div {
    height: 50%;
    width: 2px;
    background-color: white;
    mix-blend-mode: difference;
}

.logos > img {
    max-width: 25dvw;
}

.blur_overlay_footer > .info {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 8px;
    width: 100dvw;
    padding: 0 15px;
    box-sizing: border-box;
}

.blur_overlay_footer > .info > span {
    width: 100%;
    display: block;
}

.blur_overlay_footer > .info > span > a {
    color: var(--theRed);
    text-decoration: none;
    font-weight: bold;
}

.ending {
    position: absolute;
    bottom: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.coolAhhCR {
    font-family: "HKGroteskWide", sans-serif;
    font-weight: 900;
    color: rgb(0, 0, 0);
    font-size: clamp(30px, 8vw, 140px);
    text-size-adjust: 50%;
    letter-spacing: -0.2em;
    -webkit-text-stroke: 3px var(--backgroundBlack);
    height: auto;
}

.cright {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    font-family: "Montserrat", sans-serif;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .logos > div {
        height: 10%;
        width: 2px;
        background-color: white;
        mix-blend-mode: difference;
    }

    .logos {
        gap: 6px;
        padding: 6px;
        flex-wrap: wrap;
    }
    
    .logos > img {
        max-width: 30dvw;
    }
    
    .blur_overlay_footer > .info {
        font-size: 0.8rem;
        padding: 0 10px;
    }
    
    .coolAhhCR {
        font-size: clamp(24px, 6vw, 80px);
        -webkit-text-stroke: 2px var(--backgroundBlack);
    }
    
    .cright {
        gap: 20px;
        flex-wrap: wrap;
        text-align: center;
    }
    
    .ending {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .logos {
        gap: 4px;
        padding: 4px;
    }
    
    .logos > img {
        max-width: 35dvw;
    }
    
    .blur_overlay_footer > .info {
        font-size: 0.75rem;
        margin-top: 6px;
    }
    
    .coolAhhCR {
        font-size: clamp(20px, 5vw, 60px);
        -webkit-text-stroke: 1.5px var(--backgroundBlack);
        letter-spacing: -0.15em;
    }
    
    .cright {
        gap: 15px;
        font-size: 0.9rem;
    }
}