/* 
 * AI1KX - The Next Generation AI Platform
 * Styles CSS File
 * Version: 1.0.0
 * Author: AI1KX Team
 * Description: Complete styling for ai1kx website
 */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0b35f1;
    --secondary-blue: #0077ff;
    --cyan: #00ffff;
    --dark-bg: #1c1c1c;
    --light-text: #ffffff;
    --gray-text: #999999;
    --overlay-bg: rgba(0, 0, 0, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --font-inter: 'Inter', sans-serif;
    --font-mono: 'Chivo Mono', monospace;
}

body {
    font-family: var(--font-inter);
    background: var(--primary-blue);
    color: var(--light-text);
    overflow: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.main-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.time-display {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo {
    text-align: center;
}

.logo-text {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--cyan), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Main Content */
.main-content {
    display: flex;
    width: 100%;
    height: 100vh;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.main-content.visible {
    opacity: 1;
}

.left-panel {
    width: 400px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.panel-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.brand-section {
    text-align: center;
    margin-bottom: 3rem;
}

.time-widget {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideInDown 0.8s ease forwards 1s;
}

.brand-logo {
    margin-bottom: 1rem;
    opacity: 0;
    animation: scaleIn 0.8s ease forwards 1.2s;
}

.brand-logo img {
    max-width: 180px;
    height: auto;
}

/* Navigation Grid */
.navigation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: var(--glass-bg);
    border-radius: 20px;
    text-decoration: none;
    color: var(--light-text);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: slideInUp 0.6s ease forwards;
}

.nav-item:nth-child(1) { animation-delay: 1.4s; }
.nav-item:nth-child(2) { animation-delay: 1.5s; }
.nav-item:nth-child(3) { animation-delay: 1.6s; }
.nav-item:nth-child(4) { animation-delay: 1.7s; }

.nav-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.nav-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-bg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    background: linear-gradient(45deg, var(--cyan), var(--secondary-blue));
}

.icon-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: var(--light-text);
    border-radius: 4px;
}

.framework-icon::after {
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3e%3cpath d='M12 2L2 7V17L12 22L22 17V7L12 2Z'/%3e%3c/svg%3e") center/contain no-repeat;
}

.platform-icon::after {
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3e%3cpath d='M4 6H20V18H4V6Z'/%3e%3c/svg%3e") center/contain no-repeat;
}

.partners-icon::after {
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3e%3cpath d='M16 4C18.2 4 20 5.8 20 8C20 10.2 18.2 12 16 12C13.8 12 12 10.2 12 8C12 5.8 13.8 4 16 4Z'/%3e%3c/svg%3e") center/contain no-repeat;
}

.tools-icon::after {
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3e%3cpath d='M22.7 19L13.6 9.9C14.5 7.6 14 4.9 12.1 3C10.1 1 7.1 1 5.1 3S3 8.9 5 10.9C6.9 12.8 9.6 13.3 11.9 12.4L21 21.5C21.4 21.9 22 21.9 22.4 21.5L22.6 21.3C23 20.9 23 20.3 22.6 19.9Z'/%3e%3c/svg%3e") center/contain no-repeat;
}

.nav-item span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.action-btn {
    flex: 1;
    min-width: calc(50% - 0.25rem);
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    text-decoration: none;
    color: var(--light-text);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.action-btn:nth-child(1) { animation-delay: 1.8s; }
.action-btn:nth-child(2) { animation-delay: 1.9s; }
.action-btn:nth-child(3) { animation-delay: 2.0s; }
.action-btn:nth-child(4) { animation-delay: 2.1s; }

.action-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Main Display */
.main-display {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(0, 119, 255, 0.1) 0%, transparent 70%);
}

.display-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.central-logo {
    position: relative;
    width: 300px;
    height: 300px;
}

.rotating-element {
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

.core-logo {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-animation {
    position: relative;
    width: 200px;
    height: 200px;
}

.logo-layer {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
}

.layer-1 {
    width: 100%;
    height: 100%;
    border-color: var(--cyan);
    animation: pulse 3s ease-in-out infinite;
}

.layer-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-color: var(--secondary-blue);
    animation: pulse 3s ease-in-out infinite 1s;
}

.layer-3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-color: var(--light-text);
    background: radial-gradient(circle, var(--cyan) 0%, var(--secondary-blue) 100%);
    animation: pulse 3s ease-in-out infinite 2s;
}

.overlay-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#particleCanvas {
    width: 100%;
    height: 100%;
}

/* Ticker */
.ticker-container,
.bottom-ticker {
    position: absolute;
    width: 100%;
    height: 40px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-container {
    top: 50px;
}

.bottom-ticker {
    bottom: 50px;
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scrollLeft 30s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    height: 100%;
}

.ticker-content.reverse {
    animation: scrollRight 30s linear infinite;
}

.ticker-item {
    margin-right: 3rem;
}

.ticker-separator {
    margin-right: 3rem;
    color: var(--cyan);
}

/* Content Overlay */
.content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    backdrop-filter: blur(20px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.content-overlay.active {
    opacity: 1;
    visibility: visible;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.content-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.content-body {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

@keyframes scrollLeft {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .left-panel {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        overflow-y: auto;
    }
    
    .left-panel {
        width: 100%;
        height: auto;
        padding: 1rem;
    }
    
    .navigation-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .nav-item {
        padding: 1rem 0.5rem;
    }
    
    .nav-icon {
        width: 40px;
        height: 40px;
    }
    
    .central-logo {
        width: 200px;
        height: 200px;
    }
    
    .logo-animation {
        width: 150px;
        height: 150px;
    }
    
    .content-overlay {
        padding: 1rem;
    }
    
    .content-header h1 {
        font-size: 2rem;
    }
}