/* PIXEL VAULT - Main Stylesheet */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --header-bg: #ffffff;
    --nav-bg: #f8f9fa;
    --nav-text: #333333;
    --nav-hover: #007bff;
    --button-bg: #007bff;
    --button-text: #ffffff;
    --button-hover: #0056b3;
    --border-color: #dee2e6;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Geek Mode (Commodore 64 theme) */
body.geek-mode {
    --bg-color: #40318d;
    --text-color: #bfb8ff;
    --header-bg: #ffffff;
    --nav-bg: #2e1065;
    --nav-text: #bfb8ff;
    --nav-hover: #ffffff;
    --button-bg: #7869c4;
    --button-text: #ffffff;
    --button-hover: #bfb8ff;
    --border-color: #7c71da;
    --shadow: rgba(0, 0, 0, 0.3);
    border: 20px solid #7c71da;
    min-height: calc(100vh - 40px);
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
}

body.geek-mode {
    font-family: 'Courier New', monospace;
}

/* Header */
.header {
    background-color: var(--header-bg);
    padding: 20px 0;
    box-shadow: 0 2px 4px var(--shadow);
}

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

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.ascii-logo {
    font-size: clamp(8px, 2.5vw, 14px);
    line-height: 1;
    white-space: pre;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: 'Courier New', monospace !important;
}

/* PIXEL styling - Rainbow effect */
.pixel-line {
    background: linear-gradient(
        45deg,
        #ff0000 0%,
        #ff8800 16.66%,
        #ffff00 33.33%,
        #00ff00 50%,
        #0088ff 66.66%,
        #8800ff 83.33%,
        #ff0088 100%
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-shift 10s ease-in-out infinite;
}

/* VAULT styling - Dark grey/black effect */
.vault-line {
    background: linear-gradient(
        45deg,
        #1a1a1a 0%,
        #333333 25%,
        #4d4d4d 50%,
        #333333 75%,
        #1a1a1a 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: dark-shine 8s ease-in-out infinite;
}

@keyframes rainbow-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes dark-shine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.intellecta-logo {
    margin-top: 10px;
}

.intellecta-logo img {
    display: block;
    margin: 0 auto;
    max-width: 200px;
    height: auto;
}

/* Navigation */
.navbar {
    background-color: var(--nav-bg);
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.navbar li {
    margin: 0;
}

.navbar a {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--nav-hover);
    background-color: rgba(0, 123, 255, 0.1);
}

body.geek-mode .navbar a:hover,
body.geek-mode .navbar a.active {
    background-color: rgba(191, 184, 255, 0.2);
}

/* Geek Mode Toggle */
.geek-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.geek-toggle button {
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.geek-toggle button:hover {
    background: var(--button-hover);
}

body.geek-mode .geek-toggle button {
    font-family: 'Courier New', monospace;
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: 60vh;
}

.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background: var(--button-hover);
    color: var(--button-text);
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    box-shadow: 0 2px 4px var(--shadow);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature p {
    color: var(--text-color);
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: var(--nav-bg);
    color: var(--nav-text);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background-color: var(--bg-color);
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Standard Login Modal */
.standard-modal .modal-content {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 450px;
}

.standard-modal .modal-header {
    background: var(--nav-bg);
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.standard-modal .modal-header h2 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.standard-modal .modal-body {
    padding: 30px;
}

.standard-modal .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.standard-modal .close-btn:hover {
    opacity: 1;
}

.standard-modal .form-group {
    margin-bottom: 20px;
}

.standard-modal .form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.standard-modal .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.3s;
}

.standard-modal .form-input:focus {
    outline: none;
    border-color: var(--button-bg);
}

.standard-modal .google-login-btn {
    width: 100%;
    padding: 12px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.standard-modal .google-login-btn:hover {
    background: #3367d6;
}

.standard-modal .divider {
    margin: 20px 0;
    position: relative;
    text-align: center;
}

.standard-modal .divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.standard-modal .divider span {
    background: var(--bg-color);
    padding: 0 15px;
    color: var(--text-color);
    opacity: 0.7;
}

.standard-modal .login-btn {
    width: 100%;
    padding: 12px;
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.standard-modal .login-btn:hover {
    background: var(--button-hover);
}

.standard-modal .login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.standard-modal .error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

/* Terminal Modal */
.terminal-modal .modal-content {
    background: #000;
    border: 3px solid #666;
    border-radius: 8px;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.3),
        inset 0 0 0 1px #333;
    width: 800px;
    max-width: 90vw;
}

.terminal-header {
    background: linear-gradient(to bottom, #666, #333);
    padding: 8px 15px;
    border-radius: 5px 5px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

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

.terminal-button.close { background: #ff5f56; }
.terminal-button.minimize { background: #ffbd2e; }
.terminal-button.maximize { background: #27ca3f; }

.terminal-title {
    color: #fff;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    margin-left: 10px;
}

.terminal-body {
    background: #000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding: 20px;
    height: 500px;
    max-height: 500px;
    overflow: hidden;
    border-radius: 0 0 5px 5px;
    position: relative;
}

.fake-terminal {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #00ff00;
    line-height: 1.4;
    padding: 0;
    margin: 0;
    white-space: pre;
    overflow-wrap: break-word;
    caret-color: #00ff00;
    overflow: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    
    /* Disable text selection */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
    -webkit-touch-callout: none; /* iOS Safari */
    -khtml-user-select: none; /* Konqueror HTML */
}

.fake-terminal::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.fake-terminal:focus {
    outline: none;
}

.matrix-char {
    position: absolute;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    pointer-events: none;
    opacity: 1;
    transition: none;
}

.terminal-line {
    margin: 5px 0;
    white-space: pre;
}

.input-field {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    outline: none;
    display: inline;
    width: 300px;
}

.terminal-btn {
    background: none;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 2px 8px;
    cursor: pointer;
    margin: 0 5px;
}

.terminal-btn:hover {
    background: #00ff00;
    color: #000;
}

.terminal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.terminal-btn:disabled:hover {
    background: none;
    color: #00ff00;
}

/* Minimized Terminal Icon */
.minimized-terminal {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #333, #666);
    border: 2px solid #00ff00;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.minimized-terminal:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.5);
}

.minimized-terminal::before {
    content: '>';
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: bold;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(0, 255, 0, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3); }
}

/* Terminal Animation Effects */
.terminal-explode {
    animation: explode 0.6s ease-out forwards;
    transform-origin: center center;
}

.terminal-rebuild {
    animation: rebuild 0.8s ease-in-out forwards;
    transform-origin: center center;
}

@keyframes explode {
    0% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: brightness(1);
    }
    25% { 
        transform: scale(1.05) rotate(2deg);
        opacity: 1;
        filter: brightness(1.2);
        box-shadow: 0 0 20px rgba(255, 100, 100, 0.6);
    }
    50% { 
        transform: scale(1.3) rotate(10deg);
        opacity: 0.7;
        filter: brightness(1.5);
        box-shadow: 0 0 40px rgba(255, 0, 0, 0.8);
    }
    75% { 
        transform: scale(0.5) rotate(45deg);
        opacity: 0.3;
        filter: brightness(2);
        box-shadow: 0 0 60px rgba(255, 50, 50, 1);
    }
    100% { 
        transform: scale(0) rotate(180deg);
        opacity: 0;
        filter: brightness(3);
        box-shadow: 0 0 80px rgba(255, 0, 0, 0);
    }
}

@keyframes rebuild {
    0% { 
        transform: scale(0) rotate(-180deg);
        opacity: 0;
        filter: brightness(3);
    }
    25% { 
        transform: scale(0.3) rotate(-90deg);
        opacity: 0.3;
        filter: brightness(2);
        box-shadow: 0 0 60px rgba(0, 255, 100, 0.8);
    }
    50% { 
        transform: scale(0.8) rotate(-20deg);
        opacity: 0.7;
        filter: brightness(1.5);
        box-shadow: 0 0 40px rgba(0, 255, 0, 0.9);
    }
    75% { 
        transform: scale(1.1) rotate(-5deg);
        opacity: 0.9;
        filter: brightness(1.2);
        box-shadow: 0 0 25px rgba(0, 255, 0, 0.7);
    }
    100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: brightness(1);
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    }
}

.terminal-minimize {
    animation: minimize 0.5s ease-in-out;
}

@keyframes minimize {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(0.5) translateX(-50%) translateY(50%);
        opacity: 0.7;
    }
    100% { 
        transform: scale(0.1) translateX(-200%) translateY(200%);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar ul {
        gap: 15px;
    }
    
    .navbar a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
    
    .ascii-logo {
        font-size: clamp(6px, 3.5vw, 12px);
    }
    
    .input-field {
        width: 200px;
    }
}

/* Pricing Table Styles */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.pricing-card.featured {
    border-color: var(--button-bg);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--button-bg);
    color: var(--button-text);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--button-bg);
    margin-bottom: 20px;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.7;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .highlight {
    font-weight: bold;
    color: var(--button-bg);
}