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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #b13834;
    --secondary-color: #b13834;
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --card-bg: #1a1a1a;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    cursor: none;
}

/* Allow cursor in neural interface */
.neural-interface * {
    cursor: auto !important;
}

/* Custom Cursor */
.terminal-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    position: fixed;
    pointer-events: none;
    transition: all 0.1s ease;
    z-index: 9999;
    mix-blend-mode: difference;
}

/* Navigation */
.nav-bar {
    position: fixed;
    width: 100%;
    padding: 20px 50px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

.anchor-link {
    text-decoration: none;
    color: var(--primary-color);
}

.anchor-link:hover {
    color: var(--text-color);
}

/* Glitch Effect */
.glitch {
    position: relative;
    text-shadow: 0.05em 0 0 var(--secondary-color), 
                -0.05em -0.025em 0 var(--primary-color),
                0.025em 0.05em 0 #020101;
    animation: glitch 725ms infinite;
}

.glitch:before,
.glitch:after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch:before {
    animation: glitch-1 651ms infinite;
    clip: rect(44px, 450px, 56px, 0);
    transform: translate(-2px, -2px);
}

.glitch:after {
    animation: glitch-2 375ms infinite;
    clip: rect(44px, 450px, 56px, 0);
    transform: translate(2px, 2px);
}

@keyframes glitch {
    0%, 100% { text-shadow: 0.05em 0 0 var(--secondary-color), -0.05em -0.025em 0 var(--primary-color), 0.025em 0.05em 0 #020101; }
    14% { text-shadow: 0.05em 0 0 var(--secondary-color), -0.05em -0.025em 0 var(--primary-color), 0.025em 0.05em 0 #020101; }
    15% { text-shadow: -0.05em -0.025em 0 var(--secondary-color), 0.025em 0.025em 0 var(--primary-color), -0.05em -0.05em 0 #020101; }
    49% { text-shadow: -0.05em -0.025em 0 var(--secondary-color), 0.025em 0.025em 0 var(--primary-color), -0.05em -0.05em 0 #020101; }
    50% { text-shadow: 0.025em 0.05em 0 var(--secondary-color), 0.05em 0 0 var(--primary-color), 0 -0.05em 0 #020101; }
    99% { text-shadow: 0.025em 0.05em 0 var(--secondary-color), 0.05em 0 0 var(--primary-color), 0 -0.05em 0 #020101; }
}

@keyframes glitch-1 {
    0%, 100% { clip: rect(132px, 350px, 101px, 30px); }
    25% { clip: rect(10px, 350px, 130px, 30px); }
    50% { clip: rect(40px, 350px, 90px, 30px); }
    75% { clip: rect(91px, 350px, 35px, 30px); }
}

@keyframes glitch-2 {
    0%, 100% { clip: rect(12px, 350px, 150px, 30px); }
    25% { clip: rect(85px, 350px, 140px, 30px); }
    50% { clip: rect(40px, 350px, 78px, 30px); }
    75% { clip: rect(113px, 350px, 119px, 30px); }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-size: 72px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.typed-text {
    color: var(--primary-color);
}

.cursor {
    animation: blink 1s infinite;
    color: var(--primary-color);
}

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

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.8;
}

.cta-button {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 15px 40px;
    font-size: 18px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 42, 42, 0.3);
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover:before {
    left: 0;
}

/* Matrix Rain Effect */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, #0f0f0f 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-card {
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 42, 42, 0.3);
}

.card-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.5;
}

.about-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.about-card p {
    opacity: 0.8;
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    padding: 100px 0;
    background: var(--card-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 64px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.8;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #0f0f0f 0%, var(--bg-color) 100%);
}

.terminal-window {
    max-width: 600px;
    margin: 0 auto;
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: #2d2d2d;
    padding: 10px;
    display: flex;
    gap: 8px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.red { background: #ff5f56; }
.terminal-button.yellow { background: #ffbd2e; }
.terminal-button.green { background: #27c93f; }

.terminal-body {
    padding: 30px;
}

.terminal-line {
    color: var(--primary-color);
    margin-bottom: 10px;
    opacity: 0.8;
}

.contact-form {
    margin-top: 30px;
}

.terminal-input {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    padding: 12px;
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 14px;
}

.terminal-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 42, 42, 0.3);
}

.terminal-input:invalid {
    border-color: #ff0041;
}

.error-message {
    transition: opacity 0.3s ease;
}

.terminal-submit {
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    padding: 12px 30px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terminal-submit:hover {
    background: var(--text-color);
    transform: translateX(5px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #333;
    opacity: 0.5;
}

/* Upload Consciousness Button */
.upload-mind {
    background: transparent;
    border: 2px solid #b13834;
    color: #b13834;
    padding: 15px 30px;
    font-family: inherit;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.upload-mind:hover {
    color: #0a0a0a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 42, 42, 0.3);
}

.upload-mind:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #b13834;
    transition: left 0.3s ease;
    z-index: -1;
}

.upload-mind:hover:before {
    left: 0;
}

.upload-mind:active {
    transform: translateY(0);
}

/* Neural Interface Animations */
@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

@keyframes invertColors {
    0% {
        filter: invert(0) hue-rotate(0deg);
    }
    50% {
        filter: invert(1) hue-rotate(180deg) saturate(2);
    }
    100% {
        filter: invert(1) hue-rotate(360deg) brightness(2);
    }
}

@keyframes electricPulse {
    0% {
        box-shadow: 0 0 5px #b13834;
    }
    50% {
        box-shadow: 0 0 20px #b13834, 0 0 40px #b13834;
    }
    100% {
        box-shadow: 0 0 5px #b13834;
    }
}

/* Service Popups */
.service-popup {
    position: fixed;
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 0;
    padding: 0;
    min-width: 300px;
    box-shadow: 0 0 30px rgba(177, 56, 52, 0.5);
    z-index: 1000;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    font-family: 'Share Tech Mono', monospace;
}

.service-popup.active {
    opacity: 1;
    transform: scale(1);
}

.popup-header {
    background: var(--primary-color);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    user-select: none;
}

.popup-header:active {
    cursor: grabbing;
}

.service-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--bg-color);
    letter-spacing: 1px;
}

.close-popup {
    font-size: 24px;
    cursor: pointer;
    color: var(--bg-color);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-popup:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: rotate(90deg);
}

.popup-body {
    padding: 20px;
}

.service-description {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.9;
}

.service-price {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(177, 56, 52, 0.5);
}

.popup-cta {
    width: 100%;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-cta:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(177, 56, 52, 0.5);
    transform: translateY(-2px);
}

/* Floating animation for popups */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.service-popup.active:not(.dragged) {
    animation: float 4s ease-in-out infinite;
}

/* Mobile Service Carousel */
.service-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.service-carousel.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
    height: 60vh;
    max-height: 500px;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.carousel-card {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(177, 56, 52, 0.5);
}

.carousel-header {
    background: var(--primary-color);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carousel-header .service-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--bg-color);
    letter-spacing: 1px;
}

.close-carousel {
    font-size: 28px;
    cursor: pointer;
    color: var(--bg-color);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-carousel:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: rotate(90deg);
}

.carousel-body {
    padding: 30px;
    text-align: center;
}

.carousel-body .service-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.carousel-body .service-price {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(177, 56, 52, 0.5);
}

.carousel-body .popup-cta {
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
}

.carousel-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-prev,
.carousel-next {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .terminal-cursor {
        display: none;
    }

    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .nav-bar {
        padding: 15px 20px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    /* Hide desktop popups on mobile */
    .service-popup {
        display: none !important;
    }
}
