:root {
    --primary-color: #00ff00;
    --secondary-color: #008000;
    --background-color: #000000;
    --text-color: #00ff00;
    --accent-color: #39ff14;
}

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

body {
    font-family: 'VT323', monospace;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

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

.hidden {
    display: none;
}

/* Password Protection */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.password-container {
    background-color: var(--background-color);
    border: 2px solid var(--primary-color);
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 20px var(--primary-color);
}

.password-container h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

#password-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 2px solid var(--primary-color);
    background-color: var(--background-color);
    color: var(--primary-color);
    font-family: 'VT323', monospace;
    font-size: 18px;
}

#submit-password {
    background-color: var(--background-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 18px;
    transition: all 0.3s ease;
}

#submit-password:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.error-message {
    color: #ff0000;
    margin-top: 10px;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 255, 0, 0.1) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: matrix-bg 20s linear infinite;
    z-index: -1;
}

@keyframes matrix-bg {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

.hero-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 30px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--primary-color);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    background-color: var(--background-color);
    color: var(--primary-color);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    box-shadow: 0 0 20px var(--primary-color);
}

/* About Section */
.about {
    padding: 100px 0;
}

.about h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.about p {
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
}

/* Services Section */
.services {
    padding: 100px 0;
}

.services h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.services>p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(0, 255, 0, 0.1);
    padding: 30px;
    text-align: center;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 0 20px var(--primary-color);
    transform: translateY(-5px);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Community Section */
.community {
    padding: 100px 0;
    text-align: center;
}

.community h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.community p {
    max-width: 800px;
    margin: 0 auto 30px;
}

.cta-button.secondary {
    background-color: var(--secondary-color);
    color: var(--background-color);
    border-color: var(--secondary-color);
}

.cta-button.secondary:hover {
    background-color: var(--background-color);
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: rgba(0, 255, 0, 0.1);
    padding: 40px 0;
    text-align: center;
    border-top: 2px solid var(--primary-color);
}

.social-links {
    margin-top: 20px;
}

.social-link {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color);
}

/* Vapi Button */
.vapi-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vapi-button:hover {
    background-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.vapi-button img {
    width: 30px;
    height: 30px;
    filter: invert(100%) sepia(100%) saturate(2000%) hue-rotate(86deg) brightness(119%) contrast(119%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .about,
    .services,
    .community {
        padding: 60px 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .vapi-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .vapi-button img {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .service-card {
        padding: 20px;
    }

    .service-card i {
        font-size: 2.5rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }
}

/* Matrix-style text animation */
@keyframes matrix-text {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

body {
    animation: matrix-text 2s infinite;
}

/* Vapi queue / status messages – centered above the call button */
#queue-message,
.status-message {
    position: fixed;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 18px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    white-space: nowrap;
    z-index: 9999;
    display: none;
}

/* Dograh call button – mirrors Vapi SDK button position (bottom-center) */
#dograh-call-button {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 0 20px var(--primary-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

#dograh-call-button:hover {
    box-shadow: 0 0 35px var(--primary-color);
    transform: translateX(-50%) scale(1.08);
}

#dograh-call-button:active {
    transform: translateX(-50%) scale(0.96);
}

#dograh-call-button img {
    width: 36px;
    height: 36px;
}

/* Voice model switch tabs – centered above the call button */
.model-switch {
    position: fixed;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 999;
}

.model-tab {
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    line-height: 1;
    background-color: var(--background-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 22px;
    min-height: 48px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.model-tab:hover,
.model-tab:focus-visible {
    box-shadow: 0 0 12px var(--primary-color);
    outline: none;
}

.model-tab.active {
    background-color: var(--primary-color);
    color: var(--background-color);
}

/* Mobile: larger tap targets, push up enough for thumb reach */
@media (max-width: 768px) {
    .model-switch {
        bottom: 132px;
        gap: 14px;
    }

    .model-tab {
        font-size: 1.5rem;
        padding: 12px 26px;
        min-height: 52px;
    }

    #dograh-call-button {
        width: 72px;
        height: 72px;
        bottom: 36px;
    }

    #dograh-call-button img {
        width: 32px;
        height: 32px;
    }

    #queue-message,
    .status-message {
        bottom: 196px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .model-switch {
        bottom: 122px;
        gap: 10px;
        width: calc(100% - 40px);
        justify-content: center;
    }

    .model-tab {
        font-size: 1.4rem;
        padding: 10px 20px;
        flex: 1;
        text-align: center;
    }

    #dograh-call-button {
        width: 66px;
        height: 66px;
        bottom: 30px;
    }

    #queue-message,
    .status-message {
        bottom: 186px;
        font-size: 1rem;
        max-width: calc(100vw - 40px);
        white-space: normal;
        text-align: center;
    }
}
