/* Cyberpunk Aesthetic - Splinter Cell: Chaos Theory Inspired */

/* Ensure Cute Font is loaded properly */
@import url('https://fonts.googleapis.com/css2?family=Cute+Font&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Cute Font", sans-serif;
    font-weight: 400;
    background: #0a0a0a;
    color: #00ff41;
    overflow-x: hidden;
    position: relative;
}

/* Landing Page Styles */
.landing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.company-name {
    font-size: clamp(3rem, 8vw, 8rem);
    font-family: "Cute Font", sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    /* Removed text-shadow from parent - individual letters will control their own glow */
}

.letter {
    display: inline-block;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    color: #00ff41;
    text-shadow: 
        0 0 2px #00ff41,
        0 0 4px #00ff41;
    /* Removed initial animation - will be controlled by JavaScript */
}

.letter.space {
    width: 0.5em;
}

/* Main Page Styles */
.main-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    z-index: 20;
}

.main-title {
    font-size: clamp(2rem, 6vw, 5rem);
    font-family: "Cute Font", sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #00ff41;
    margin-bottom: 1rem;
    /* Removed text-shadow from parent - individual letters will control their own glow */
}

@keyframes titlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.main-nav {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
}

/* Contact info at bottom */
.contact-info {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.contact-info p {
    font-family: "Cute Font", sans-serif;
    font-size: 35px;
    color: #00ff41;
    margin: 0;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
    opacity: 0.8;
}

.nav-button {
    font-family: "Cute Font", sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 2px,
        #00ff41 2px,
        #00ff41 4px
    );
    transition: left 0.5s ease;
    z-index: 1;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button:hover {
    color: #0a0a0a;
    box-shadow: 
        0 0 15px #00ff41,
        inset 0 0 15px rgba(0, 255, 65, 0.2);
}

/* About button - animation moves left */
.about-btn::before {
    left: 100%;
    width: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 2px,
        #00ff41 2px,
        #00ff41 4px
    );
}

.about-btn:hover::before {
    left: -100%;
}

/* Contact button - animation moves right */
.contact-btn::before {
    left: -100%;
    width: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 2px,
        #00ff41 2px,
        #00ff41 4px
    );
}

.contact-btn:hover::before {
    left: 100%;
}

/* Content button - animation moves top to bottom */
.content-btn::before {
    left: 0;
    top: -100%;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        #00ff41 2px,
        #00ff41 4px
    );
    transition: top 0.5s ease;
}

.content-btn:hover::before {
    top: 100%;
}

.nav-button:hover {
    color: #0a0a0a;
    background: #00ff41;
    box-shadow: 
        0 0 10px #00ff41,
        inset 0 0 10px rgba(0, 255, 65, 0.3);
    transform: translateY(-2px);
}

.nav-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .company-name {
        font-size: clamp(2.8rem, 13vw, 5.5rem);
        letter-spacing: 0.01em;
        line-height: 1.1;
        font-weight: 400;
        text-align: center;
        width: 100%;
        padding: 0 1rem;
    }
    
    .main-title {
        font-size: clamp(1.8rem, 9vw, 3.5rem);
        letter-spacing: 0.005em;
        line-height: 1.1;
        font-weight: 400;
        text-align: center;
        width: 100%;
        padding: 0 1rem;
        word-spacing: -0.1em;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .nav-button {
        font-size: 1.3rem;
        padding: 0.9rem 2.2rem;
        font-weight: 400;
    }
    
    /* More compact topography on mobile */
    #res-canvas {
        opacity: 0.5;
    }
    
    /* Mobile responsiveness for 3D viewer */
    .model-viewer-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .model-viewer-header {
        padding: 1rem;
    }
    
    .model-viewer-header h2 {
        font-size: 1.5rem;
    }
    
    .three-canvas-container {
        margin: 0 1rem;
    }
    
    .model-controls {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .model-selector {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .model-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .company-name {
        font-size: clamp(2.3rem, 15vw, 4.5rem);
        letter-spacing: 0.01em;
        padding: 0 0.5rem;
    }
    
    .main-title {
        font-size: clamp(1.4rem, 7vw, 2.8rem);
        letter-spacing: 0;
        line-height: 1;
        font-weight: 400;
        text-align: center;
        width: 100%;
        padding: 0 0.5rem;
        word-spacing: -0.15em;
        white-space: nowrap;
    }
    
    .nav-button {
        font-size: 1.1rem;
        padding: 0.8rem 1.7rem;
    }
    
    .top-bar-content {
        font-size: 1rem;
        letter-spacing: 0.05em;
    }
}

/* Topography Canvas Background */
#res-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.75;
    pointer-events: none;
    transform: scale(0.75);
    transform-origin: center center;
}

/* Full screen animation for content page only */
.content-page #res-canvas {
    transform: scale(1);
}

/* Video Section Styles */
.video-section {
    position: relative;
    z-index: 20;
    min-height: 200vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.video-section .video-container:first-child {
    margin-top: 50vh;
    margin-bottom: 50vh;
}

.video-section .video-container:last-child {
    margin-bottom: 50vh;
}

/* 3D Model Viewer Styles */
.model-viewer-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.model-viewer-container {
    width: 95%;
    height: 90%;
    max-width: 1400px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(26, 26, 46, 0.8));
    border: 2px solid #00ff41;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.5),
        inset 0 0 30px rgba(0, 255, 65, 0.1);
}

.model-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #00ff41;
}

.model-viewer-header h2 {
    font-family: "Cute Font", sans-serif;
    font-size: 2rem;
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41;
    margin: 0;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.close-viewer-btn {
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
    font-family: "Cute Font", sans-serif;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-viewer-btn:hover {
    background: #00ff41;
    color: #0a0a0a;
    box-shadow: 0 0 15px #00ff41;
}

.three-canvas-container {
    flex: 1;
    position: relative;
    background: #000;
    border: 1px solid #00ff41;
    margin: 0 2rem;
}

.three-canvas-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 65, 0.1) 50%
    );
    background-size: 100% 4px;
    animation: scanlines 2s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes scanlines {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

.model-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid #00ff41;
}

.model-info p {
    font-family: "Cute Font", sans-serif;
    color: #00ff41;
    margin: 0;
    font-size: 1.1rem;
}

.model-selector {
    display: flex;
    gap: 1rem;
}

.model-btn {
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
    font-family: "Cute Font", sans-serif;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.model-btn:hover {
    background: #00ff41;
    color: #0a0a0a;
    box-shadow: 0 0 15px #00ff41;
}

.model-btn.active {
    background: #00ff41;
    color: #0a0a0a;
    box-shadow: 0 0 15px #00ff41;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    border: 2px solid #00ff41;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.5),
        inset 0 0 30px rgba(0, 255, 65, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

#youtube-video,
#youtube-video-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 13px;
}

/* Back Button Styling */
.back-button-container {
    position: fixed;
    top: 2rem;
    left: 25%;
    z-index: 1000;
}

.back-button-container .back-btn {
    background: transparent;
    border: none;
    color: #00ff41;
    padding: 0.8rem 1.5rem;
    font-family: "Cute Font", sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    transition: border-bottom 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid transparent;
}

.back-button-container .back-btn:hover {
    border-bottom: 2px solid #00ff41;
}

/* Responsive Video */
@media (max-width: 768px) {
    .video-section {
        padding: 1rem;
    }
    
    .video-container {
        border-radius: 10px;
    }
    
    #youtube-video {
        border-radius: 8px;
    }
    
    .back-button-container {
        left: 15%;
    }
}
