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

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: black;
    font-family: Arial, sans-serif;
    color: white;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    transform: scale(1.01);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.background-video.active {
    opacity: 1;
}

/* Enter Button and Loading Bar */
.center-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.enter-button {
    padding: 20px 40px;
    font-size: 24px;
    background: transparent;
    color: white;
    border: 2px solid #cb6724;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: Arial, sans-serif;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.enter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(203, 103, 36, 0.2), transparent);
    transition: 0.5s;
}

.enter-button:hover {
    background: #cb6724;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(203, 103, 36, 0.3);
}

.enter-button:hover::before {
    left: 100%;
}

.title-container {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.title {
    color: white;
    font-size: 72px;
    font-weight: bold;
    pointer-events: none;
    user-select: none;
    background: linear-gradient(45deg, #fff, #cb6724);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loading-bar-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 4px;
    background: rgba(203, 103, 36, 0.1);
    display: none;
    border-radius: 2px;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: #cb6724;
    transition: width 0.1s linear;
    border-radius: 2px;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(17, 17, 17, 0.95));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    border-bottom: 1px solid rgba(203, 103, 36, 0.1);
}

.nav-brand {
    color: white;
    font-size: 24px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    letter-spacing: 2px;
}

.nav-brand a {
    color: white !important;
    text-decoration: none;
}

.nav-buttons {
    display: flex;
    gap: 20px;
}

.nav-button {
    background: transparent;
    border: 1px solid #cb6724;
    color: white;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(203, 103, 36, 0.2), transparent);
    transition: 0.5s;
}

.nav-button:hover {
    background: #cb6724;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(203, 103, 36, 0.3);
}

.nav-button:hover::before {
    left: 100%;
}

/* Content Layout */
.content {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 20px;
    text-align: center;
    color: white;
}

.content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-family: Arial, sans-serif;
    background: linear-gradient(45deg, #fff, #cb6724);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #999;
    margin-bottom: 60px;
}

.frameworks-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.framework-card {
    background: linear-gradient(45deg, #111 0%, #1a1a1a 100%);
    border: 1px solid rgba(203, 103, 36, 0.1);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.framework-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(203, 103, 36, 0.1) 0%, rgba(203, 103, 36, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.framework-card:hover {
    transform: scale(1.02);
    border-color: rgba(203, 103, 36, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.framework-card-content {
    flex: 1;
    text-align: left;
    padding-right: 40px;
}

.framework-card h2 {
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: bold;
    background: linear-gradient(45deg, #fff, #cb6724);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.framework-card p {
    font-size: 18px;
    line-height: 1.6;
    color: #999;
    margin-bottom: 0;
}

.select-btn {
    background: transparent;
    border: 2px solid #cb6724;
    color: white;
    padding: 16px 32px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.select-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.select-btn:hover {
    background: #cb6724;
    border-color: #cb6724;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(203, 103, 36, 0.3);
}

.select-btn:hover::before {
    left: 100%;
}

/* Chat and Generate Pages */
.app-container {
    display: flex;
    padding: 80px 20px 20px;
    height: 100vh;
    gap: 20px;
}

.sidebar {
    width: 300px;
    background: linear-gradient(45deg, #111 0%, #1a1a1a 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    border: 1px solid rgba(203, 103, 36, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.agent-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #cb6724, #e67e22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(203, 103, 36, 0.3);
}

.agent-details h2 {
    font-size: 20px;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #fff, #cb6724);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.agent-details p {
    color: #999;
    font-size: 14px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #999;
}

.specialization-item, .focus-item {
    padding: 10px;
    background: linear-gradient(45deg, #111 0%, #1a1a1a 100%);
    border: 1px solid rgba(203, 103, 36, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.specialization-item::before, .focus-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(203, 103, 36, 0.1), transparent);
    transition: 0.5s;
}

.specialization-item:hover, .focus-item:hover {
    background: linear-gradient(45deg, #1a1a1a 0%, #222 100%);
    border-color: rgba(203, 103, 36, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.specialization-item:hover::before, .focus-item:hover::before {
    left: 100%;
}

.experience-select {
    width: 100%;
    padding: 10px;
    background: linear-gradient(45deg, #111 0%, #1a1a1a 100%);
    border: 1px solid rgba(203, 103, 36, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.experience-select:hover {
    border-color: rgba(203, 103, 36, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chat-header h1 {
    font-size: 24px;
    background: linear-gradient(45deg, #fff, #cb6724);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-btn {
    padding: 8px 16px;
    background: linear-gradient(45deg, #111 0%, #1a1a1a 100%);
    border: 1px solid rgba(203, 103, 36, 0.1);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.header-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(203, 103, 36, 0.1), transparent);
    transition: 0.5s;
}

.header-btn:hover {
    background: linear-gradient(45deg, #1a1a1a 0%, #222 100%);
    border-color: rgba(203, 103, 36, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.header-btn:hover::before {
    left: 100%;
}

.message-time {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* Chat Styles */
.chat-container {
    flex-grow: 1;
    background: linear-gradient(45deg, #111 0%, #1a1a1a 100%);
    border-radius: 16px;
    border: 1px solid rgba(203, 103, 36, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    max-width: 80%;
    color: white;
}

.user-message {
    background: rgba(203, 103, 36, 0.1);
    margin-left: auto;
    border: 1px solid rgba(203, 103, 36, 0.2);
}

.bot-message {
    background: linear-gradient(45deg, #111 0%, #1a1a1a 100%);
    margin-right: auto;
    border: 1px solid rgba(203, 103, 36, 0.1);
}

.chat-input {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(45deg, #111 0%, #1a1a1a 100%);
    border-top: 1px solid rgba(203, 103, 36, 0.1);
}

.chat-input textarea {
    flex-grow: 1;
    padding: 15px;
    background: linear-gradient(45deg, #0a0a0a 0%, #111 100%);
    border: 1px solid rgba(203, 103, 36, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    resize: none;
    height: 50px;
    line-height: 20px;
    transition: all 0.3s ease;
}

.chat-input textarea:focus {
    outline: none;
    border-color: rgba(203, 103, 36, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.send-button {
    padding: 0 30px;
    background: linear-gradient(45deg, #cb6724, #e67e22);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.send-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(203, 103, 36, 0.3);
}

.send-button:hover::before {
    left: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(203, 103, 36, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(203, 103, 36, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(203, 103, 36, 0.3);
}

/* Back Button */
.nav-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.back-button {
    background: transparent;
    border: 2px solid #cb6724;
    color: white;
    padding: 8px 24px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.back-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(203, 103, 36, 0.2), transparent);
    transition: 0.5s;
}

.back-button:hover {
    background: #cb6724;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(203, 103, 36, 0.3);
}

.back-button:hover::before {
    left: 100%;
}

/* Agent Form Styles */
.agent-form {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 40px;
    color: white;
    background: linear-gradient(45deg, rgba(17, 17, 17, 0.95), rgba(26, 26, 26, 0.95));
    border-radius: 16px;
    border: 1px solid rgba(203, 103, 36, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.action-button {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.load-button {
    background: transparent;
    border: 2px solid #cb6724;
    color: white;
}

.load-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(203, 103, 36, 0.2), transparent);
    transition: 0.5s;
}

.load-button:hover {
    background: #cb6724;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(203, 103, 36, 0.3);
}

.load-button:hover::before {
    left: 100%;
}

.create-button {
    background: linear-gradient(45deg, #cb6724, #e67e22);
    border: none;
    color: white;
}

.create-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.create-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(203, 103, 36, 0.3);
}

.create-button:hover::before {
    left: 100%;
}

/* Active States */
.header-btn.active {
    background: rgba(203, 103, 36, 0.2);
    border-color: rgba(203, 103, 36, 0.3);
}

.specialization-item.selected,
.focus-item.selected {
    background: rgba(203, 103, 36, 0.1);
    border-color: rgba(203, 103, 36, 0.3);
}

/* Copyright Footer */
.copyright {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    z-index: 100;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
}
