/*
 * VibeCreAI Components
 * Specific component styles (Header, Hero, About, Apps, Contact, Footer, etc.)
 */

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 35px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--primary-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-family: 'Born2bSportyFont', monospace;
    font-size: 2rem;
    text-decoration: none;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: baseline;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.logo-v, .logo-c {
    color: #ffffff;
}

.logo-small {
    font-size: 1.6rem;
    color: #ffffff;
}

.logo-ai {
    color: var(--primary-color);
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 5px 10px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-links a:hover::before {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    border-color: var(--primary-color);
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.4),
        inset 0 0 15px rgba(0, 255, 255, 0.1);
}

.menu-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.menu-toggle:hover::before {
    left: 100%;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    position: relative;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--secondary-color);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.6);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: var(--secondary-color);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.6);
}

.menu-toggle.active {
    border-color: var(--secondary-color);
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.5),
        inset 0 0 20px rgba(255, 0, 255, 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.terminal-active:not(.game-modal-open) .hero {
    height: calc(100vh + 100px);
}

body.terminal-active .cta-container {
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    margin-bottom: 20px;
}

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

.glitch-wrapper {
    position: relative;
    display: inline-block;
}

.hero-title {
    font-family: 'Born2bSportyFont', monospace;
    font-size: 6rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: center;
    width: 100%;
    opacity: 0;
    transform: translateY(-100px);
}

.title-v, .title-c {
    color: #ffffff;
    font-size: 6rem;
}

.title-small {
    font-size: 4.8rem;
    color: #ffffff;
}

.title-ai {
    color: var(--primary-color);
    font-size: 6rem;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.6),
        0 0 20px rgba(0, 255, 255, 0.4),
        0 0 30px rgba(0, 255, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    letter-spacing: 0.15em;
    display: flex;
    justify-content: center;
}

.tagline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.cta-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* Vibe Switcher Floating Action Button */
.vibe-switcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.vibe-switcher::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.05);
    opacity: 0;
    transition: all 0.3s ease;
}

.vibe-switcher:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 
        0 6px 30px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 255, 255, 0.2);
}

.vibe-switcher:hover::before {
    opacity: 1;
}

.vibe-switcher:active {
    transform: scale(0.98);
}

.vibe-icon {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

.vibe-text {
    display: none;
}

.vibe-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: var(--primary-color);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.vibe-switcher:hover .vibe-tooltip {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* About Section */
.about {
    padding: 160px 40px;
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 255, 0.02), transparent);
}

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

.about-card {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid var(--primary-color);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
}

.about-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.about-card:hover::after {
    width: 300%;
    height: 300%;
}

.about-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.3);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

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

/* Apps Section */
.apps {
    padding: 160px 30px;
    position: relative;
    z-index: 10;
}

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

.app-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.app-card {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid var(--primary-color);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.app-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    pointer-events: none;
}

.app-card:hover::after {
    width: 300%;
    height: 300%;
}

.app-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.3);
}

.app-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    border-radius: 20px;
    position: relative;
}

.app-icon-wrapper img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 15px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 20px;
    text-transform: uppercase;
}

.app-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.app-description {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
    font-size: 0.95rem;
    min-height: 80px;
}

.app-button {
    padding: 10px 30px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.app-button:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.app-buttons-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.app-buttons-container .app-button {
    flex: 1;
    min-width: 120px;
    font-size: 0.9rem;
    padding: 8px 15px;
}

.web-button {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.web-button:hover {
    background: var(--primary-color) !important;
    color: var(--dark-bg) !important;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5) !important;
}

.android-button {
    border-color: #4CAF50 !important;
    color: #4CAF50 !important;
}

.android-button:hover {
    background: #4CAF50 !important;
    color: var(--dark-bg) !important;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5) !important;
}

.game-button {
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-width: 2px;
}

.game-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

#vibe-runner-btn {
    border-color: #FF6B6B;
    color: #FF6B6B;
}

#vibe-runner-btn:hover {
    background: #FF6B6B;
    color: var(--dark-bg);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

#vibe-survivor-btn {
    border-color: #9B59B6;
    color: #9B59B6;
}

#vibe-survivor-btn:hover {
    background: #9B59B6;
    color: var(--dark-bg);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4);
}

.ios-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
    font-style: italic;
}

/* Contact Section */
.contact {
    padding: 150px 50px;
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, transparent, rgba(255, 0, 255, 0.02), transparent);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

.form-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.form-group input {
    flex: 1;
    max-width: 400px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.form-group button {
    padding: 15px 40px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-group 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;
}

.form-group button:hover {
    color: var(--dark-bg);
    box-shadow: var(--neon-glow);
}

.form-group button:hover::before {
    left: 0;
}

.contact-info {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* Footer */
footer {
    padding: 30px 50px;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    border-top: 1px solid var(--primary-color);
    position: relative;
    z-index: 10;
}

/* Terminal Interface */
.source-code-terminal {
    position: relative;
    width: 900px;
    max-width: 90vw;
    max-height: 0;
    overflow: hidden;
    background: #000000;
    border: 1px solid #333;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.5s ease;
    font-family: 'Courier New', Courier, monospace;
    margin: 10px auto 0;
    text-align: left;
}

.source-code-terminal.active {
    max-height: 520px;
    padding: 0 20px 20px 20px;
    border-color: #666;
}

.terminal-content {
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.4;
    padding-top: 40px;
    overflow: hidden;
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-prompt {
    color: #999;
}

.terminal-next-text {
    cursor: pointer;
    color: inherit;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    padding: 8px 4px;
    margin: -8px -4px;
    position: relative;
    z-index: 999;
    display: inline-block;
    border-radius: 2px;
    touch-action: manipulation;
    pointer-events: auto;
}

.terminal-next-text:hover {
    opacity: 0.8;
    background: rgba(0, 255, 255, 0.1);
}

.terminal-next-text:active {
    opacity: 0.6;
    background: rgba(0, 255, 255, 0.2);
}

.terminal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
    z-index: 10;
}

.terminal-close:hover {
    color: #ff6b6b;
}

.terminal-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    height: 30px;
    background: #2d2d2d;
    padding: 0 10px;
    border-bottom: 1px solid #555;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: #ffffff;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.source-code-terminal.active .terminal-header {
    display: flex;
}

.terminal-title {
    color: #ffffff;
    font-weight: normal;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.terminal-window-controls {
    display: flex;
    gap: 8px;
}

.window-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    border-radius: 2px;
    transition: background-color 0.2s ease, color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.window-control:hover {
    background: #555;
}

.window-control.minimize:hover {
    background: #4a4a4a;
}

.window-control.maximize:hover {
    background: #4a4a4a;
}

.window-control.close:hover {
    background: #e81123;
    color: #ffffff;
}