@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

html {
    background-color: #0c0c08;
}

body {
    background-color: transparent; /* Make body transparent */
    overflow-x: hidden;
}

html, body {
    margin: 0;
    padding: 0;
    width: 300vw;
    height: 300vh;
    font-family: 'Share Tech Mono', monospace;
    overflow: scroll;
    color: #FEF9F6;
    font-size: 14px; /* Base font size */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

body::-webkit-scrollbar {
    display: none; /* for Chrome, Safari, and Opera */
}


body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

section {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem; /* Restored padding */
    box-sizing: border-box;
    text-align: center;
    font-size: 1.4rem; /* Larger paragraph text */
}

section p, section ul, section form {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

h1, h2, h3 {
    color: #FEF9F6;
    animation: neon-pulse 1.5s infinite alternate;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.3rem;
}

#team {
    justify-content: flex-start; /* Align content to the top */
    perspective: 1000px;
}

#team h2 {
    font-size: 2.8rem;
    padding-top: 5rem; /* Increased padding */
    margin-bottom: 1rem;
}


h3 {
    font-size: 1.8rem;
}

@keyframes neon-pulse {
    from {
        text-shadow:
            0 0 2px #f86c14,
            0 0 5px #f86c14,
            0 0 10px #f86c14;
    }
    to {
        text-shadow:
            0 0 3px #f86c14,
            0 0 7px #f86c14,
            0 0 14px #f86c14;
    }
}

a {
    color: #f86c14;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

#home {
    grid-column: 2;
    grid-row: 2;
    position: relative;
    overflow: hidden;
}

.tech-lines-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 4;
}


.tech-lines-tl, .tech-lines-br {
    position: absolute;
    width: 500px;
    height: 500px;
}

.tech-lines-tl.start-pulsing, .tech-lines-br.start-pulsing {
    animation: neon-pulse-svg 4s ease-in-out infinite alternate;
}

.tech-lines-tl {
    top: -130px;
    left: -130px;
    transform: rotate(45deg);
}

.tech-lines-br {
    bottom: -130px;
    right: -130px;
    transform: rotate(45deg) scaleY(-1);
}

#about {
    grid-column: 1;
    grid-row: 2;
    background-image: url('images/about-before_.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.about-content {
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
}

#services {
    grid-column: 3;
    grid-row: 2;
    position: relative;
    overflow: hidden;
    background-color: #0c0c08;
}

#team {
    grid-column: 2;
    grid-row: 1;
}

#contact {
    grid-column: 2;
    grid-row: 3;
    perspective: 1000px;
}

#contact form > * {
    opacity: 0;
    transform: rotateX(90deg);
    transform-origin: bottom;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

#contact form > *.visible {
    opacity: 1;
    transform: rotateX(0deg);
}

footer {
    position: fixed;
    bottom: -100px; /* Pushed down */
    left: 0;
    width: 100%;
    text-align: center;
    padding: 1rem 1rem 0; /* Reduced bottom padding further */
    background: transparent;
    transition: bottom 0.3s ease-in-out;
}

body:hover footer {
    bottom: 0; /* Reappears on hover */
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
}

input, button, textarea {
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #FEF9F6;
    background-color: #0c0c08;
    color: #FEF9F6;
    font-size: 0.9rem;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
}

input:hover, textarea:hover,
input:focus, textarea:focus {
    border-color: #f86c14;
    box-shadow: 0 0 15px #f86c14;
    outline: none;
}

textarea {
    resize: vertical;
}

button {
    background-color: transparent;
    color: #f86c14;
    border: 2px solid #f86c14;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: color 0.5s ease, box-shadow 0.3s ease, text-shadow 0.3s ease;
    isolation: isolate;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.6);
}

button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 0;
    padding-bottom: 300%;
    background: #f86c14;
    z-index: -1;
    transform: translate(-50%, -50%) rotate(225deg) scale(0);
    transform-origin: center;
    transition: all 0.5s ease;
}

button:hover {
    color: #0c0c08;
    box-shadow: 0 0 20px #f86c14;
    text-shadow: none;
}

button:hover::before {
    transform: translate(-50%, -50%) rotate(225deg) scale(1);
}

.arrow-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none; /* Allow clicks to pass through the container */
}

.arrow-nav a {
    position: absolute;
    animation: neon-pulse-svg 4s ease-in-out infinite alternate;
    display: flex;
    align-items: center;
    pointer-events: all; /* Make the arrows clickable */
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.arrow-nav a.no-glow {
    animation: none;
}

.arrow-nav a span {
    animation: neon-pulse 1.5s infinite alternate;
    font-size: 1.2rem;
    color: #FEF9F6;
    white-space: nowrap;
}

.arrow-icon-group {
    display: flex;
}

#arrow-right, #arrow-left {
    flex-direction: row;
}

#arrow-up, #arrow-down {
    flex-direction: column;
}

#arrow-right .arrow-icon-group,
#arrow-left .arrow-icon-group {
    flex-direction: row;
}

#arrow-up .arrow-icon-group,
#arrow-down .arrow-icon-group {
    flex-direction: column;
}

.arrow-nav svg {
    fill: #f86c14;
}

#arrow-right svg:not(:first-child),
#arrow-left svg:not(:first-child) {
    margin-left: -40px;
}
#arrow-up svg:not(:first-child),
#arrow-down svg:not(:first-child) {
    margin-top: -40px;
}


@keyframes neon-pulse-svg {
    from {
        filter: drop-shadow(0 0 7px #f86c14) drop-shadow(0 0 12px #f86c14) drop-shadow(0 0 18px #f86c14);
    }
    to {
        filter: drop-shadow(0 0 10px #f86c14) drop-shadow(0 0 20px #f86c14) drop-shadow(0 0 30px #f86c14);
    }
}

#arrow-up span { margin-bottom: 10px; }
#arrow-right span { margin-right: 10px; }
#arrow-down span { margin-top: 10px; }
#arrow-left span { margin-left: 10px; }

/* Flip Card Styles */
.values-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    width: 100%;
    height: auto;
    gap: 10rem;
}

.value-card {
    background-color: transparent;
    width: 20%;
    aspect-ratio: 3 / 4;
    perspective: 1000px;
    transition: all 0.3s ease, transform 0.5s ease-out, opacity 0.5s ease-out;
}

.value-card:hover {
    box-shadow: 0 0 15px #f86c14;
}

.value-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    will-change: transform;
}

.value-card:hover .value-card-inner {
    transform: rotateY(180deg);
}

.value-card-front, .value-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    border: 1px solid #f86c14;
    border-radius: 8px;
    overflow: hidden;
}

.value-card-front {
    background: #0c0c08;
    color: #FEF9F6;
    justify-content: flex-end;
    padding-bottom: 1.5rem;
}

.value-card-front::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}


.value-card-front h3 {
    margin-bottom: 0.2rem;
}

.value-card-front img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 1;
}

.value-card-front h3, .value-card-front p {
  position: relative;
  z-index: 3;
}

.value-card-back {
    background: #f86c14;
    color: #0c0c08;
    transform: rotateY(180deg);
    overflow-y: hidden;
}

.value-card-back p {
    font-size: 1.1rem;
}

.services-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.service-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0c0c08;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
}

.service-canvas.is-active {
    z-index: 2;
}

.service-canvas[data-service="1"] {
    background-image: url('images/full-event.png');
}

.service-canvas[data-service="2"] {
    background-image: url('images/narrative.png');
}

.service-canvas[data-service="3"] {
    background-image: url('images/analytics.png');
}

.service-canvas[data-service="4"] {
    background-image: url('images/alerts.png');
}

.scene {
    position: relative;
    z-index: 4;
}

#video-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#video-canvas video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#video-canvas video.active {
    opacity: 0.1;
}
