:root {
    --red: #dc2626;
    --red-dark: #991b1b;
    --red-glow: rgba(220, 38, 38, 0.4);
    --bg: #0a0a0a;
    --bg-card: rgba(17, 17, 17, 0.8);
    --text: #fff;
    --text-sec: #888;
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.app-container {
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.bg-effects {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: var(--red);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: var(--red-dark);
    bottom: -50px;
    left: -50px;
    animation-delay: -4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

.nav {
    flex-shrink: 0;
    padding: 16px 20px;
    background: transparent;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--red);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid var(--red);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--red);
    color: #fff;
    box-shadow: 0 0 20px var(--red-glow);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 24px;
    min-height: 0;
}

.hero-section {
    text-align: center;
    flex-shrink: 0;
}

.hero-tag {
    color: var(--text-sec);
    font-size: 0.8rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.accent {
    color: var(--red);
    text-shadow: 0 0 30px var(--red-glow);
}

.service-indicator {
    display: flex;
    justify-content: center;
}

.indicator-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active {
    background: var(--red);
    box-shadow: 0 0 10px var(--red-glow);
    transform: scale(1.3);
}

.dot:hover:not(.active) {
    background: var(--text-sec);
}

.service-showcase {
    position: relative;
    width: 100%;
    max-width: 400px;
    flex-shrink: 0;
}

.service-cards-container {
    position: relative;
    height: 160px;
    perspective: 1000px;
}

.service-card {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(100px) rotateY(-15deg) scale(0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.service-card.active {
    opacity: 1;
    transform: translateX(0) rotateY(0) scale(1);
    pointer-events: auto;
    border-color: var(--red-dark);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--red-glow);
}

.service-card.prev {
    opacity: 0;
    transform: translateX(-100px) rotateY(15deg) scale(0.9);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 4px 15px var(--red-glow);
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.service-card p {
    color: var(--text-sec);
    font-size: 0.85rem;
}

.service-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    pointer-events: none;
}

.service-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.service-nav-btn:hover {
    background: var(--red);
    border-color: var(--red);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--red-glow);
}

.service-nav-btn:active {
    transform: scale(0.95);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--red-glow);
    flex-shrink: 0;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px var(--red-glow);
}

.cta-btn:active {
    transform: translateY(0) scale(0.98);
}

.cta-btn i {
    font-size: 1.1rem;
}

.footer {
    flex-shrink: 0;
    padding: 12px 20px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer p {
    color: var(--text-sec);
    font-size: 0.75rem;
}

@media (max-width: 480px) {
    .nav {
        padding: 12px 16px;
    }

    .logo-img {
        height: 28px;
    }

    .nav-cta span {
        display: none;
    }

    .nav-cta {
        padding: 10px;
        border-radius: 50%;
    }

    .main-content {
        padding: 16px;
        gap: 16px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-tag {
        font-size: 0.7rem;
    }

    .service-showcase {
        max-width: 100%;
    }

    .service-cards-container {
        height: 140px;
    }

    .service-card {
        padding: 20px 16px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.8rem;
    }

    .service-nav-btn {
        width: 36px;
        height: 36px;
    }

    .cta-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .footer {
        padding: 10px 16px;
    }
}

@media (max-height: 600px) {
    .main-content {
        gap: 12px;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .service-cards-container {
        height: 120px;
    }

    .service-card {
        padding: 16px;
    }

    .service-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .service-card h3 {
        font-size: 0.9rem;
    }

    .service-card p {
        font-size: 0.75rem;
    }

    .cta-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

@media (max-height: 500px) {
    .hero-tag {
        display: none;
    }

    .hero-title {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .indicator-dots {
        gap: 6px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .main-content {
        flex-direction: row;
        gap: 24px;
    }

    .hero-section {
        flex: 0 0 auto;
        text-align: left;
    }

    .service-indicator {
        justify-content: flex-start;
    }

    .service-showcase {
        flex: 1;
        max-width: 350px;
    }

    .cta-btn {
        position: absolute;
        bottom: 16px;
        right: 16px;
    }
}

.terminal-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.terminal-toggle:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.terminal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.terminal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.terminal-container {
    width: 100%;
    max-width: 700px;
    height: 80%;
    max-height: 500px;
    background: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--red-glow);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.terminal-overlay.active .terminal-container {
    transform: scale(1) translateY(0);
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #151515;
    border-bottom: 1px solid var(--border);
}

.terminal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
    font-family: 'Space Grotesk', monospace;
    font-size: 0.9rem;
    font-weight: 600;
}

.terminal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-sec);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.terminal-close:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.terminal-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

.terminal-welcome p {
    color: var(--text-sec);
    margin-bottom: 4px;
}

.terminal-welcome .dim {
    color: #555;
}

.terminal-output {
    margin-top: 16px;
}

.terminal-line {
    margin-bottom: 8px;
    word-break: break-word;
}

.terminal-line.command {
    color: var(--red);
}

.terminal-line.command::before {
    content: '$ ';
    color: #555;
}

.terminal-line.response {
    color: var(--text);
    padding-left: 12px;
    border-left: 2px solid var(--border);
}

.terminal-line.error {
    color: #ef4444;
}

.terminal-line.success {
    color: #22c55e;
}

.terminal-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #151515;
    border-top: 1px solid var(--border);
}

.terminal-prompt {
    color: var(--red);
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-weight: 600;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    caret-color: var(--red);
}

.terminal-input::placeholder {
    color: #444;
}

@media (max-width: 480px) {
    .terminal-overlay {
        padding: 0;
    }

    .terminal-container {
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .terminal-header {
        padding: 16px;
    }

    .terminal-body {
        font-size: 0.8rem;
    }

    .terminal-input {
        font-size: 1rem;
    }
}

@media (max-height: 500px) {
    .terminal-container {
        height: 100%;
        max-height: 100%;
    }
}