/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2c1810 0%, #1a0f1a 50%, #0f1419 100%);
    background-size: 400% 400%;
    animation: backgroundShift 20s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(80, 60, 120, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(120, 80, 100, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(60, 80, 120, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.background-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

@keyframes backgroundShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* Hero section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem 2rem;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.welcome-text {
    font-size: 4rem;
    font-weight: bold;
    color: #fff;
    position: relative;
    display: inline-block;
    animation: welcomeGlow 3s ease-in-out infinite alternate;
    text-shadow: 0 0 30px rgba(100, 150, 255, 0.8);
}

.welcome-text::before,
.welcome-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.welcome-text::before {
    animation: welcomeShimmer1 4s infinite;
    color: #6495ed;
    z-index: -1;
}

.welcome-text::after {
    animation: welcomeShimmer2 4s infinite;
    color: #4169e1;
    z-index: -2;
}

@keyframes welcomeGlow {
    from {
        text-shadow: 0 0 20px rgba(100, 150, 255, 0.6), 0 0 40px rgba(100, 150, 255, 0.4);
    }
    to {
        text-shadow: 0 0 30px rgba(100, 150, 255, 0.8), 0 0 60px rgba(100, 150, 255, 0.6);
    }
}

@keyframes welcomeShimmer1 {
    0% { transform: translateX(0); opacity: 0.7; }
    25% { transform: translateX(-1px); opacity: 0.5; }
    50% { transform: translateX(1px); opacity: 0.7; }
    75% { transform: translateX(-1px); opacity: 0.5; }
    100% { transform: translateX(0); opacity: 0.7; }
}

@keyframes welcomeShimmer2 {
    0% { transform: translateX(0); opacity: 0.5; }
    25% { transform: translateX(1px); opacity: 0.7; }
    50% { transform: translateX(-1px); opacity: 0.5; }
    75% { transform: translateX(1px); opacity: 0.7; }
    100% { transform: translateX(0); opacity: 0.5; }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px #fff, 0 0 30px #fff, 0 0 40px #fff;
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
    }
}

@keyframes glitch-1 {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(-2px); }
    60% { transform: translateX(2px); }
    80% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

@keyframes glitch-2 {
    0% { transform: translateX(0); }
    20% { transform: translateX(2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-top: 1rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Sparkle animations */
.sparkle-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: sparkle 3s infinite;
}

.sparkle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 1s;
}

.sparkle:nth-child(3) {
    top: 30%;
    right: 30%;
    animation-delay: 2s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* Main content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* Tab navigation */
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

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

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.tab-btn.active {
    background: linear-gradient(135deg, #4169e1, #6495ed);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(65, 105, 225, 0.4);
}

/* Content area */
.content-area {
    position: relative;
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

/* Home Layout */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.home-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.home-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.home-section h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Links Section */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.link-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.link-icon {
    font-size: 2rem;
    margin-right: 1rem;
    animation: bounce 2s infinite;
}

.link-text h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.link-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}


/* Welcome Section */
.welcome-section {
    grid-column: 1 / -1;
}

/* Links Section - make it full width like welcome section */
.links-section {
    grid-column: 1 / -1;
}

.welcome-card {
    text-align: center;
    color: #fff;
}

.welcome-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.welcome-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 0 0 20px #ff6b6b;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Assets Navigation */
.assets-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.filter-btn.active {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(30, 58, 138, 0.4);
}

/* Asset grid */
.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.asset-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.asset-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.asset-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.asset-card:hover .asset-image {
    transform: scale(1.1);
}

.asset-info {
    padding: 1rem;
    color: #fff;
}

.asset-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.asset-type {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Empty state */
.empty-state {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    padding: 4rem 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    margin: 2rem 0;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    text-align: center;
    animation: modalSlideIn 0.3s ease-out;
}

.close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff6b6b;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-info {
    margin-top: 2rem;
    color: #fff;
}

.modal-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.favorite-btn {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border: none;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive design */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 2.5rem;
    }
    
    .tab-nav {
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .asset-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .main-content {
        padding: 0 1rem 4rem;
    }
}

@media (max-width: 480px) {
    .glitch-text {
        font-size: 2rem;
    }
    
    .asset-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
    }
}
/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive design */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 2.5rem;
    }
    
    .tab-nav {
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .home-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .home-section {
        padding: 1.5rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .welcome-stats {
        gap: 2rem;
    }
    
    .asset-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .main-content {
        padding: 0 1rem 4rem;
    }
}

@media (max-width: 480px) {
    .glitch-text {
        font-size: 2rem;
    }
    
    .home-section {
        padding: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .digital-clock {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .welcome-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .asset-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
    }
}