/* =========================================
   1. RESET & BASE
   ========================================= */
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    background-color: #050505;
    font-family: sans-serif;
    color: white;
    overflow: hidden;
}

/* =========================================
   2. BACKGROUND ANIMATION
   ========================================= */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    background: linear-gradient(135deg, #333333 0%, #ff8c00 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(80px);
    opacity: 0.7;
}

.blob:nth-child(1) {
    width: 600px;
    height: 600px;
    top: -150px;
    left: -150px;
    animation: morphing 20s ease-in-out infinite alternate, float1 40s ease-in-out infinite alternate;
}

.blob:nth-child(2) {
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: -100px;
    animation: morphing 25s ease-in-out infinite alternate-reverse, float2 35s ease-in-out infinite alternate;
}

.blob:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 30%;
    animation: morphing 18s ease-in-out infinite alternate, float3 30s ease-in-out infinite alternate;
    opacity: 0.5;
}

/* =========================================
   3. LAYOUT STRUCTURE
   ========================================= */
.layout-container {
    display: flex;
    height: 100vh;
    position: relative;
    z-index: 1;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* =========================================
   4. SIDEBAR COMPONENT
   ========================================= */
/* Base Sidebar */
.sidebar {
    width: 15%;
    min-width: 180px;
    max-width: 220px;
    padding: 30px 0;
    background: transparent;
    backdrop-filter: none;
    border-right: none;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.site-logo {
    position: absolute;
    top: 30px;
    left: 40px;
    z-index: 10;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff8c00;
}

/* Navigation */
.sidebar ul {
    list-style: none;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar li {
    margin-bottom: 20px;
}

.sidebar ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s, padding-left 0.3s;
    display: flex;
    align-items: center;
    white-space: nowrap;
    justify-content: flex-start;
    padding-left: 25px;
    width: 100%;
    height: auto;
    margin: 0;
    border: none;
    background: transparent;
}

.sidebar ul a span {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.sidebar:hover ul a span {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sidebar ul a i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.sidebar ul a:hover i { 
    color: #ff8c00; 
    border-color: #ff8c00; 
    background: rgba(255, 140, 0, 0.1); 
}

.sidebar ul a.active i {
    border-color: #ff8c00;
    background: rgba(255, 140, 0, 0.1);
    color: #ff8c00;
}

.sidebar ul a.active span {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    display: block;
    background: #ff8c00;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.sidebar ul a.active span::before {
    display: none;
}

/* Social Media */
.social-container {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 25px;
}

.social-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 8px;
}

.social-btn:hover {
    background: #ff8c00;
    color: white;
    border-color: #ff8c00;
}

/* =========================================
   5. CONTENT SECTIONS
   ========================================= */
.header {
    padding: 30px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-wrapper {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Hero / About Section */
.hero-container {
    position: relative;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 3rem;
    margin: 0 0 20px 0;
    color: white;
}

.hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

/* Video Highlight Section */
.video-highlight-container {
    position: relative;
    background: rgba(20, 20, 20, 0.9);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(20, 20, 20, 0.8), rgba(20, 20, 20, 0.8)), linear-gradient(135deg, #ff8c00, #00f2ff);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Badges & Status */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.8);
    width: fit-content;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: currentColor;
    border-radius: 50%;
}

.status-dot.pulse {
    animation: blink 1.5s infinite ease-in-out;
    box-shadow: 0 0 8px currentColor;
}

.section-badge.rec-mode {
    border-color: rgba(255, 59, 48, 0.3);
    background: rgba(20, 0, 0, 0.9);
    color: #ff453a;
}

.section-badge.pos-top-left {
    position: absolute;
    top: 0;
    left: 30px;
    transform: translateY(-50%);
}

.section-badge.pos-top-center {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.section-badge.pos-top-right {
    position: absolute;
    top: 0;
    right: 30px;
    transform: translateY(-50%);
}

/* Video Content */
.video-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.video-text {
    flex: 1;
    min-width: 300px;
}

.video-text h2 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.catchphrase {
    font-size: 1.1rem;
    color: #00f2ff;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 30px;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #cc0000;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    background-color: #ff0000;
}

.video-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    aspect-ratio: 16/9;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.mic-icon {
    position: absolute;
    bottom: 25px;
    right: 25px;
    font-size: 2.5rem;
    color: #ff8c00;
    opacity: 0.8;
    animation: mic-rotate 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.3));
}

/* Presentation Section (Legacy) */
.presentation-section {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(5px);
}

.presentation-section h2 {
    color: #ff8c00;
    margin-top: 0;
}

.presentation-section p {
    line-height: 1.6;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* =========================================
   6. ANIMATIONS
   ========================================= */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes morphing {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes float1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20vw, 10vh) rotate(180deg); }
    100% { transform: translate(40vw, -10vh) rotate(360deg); }
}

@keyframes float2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20vw, -10vh) rotate(-180deg); }
    100% { transform: translate(-40vw, 20vh) rotate(-360deg); }
}

@keyframes float3 {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30vw, -20vh) rotate(120deg); }
    66% { transform: translate(-20vw, 20vh) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes mic-rotate {
    0% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
    100% { transform: rotate(-10deg); }
}

/* =========================================
   7. FOOTER
   ========================================= */
.footer {
    padding: 20px;
    text-align: center;
    background: transparent;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   8. RESPONSIVE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    /* Layout adjustments */
    .layout-container {
        flex-direction: column;
    }

    .main-content {
        padding-top: 70px; /* Space for Logo/Socials */
        padding-bottom: 80px; /* Space for Bottom Nav */
    }

    .content-wrapper {
        padding: 20px;
        gap: 30px;
    }

    /* Logo reduced and adapted */
    .site-logo {
        font-size: 1.2rem;
        top: 20px;
        left: 20px;
    }

    /* Sidebar moves to bottom (Horizontal) */
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        min-width: 0;
        max-width: none;
        padding: 0;
        flex-direction: row;
        background: rgba(0, 0, 0, 0.95);
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        justify-content: center;
    }

    /* Navigation Items horizontal */
    .sidebar ul {
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        padding: 0;
    }

    .sidebar li {
        margin-bottom: 0;
    }

    .sidebar ul a {
        padding-left: 0;
        justify-content: center;
    }

    /* Disable hover text on mobile */
    .sidebar ul a span,
    .sidebar:hover ul a span,
    .sidebar ul a.active span {
        display: none;
    }

    /* Social Icons move to top (next to logo) */
    .social-container {
        position: fixed;
        top: 15px;
        right: 20px;
        margin-top: 0;
        flex-direction: row;
        gap: 10px;
        z-index: 1001;
    }

    .social-btn {
        width: 32px;
        height: 32px;
        background: rgba(0, 0, 0, 0.5);
    }

    /* Adjust Content Sections */
    .hero-text h1 {
        font-size: 2rem;
    }

    .video-wrapper {
        min-width: 100%;
    }

    /* Background optimization for mobile (No animation, static gradient) */
    .blob {
        display: none;
    }

    .background-container {
        background: linear-gradient(135deg, #1a1a1a 0%, #050505 60%, #ff8c00 100%);
    }
}