/* Global Styles */
:root {
    --bg-color: #0a0e17;
    --sidebar-bg: rgba(17, 24, 39, 0.95);
    --card-bg: rgba(30, 41, 59, 0.6);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent-cyan: #00f3ff;
    --accent-purple: #bc13fe;
    --accent-blue: #2563eb;
    --glow-cyan: 0 0 10px rgba(0, 243, 255, 0.5);
    --glow-purple: 0 0 10px rgba(188, 19, 254, 0.5);
    --border-color: rgba(148, 163, 184, 0.2);
}

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

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 243, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(188, 19, 254, 0.1) 0%, transparent 20%);
    min-height: 100vh;
}

/* Container for sidebar and main content */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: var(--text-primary);
    padding: 1.5rem;
    border-right: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar h2,
.sidebar-heading {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    text-shadow: var(--glow-cyan);
    font-weight: 600;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 0.8rem;
}

.sidebar ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.8rem;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
}

.sidebar ul li a:hover {
    background: rgba(0, 243, 255, 0.1);
    color: var(--accent-cyan);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: var(--glow-cyan);
    transform: translateX(5px);
}

/* Weather Widget Styles */
.weather-widget {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.weather-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.weather-widget h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border: none;
    text-shadow: none;
}

.date-time {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
    font-family: 'Courier New', monospace;
}

.weather-info {
    padding: 1rem 0;
}

.weather-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    min-height: 64px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.weather-icon img {
    width: 64px;
    height: 64px;
}

.temperature {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.weather-description {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

/* IP and Location Info Styles */
.ip-location-info {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.ip-location-info h3 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--accent-purple);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ip-info, .location-info, .isp-info {
    margin-bottom: 0.8rem;
    display: flex;
    font-size: 0.85rem;
    align-items: center;
}

.label {
    font-weight: bold;
    color: var(--text-secondary);
    min-width: 80px;
    margin-right: 10px;
}

.value {
    color: var(--accent-cyan);
    flex: 1;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.3));
}

header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Main Content Styles */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

/* Chat Section Styles */
.chat-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 4rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.chat-section::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(45deg, transparent, var(--accent-cyan), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.chat-window {
    display: flex;
    flex-direction: column;
    height: 700px;
    max-height: 80vh;
}

.chat-header {
    padding: 1.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.chat-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--accent-cyan);
    font-weight: 300;
    font-size: 1.6rem;
    text-shadow: var(--glow-cyan);
}

.chat-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.chat-launch-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
}

.launch-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 450px;
    flex: 1;
    min-width: 300px;
    transition: all 0.3s ease;
}

.launch-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.25);
}

.launch-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.launch-card h4 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.launch-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.launch-note {
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

.launch-button {
    padding: 1.3rem 3.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 6px 20px rgba(188, 19, 254, 0.4);
}

.launch-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(188, 19, 254, 0.6);
}

.launch-button:active {
    transform: translateY(-1px);
}

/* Chatbots Section Styles */
.chatbots-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.chatbots-section > p {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.chatbot-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.15);
}

.card:hover::before {
    opacity: 1;
}

.card.selected {
    border-color: var(--accent-purple);
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.4);
    background: rgba(188, 19, 254, 0.1);
}

.card.selected::after {
    content: '✓ Selected';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-purple);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: linear-gradient(90deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.visit-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--accent-cyan);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.visit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
    z-index: -1;
}

.visit-button:hover {
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.visit-button:hover::before {
    width: 100%;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--sidebar-bg);
    color: var(--text-secondary);
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .chat-window {
        height: 550px;
    }
    
    .chat-launch-container {
        padding: 2rem;
    }
    
    .launch-card {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 2rem 1rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .chat-section {
        padding: 0;
    }
    
    .chat-window {
        height: 500px;
    }
    
    .chat-header {
        padding: 1rem 1.5rem;
    }
    
    .chat-header h3 {
        font-size: 1.3rem;
    }
    
    .chat-launch-container {
        padding: 1.5rem;
    }
    
    .launch-card {
        padding: 2.5rem 1.5rem;
    }
    
    .launch-icon {
        font-size: 3.5rem;
    }
    
    .launch-card h4 {
        font-size: 1.5rem;
    }
    
    .launch-card p {
        font-size: 0.95rem;
    }
    
    .launch-button {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
}

footer nav {
    margin-top: 1rem;
}

footer nav a {
    color: var(--text-secondary);
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer nav a:hover {
    color: var(--accent-cyan);
    text-shadow: var(--glow-cyan);
}

/* Section intro / thin-content paragraph */
.section-intro {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 800px;
}

/* Dynamic chatbot selected name label */
.chatbot-selected-name {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: var(--glow-cyan);
    margin: 0;
}

/* Accessibility: respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .launch-icon {
        animation: none;
    }
}
