/* JiaXBT - Modern Clean Design with Nexa Font */

/* Import Nexa Font */
@font-face {
    font-family: 'Nexa';
    src: url('fonts/Nexa-Heavy.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Nexa';
    src: url('fonts/Nexa-ExtraLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

:root {
    --primary-color: #F0B90B;
    --primary-dark: #D9A00A;
    --primary-light: #FCD535;
    --secondary-color: #FF8C00;
    --accent-color: #FFA500;
    --dark-bg: #1a1a1a;
    --darker-bg: #0a0a0a;
    --card-bg: #242424;
    --card-hover: #2d2d2d;
    --text-primary: #FFFFFF;
    --text-secondary: #B7BDC6;
    --border-color: #3a3a3a;
    --gradient-1: linear-gradient(135deg, #F0B90B 0%, #FF8C00 100%);
    --gradient-2: linear-gradient(135deg, #FCD535 0%, #F0B90B 50%, #FF8C00 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nexa', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--darker-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--darker-bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#intro-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.logo-overlay {
    position: relative;
    z-index: 10001;
    text-align: center;
}

.jiaxbt-logo {
    font-size: 6rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(240, 185, 11, 0.5);
    animation: pulse 2s ease-in-out infinite;
    letter-spacing: 0.1em;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px auto;
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    display: block;
    width: 50%;
    height: 100%;
    background: var(--gradient-1);
    animation: loading 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(240, 185, 11, 0.8);
}

.skip-button {
    margin-top: 30px;
    padding: 1rem 3rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nexa', sans-serif;
}

.skip-button:hover {
    background: var(--primary-color);
    color: var(--darker-bg);
    transform: scale(1.05);
}

@keyframes loading {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(200%); }
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 3rem;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 300;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Nexa', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-btn:hover {
    border-color: var(--primary-color);
}

.language-btn .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-btn.active .arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    min-width: 120px;
    display: none;
    z-index: 1001;
}

.language-dropdown.active {
    display: block;
}

.lang-option {
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.lang-option:hover {
    background: var(--primary-color);
    color: var(--darker-bg);
}

/* Social Buttons */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--darker-bg);
    transform: translateY(-2px);
}

.btn-connect {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Nexa', sans-serif;
    font-size: 0.9rem;
}

.btn-connect:hover {
    background: var(--primary-color);
    color: var(--darker-bg);
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Hero Section with Video Background */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.1) 0%, rgba(10, 10, 10, 0.3) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    padding-top: 100px;
    padding: 3rem;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.4;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Nexa', sans-serif;
}

.btn-primary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-primary:hover {
    background: var(--text-primary);
    color: var(--darker-bg);
    transform: translateY(-2px);
}

.play-icon {
    font-size: 0.9rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid transparent;
}

.btn-secondary:hover {
    color: var(--primary-color);
}

.btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1rem;
}

/* Section Divider */
.section-divider {
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        var(--border-color) 0px,
        var(--border-color) 10px,
        transparent 10px,
        transparent 20px
    );
    margin: 0;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--darker-bg);
}

.features-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.features-video {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(240, 185, 11, 0.5);
    border: 2px solid rgba(240, 185, 11, 0.4);
    transform: scale(1.05);
}

.features-video video {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(1.3) contrast(1.1);
}

.features-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.features-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.features-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-weight: 300;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.feature-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.feature-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    padding-top: 0.2rem;
}

.feature-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.feature-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* Technology Stack */
.tech-stack {
    padding: 120px 0;
    background: var(--dark-bg);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
}

.tech-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 500px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.tech-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.tech-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: all 0.4s ease;
}

.tech-card:hover .tech-bg {
    opacity: 0.8;
    transform: scale(1.05);
}

.tech-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.95) 100%);
}

.tech-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.tech-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
}

.tech-content ul {
    list-style: none;
}

.tech-content li {
    padding: 0.6rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 300;
    position: relative;
    padding-left: 1.5rem;
}

.tech-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Milestones Section */
.milestones {
    padding: 120px 0;
    background: var(--darker-bg);
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    padding-bottom: 4rem;
    border-left: 2px solid var(--border-color);
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item.completed {
    border-left-color: var(--primary-color);
}

.timeline-item.active {
    border-left-color: var(--secondary-color);
}

.timeline-item:last-child {
    border-left-color: transparent;
}

.timeline-marker {
    position: absolute;
    left: -11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--border-color);
    border: 3px solid var(--darker-bg);
}

.timeline-item.completed .timeline-marker {
    background: var(--primary-color);
    box-shadow: 0 0 20px rgba(240, 185, 11, 0.6);
}

.timeline-item.active .timeline-marker {
    background: var(--secondary-color);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
    animation: pulse-marker 2s ease-in-out infinite;
}

@keyframes pulse-marker {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.timeline-content {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    padding: 0.7rem 0;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Gallery Section */
.gallery {
    padding: 120px 0;
    background: var(--dark-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 450px;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 0;
    transform: scale(0.9);
}

.gallery-item.animate {
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.95) 100%);
    padding: 3rem 2rem 2rem;
    transform: translateY(100%);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.gallery-overlay p {
    color: var(--text-secondary);
    font-weight: 300;
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: var(--darker-bg);
    text-align: center;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.cta p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 300;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .features-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .features-video {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .tech-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .social-btn {
        width: 35px;
        height: 35px;
    }
    
    .jiaxbt-logo {
        font-size: 3.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features,
    .tech-stack,
    .milestones,
    .gallery,
    .cta {
        padding: 80px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}
