@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #ff9900; /* Amazon-like orange */
    --secondary-color: #232f3e; /* Amazon-like dark blue */
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
    --chat-bg: #333333;
    --chat-user-bg: #ff9900;
    --chat-ai-bg: #444444;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background-color: var(--secondary-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 4rem 2rem;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://raw.githubusercontent.com/Amitmeena55/Aman-Meena-/main/Technical_01.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

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

.btn {
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

/* Chat Section */
.chat-container {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-header {
    background-color: var(--secondary-color);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.user-message {
    align-self: flex-end;
    background-color: var(--chat-user-bg);
    color: black;
    border-bottom-right-radius: 5px;
}

.ai-message {
    align-self: flex-start;
    background-color: #222222;
    color: #e0e0e0;
    border-bottom-left-radius: 5px;
    border: 1px solid #444;
}

.ai-message img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    border-radius: 8px;
    margin-top: 10px;
    display: block;
}

.typing-indicator {
    font-style: italic;
    color: #aaa;
    margin-bottom: 10px;
    display: none;
}

.chat-input {
    padding: 1rem;
    background-color: var(--secondary-color);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border-radius: 25px;
    border: none;
    background-color: var(--bg-color);
    color: white;
    outline: none;
}

.chat-input button {
    background-color: var(--primary-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--secondary-color);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* About Page */
.profile-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column; /* Stack on mobile */
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .profile-card {
        flex-direction: row;
        text-align: left;
    }
}

.profile-img-container img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
}

.stats {
    display: flex;
    gap: 20px;
    margin-top: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .stats {
        justify-content: flex-start;
    }
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: #aaa;
}

/* Privacy Page */
.privacy-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
}

.privacy-content h2 {
    color: var(--primary-color);
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-top: 2rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--secondary-color);
    color: #aaa;
    margin-top: 3rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message {
    animation: fadeIn 0.3s ease;
}

/* Hacker Mode / Matrix Effect */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

body.hacker-mode #matrix-canvas {
    opacity: 0.2; /* Subtle background */
}

/* Hacker Mode Theme Overrides */
body.hacker-mode {
    --primary-color: #0f0; /* Neon Green */
    --secondary-color: #000; /* Black */
    --bg-color: #050505; /* Very Dark Grey */
    --text-color: #0f0;
    --card-bg: #001100;
    --chat-bg: #001100;
    --chat-user-bg: #0f0;
    --chat-ai-bg: #002200;
    font-family: 'Courier New', Courier, monospace; /* Terminal Font */
}

body.hacker-mode .ai-message {
    color: #0f0;
    border: 1px solid #0f0;
}

body.hacker-mode .user-message {
    color: black;
    background-color: #0f0;
}

body.hacker-mode header {
    border-bottom: 1px solid #0f0;
}

body.hacker-mode .btn, body.hacker-mode button {
    border: 1px solid #0f0;
    box-shadow: 0 0 5px #0f0;
}

body.hacker-mode nav a:hover, body.hacker-mode nav a.active {
    text-shadow: 0 0 5px #0f0;
}

/* Hacker Mode Button */
#hacker-mode-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

#hacker-mode-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Bluetooth Simulation Button */
#bluetooth-sim-btn {
    background: transparent;
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

#bluetooth-sim-btn:hover {
    background: #ff0000 !important;
    color: #000 !important;
    box-shadow: 0 0 15px #ff0000;
    text-shadow: none;
}

/* SECURITY GATE */
#security-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    color: #0f0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', Courier, monospace;
}

#security-gate h1 {
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #0f0;
    margin-bottom: 20px;
}

.scanner-container {
    position: relative;
    width: 80%;
    max-width: 600px;
    height: 400px;
    border: 2px solid #0f0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    overflow: hidden;
    background: #001100;
}

#gate-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Mirror effect */
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0f0;
    box-shadow: 0 0 10px #0f0;
    animation: scan 2s linear infinite;
    z-index: 2;
}

@keyframes scan {
    0% { top: 0; opacity: 0.5; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0.5; }
}

.hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hud-overlay::before, .hud-overlay::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid #0f0;
    opacity: 0.7;
}

.hud-overlay::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.hud-overlay::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

#gate-status {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    min-height: 1.5em;
    color: #0f0;
}

#enter-site-btn {
    margin-top: 20px;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid #0f0;
    color: #0f0;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    display: none; /* Hidden by default */
}

#enter-site-btn:hover {
    background: #0f0;
    color: #000;
    box-shadow: 0 0 20px #0f0;
}

/* Lock the main content initially */
body.locked {
    overflow: hidden;
}

body.locked header, 
body.locked main, 
body.locked footer {
    filter: blur(5px);
    pointer-events: none;
}
