@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Bebas Neue', 'Bebas Neue Fallback', sans-serif;
}

h4 {
    font-family: 'Inter Tight', 'Inter Tight Fallback', sans-serif;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 999999;
    overflow: hidden;
}

#loading-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.home {
    width: 100%;
    min-height: 100vh;
    display: flex;
    position: relative;
    border: #00000017 1px solid;
}

.home-left {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
        border: #00000017 1px solid;
    padding: 40px; 
}
.home-left h4{ 
    font-size: 2rem;
    color: #666666;  
    font-weight: 400;
    width:66%;
    line-height: 3.1rem;
}
.home-right {
    flex: 1;
    background: #ffffff;
    color: rgb(0, 0, 0);
    border-left: #00000017 1px solid;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}
.the_button{
    margin-top: 30px;
    padding: 8px 12px;
    font-size: 2rem;
    background: linear-gradient(135deg, #FF3086, #FF632A);
    color: white;
}
 
.home-left h1,
.home-right h1 {
    font-size: 13rem; 
    text-align: left;
    line-height: 1.1;
}

.hero-text {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
    align-items: flex-start;
    gap: 80px 30px;
}

.word {
    font-size: 10rem;
    font-weight: 900;
    line-height: 0.4;
    white-space: nowrap;
}

.word.highlight {
    background: linear-gradient(135deg, #FF3086, #FF632A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.2em 0;
    margin: -0.2em 0;
}


.home-right span { 
    line-height: 1.5;
    background: linear-gradient(135deg, #FF3086, #FF632A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
  
}

h1 {  
    padding: 0;
    margin:0;
}

#js-status {
    font-size: 1.2rem;
    color: #666;
    margin-top: 1rem;
}

/* menu */
.menu {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    background: #000000;
    color: white;
    width: 500px;
    padding: 14px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
}
.menu h1 {
    color: white;
    font-size: 24px;
}
.button {
    background: linear-gradient(135deg, #FF3086, #FF632A);
    color: white;
    padding: 10px 14px;
    border-radius: 3px;
    margin-left: 15px;
}
.pop-out-menu{
    position: fixed;
    bottom: 100px;
    left: 30%;
    right: 30%;
    background: #000000;
    color: white;
    padding: 14px 15px;
    border-radius: 5px;
    z-index: 100000;
    display: none;
    justify-content: space-between;
    min-height: 150px;
    opacity: 0;
}

.pop-out-menu.active {
    display: flex;
    opacity: 1;
}

.pop-out-menu > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-right: 1px solid #555;
}

.pop-out-menu > div:last-child {
    border-right: none;
}
.menu-button{
    background: linear-gradient(135deg, #FF3086, #FF632A);
    color: white;
    padding: 19px 12px;
    width: 100%;
    text-align: center;
    margin: 1px 0;
}

/* SVG Logo in Menu */
.svg-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#menu-logo-svg {
    width: 180px;
    height: 180px;
}

#menu-logo-svg .logo-path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Spinning Logo */
.spinning-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    pointer-events: none;
}

#logo-canvas {
    width: 500px;
    height: 500px;
}
.home-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff; /* Default background */
}

.home-center .hero-text {
    justify-content: center;
    text-align: center;
}
.landing-pad-for-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    /* border: 1px solid red;  Uncomment for debugging */
    pointer-events: none;
}

/* Service Labels around Logo */
.service-label {
    position: absolute;
    font-size: 3.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 1; /* Above lines */
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-text {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #FF3086, #FF632A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-bg-svg {
    position: absolute;
    width: 120px;
    height: 120px;
    z-index: 1;
    opacity: 0.3;
}

.service-svg-path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Position relative to the 200x200 landing pad center */
/* Landing pad is 200x200, so edge is 100px from center */

.service-label.top {
    top: -100px; /* 100px (half height) + spacing */
    left: 50%;
    transform: translateX(-50%);
}

.service-label.bottom {
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
}

.service-label.left {
    left: -120px; /* 100px (half width) + spacing */
    top: 50%;
    transform: translateY(-50%);
}

.service-label.right {
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
}

/* Decorative Circle and Lines */
.service-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border: 1px dashed #cccccc;
    border-radius: 50%;
    pointer-events: none;
}

.service-lines {
    position: absolute;
    background-color: #f0f0f0;
    pointer-events: none;
}

.service-lines.horizontal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 1px;
}

.service-lines.vertical {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 600px;
}

/* Process Playground */
.process-playground {
    position: relative;
    background: #f9f9f9;
    display: flex;
}

.playground-canvas-section {
    flex: 7;
    position: relative;
    background: white;
}

.playground-text-section {
    flex: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: #ffffff;
    border-left: #00000017 1px solid;
}

#process-canvas {
    width: 100%;
    height: 100%;
    display: block;
    background-color: white;
    cursor: grab;
}

#process-canvas:active {
    cursor: grabbing;
}

.process-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    color: #999;
    text-align: center;
}

#scramble-btn {
    position: absolute;
    top: 40px;
    left: 35%;
    transform: translateX(-50%);
    padding: 12px 30px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
}

#scramble-btn:hover {
    background: #FF6B35;
}

/* Footer Word Reveal Animation */
.word-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.footer-word {
    color: white;
    display: block;
}

.footer-word.highlight {
    background: linear-gradient(135deg, #FF3086, #FF632A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.word-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 10;
}

.word-cover.highlight-cover {
    background: black;
}

.footer .hero-text {
    gap: 40px;
}

.footer.home {
    overflow: hidden;
}

/* Work Portfolio Section */
.work-portfolio {
    position: relative;
    background: linear-gradient(135deg, #FF3086, #FF632A);
    padding: 80px 10%;
    min-height: 100vh;
    overflow: hidden;
}

#portfolio-gears-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

#work-lines-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.work-item {
    position: relative;
    width: 45%;
    margin-bottom: 30px;
    z-index: 2;
}

.work-item.left {
    margin-left: 5%;
}

.work-item.right {
    margin-left: 60%;
}

.work-image {
    position: relative; 
    overflow: visible; 
    transition: box-shadow 0.4s ease;
    /* Tilted shape from logo SVG */
    clip-path: polygon(0% 10%, 99% 0%, 100% 92%, 18% 100%);
}

.work-image:hover { 
}

.work-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.1s ease;
    visibility: hidden;
}

.live-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Inter Tight', sans-serif;
    letter-spacing: 1px;
}

.work-info {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.client-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: black;
    font-weight: 900;
    margin: 0;
}

.work-tags {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    color: black;
    margin: 0;
    letter-spacing: 1px;
}

/* Collision Section Animation */
.collision-section {
    min-height: 100vh;
    height: 100vh;
    background: #ffffff;
    overflow: hidden;
}

.collision-words {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 5;
}

.collision-word {
    font-size: 12rem;
    font-weight: 900;
    white-space: nowrap;
    will-change: transform;
}

.collision-left {
    color: #000000;
}

.collision-right {
    background: linear-gradient(135deg, #FF3086, #FF632A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.collision-logo-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    z-index: 10;
    pointer-events: none;
}
/* Contact Section */
.contact {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-svg-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    perspective: 1500px;
}

.contact-svg {
    position: absolute;
    width: 200px;
    height: auto;
    transform-origin: center center;
    transform-style: preserve-3d;
    will-change: transform;
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}

.contact-content.visible {
    opacity: 1;
    pointer-events: all;
}

.contact-text {
    justify-content: center;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-link {
    font-size: 3rem;
    font-weight: 700;
    color: black;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

.contact-link:hover {
    opacity: 0.7;
}