/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #00d4ff;
    --primary-red: #ff0040;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #111111;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --border-color: #222222;
    --glow-blue: 0 0 20px rgba(0, 212, 255, 0.5);
    --glow-red: 0 0 20px rgba(255, 0, 64, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Wallpaper Background - under scrolling blocks */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('wallpaper.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    opacity: 1;
}

/* Circuit Board Background - on top of wallpaper */
.circuit-board-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 170, 0, 0.03) 0%, transparent 50%);
    opacity: 0.4;
}

.circuit-traces {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    animation: tracePulse 3s ease-in-out infinite;
}

.trace {
    filter: drop-shadow(0 0 4px rgba(255, 170, 0, 0.6));
    animation: traceFlow 4s linear infinite;
}

.trace-1 {
    animation-duration: 5s;
    animation-delay: 0s;
}

.trace-2 {
    animation-duration: 6s;
    animation-delay: 1s;
}

.trace-3 {
    animation-duration: 4s;
    animation-delay: 0.5s;
}

.trace-4 {
    animation-duration: 7s;
    animation-delay: 1.5s;
}

@keyframes traceFlow {
    0% {
        stroke-dashoffset: 0;
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        stroke-dashoffset: -100;
        opacity: 0.3;
    }
}

@keyframes tracePulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Microchip Elements */
.microchip {
    position: absolute;
    z-index: 1;
    transition: opacity 0.3s ease;
    will-change: transform;
}

.microchip-1 {
    top: 20%;
    left: 10%;
    transform: rotate(-15deg);
}

.microchip-2 {
    top: 60%;
    right: 15%;
    transform: rotate(10deg);
}

.microchip-3 {
    bottom: 20%;
    left: 20%;
    transform: rotate(-5deg);
}

.chip-body {
    position: relative;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ff8c00, #ffaa00);
    border-radius: 8px;
    box-shadow: 
        0 0 30px rgba(255, 170, 0, 0.6),
        0 0 60px rgba(255, 107, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: chipGlow 2s ease-in-out infinite;
}

.chip-surface {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: linear-gradient(135deg, #ffaa00, #ff8c00);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.chip-logo {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

.chip-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ffaa00, #ff6b00);
    border-radius: 8px;
    opacity: 0.8;
    z-index: 1;
    filter: blur(8px);
    animation: glowPulse 2s ease-in-out infinite;
}

.chip-pixels {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2px;
    padding: 2px;
    z-index: 3;
    pointer-events: none;
}

.chip-pixels .pixel {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
    animation: pixelFlicker 1.5s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

.chip-pixels .pixel:nth-child(1) { animation-delay: 0s; }
.chip-pixels .pixel:nth-child(2) { animation-delay: 0.2s; }
.chip-pixels .pixel:nth-child(3) { animation-delay: 0.4s; }
.chip-pixels .pixel:nth-child(4) { animation-delay: 0.6s; }
.chip-pixels .pixel:nth-child(5) { animation-delay: 0.8s; }
.chip-pixels .pixel:nth-child(6) { animation-delay: 1s; }
.chip-pixels .pixel:nth-child(7) { animation-delay: 1.2s; }
.chip-pixels .pixel:nth-child(8) { animation-delay: 1.4s; }

@keyframes chipGlow {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(255, 170, 0, 0.6),
            0 0 60px rgba(255, 107, 0, 0.4),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(255, 170, 0, 0.8),
            0 0 80px rgba(255, 107, 0, 0.6),
            inset 0 0 25px rgba(255, 255, 255, 0.15);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes pixelFlicker {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Digital Text */
.digital-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 2px;
    text-transform: none;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 0 20px rgba(255, 170, 0, 0.2);
    z-index: 0;
    pointer-events: none;
    user-select: none;
    animation: textFade 4s ease-in-out infinite;
    text-align: center;
    max-width: 80%;
    line-height: 1.4;
}

@keyframes textFade {
    0%, 100% {
        opacity: 0.05;
    }
    50% {
        opacity: 0.12;
    }
}

/* Responsive adjustments for microchips */
@media (max-width: 768px) {
    .microchip-1 {
        top: 15%;
        left: 5%;
        transform: scale(0.7) rotate(-15deg);
    }
    
    .microchip-2 {
        top: 55%;
        right: 5%;
        transform: scale(0.7) rotate(10deg);
    }
    
    .microchip-3 {
        bottom: 15%;
        left: 10%;
        transform: scale(0.7) rotate(-5deg);
    }
    
    .digital-text {
        font-size: clamp(18px, 3vw, 32px);
        letter-spacing: 1px;
        max-width: 90%;
    }
    
    .chip-body {
        width: 80px;
        height: 80px;
    }
    
    .chip-logo {
        font-size: 12px;
    }
}

/* Scrolling Chips Animation */
.scrolling-chips {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.chip {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s, opacity 0.3s, transform 0.3s;
    will-change: transform;
    transform-origin: center center;
    width: 200px;
    height: 240px;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
}

.chip:hover {
    box-shadow: 0 8px 40px rgba(0, 212, 255, 0.4);
    border-color: var(--primary-blue);
    transform: scale(1.08);
}

.chip-label {
    background: linear-gradient(135deg, var(--bg-darker), var(--bg-card));
    border-bottom: 1px solid var(--border-color);
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 2;
}

.chip-internal {
    flex: 1;
    padding: 8px;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
    min-height: 0;
}

/* Avatar Grid */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 4px;
    width: 100%;
    height: 100%;
    min-height: 150px;
}

.avatar-box {
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
    animation: avatarPulse 2s ease-in-out infinite;
}

.avatar-box:hover {
    transform: scale(1.2);
    z-index: 10;
}

.avatar-box.avatar-small {
    min-height: 30px;
    height: 100%;
}

.avatar-box.avatar-medium {
    min-height: 35px;
    height: 100%;
}

.avatar-box.avatar-large {
    min-height: 40px;
    height: 100%;
}

.avatar-box[data-scene="0"] {
    background: linear-gradient(135deg, var(--primary-blue), #0099cc) !important;
}

.avatar-box[data-scene="1"] {
    background: linear-gradient(135deg, var(--primary-red), #cc0033) !important;
}

.avatar-box[data-scene="2"] {
    background: linear-gradient(135deg, #00ff88, #00cc6a) !important;
}

.avatar-box:nth-child(4n+1)[data-scene="0"] {
    background: linear-gradient(45deg, #9d4edd, #7209b7) !important;
}

.avatar-box:nth-child(4n+2)[data-scene="1"] {
    background: linear-gradient(225deg, #ffaa00, #ff6b00) !important;
}

.avatar-box:nth-child(4n+3)[data-scene="2"] {
    background: linear-gradient(315deg, #4cc9f0, #3a0ca3) !important;
}

.avatar-head {
    width: 60%;
    height: 60%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.avatar-head::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 30%;
    width: 40%;
    height: 40%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.avatar-head::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 25%;
    width: 50%;
    height: 20%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0 0 50% 50%;
}

@keyframes avatarPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.chip-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
}

.chip-members {
    color: var(--text-secondary);
    font-weight: 500;
}

.chip-activity {
    color: var(--primary-blue);
    font-weight: 600;
}

.chip-1 { top: 15%; left: 5%; transform: translateY(0); }
.chip-2 { top: 25%; right: 8%; transform: translateY(0); }
.chip-3 { top: 45%; left: 10%; transform: translateY(0); }
.chip-4 { top: 60%; right: 12%; transform: translateY(0); }
.chip-5 { top: 75%; left: 7%; transform: translateY(0); }
.chip-6 { top: 35%; right: 15%; transform: translateY(0); }
.chip-7 { top: 55%; left: 3%; transform: translateY(0); }
.chip-8 { top: 80%; right: 5%; transform: translateY(0); }

@media (max-width: 768px) {
    .chip {
        width: 150px;
        height: 180px;
    }
    
    .chip-label {
        font-size: 10px;
        padding: 8px 10px;
    }
    
    .avatar-grid {
        gap: 3px;
    }
    
    .chip-footer {
        font-size: 9px;
        padding: 6px 10px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 8px 0;
    border-bottom: 1px solid rgba(34, 34, 34, 0.5);
}

.navbar .logo,
.navbar .logo-image {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 10;
    isolation: isolate;
}

.logo-image-container {
    position: relative;
    display: inline-block;
    isolation: isolate;
    z-index: 10;
}

.logo-image {
    height: 32px;
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    -ms-interpolation-mode: bicubic;
    image-rendering: auto;
    will-change: auto;
    backface-visibility: visible;
    transform: none !important;
    filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.3)) brightness(1.1) contrast(1.1);
    -webkit-filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.3)) brightness(1.1) contrast(1.1);
    mix-blend-mode: screen;
    opacity: 0.95;
    transition: opacity 0.3s ease;
    background: transparent;
}

.logo-image-container {
    position: relative;
    display: inline-block;
    isolation: isolate;
    z-index: 10;
    background: transparent;
}

.logo-image:hover {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(0, 255, 0, 0.5)) brightness(1.15) contrast(1.15);
    -webkit-filter: drop-shadow(0 0 12px rgba(0, 255, 0, 0.5)) brightness(1.15) contrast(1.15);
}

.logo-text {
    display: flex;
    align-items: center;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo-zero {
    color: var(--primary-blue);
    text-shadow: 
        0 0 10px var(--primary-blue),
        0 0 20px var(--primary-blue),
        0 0 30px var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue), #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    filter: drop-shadow(0 0 8px var(--primary-blue));
}

.logo-hr {
    color: var(--primary-red);
    text-shadow: 
        0 0 10px var(--primary-red),
        0 0 20px var(--primary-red),
        0 0 30px var(--primary-red);
    background: linear-gradient(135deg, var(--primary-red), #cc0033);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    filter: drop-shadow(0 0 8px var(--primary-red));
}

.logo-tagline {
    font-size: 10px;
    color: var(--primary-blue);
    text-transform: lowercase;
    letter-spacing: 1.5px;
    margin-top: -3px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    position: relative;
    padding: 0 20px;
    display: inline-block;
}

.logo-tagline::before,
.logo-tagline::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 15px;
    height: 1px;
    background: var(--primary-blue);
    box-shadow: 0 0 5px var(--primary-blue);
    transform: translateY(-50%);
}

.logo-tagline::before {
    left: 0;
    background: linear-gradient(to right, 
        var(--primary-blue) 0%, 
        var(--primary-blue) 70%, 
        transparent 100%);
}

.logo-tagline::after {
    right: 0;
    background: linear-gradient(to left, 
        var(--primary-blue) 0%, 
        var(--primary-blue) 70%, 
        transparent 100%);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 80px;
    overflow: hidden;
    z-index: 2;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.particles {
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 64, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 40px;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    margin-top: 60px;
}

.hero-subtitle h2 {
    font-size: 24px;
    font-weight: 400;
    text-transform: lowercase;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.hero-subtitle p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.scroll-indicator {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--primary-blue);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}

/* Section Styles */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: lowercase;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

/* About Section */
.about-section {
    background: var(--bg-darker);
}

.about-content {
    max-width: 800px;
    margin-bottom: 60px;
}

.about-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.partners {
    margin-top: 80px;
}

.partners-label {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-logo {
    padding: 20px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Live News Section */
.live-news-section {
    background: var(--bg-dark);
}

.news-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
}

.news-feed {
    max-height: 600px;
    overflow-y: auto;
    margin-bottom: 30px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    animation: slideIn 0.5s ease-out;
}

.news-item:last-child {
    border-bottom: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-time {
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 600;
    min-width: 80px;
    font-family: 'Courier New', monospace;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.news-excerpt {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.news-source {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-controls {
    display: flex;
    gap: 15px;
}

/* Intelligence Section */
.intelligence-section {
    background: var(--bg-darker);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--primary-blue);
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.metric-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.metric-change {
    font-size: 14px;
    font-weight: 600;
}

.metric-change.positive {
    color: #00ff88;
}

.metric-change.negative {
    color: var(--primary-red);
}

.metric-change.neutral {
    color: var(--text-muted);
}

.intelligence-chart {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    height: 400px;
}

.intelligence-chart canvas {
    width: 100%;
    height: 100%;
}

/* Chat Section */
.chat-section {
    background: var(--bg-dark);
}

.chat-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    height: 600px;
}

.chat-rooms-list {
    background: var(--bg-darker);
    padding: 20px;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.chat-rooms-list h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.room-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 10px;
}

.room-item:hover {
    background: var(--bg-card);
}

.room-item.active {
    background: var(--bg-card);
    border-left: 3px solid var(--primary-blue);
}

.room-icon {
    font-size: 24px;
}

.room-info {
    flex: 1;
}

.room-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.room-count {
    font-size: 12px;
    color: var(--text-muted);
}

.chat-window {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 18px;
}

.online-count {
    font-size: 12px;
    color: var(--text-muted);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    gap: 15px;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.message-author {
    font-weight: 600;
    color: var(--text-primary);
}

.message-time {
    font-size: 12px;
    color: var(--text-muted);
}

.message-text {
    color: var(--text-secondary);
    line-height: 1.5;
}

.chat-input-container {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 14px;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.chat-send {
    background: var(--primary-blue);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-send:hover {
    background: #00b8e6;
}

/* Apps Section */
.apps-section {
    background: var(--bg-darker);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.app-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.app-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.app-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.app-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.app-link:hover {
    color: var(--primary-red);
}

.apps-features {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.apps-features h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.apps-features > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 18px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    text-align: left;
}

.feature-item {
    color: var(--text-secondary);
    padding: 10px 0;
}

/* Why Us Section */
.why-us-section {
    background: var(--bg-dark);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.why-us-card {
    text-align: center;
    padding: 40px;
}

.why-us-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.why-us-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.why-us-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Careers Section */
.careers-section {
    background: var(--bg-darker);
}

.careers-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.careers-image {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 60px;
    text-align: center;
}

.placeholder-image {
    font-size: 120px;
}

.careers-text {
    font-size: 18px;
    line-height: 2;
}

.careers-text h3 {
    font-size: 32px;
    margin-bottom: 30px;
    text-transform: lowercase;
}

.careers-cta {
    font-weight: 600;
    margin: 20px 0;
}

.testimonial {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial blockquote {
    font-size: 24px;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.testimonial cite {
    color: var(--text-muted);
    font-size: 14px;
}

/* Contact Section */
.contact-section {
    background: var(--bg-dark);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.form-group input,
.form-group select {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    color: var(--text-primary);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    color: #00ff88;
    display: block;
}

.form-message.error {
    background: rgba(255, 0, 64, 0.1);
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    display: block;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: #00b8e6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 48px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-darker);
        width: 100%;
        padding: 20px;
        transition: left 0.3s;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 48px;
    }

    .chat-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .chat-rooms-list {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 200px;
    }

    .careers-content {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}
