/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    height: 100%;
    /* Hide default scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer and Edge */
}

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

body {
    font-family: 'Exo 2', sans-serif;
    background: #0a0a0f;
    color: #e4e4e7;
    overflow-x: hidden;
    line-height: 1.6;
    height: 100%;
    scroll-snap-type: y mandatory;
    /* Hide default scrollbar for body too */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer and Edge */
}

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

/* Custom Scroll Indicator - Horizontal Top Navigation */
.scroll-indicator {
    position: fixed;
    top: 2rem;
    left: 30%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    max-width: 90vw;
    height: 20px;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-2px);
}

.scroll-section {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.scroll-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 191, 255, 0.2) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
    z-index: 1;
    border-radius: 25px;
}

.scroll-section:hover::before {
    left: 100%;
}

.scroll-section:hover {
    background: rgba(0, 191, 255, 0.2);
    border-color: rgba(0, 191, 255, 0.4);
    transform: translateY(-1px);
}

.scroll-section.active {
    background: rgba(0, 191, 255, 0.25);
    border: 1px solid rgba(0, 191, 255, 0.6);
    box-shadow: 
        0 0 10px rgba(0, 191, 255, 0.4);
    animation: activeSection 2s ease-in-out infinite alternate;
}

@keyframes activeSection {
    0% {
        box-shadow: 0 0 10px rgba(0, 191, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 15px rgba(0, 191, 255, 0.6);
    }
}

.scroll-section.active .section-dot {
    background: #00bfff;
    box-shadow: 
        0 0 15px rgba(0, 191, 255, 1),
        0 0 30px rgba(0, 191, 255, 0.5);
    animation: activeDot 1.5s ease-in-out infinite alternate;
}

@keyframes activeDot {
    0% {
        transform: scale(1);
        box-shadow: 
            0 0 15px rgba(0, 191, 255, 1),
            0 0 30px rgba(0, 191, 255, 0.5);
    }
    100% {
        transform: scale(1.3);
        box-shadow: 
            0 0 20px rgba(0, 191, 255, 1),
            0 0 40px rgba(0, 191, 255, 0.8);
    }
}

.section-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(0, 191, 255, 0.5);
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.scroll-section:hover .section-dot {
    background: rgba(0, 191, 255, 0.6);
    border-color: rgba(0, 191, 255, 0.8);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.8);
    transform: scale(1.1);
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #e4e4e7;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.scroll-section:hover .section-label {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.scroll-section.active .section-label {
    color: #00bfff;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.8);
    animation: labelGlow 2s ease-in-out infinite alternate;
}

@keyframes labelGlow {
    0% {
        text-shadow: 0 0 10px rgba(0, 191, 255, 0.8);
    }
    100% {
        text-shadow: 
            0 0 15px rgba(0, 191, 255, 1),
            0 0 25px rgba(0, 191, 255, 0.5);
    }
}

/* Progress Line - Horizontal behind the sections */
.scroll-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 50%;
    transform: translateY(50%);
    height: 2px;
    background: rgba(0, 191, 255, 0.2);
    border-radius: 1px;
    overflow: hidden;
    z-index: -1;
}

.scroll-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, 
        #00bfff 0%,
        #ff006f  50%,
        #00ff88 100%
    );
    transition: width 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 191, 255, 0.8);
    border-radius: 1px;
}

/* Connection lines between dots */
.scroll-indicator::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(0, 191, 255, 0.3) 0%,
        rgba(0, 191, 255, 0.5) 20%,
        rgba(255, 0, 111, 0.4) 40%,
        rgba(0, 191, 255, 0.5) 60%,
        rgba(255, 0, 111, 0.4) 80%,
        rgba(0, 191, 255, 0.3) 100%
    );
    transform: translateY(-50%);
    z-index: -2;
    animation: connectionFlow 4s ease-in-out infinite;
}

@keyframes connectionFlow {
    0%, 100% { 
        opacity: 0.5;
        box-shadow: 0 0 3px rgba(0, 191, 255, 0.3);
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 8px rgba(0, 191, 255, 0.6);
    }
}

/* Mobile Responsive Scroll Indicator */
@media (max-width: 768px) {
    .scroll-indicator {
        top: 1rem;
        left: 50%;
        gap: 0.8rem;
        max-width: 95vw;
    }
    
    .scroll-section {
        padding: 0.2rem 0.5rem;
        gap: 0.4rem;
    }
    
    .section-dot {
        width: 10px;
        height: 10px;
    }
    
    .section-label {
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    /* HIDE Command Center Protocol section completely on mobile */
    .process {
        display: none !important;
    }
    
    /* HIDE Process section from scroll indicator on mobile */
    .scroll-section[data-section="process"] {
        display: none !important;
    }
    
    /* HIDE Project Showcase section completely on mobile */
    .projects-showcase {
        display: none !important;
    }
    
    /* HIDE Project Showcase section from scroll indicator on mobile */
    .scroll-section[data-section="case-studies"] {
        display: none !important;
    }

    /* MOBILE VIEWPORT FIXES - Ensure all sections fit within viewport */
    section {
        min-height: 100vh;
        max-height: 100vh;
        height: 100vh;
        padding: 1rem;
        overflow: hidden;
    }

    .section-content {
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: calc(100vh - 2rem);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .scroll-indicator {
        top: 1.5rem;
        left: 50%;
        gap: 0.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        height: 40px; /* Fixed height to contain content */
        padding: 0.5rem 0;
        align-items: center;
        /* Ensure scroll indicator stays within viewport */
        box-sizing: border-box;
        /* Prevent any viewport overflow */
        max-width: calc(100vw - 2rem);
        margin: 0 1rem;
        /* Hide scrollbar completely */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .scroll-indicator::-webkit-scrollbar {
        display: none;
    }
    
    .scroll-section {
        padding: 0.4rem 0.6rem;
        gap: 0.4rem;
        flex-shrink: 0;
        min-width: auto;
        height: 30px; /* Fixed height to prevent overflow */
        align-items: center;
        display: flex;
        justify-content: center;
        /* Ensure sections don't get cut off */
        box-sizing: border-box;
        /* Prevent any internal overflow */
        overflow: hidden;
    }
    
    .section-dot {
        width: 8px;
        height: 8px;
        border-width: 1px;
        flex-shrink: 0;
    }
    
    .section-label {
        font-size: 9px;
        letter-spacing: 0.3px;
        line-height: 1;
        white-space: nowrap;
        flex-shrink: 0;
        /* Prevent text from causing overflow */
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Hide scroll indicator when debug overlay is active */
.debug-overlay.active ~ .scroll-indicator {
    display: none;
}

/* Extra small screens - show dots only */
@media (max-width: 375px) {
    .section-label {
        display: none;
    }
    
    .scroll-section {
        padding: 0.2rem;
        min-width: auto;
    }
    
    .scroll-indicator {
        gap: 0.3rem;
    }
}

/* Grid Overlay Background */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(0, 191, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 191, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.1; }
}

/* Section Base Styles */
section {
    min-height: 100vh;
    height: 100vh;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    -webkit-scroll-snap-coordinate: 0 0;
    scroll-snap-coordinate: 0 0;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* Mobile Notice Styles */
.mobile-notice {
    display: none;
    position: relative;
    z-index: 10;
    margin-bottom: 1rem;
}

.mobile-notice-content {
    background: linear-gradient(135deg, rgba(255, 0, 111, 0.1), rgba(0, 191, 255, 0.1));
    border: 1px solid rgba(0, 191, 255, 0.4);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.2);
}

.mobile-notice-icon {
    font-size: 1.2rem;
    filter: grayscale(100%);
}

.mobile-notice-content p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #e4e4e7;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

/* Hero Section */
.hero {
    background: radial-gradient(ellipse at center, rgba(0, 191, 255, 0.1) 0%, transparent 70%);
    position: relative;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.company-name {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
}

.tagline-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    min-height: 80px;
}

.tagline {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: #00bfff;
    text-shadow: 0 0 30px rgba(0, 191, 255, 0.8);
    margin-right: 0.5rem;
}

.cursor {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: #00bfff;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.tagline.complete {
    animation: lockIn 0.5s ease-out;
}

@keyframes lockIn {
    0% { transform: scale(1); }
    50% { 
        transform: scale(1.05);
        text-shadow: 0 0 50px rgba(0, 191, 255, 1), 0 0 100px rgba(0, 191, 255, 0.5);
    }
    100% { 
        transform: scale(1);
        text-shadow: 0 0 30px rgba(0, 191, 255, 0.8);
    }
}

/* Sub-tagline Split Layout - Positioned around mountain SVG area */
.sub-tagline-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 3rem 0;
    max-width: 2200px;
    margin-left: auto;
    margin-right: auto;
    gap: 12rem;
    position: relative;
    z-index: 3;
}

.sub-tagline-left,
.sub-tagline-right {
    flex: 1;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #a1a1aa;
    font-weight: 300;
    line-height: 1.6;
}

.sub-tagline-left {
    text-align: right;
}

.sub-tagline-right {
    text-align: left;
}

.sub-tagline-left p,
.sub-tagline-right p {
    margin: 0.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.sub-tagline-left p:nth-child(1) { animation-delay: 4s; }
.sub-tagline-left p:nth-child(2) { animation-delay: 4.2s; }
.sub-tagline-right p:nth-child(1) { animation-delay: 4.4s; }
.sub-tagline-right p:nth-child(2) { animation-delay: 4.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-primary {
    background: linear-gradient(135deg, #00bfff, #0080ff);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.4);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 30px rgba(0, 191, 255, 0.6);
}

.cta-secondary {
    background: transparent;
    color: #00bfff;
    border: 2px solid #00bfff;
}

.cta-secondary:hover {
    background: rgba(0, 191, 255, 0.1);
    transform: translateY(-2px);
}

/* Floating Nodes */
.floating-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00bfff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.8);
    animation: float 6s ease-in-out infinite;
}

.node-1 { top: 20%; left: 10%; animation-delay: 0s; }
.node-2 { top: 30%; right: 15%; animation-delay: 1s; }
.node-3 { bottom: 40%; left: 20%; animation-delay: 2s; }
.node-4 { bottom: 20%; right: 25%; animation-delay: 3s; }
.node-5 { top: 60%; left: 50%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Philosophy Section */
.philosophy {
    background: linear-gradient(135deg, rgba(255, 0, 111, 0.05) 0%, rgba(0, 191, 255, 0.05) 100%);
    position: relative;
    overflow: visible;
}

.philosophy .section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    overflow: hidden;
}

.philosophy-visual {
    display: flex;
    justify-content: center;
    position: relative;
    overflow: visible;
    padding: 70px;
}

/* Holographic Display */
.holographic-display {
    position: relative;
    width: 400px;
    height: 500px;
    perspective: 1000px;
    animation: holoFloat 8s ease-in-out infinite;
    overflow-x: hidden;
}

@keyframes holoFloat {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    25% { transform: translateY(-10px) rotateY(5deg); }
    50% { transform: translateY(0px) rotateY(0deg); }
    75% { transform: translateY(-5px) rotateY(-3deg); }
}

.holo-screen {
    width: auto;
    height: auto;
    background: linear-gradient(135deg, 
        rgba(0, 191, 255, 0.05) 0%,
        rgba(0, 191, 255, 0.15) 20%,
        rgba(255, 0, 111, 0.05) 40%,
        rgba(0, 191, 255, 0.1) 60%,
        rgba(255, 0, 111, 0.08) 80%,
        rgba(0, 191, 255, 0.05) 100%
    );
    backdrop-filter: blur(0.5px);
    border: 2px solid rgba(0, 191, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(0, 191, 255, 0.3),
        inset 0 0 30px rgba(0, 191, 255, 0.1),
        0 0 60px rgba(255, 0, 111, 0.2);
    transform: rotateX(5deg) rotateY(-5deg);
    animation: holoScreenGlow 4s ease-in-out infinite;
}

@keyframes holoScreenGlow {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(0, 191, 255, 0.3),
            inset 0 0 30px rgba(0, 191, 255, 0.1),
            0 0 60px rgba(255, 0, 111, 0.2);
    }
    50% {
        box-shadow: 
            0 0 50px rgba(0, 191, 255, 0.5),
            inset 0 0 50px rgba(0, 191, 255, 0.2),
            0 0 100px rgba(255, 0, 111, 0.4);
    }
}

.holo-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    animation: holoScanline 3s linear infinite;
}

@keyframes holoScanline {
    0% { left: -100%; }
    100% { left: 100%; }
}

.holo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 191, 255, 0.3);
}

.holo-status-light {
    width: 12px;
    height: 12px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.holo-title {
    font-family: 'JetBrains Mono', monospace;
    color: #00bfff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.8);
    animation: titleFlicker 5s ease-in-out infinite;
}

@keyframes titleFlicker {
    0%, 98%, 100% { opacity: 1; }
    99% { opacity: 0.8; }
}

.holo-signal-bars {
    display: flex;
    gap: 3px;
    align-items: end;
}

.holo-signal-bars .bar {
    width: 4px;
    background: linear-gradient(to top, #ff006f, #00bfff);
    border-radius: 2px;
    animation: signalPulse 1.5s ease-in-out infinite;
}

.holo-signal-bars .bar:nth-child(1) { 
    height: 8px;
    animation-delay: 0s;
}
.holo-signal-bars .bar:nth-child(2) { 
    height: 12px;
    animation-delay: 0.2s;
}
.holo-signal-bars .bar:nth-child(3) { 
    height: 16px;
    animation-delay: 0.4s;
}
.holo-signal-bars .bar:nth-child(4) { 
    height: 20px;
    animation-delay: 0.6s;
}

@keyframes signalPulse {
    0%, 100% { 
        opacity: 0.6;
        transform: scaleY(1);
    }
    50% { 
        opacity: 1;
        transform: scaleY(1.2);
    }
}

.code-display {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.code-line {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
    margin: 3px 0;
    opacity: 0;
    animation: codeTypeIn 0.8s ease-out forwards;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes codeTypeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.code-line:nth-child(1) { animation-delay: 0.2s; }
.code-line:nth-child(2) { animation-delay: 0.4s; }
.code-line:nth-child(3) { animation-delay: 0.6s; }
.code-line:nth-child(4) { animation-delay: 0.8s; }
.code-line:nth-child(5) { animation-delay: 1.0s; }
.code-line:nth-child(6) { animation-delay: 1.2s; }

.code-keyword { color: #ff006f; text-shadow: 0 0 2px rgba(255, 0, 111, 0.4); }
.code-class { color: #00bfff; text-shadow: 0 0 2px rgba(0, 191, 255, 0.4); }
.code-method { color: #00ff88; text-shadow: 0 0 2px rgba(0, 255, 136, 0.4); }
.code-string { color: #ffaa00; text-shadow: 0 0 2px rgba(255, 170, 0, 0.4); }
.code-comment { color: #888888; font-style: italic; }

.metrics-display {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.metric-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 500;
}

.metric-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #00bfff;
    font-weight: 700;
    text-shadow: 0 0 3px rgba(0, 191, 255, 0.3);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.metric-bar {
    flex: 1;
    height: 4px;
    background: rgba(0, 191, 255, 0.2);
    margin: 0 10px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff006f, #00bfff, #00ff88);
    border-radius: 2px;
    animation: metricPulse 3s ease-in-out infinite;
    position: relative;
}

.metric-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: metricShine 2s linear infinite;
}

@keyframes metricPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes metricShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.holo-glow {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: radial-gradient(ellipse at center,
        rgba(0, 191, 255, 0.1) 0%,
        rgba(255, 0, 111, 0.05) 40%,
        transparent 80%
    );
    border-radius: 25px;
    z-index: -1;
    animation: holoGlowPulse 6s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes holoGlowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Interactive hologram effects */
.holographic-display:hover .holo-screen {
    transform: rotateX(0deg) rotateY(0deg);
    transition: transform 0.5s ease;
}

.holographic-display:hover .holo-glow {
    animation-duration: 2s;
}

/* Removed gear and connection line animations - replaced with Matrix effects */

/* Philosophy Matrix-Style Animations */
@keyframes matrixFall {
    0% { 
        transform: translateY(-100px);
        opacity: 0;
    }
    10% { 
        opacity: 1;
    }
    90% { 
        opacity: 1;
    }
    100% { 
        transform: translateY(calc(100vh + 100px));
        opacity: 0;
    }
}

@keyframes digitalGlitch {
    0% { 
        transform: translateX(0);
        text-shadow: 0 0 20px #00bfff;
    }
    10% { 
        transform: translateX(-2px);
        text-shadow: 2px 0 #ff006f, -2px 0 #00bfff;
    }
    20% { 
        transform: translateX(2px);
        text-shadow: -2px 0 #ff006f, 2px 0 #00bfff;
    }
    30% { 
        transform: translateX(-1px);
        text-shadow: 1px 0 #ff006f, -1px 0 #00bfff;
    }
    40% { 
        transform: translateX(1px);
        text-shadow: -1px 0 #ff006f, 1px 0 #00bfff;
    }
    50% { 
        transform: translateX(0);
        text-shadow: 0 0 20px #00bfff;
    }
    100% { 
        transform: translateX(0);
        text-shadow: 0 0 20px #00bfff, 0 0 40px #00bfff;
    }
}

@keyframes typewriterEffect {
    0% { 
        width: 0;
        opacity: 0;
    }
    1% { 
        opacity: 1;
    }
    100% { 
        width: 100%;
        opacity: 1;
    }
}

@keyframes dataStream {
    0% { 
        transform: translateX(-100%);
        opacity: 0;
    }
    10% { 
        opacity: 1;
    }
    90% { 
        opacity: 1;
    }
    100% { 
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Matrix container styling */
.matrix-container {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: none;
}

/* Philosophy text effects */
.philosophy h3 {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #ff006f;
    animation: typewriterEffect 2s steps(40) forwards;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.philosophy-text {
    text-align: left;
    animation: fadeInUp 1s ease-out 0.5s both;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.philosophy h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: #00bfff;
    margin-bottom: 1rem;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
    }
    50% { 
        text-shadow: 0 0 30px rgba(0, 191, 255, 0.8), 0 0 40px rgba(0, 191, 255, 0.3);
    }
}

.philosophy h3 {
    font-size: 1.8rem;
    color: #ff006f;
    margin-bottom: 1.5rem;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.philosophy p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #a1a1aa;
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* Process Section - Command Center */
.process {
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 191, 255, 0.03) 0%, transparent 70%);
    overflow: hidden;
}

.process h2 {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    color: #00bfff;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
    position: relative;
}

.process h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00bfff, transparent);
    animation: titleUnderline 3s ease-in-out infinite;
}

@keyframes titleUnderline {
    0%, 100% { width: 200px; opacity: 0.5; }
    50% { width: 300px; opacity: 1; }
}

/* Command Center Layout */
.command-center {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 450px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Central Nexus Core */
.center-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #00bfff;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.2) 0%, rgba(255, 0, 111, 0.1) 50%, transparent 100%);
    animation: corePulse 3s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(0, 191, 255, 0.5),
        inset 0 0 20px rgba(0, 191, 255, 0.2);
}

@keyframes corePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 191, 255, 0.5), inset 0 0 20px rgba(0, 191, 255, 0.2);
    }
    50% { 
        transform: scale(1.2);
        box-shadow: 0 0 40px rgba(0, 191, 255, 0.8), inset 0 0 40px rgba(0, 191, 255, 0.4);
    }
}

.core-ring {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(255, 0, 111, 0.3);
    border-radius: 50%;
    animation: coreRotate 20s linear infinite;
    background: conic-gradient(from 0deg, transparent, rgba(255, 0, 111, 0.2), transparent);
}

@keyframes coreRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.core-text {
    position: relative;
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(0, 191, 255, 0.8);
    letter-spacing: 3px;
    z-index: 2;
    animation: coreTextGlow 2s ease-in-out infinite alternate;
}

@keyframes coreTextGlow {
    0% { 
        text-shadow: 0 0 15px rgba(0, 191, 255, 0.8);
        color: #ffffff;
    }
    100% { 
        text-shadow: 0 0 25px rgba(0, 191, 255, 1), 0 0 35px rgba(255, 0, 111, 0.5);
        color: #00bfff;
    }
}

/* Process Terminals */
.process-terminal {
    position: absolute;
    width: 352px;
    height: 220px;
    opacity: 0;
    animation: terminalSlideIn 1s ease-out forwards;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 5rem;
}

.process-terminal:hover {
    transform: scale(1.05);
    z-index: 15;
}

/* Terminal Positioning */
.terminal-1 {
    top: -10px;
    left: 60px;
    animation-delay: 0.5s;
}

.terminal-2 {
    top: -10px;
    right: 60px;
    animation-delay: 1s;
}

.terminal-3 {
    bottom: -10px;
    left: 60px;
    margin-bottom: -20px;
    animation-delay: 1.5s;
}

.terminal-4 {
    bottom: -10px;
    right: 60px;
    margin-bottom: -20px;
    animation-delay: 2s;
}

@keyframes terminalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Terminal Screen Styling */
.terminal-screen {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 191, 255, 0.05) 20%,
        rgba(0, 0, 0, 0.95) 100%
    );
    border: 2px solid rgba(0, 191, 255, 0.4);
    border-radius: 8px;
    padding: 15px;
    /* margin-bottom: 5px; */
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(0, 191, 255, 0.2),
        inset 0 0 20px rgba(0, 191, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.terminal-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 191, 255, 0.1) 50%,
        transparent 100%
    );
    animation: terminalScan 4s linear infinite;
}

@keyframes terminalScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.process-terminal:hover .terminal-screen {
    border-color: rgba(0, 191, 255, 0.8);
    box-shadow: 
        0 0 30px rgba(0, 191, 255, 0.4),
        inset 0 0 30px rgba(0, 191, 255, 0.2);
}

/* Terminal Header */
.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0, 191, 255, 0.3);
    flex-shrink: 0;
}

.terminal-status {
    width: 6px;
    height: 6px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
    animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 80%, 100% { opacity: 1; }
    90% { opacity: 0.3; }
}

.terminal-header span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: #00bfff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Terminal Content */
.terminal-content {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    padding-top: 5px;
    color: #ffffff;
}

.code-output {
    margin: 2px 0;
    opacity: 0;
    animation: codeTypeEffect 0.6s ease-out forwards;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #e4e4e7;
}

.terminal-1 .code-output:nth-child(1) { animation-delay: 1s; }
.terminal-1 .code-output:nth-child(2) { animation-delay: 1.3s; }
.terminal-2 .code-output:nth-child(1) { animation-delay: 1.5s; }
.terminal-2 .code-output:nth-child(2) { animation-delay: 1.8s; }
.terminal-3 .code-output:nth-child(1) { animation-delay: 2s; }
.terminal-3 .code-output:nth-child(2) { animation-delay: 2.3s; }
.terminal-4 .code-output:nth-child(1) { animation-delay: 2.5s; }
.terminal-4 .code-output:nth-child(2) { animation-delay: 2.8s; }

@keyframes codeTypeEffect {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.prompt {
    color: #ff006f;
    margin-right: 6px;
}

.success {
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

/* Terminal Info */
.terminal-info {
    text-align: center;
}

.terminal-info h3 {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.terminal-info p {
    font-size: 14px;
    color: #a1a1aa;
    font-style: italic;
}

/* Data Flow Lines */
.data-flow {
    position: absolute;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 191, 255, 0.8) 20%,
        rgba(255, 0, 111, 0.6) 50%,
        rgba(0, 191, 255, 0.8) 80%,
        transparent 100%
    );
    height: 2px;
    opacity: 0;
    animation: dataFlowPulse 3s ease-in-out infinite;
    z-index: 5;
}

.data-flow-1 {
    width: 120px;
    top: 130px;
    left: 352px;
    transform-origin: left center;
    transform: rotate(45deg);
    animation-delay: 3s;
}

.data-flow-2 {
    width: 120px;
    top: 130px;
    right: 352px;
    transform-origin: right center;
    transform: rotate(-45deg);
    animation-delay: 3.5s;
}

.data-flow-3 {
    width: 120px;
    bottom: 130px;
    left: 352px;
    transform-origin: left center;
    transform: rotate(-45deg);
    animation-delay: 4s;
}

.data-flow-4 {
    width: 120px;
    bottom: 130px;
    right: 352px;
    transform-origin: right center;
    transform: rotate(45deg);
    animation-delay: 4.5s;
}

@keyframes dataFlowPulse {
    0%, 70%, 100% { 
        opacity: 0;
        box-shadow: none;
    }
    10%, 60% { 
        opacity: 1;
        box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
    }
}

/* Interactive Effects */
.process-terminal:hover .data-flow {
    animation-duration: 1s;
    opacity: 1;
}

.process-terminal:hover .terminal-status {
    animation-duration: 0.5s;
    box-shadow: 0 0 15px rgba(0, 255, 0, 1);
}

/* Command Center Background Effects */
.command-center::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 191, 255, 0.1);
    border-radius: 50%;
    animation: backgroundRing1 15s linear infinite;
}

.command-center::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 450px;
    height: 450px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 0, 111, 0.1);
    border-radius: 50%;
    animation: backgroundRing2 20s linear infinite reverse;
}

@keyframes backgroundRing1 {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes backgroundRing2 {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Projects Showcase Section */
.projects-showcase {
    background: radial-gradient(ellipse at center, rgba(255, 0, 111, 0.03) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.projects-showcase h2 {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    color: #ff006f;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 0, 111, 0.5);
    position: relative;
}

.projects-showcase h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff006f, transparent);
    animation: titleUnderline 3s ease-in-out infinite;
}

/* Projects Container */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Project Cards */
.project-card {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 191, 255, 0.05) 20%,
        rgba(0, 0, 0, 0.9) 100%
    );
    border: 2px solid rgba(0, 191, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 191, 255, 0.8);
    box-shadow: 
        0 10px 30px rgba(0, 191, 255, 0.2),
        0 0 40px rgba(0, 191, 255, 0.1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 191, 255, 0.1) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
}

.project-card:hover::before {
    left: 100%;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
}

.project-status {
    font-family: 'JetBrains Mono', monospace;
    color: #00ff88;
    font-size: 11px;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
    animation: statusGlow 2s ease-in-out infinite alternate;
}

@keyframes statusGlow {
    0% { box-shadow: 0 0 5px rgba(0, 255, 136, 0.3); }
    100% { box-shadow: 0 0 15px rgba(0, 255, 136, 0.6); }
}

.project-code {
    font-family: 'Orbitron', monospace;
    color: #00bfff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.8);
}

/* Card Content */
.card-content h3 {
    font-family: 'Orbitron', monospace;
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.card-content p {
    color: #e4e4e7;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Tech List */
.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255, 0, 111, 0.1);
    color: #ff006f;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255, 0, 111, 0.3);
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 0 3px rgba(255, 0, 111, 0.5);
    transition: all 0.3s ease;
}

.tech:hover {
    background: rgba(255, 0, 111, 0.2);
    border-color: rgba(255, 0, 111, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255, 0, 111, 0.3);
}

/* Performance Bar */
.performance-bar {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00bfff, #00ff88);
    border-radius: 20px;
    position: relative;
    transition: width 1s ease;
    animation: barGlow 2s ease-in-out infinite alternate;
}

@keyframes barGlow {
    0% { box-shadow: 0 0 5px rgba(0, 191, 255, 0.5); }
    100% { box-shadow: 0 0 15px rgba(0, 191, 255, 0.8), 0 0 25px rgba(0, 255, 136, 0.3); }
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: barShine 3s ease-in-out infinite;
}

@keyframes barShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.performance-text {
    font-family: 'JetBrains Mono', monospace;
    color: #00bfff;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.5);
    margin-top: 0.5rem;
    display: block;
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(ellipse at center,
        rgba(0, 191, 255, 0.05) 0%,
        rgba(255, 0, 111, 0.02) 40%,
        transparent 70%
    );
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .card-glow {
    opacity: 1;
}

/* Project Card Animations on Scroll */
.project-card {
    opacity: 0;
    transform: translateY(30px);
    animation: cardSlideIn 0.8s ease-out forwards;
}

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes cardSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Projects */
@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .card-content h3 {
        font-size: 1.3rem;
    }
    
    .tech-list {
        gap: 0.3rem;
    }
    
    .tech {
        font-size: 10px;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .projects-showcase h2 {
        font-size: 2rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .project-status,
    .project-code {
        font-size: 10px;
    }
}

/* Contact Section - Communication Hub */
.contact {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), #000000);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    max-height: none;
    padding: 2rem;
}

.contact .section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1400px;
    height: 100%;
    max-height: none;
}

/* Communication Hub Visual */
.contact-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    max-height: none;
}

.communication-hub {
    position: relative;
    width: 350px;
    height: 350px;
    animation: hubRotation 30s linear infinite;
}

@keyframes hubRotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hub Core */
.hub-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
}

.central-node {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #ff006f, #00bfff);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: centralPulse 2s ease-in-out infinite;
    box-shadow: 
        0 0 30px rgba(255, 0, 111, 0.8),
        0 0 60px rgba(0, 191, 255, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    z-index: 10;
}

@keyframes centralPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 
            0 0 30px rgba(255, 0, 111, 0.8),
            0 0 60px rgba(0, 191, 255, 0.6),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 
            0 0 50px rgba(255, 0, 111, 1),
            0 0 100px rgba(0, 191, 255, 0.8),
            inset 0 0 30px rgba(255, 255, 255, 0.3);
    }
}

/* Orbital Rings */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: orbitRotate 15s linear infinite;
}

.orbit-1 {
    width: 160px;
    height: 160px;
    border-color: rgba(0, 191, 255, 0.4);
    animation-duration: 20s;
}

.orbit-2 {
    width: 220px;
    height: 220px;
    border-color: rgba(255, 0, 111, 0.3);
    animation-duration: 30s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 280px;
    height: 280px;
    border-color: rgba(0, 191, 255, 0.2);
    animation-duration: 40s;
}

@keyframes orbitRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Communication Satellites */
.comm-satellite {
    position: absolute;
    width: 20px;
    height: 20px;
    animation: satelliteOrbit 12s linear infinite;
}

.sat-1 {
    top: 10%;
    left: 60%;
    animation-delay: 0s;
}

.sat-2 {
    top: 40%;
    right: 5%;
    animation-delay: -3s;
}

.sat-3 {
    bottom: 15%;
    right: 45%;
    animation-delay: -6s;
}

.sat-4 {
    bottom: 40%;
    left: 8%;
    animation-delay: -9s;
}

@keyframes satelliteOrbit {
    0% { transform: rotate(0deg) translateX(100px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

.sat-body {
    width: 12px;
    height: 8px;
    background: linear-gradient(135deg, #00bfff, #0080ff);
    border-radius: 2px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.8);
}

.sat-antenna {
    width: 2px;
    height: 6px;
    background: #ffffff;
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.signal-beam {
    position: absolute;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(0, 191, 255, 0.8) 0%,
        rgba(255, 0, 111, 0.6) 50%,
        transparent 100%
    );
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    animation: signalPulse 2s ease-in-out infinite;
}

@keyframes signalPulse {
    0%, 100% { 
        opacity: 0.3;
        transform: translateY(-50%) scaleX(1);
    }
    50% { 
        opacity: 1;
        transform: translateY(-50%) scaleX(1.2);
    }
}

/* Data Streams */
.data-stream {
    position: absolute;
    width: 2px;
    background: linear-gradient(0deg, 
        transparent 0%,
        rgba(0, 191, 255, 0.8) 20%,
        rgba(255, 0, 111, 0.6) 50%,
        rgba(0, 191, 255, 0.8) 80%,
        transparent 100%
    );
    animation: dataFlow 3s ease-in-out infinite;
}

.stream-1 {
    height: 60px;
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.stream-2 {
    height: 80px;
    top: 15%;
    right: 25%;
    animation-delay: 0.5s;
}

.stream-3 {
    height: 70px;
    bottom: 20%;
    left: 25%;
    animation-delay: 1s;
}

.stream-4 {
    height: 90px;
    bottom: 15%;
    right: 30%;
    animation-delay: 1.5s;
}

@keyframes dataFlow {
    0%, 100% { 
        opacity: 0;
        transform: scaleY(0);
    }
    50% { 
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Contact Terminal */
.contact-terminal {
    position: relative;
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
}

.terminal-frame {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 191, 255, 0.05) 20%,
        rgba(0, 0, 0, 0.98) 100%
    );
    border: 2px solid rgba(0, 191, 255, 0.4);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(0, 191, 255, 0.3),
        inset 0 0 30px rgba(0, 191, 255, 0.1);
    animation: terminalGlow 4s ease-in-out infinite;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@keyframes terminalGlow {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(0, 191, 255, 0.3),
            inset 0 0 30px rgba(0, 191, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 50px rgba(0, 191, 255, 0.5),
            inset 0 0 50px rgba(0, 191, 255, 0.2);
    }
}

/* Terminal Header */
.terminal-header {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1), rgba(255, 0, 111, 0.05));
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 191, 255, 0.3);
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: controlPulse 2s ease-in-out infinite;
}

.minimize { 
    background: #ffaa00;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.6);
}
.maximize { 
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}
.close { 
    background: #ff006f;
    box-shadow: 0 0 10px rgba(255, 0, 111, 0.6);
}

@keyframes controlPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #00bfff;
}

.terminal-prompt {
    color: #ff006f;
    font-weight: 600;
}

.terminal-path {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.signal-strength {
    display: flex;
    gap: 3px;
    align-items: end;
}

.signal-bar {
    width: 4px;
    background: linear-gradient(to top, #ff006f, #00bfff);
    border-radius: 2px;
    animation: signalStrength 1.5s ease-in-out infinite;
}

.signal-bar:nth-child(1) { 
    height: 8px;
    animation-delay: 0s;
}
.signal-bar:nth-child(2) { 
    height: 12px;
    animation-delay: 0.2s;
}
.signal-bar:nth-child(3) { 
    height: 16px;
    animation-delay: 0.4s;
}
.signal-bar:nth-child(4) { 
    height: 20px;
    animation-delay: 0.6s;
}

@keyframes signalStrength {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Terminal Content */
.terminal-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.system-info {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 6px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.info-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    margin-bottom: 0.5rem;
}

.info-label {
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    color: #00bfff;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.5);
}

.status-online {
    color: #00ff88 !important;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5) !important;
    animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.5; }
}

/* Transmission Header */
.transmission-header {
    text-align: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.transmission-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #00bfff;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 191, 255, 0.8);
    animation: titleFlicker 5s ease-in-out infinite;
}

@keyframes titleFlicker {
    0%, 98%, 100% { opacity: 1; }
    99% { opacity: 0.8; }
}

.subtitle {
    color: #ff006f;
    font-size: 1.1rem;
    font-weight: 300;
    text-shadow: 0 0 10px rgba(255, 0, 111, 0.5);
}

/* Enhanced Form Styling */
.contact-form {
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    overflow: hidden;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 191, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: #00bfff;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 0 20px rgba(0, 191, 255, 0.4),
        inset 0 0 20px rgba(0, 191, 255, 0.1);
    color: #00bfff;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.3);
}

.textarea-wrapper textarea {
    min-height: 80px;
    max-height: 120px;
    resize: vertical;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* Input Scanner Effect */
.input-scanner {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 191, 255, 0.2) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.input-wrapper:focus-within .input-scanner {
    left: 100%;
}

/* Character Counter */
.char-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #a1a1aa;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 3;
}

/* Transmission Button */
.transmission-button {
    position: relative;
    background: linear-gradient(135deg, #ff006f, #ff4081);
    color: #ffffff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.transmission-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(255, 0, 111, 0.4),
        0 0 60px rgba(255, 0, 111, 0.2);
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: btnSpin 1s linear infinite;
    opacity: 0;
}

@keyframes btnSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.transmission-button.transmitting .btn-loader {
    opacity: 1;
}

.transmission-button.transmitting .btn-text {
    opacity: 0.7;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
}

.transmission-button:hover .btn-glow {
    left: 100%;
}

/* Transmission Status */
.transmission-status {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #ffaa00;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.6);
}

@keyframes statusPulse {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2);
    }
}

.transmission-status.success .status-indicator {
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.transmission-status.error .status-indicator {
    background: #ff006f;
    box-shadow: 0 0 10px rgba(255, 0, 111, 0.6);
}

.transmission-status.transmitting .status-indicator {
    background: #00bfff;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.6);
    animation-duration: 0.5s;
}

/* Debug Overlay (Easter Egg) */
.debug-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.debug-overlay.active {
    display: flex;
}

.debug-content {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2), rgba(255, 0, 111, 0.2));
    border: 2px solid #00bfff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 500px;
    animation: debugEntry 0.5s ease-out;
}

@keyframes debugEntry {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.debug-content h3 {
    font-family: 'JetBrains Mono', monospace;
    color: #00bfff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 191, 255, 0.8);
}

.debug-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #a1a1aa;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.stat span {
    color: #00bfff;
    font-weight: 600;
}

.debug-close {
    background: transparent;
    border: 2px solid #ff006f;
    color: #ff006f;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.debug-close:hover {
    background: rgba(255, 0, 111, 0.2);
}

/* Enhanced Mobile & Tablet Responsive Design */

/* Hide horizontal overflow on all screen sizes */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Force all elements to respect viewport width */
* {
    max-width: 100vw;
    box-sizing: border-box;
}

/* Prevent specific elements from causing horizontal scroll */
section,
.section-content,
.hero-content,
.philosophy-visual,
.holographic-display,
.command-center,
.projects-container,
.contact .section-content {
    max-width: 100vw;
    overflow-x: visible;
}

/* Tablet Portrait and Small Desktop */
@media (max-width: 1024px) {
    /* Reduce complex animations for performance */
    .grid-overlay {
        background-size: 40px 40px;
        animation-duration: 12s;
    }
    
    .floating-nodes .node {
        animation-duration: 8s;
    }
    
    /* Philosophy section adjustments */
    .philosophy .section-content {
        gap: 2rem;
    }
    
    .holographic-display {
        width: 300px;
        height: 400px;
    }
    
    /* Process section adjustments */
    .command-center {
        max-width: 700px;
        height: 400px;
    }
    
    .process-terminal {
        width: 200px;
        height: 140px;
    }
    
    .terminal-screen {
        height: 120px;
        padding: 8px;
    }
    
    .terminal-content {
        font-size: 9px;
    }
    
    .terminal-info h3 {
        font-size: 13px;
    }
    
    .terminal-info p {
        font-size: 10px;
    }
    
    /* Contact section adjustments */
    .communication-hub {
        width: 300px;
        height: 300px;
    }
    
    .central-node {
        width: 60px;
        height: 60px;
    }
}

/* Tablet and Large Mobile */
@media (max-width: 768px) {
    /* Show mobile notice only on mobile */
    .mobile-notice {
        display: block !important;
    }
    
    /* Force no horizontal overflow on mobile */
    * {
        max-width: 100vw;
        overflow-x: hidden;
        scrollbar-width: none;
    }
    
    /* Disable ALL complex animations on mobile for performance */
    .grid-overlay,
    .floating-nodes .node,
    .holographic-display,
    .holo-screen,
    .holo-screen::before,
    .holo-glow,
    .holo-status-light,
    .holo-title,
    .holo-signal-bars .bar,
    .code-line,
    .metric-fill,
    .metric-fill::after,
    .core-pulse,
    .core-ring,
    .core-text,
    .terminal-screen::before,
    .terminal-status,
    .code-output,
    .data-flow,
    .command-center::before,
    .command-center::after,
    .communication-hub,
    .central-node,
    .orbit-ring,
    .comm-satellite,
    .signal-beam,
    .data-stream,
    .terminal-frame,
    .control-dot,
    .signal-bar,
    .status-online,
    .transmission-header h2,
    .status-indicator,
    .project-status,
    .bar-fill,
    .bar-fill::after {
        animation: none !important;
        transition: none !important;
    }
    
    /* SPECIFICALLY disable metric animations in philosophy section */
    .philosophy .metric-fill,
    .philosophy .metric-fill::after {
        animation: none !important;
        transform: none !important;
    }
    
    /* SPECIFICALLY disable nexus animations in command center */
    .process .core-pulse,
    .process .core-ring,
    .process .core-text,
    .process .central-node {
        animation: none !important;
        transform: translate(-50%, -50%) !important;
    }
    
    /* Re-enable simple transitions for interactive elements */
    .cta-primary, 
    .cta-secondary, 
    .project-card, 
    .tech, 
    .transmission-button,
    .input-wrapper input,
    .input-wrapper textarea {
        transition: all 0.2s ease !important;
    }
    
    /* Base adjustments */
    section {
        padding: 1rem;
        min-height: 100vh;
    }
    
    .section-content {
        max-width: 100%;
    }
    
    
    /* Hero section mobile */
    .hero {
        padding: 0.5rem;
        padding-top: 4rem; /* Add space for scroll indicator */
        min-height: 100vh;
        max-height: 100vh;
        height: 100vh;
        background: radial-gradient(ellipse at center, rgba(0, 191, 255, 0.08) 0%, transparent 70%);
        overflow: hidden;
        display: flex;
        align-items: flex-start; /* Changed from center to flex-start */
        justify-content: center;
    }
    
    .hero-content {
        max-width: 100vw;
        width: 100%;
        height: auto; /* Changed from 100% to auto */
        overflow: visible; /* Changed from hidden to visible */
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Changed from center to flex-start */
        align-items: center;
        padding: 1rem 0.5rem; /* Added horizontal padding */
        margin: 0;
        max-height: calc(100vh - 5rem); /* Adjusted for top padding and scroll indicator */
        margin-top: 2rem; /* Add some top margin for better positioning */
    }
    
    .company-name {
        font-size: clamp(1.6rem, 7vw, 3rem);
        margin-bottom: 1rem;
        text-align: center;
        max-width: 100%;
        width: 100%;
        line-height: 1.1;
        overflow: hidden;
        flex-shrink: 0;
        /* Allow text to wrap instead of truncating */
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        /* Ensure it stays within viewport */
        box-sizing: border-box;
        padding: 0 0.5rem;
    }
    
    .tagline-container {
        min-height: 60px;
        margin-bottom: 1.5rem;
    }
    
    .tagline {
        font-size: clamp(1.2rem, 6vw, 2rem);
        text-align: center;
    }
    
    .cursor {
        font-size: clamp(1.2rem, 6vw, 2rem);
    }
    
    /* Mobile sub-tagline split layout - Stack vertically */
    .sub-tagline-split {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        margin: 2rem 0;
        width: 100%;
        max-width: 100%;
        z-index: 3;
        overflow: visible;
        min-height: 0;
    }
    
    .sub-tagline-left,
    .sub-tagline-right {
        text-align: center;
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    
    .sub-tagline-left p,
    .sub-tagline-right p {
        margin: 0.3rem 0;
        animation-delay: 2s;
        overflow: visible;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }
    
    .cta-primary, .cta-secondary {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Reduce floating nodes on mobile */
    .floating-nodes .node {
        width: 6px;
        height: 6px;
        animation-duration: 8s;
    }
    
    .node-3, .node-4, .node-5 {
        display: none; /* Hide some nodes to reduce clutter */
    }
    
    /* Philosophy section mobile - FIXED */
    .philosophy .section-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
        padding: 0;
        padding-top: 6rem;
        width: 100%;
        max-width: 100vw;
        height: 100%;
        max-height: calc(100vh - 2rem);
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }
    
    .philosophy-visual {
        order: -1; /* Move visual above text on mobile */
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
        padding: 10px;
        flex: 0 0 auto;
        max-height: 50vh;
    }
    
    .holographic-display {
        width: min(280px, calc(95vw - 20px));
        height: min(510px, 62vh);
        /* Completely disable animation */
        animation: none !important;
        transform: none !important;
        margin: 0 auto;
        max-width: 100%;
        max-height: 62vh;
    }
    
    .holo-screen {
        transform: none !important;
        padding: 15px;
        width: 100%;
        height: 100%;
        /* Remove all pseudo-element effects */
        background: rgba(0, 0, 0, 0.7) !important;
        backdrop-filter: none !important;
        box-shadow: 0 0 10px rgba(0, 191, 255, 0.3) !important;
        border: 1px solid rgba(0, 191, 255, 0.5) !important;
    }
    
    .holo-screen::before,
    .holo-screen::after {
        display: none !important;
    }
    
    /* Hide all holographic visual effects on mobile */
    .holo-glow {
        display: none !important;
    }
    
    .code-display {
        padding: 10px;
        margin-bottom: 15px;
        background: rgba(0, 0, 0, 0.5) !important;
        border: 1px solid rgba(0, 191, 255, 0.3) !important;
    }
    
    .code-line {
        font-size: 10px;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .metrics-display {
        width: 100%;
    }
    
    .metric {
        width: 100%;
        padding: 6px 0;
    }
    
    .metric-bar {
        margin: 0 8px;
        height: 3px;
    }
    
    .metric-fill {
        width: 85% !important;
        background: linear-gradient(90deg, #00bfff, #00ff88) !important;
        opacity: 0.8 !important;
        position: static !important;
    }
    
    .metric-label {
        font-size: 9px;
        min-width: 80px;
    }
    
    .metric-value {
        font-size: 10px;
        min-width: 60px;
    }
    
    .philosophy-text {
        text-align: center;
        padding: 0 1rem;
        width: 100%;
        max-width: 100vw;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-height: 55vh;
        overflow: hidden;
    }
    
    .philosophy h2 {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .philosophy h3 {
        font-size: clamp(1rem, 5vw, 1.3rem);
        margin-bottom: 0.5rem;
        text-align: center;
        /* Disable typewriter effect on mobile */
        animation: none !important;
        border-right: none !important;
        white-space: normal !important;
        overflow: visible !important;
        width: auto !important;
    }
    
    .philosophy p {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
        line-height: 1.4;
        text-align: center;
        max-width: 100%;
        margin: 0;
        overflow: hidden;
    }
    
    /* Process section mobile - COMPLETELY REDESIGNED */
    .process {
        padding: 1rem;
        padding-top: 4rem; /* Add more space from scroll indicator */
        overflow: hidden;
        width: 100%;
        max-width: 100vw;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
    
    .process .section-content {
        width: 100%;
        max-width: 100vw;
        padding: 0;
        height: 100%;
        max-height: calc(100vh - 5rem);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        overflow-y: auto;
    }
    
    .process h2 {
        font-size: clamp(1rem, 4vw, 1.8rem); /* Made smaller on mobile */
        margin-bottom: 1.5rem;
        letter-spacing: 0.5px;
        text-align: center;
        width: 100%;
        flex-shrink: 0;
    }
    
    /* Mobile command center - vertical stack layout */
    .command-center {
        width: 100%;
        max-width: 100vw;
        height: auto;
        min-height: auto;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
        overflow: visible;
        padding: 0;
        flex: 1;
    }
    
    /* Hide the entire center-core (nexus circle) on mobile */
    .center-core {
        display: none !important;
    }
    
    /* Mobile terminals - full width stacked layout */
    .process-terminal {
        position: relative !important;
        width: 100% !important;
        max-width: calc(100vw - 2rem) !important;
        height: auto !important;
        min-height: 240px !important; /* Increased height */
        margin: 0 !important;
        opacity: 1 !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        flex-shrink: 0;
    }
    
    .terminal-screen {
        height: 260px; /* Made even taller to accommodate moved content */
        padding: 15px;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 191, 255, 0.05) 20%, rgba(0, 0, 0, 0.95) 100%);
        border: 2px solid rgba(0, 191, 255, 0.4);
        box-shadow: 0 0 15px rgba(0, 191, 255, 0.3), inset 0 0 15px rgba(0, 191, 255, 0.1);
        display: flex;
        flex-direction: column;
        margin-bottom: 0; /* Remove margin since info is now inside */
    }
    
    .terminal-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(0, 191, 255, 0.3);
        flex-shrink: 0;
    }
    
    .terminal-header span {
        font-size: 12px;
    }
    
    .terminal-status {
        width: 8px;
        height: 8px;
        background: #00ff00;
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    }
    
    .terminal-content {
        font-size: 14px;
        line-height: 1.4;
        color: #ffffff;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 160px; /* Increased min-height */
        gap: 10px;
    }
    
    /* Terminal info moved inside terminal */
    .terminal-info {
        text-align: center;
        flex-shrink: 0;
        margin-bottom: 12px;
        padding: 8px 12px;
        background: rgba(0, 191, 255, 0.05);
        border: 1px solid rgba(0, 191, 255, 0.2);
        border-radius: 6px;
    }
    
    .terminal-info h3 {
        font-size: 16px;
        margin-bottom: 6px;
        color: #ffffff;
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
        font-weight: 600;
        font-family: 'Orbitron', monospace;
    }
    
    .terminal-info p {
        font-size: 12px;
        color: #e4e4e7; /* Brighter text for better readability */
        font-style: italic;
        line-height: 1.4;
        margin: 0;
    }
    
    /* Code output section */
    .terminal-code {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 4px;
    }
    
    .code-output {
        margin: 3px 0;
        font-size: 13px;
        opacity: 1 !important;
        transform: none !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #e4e4e7;
        line-height: 1.3;
    }
    
    .prompt {
        color: #ff006f;
        margin-right: 6px;
        font-size: 13px;
        font-weight: 600;
    }
    
    .success {
        color: #00ff88;
        text-shadow: 0 0 6px rgba(0, 255, 136, 0.5);
        font-size: 13px;
        font-weight: 500;
    }
    
    /* Hide data flows on mobile */
    .data-flow {
        display: none !important;
    }
    
    /* Background rings simplified */
    .command-center::before,
    .command-center::after {
        display: none !important;
    }
    
    /* Projects showcase mobile */
    .projects-showcase h2 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 2rem;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .card-content h3 {
        font-size: 1.3rem;
    }
    
    .tech-list {
        gap: 0.3rem;
    }
    
    .tech {
        font-size: 10px;
        padding: 0.2rem 0.6rem;
    }
    
    /* Contact section mobile */
    .contact {
        padding: 2rem 1rem;
        min-height: 100vh;
        max-height: none;
    }
    
    .contact .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-height: none;
        height: auto;
    }
    
    /* HIDE the animated communication hub on mobile */
    .contact-visual {
        display: none !important;
    }
    
    .communication-hub {
        width: 200px;
        height: 200px;
        animation-duration: 45s; /* Slower rotation */
    }
    
    .central-node {
        width: 50px;
        height: 50px;
    }
    
    .orbit-1 {
        width: 120px;
        height: 120px;
    }
    
    .orbit-2 {
        width: 160px;
        height: 160px;
    }
    
    .orbit-3 {
        width: 200px;
        height: 200px;
    }
    
    /* Simplify satellites on mobile */
    .comm-satellite {
        animation-duration: 20s; /* Slower orbit */
    }
    
    .signal-beam {
        width: 40px; /* Shorter beams */
    }
    
    /* Hide some data streams */
    .stream-3, .stream-4 {
        display: none;
    }
    
    .contact-terminal {
        height: auto;
        max-height: none;
    }
    
    .terminal-frame {
        height: auto;
    }
    
    .terminal-header {
        padding: 0.6rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .terminal-title {
        font-size: 12px;
        order: 1;
        width: 100%;
        text-align: center;
    }
    
    .terminal-controls {
        order: 2;
    }
    
    .signal-strength {
        order: 3;
    }
    
    .terminal-content {
        padding: 1rem;
        overflow-y: visible;
    }
    
    .system-info {
        padding: 0.6rem;
        margin-bottom: 1rem;
    }
    
    .info-line {
        font-size: 11px;
        margin-bottom: 0.3rem;
    }
    
    .transmission-header h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 11px;
    }
    
    .input-wrapper input,
    .input-wrapper textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .textarea-wrapper textarea {
        min-height: 70px;
        max-height: 100px;
        font-size: 13px;
    }
    
    .char-counter {
        font-size: 9px;
    }
    
    .transmission-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .transmission-status {
        font-size: 11px;
    }
    
    /* Debug overlay mobile */
    .debug-content {
        padding: 1.5rem;
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .debug-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .stat {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
    
    /* Performance optimizations for mobile */
    * {
        -webkit-transform-style: flat;
        transform-style: flat;
    }
    
    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    /* Further optimize for small screens */
    .hero {
        padding: 1.5rem 0.8rem;
        min-height: 100vh;
    }
    
    .company-name {
        font-size: clamp(1.8rem, 12vw, 3rem);
        line-height: 1.1;
    }
    
    .tagline {
        font-size: clamp(1rem, 7vw, 1.5rem);
    }
    
    .cursor {
        font-size: clamp(1rem, 7vw, 1.5rem);
    }
    
    .sub-tagline {
        font-size: clamp(0.7rem, 3.5vw, 0.9rem);
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-primary, .cta-secondary {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Philosophy adjustments */
    .holographic-display {
        width: min(250px, calc(90vw - 40px));
        height: 320px;
    }
    
    .holo-screen {
        padding: 12px;
    }
    
    .code-line {
        font-size: 9px;
    }
    
    .philosophy h2 {
        font-size: clamp(1.5rem, 9vw, 2rem);
    }
    
    .philosophy h3 {
        font-size: clamp(1rem, 7vw, 1.3rem);
    }
    
    .philosophy p {
        font-size: clamp(0.8rem, 5vw, 1rem);
    }
    
    /* Process section */
    .process h2 {
        font-size: clamp(1.5rem, 9vw, 2rem);
        letter-spacing: 1px;
    }
    
    .command-center {
        min-height: 250px;
        gap: 0.8rem;
    }
    
    .center-core {
        width: 60px;
        height: 60px;
    }
    
    .core-pulse {
        width: 60px;
        height: 60px;
    }
    
    .core-ring {
        width: 80px;
        height: 80px;
    }
    
    .core-text {
        font-size: 10px;
        letter-spacing: 1px;
    }
    
    .process-terminal {
        width: 140px;
        height: 100px;
    }
    
    .terminal-screen {
        height: 80px;
        padding: 6px;
    }
    
    .terminal-content {
        font-size: 7px;
    }
    
    .terminal-header span {
        font-size: 7px;
    }
    
    .terminal-info h3 {
        font-size: 10px;
    }
    
    .terminal-info p {
        font-size: 8px;
    }
    
    /* Projects section */
    .projects-showcase h2 {
        font-size: clamp(1.5rem, 9vw, 2rem);
    }
    
    .project-card {
        padding: 0.8rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .project-status,
    .project-code {
        font-size: 10px;
        padding: 0.2rem 0.5rem;
    }
    
    .card-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .card-content p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .tech {
        font-size: 9px;
        padding: 0.15rem 0.5rem;
    }
    
    .performance-text {
        font-size: 10px;
    }
    
    /* Contact section */
    .contact-visual {
        height: 200px;
    }
    
    .communication-hub {
        width: 160px;
        height: 160px;
    }
    
    .central-node {
        width: 40px;
        height: 40px;
    }
    
    .orbit-1 {
        width: 100px;
        height: 100px;
    }
    
    .orbit-2 {
        width: 130px;
        height: 130px;
    }
    
    .orbit-3 {
        width: 160px;
        height: 160px;
    }
    
    .terminal-header {
        padding: 0.5rem 0.8rem;
    }
    
    .terminal-title {
        font-size: 11px;
    }
    
    .control-dot {
        width: 10px;
        height: 10px;
    }
    
    .signal-bar {
        width: 3px;
    }
    
    .terminal-content {
        padding: 0.8rem;
    }
    
    .transmission-header h2 {
        font-size: 1rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .input-wrapper input,
    .input-wrapper textarea {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .textarea-wrapper textarea {
        min-height: 60px;
        font-size: 12px;
    }
    
    .transmission-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* Extra Small Devices */
@media (max-width: 320px) {
    .hero {
        padding: 1rem 0.5rem;
    }
    
    .company-name {
        font-size: clamp(1.5rem, 14vw, 2.5rem);
    }
    
    .holographic-display {
        width: min(220px, calc(90vw - 40px));
        height: 280px;
    }
    
    .process-terminal {
        width: 120px;
        height: 90px;
    }
    
    .terminal-content {
        font-size: 6px;
    }
    
    .communication-hub {
        width: 140px;
        height: 140px;
    }
    
    .terminal-content {
        padding: 0.6rem;
    }
    
    .input-wrapper input,
    .input-wrapper textarea {
        padding: 0.6rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    section {
        min-height: 100vh;
        padding: 1rem;
    }
    
    .hero {
        min-height: 100vh;
        padding: 1rem;
    }
    
    .tagline-container {
        min-height: 40px;
        margin-bottom: 1rem;
    }
    
    .sub-tagline {
        margin-bottom: 1rem;
    }
    
    .contact-visual {
        height: 180px;
    }
    
    .holographic-display {
        width: 250px;
        height: 300px;
    }
    
    .command-center {
        min-height: 200px;
    }
}

/* Hero Enhanced Animations */
@keyframes energyPulse {
    0% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(20);
        opacity: 0;
    }
}

@keyframes drawMountain {
    0% {
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes mountainPulse {
    0% {
        filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
        transform: scale(1);
    }
    25% {
        filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.8));
        transform: scale(1.05);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(249, 115, 22, 0.9));
        transform: scale(1.08);
    }
    75% {
        filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.8));
        transform: scale(1.05);
    }
    100% {
        filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
        transform: scale(1);
    }
}

.mountain-container {
    animation: mountainFloat 8s ease-in-out infinite;
}

@keyframes mountainFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
}

@keyframes nodeActivation {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 191, 255, 0.8);
    }
    50% { 
        transform: scale(2);
        box-shadow: 0 0 40px rgba(0, 191, 255, 1), 0 0 80px rgba(0, 191, 255, 0.5);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 25px rgba(0, 191, 255, 0.9);
    }
}

@keyframes particleFloat {
    0% { 
        transform: translateY(0px) translateX(0px);
        opacity: 0.7;
    }
    25% { 
        transform: translateY(-50px) translateX(20px);
        opacity: 1;
    }
    50% { 
        transform: translateY(-100px) translateX(-20px);
        opacity: 0.8;
    }
    75% { 
        transform: translateY(-150px) translateX(30px);
        opacity: 0.6;
    }
    100% { 
        transform: translateY(-200px) translateX(-10px);
        opacity: 0;
    }
}

@keyframes scanlineMove {
    0% { 
        top: 0;
        opacity: 0;
    }
    10% { 
        opacity: 0.6;
    }
    90% { 
        opacity: 0.6;
    }
    100% { 
        top: 100%;
        opacity: 0;
    }
}

@keyframes connectionPulse {
    0% { 
        opacity: 0;
        transform: scaleX(0);
    }
    50% { 
        opacity: 0.8;
        transform: scaleX(1);
    }
    100% { 
        opacity: 0;
        transform: scaleX(1);
    }
}

/* Enhanced floating nodes */
.node {
    transition: all 0.3s ease;
}

.node:hover {
    animation-duration: 2s;
    box-shadow: 0 0 30px rgba(0, 191, 255, 1);
    transform: scale(1.5);
}

/* Hero particles styling */
.hero-particle {
    z-index: 1;
}

/* Scanline styling */
.scanline {
    mix-blend-mode: screen;
}

/* Node connections */
.node-connection {
    mix-blend-mode: screen;
}

/* Enhanced grid overlay for hero effects */
.hero .grid-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 191, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 2s ease;
}

.hero.activated .grid-overlay::after {
    opacity: 1;
}

/* Animation Delays and Interactive Elements */
.step-node:hover {
    transform: scale(1.1);
}


/* Additional animations for Mission Archive JavaScript functionality */
@keyframes bootFlash {
    0% { 
        opacity: 0;
        transform: scaleX(0);
    }
    50% { 
        opacity: 1;
        transform: scaleX(1);
    }
    100% { 
        opacity: 0;
        transform: scaleX(1);
    }
}

@keyframes confirmationFlash {
    0% { 
        opacity: 0;
        transform: translateY(10px);
    }
    20% { 
        opacity: 1;
        transform: translateY(0);
    }
    80% { 
        opacity: 1;
        transform: translateY(0);
    }
    100% { 
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes digitalFlicker {
    0% { opacity: 1; }
    10% { opacity: 0.8; }
    20% { opacity: 1; }
    30% { opacity: 0.9; }
    40% { opacity: 1; }
    50% { opacity: 0.8; }
    60% { opacity: 1; }
    70% { opacity: 0.9; }
    80% { opacity: 1; }
    90% { opacity: 0.8; }
    100% { opacity: 1; }
}

@keyframes techTagAppear {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes classificationFlash {
    0% { 
        background: #ffaa00;
        color: #000;
    }
    20% { 
        background: #ffffff;
        color: #000;
    }
    40% { 
        background: #ffaa00;
        color: #000;
    }
    60% { 
        background: #00ff88;
        color: #000;
    }
    80% { 
        background: #ff006f;
        color: #fff;
    }
    100% { 
        background: inherit;
        color: inherit;
    }
}

@keyframes dataPointFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.5);
    }
}

@keyframes holoPulse {
    0% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Mission Archive booting states */
.archive-selector.booting,
.mission-display.booting,
.holographic-projector.booting {
    opacity: 0.3;
    filter: brightness(0.5);
    transition: all 1s ease-out;
}

.archive-selector.online,
.mission-display.online,
.holographic-projector.online {
    opacity: 1;
    filter: brightness(1);
}

/* Mission item interactions */
.mission-item {
    opacity: 0;
    transform: translateX(-20px);
}

.mission-item.selected {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.8);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.8);
}

/* Classification header */
.classification-header {
    padding: 0.5rem 1rem;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    border-radius: 4px;
}
