@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 40px;
}

.logo-container {
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
    margin-top: 40px;
    margin-bottom: 20px;
}

.logo {
    font-size: 10vw;
    font-weight: 700;
    letter-spacing: 5px;
    display: flex;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
                 0 0 20px rgba(255, 255, 255, 0.3),
                 0 0 30px rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
}

.char {
    position: relative;
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.char1 {
    animation-delay: 0s;
    color: #ff3366;
}

.char2 {
    animation-delay: 0.2s;
    color: #33ccff;
}

.char3 {
    animation-delay: 0.4s;
    color: #66ff99;
}

.char4 {
    animation-delay: 0.6s;
    color: #cc33ff;
}

.char5 {
    animation-delay: 0.8s;
    color: #ffcc33;
}

.char6 {
    animation-delay: 1.0s;
    color: #ff6633;
}

.char7 {
    animation-delay: 1.2s;
    color: #33ffcc;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateZ(0) rotateX(0) rotateY(0);
    }
    25% {
        transform: translateY(-20px) translateZ(50px) rotateX(5deg) rotateY(5deg);
    }
    50% {
        transform: translateY(0) translateZ(100px) rotateX(0) rotateY(0);
    }
    75% {
        transform: translateY(20px) translateZ(50px) rotateX(-5deg) rotateY(-5deg);
    }
}

.logo:hover .char {
    animation-play-state: paused;
    transform: scale(1.1);
}

.char:hover {
    animation-play-state: paused;
    filter: brightness(1.5);
    text-shadow: 0 0 20px currentColor,
                 0 0 30px currentColor,
                 0 0 40px currentColor;
    transform: scale(1.2) translateZ(150px);
}

.menu {
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding-bottom: 40px;
}

.menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 50px;
}

.menu-item {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    position: relative;
    padding: 8px 0;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.menu-item:hover {
    opacity: 1;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #ff3366, #33ccff, #66ff99, #cc33ff, #ffcc33, #ff6633, #33ffcc);
    transition: width 0.3s ease;
}

.menu-item:hover::after {
    width: 100%;
}

.menu-item.active {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.menu-item.active::after {
    width: 100%;
}

/* Section & Tab Styles */
.content-container {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.section {
    display: none;
    width: 100%;
    justify-content: center;
    opacity: 0;
}

.section.active {
    display: flex;
    animation: fadeInSection 0.5s ease forwards;
}

@keyframes fadeInSection {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Glassmorphism & Blog Styles */
.glass-panel {
    background: rgba(25, 25, 25, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-header h2 {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #33ffcc;
    border-radius: 50%;
    box-shadow: 0 0 10px #33ffcc;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.feed-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feed-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.feed-item.text-only {
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #33ccff;
}

.feed-item.text-only .feed-content {
    padding: 24px;
}

.feed-item.text-only .feed-text {
    font-size: 16px;
    margin-bottom: 20px;
}

.feed-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background-color: rgba(0,0,0,0.2);
}

.feed-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.feed-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.feed-text {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.feed-link {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.3s ease;
    align-self: flex-start;
    backdrop-filter: blur(5px);
}

.feed-link:hover {
    background: rgba(255, 255, 255, 0.25);
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .logo {
        font-size: 16vw;
    }
    
    .menu ul {
        gap: 20px;
    }
    
    .menu-item {
        font-size: 16px;
    }
}