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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    overflow-x: hidden;
    background: #000;
}

/* Slideshow Background */
.slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 50, 0.85));
    z-index: -1;
}

/* Header */
header {
    padding: 3rem 0;
    text-align: center;
    animation: fadeInDown 1s ease;
}

.logo {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.2rem;
    color: #aaa;
    letter-spacing: 2px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Agents Grid */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.agent-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease;
    animation-fill-mode: both;
}

.agent-card:nth-child(1) { animation-delay: 0.1s; }
.agent-card:nth-child(2) { animation-delay: 0.2s; }
.agent-card:nth-child(3) { animation-delay: 0.3s; }
.agent-card:nth-child(4) { animation-delay: 0.4s; }

.agent-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}

.agent-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.agent-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.agent-card p {
    color: #bbb;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

/* Agent Window */
.agent-window {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 85vw;
    height: 85vh;
    background: rgba(20, 20, 30, 0.98);
    border-radius: 15px;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.agent-window.open {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.agent-window.minimized {
    transform: translate(-50%, 100vh) scale(0.5);
    opacity: 0;
}

.agent-window.maximized {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

/* Window Header */
.window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px 15px 0 0;
    cursor: move;
}

.window-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.window-icon {
    font-size: 1.5rem;
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.control-btn.minimize {
    background: rgba(255, 189, 68, 0.8);
}

.control-btn.minimize:hover {
    background: rgba(255, 189, 68, 1);
    transform: scale(1.1);
}

.control-btn.maximize {
    background: rgba(40, 205, 65, 0.8);
}

.control-btn.maximize:hover {
    background: rgba(40, 205, 65, 1);
    transform: scale(1.1);
}

.control-btn.close {
    background: rgba(255, 69, 58, 0.8);
}

.control-btn.close:hover {
    background: rgba(255, 69, 58, 1);
    transform: scale(1.1);
}

/* Window Body */
.window-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

#agentFrame {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .agents-grid {
        grid-template-columns: 1fr;
    }
    
    .agent-window {
        width: 95vw;
        height: 90vh;
    }
    
    .window-header {
        padding: 0.75rem 1rem;
    }
    
    .window-title {
        font-size: 0.9rem;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

/* Draggable cursor */
.window-header:active {
    cursor: grabbing;
}
