/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6441a5;
    --secondary-color: #9147ff;
    --dark-bg: #0e0e10;
    --darker-bg: #18181b;
    --card-bg: #1f1f23;
    --text-primary: #efeff1;
    --text-secondary: #adadb8;
    --accent: #f1c40f;
    --border-color: #2f2f35;
    --hover-color: #772ce8;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navigation Bar */
.navbar {
    background-color: var(--darker-bg);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.nav-links a:hover {
    color: var(--text-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content Layout */
.main-content {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1rem;
    padding: 1rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Stream Section */
.stream-section {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
}

.stream-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 95%;
    background-color: var(--darker-bg);
}

.stream-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.placeholder-content h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.placeholder-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.placeholder-content button,
.placeholder-chat button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.placeholder-content button:hover,
.placeholder-chat button:hover {
    transform: translateY(-2px);
}

/* Chat Section */
.chat-section {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
}

.chat-header {
    padding: 1rem;
    background-color: var(--darker-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1.1rem;
}

.toggle-chat {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.toggle-chat:hover {
    background-color: var(--hover-color);
}

.chat-frame {
    flex: 1;
    overflow: hidden;
}

.chat-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.placeholder-chat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
}

.placeholder-chat p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Content Sections */
.content-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease;
}

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

/* Footer */
.footer {
    background-color: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .chat-section {
        height: 500px;
    }

    .chat-container {
        height: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--darker-bg);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .main-content {
        padding: 0.5rem;
    }

    .content-section {
        padding: 2rem 1rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stream-section,
.chat-section,
.content-section {
    animation: fadeIn 0.5s ease-in-out;
}



.stream-switcher {
    width: 100%;
    height: 30px;
    display: block;
    position: absolute;
    bottom: 0;
    background: #3d3d3d;
}

.stream-icon-yt {
    color: #FF0000;
    font-size: 24px;
    margin: 2px 5px 0px 10px;
}

.stream-icon-twt {
    color: #6441a5;
    font-size: 22px;
    margin: 2px 5px 0px 10px;
}

.stream-switcher-button {
    background: none;
    border: none;
    cursor: pointer;
}