/* --- Antigravity Theme Styles --- */

:root {
    --deep-space: #050508;
    --midnight-blue: #0a0c1a;
    --royal-purple: #1a0b2e;
    --glass-white: rgba(255, 255, 255, 0.05);
    --glass-white-hover: rgba(255, 255, 255, 0.1);
    --neon-cyan: #00f2ff;
    --neon-purple: #bc00ff;
    --text-glow: 0 0 10px rgba(255, 255, 255, 0.5);
    --card-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

body.antigravity-theme {
    background: radial-gradient(circle at center, var(--midnight-blue) 0%, var(--deep-space) 100%);
    font-family: 'Outfit', sans-serif;
    color: #f0f0f0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Atmospheric Background --- */
.atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(180deg, var(--deep-space) 0%, var(--midnight-blue) 50%, var(--royal-purple) 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: drift 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--neon-purple);
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--neon-cyan);
    bottom: -150px;
    right: -150px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: #4433ff;
    top: 40%;
    left: 60%;
    animation-duration: 35s;
    animation-delay: -10s;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 50px) scale(1.1); }
    66% { transform: translate(-50px, 100px) scale(0.9); }
}

/* --- Layout --- */
.portfolio-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 2rem;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 4rem;
}

.antigravity-text {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.2));
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Glassmorphism --- */
.glass-card {
    background: var(--glass-white);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: var(--card-glow);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

/* Fix for sitewide header drop-downs/mobile menu being cut off */
.site-header.glass-card {
    overflow: visible !important;
}


.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.glass-card:hover {
    background: var(--glass-white-hover);
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.1);
}

/* --- Category Filter --- */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #fff;
}

.filter-btn.active {
    background: #fff;
    color: var(--deep-space);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

/* --- Video Grid --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.video-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 1.5rem 2rem 2rem;
}

.video-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.video-info p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.category-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--neon-cyan);
    background: rgba(0, 242, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

/* --- Antigravity Animations --- */
/* Removed floating animation as per user request */
/* .floating {
    animation: float 6s infinite ease-in-out;
}

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


/* --- Neon Buttons --- */
.neon-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 2px solid var(--neon-purple);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-top: 1rem;
}

.neon-btn:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple), 0 0 40px var(--neon-purple);
    transform: translateY(-3px);
}

.add-video-prompt {
    margin-top: 5rem;
    text-align: center;
    padding: 3rem;
    border: 1px dashed rgba(255,255,255,0.2);
}

.add-video-prompt code {
    background: rgba(0,0,0,0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--neon-cyan);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .antigravity-text {
        font-size: 2.5rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}
