:root {
    --bg-dark: #050a14;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a0a8b8;
    --accent-blue: #00f2ff;
    --accent-gold: #ffd700;
    --gradient-main: linear-gradient(135deg, #00f2ff 0%, #0066ff 100%);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo .highlight {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.lang-link:hover,
.lang-link.active {
    color: var(--text-primary);
}

.numerator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

.cta-small {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--accent-blue);
    border-radius: 50px;
    color: var(--accent-blue) !important;
}

.cta-small:hover {
    background: var(--accent-blue);
    color: var(--bg-dark) !important;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(5, 10, 20, 0.5), var(--bg-dark)), url('assets/hero.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: zoomIn 20s infinite alternate;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.badge {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-blue);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    border: 1px solid rgba(0, 242, 255, 0.3);
    margin-bottom: 1.5rem;
    display: inline-block;
}

h1 {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind content */
}

.hero-content {
    z-index: 10;
    /* Ensure text is above 3D */
    position: relative;
    pointer-events: none;
    /* Let clicks pass through to canvas if needed, but here we need buttons to work so... */
    /* Actually we don't want pointer-events: none on the whole container or buttons won't work. */
}

.hero-content>* {
    pointer-events: auto;
    /* Re-enable pointer events for buttons/text */
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--bg-dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--text-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Features Section */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features {
    padding: 4rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 242, 255, 0.3);
    background: rgba(0, 242, 255, 0.05);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* History Section */
.history-section {
    padding: 8rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), #0a1120);
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge-outline {
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.history-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.history-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.history-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.preservation-box {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.preservation-box h3 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preservation-box p {
    margin-bottom: 0;
    font-size: 1rem;
}

.preservation-box a {
    color: var(--accent-gold);
    text-decoration: underline;
}

.btn-text {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--accent-blue);
    gap: 0.8rem;
    /* Subtle movement */
}

/* History Gallery */
.history-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gallery-main img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.gallery-grid img:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 900px) {
    .history-grid {
        grid-template-columns: 1fr;
    }
}

/* Digital Twin / Technology Section */
.tech-section {
    padding: 8rem 0;
    overflow: hidden;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 242, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.1);
}

.wireframe-img {
    width: 100%;
    display: block;
    mix-blend-mode: lighten;
    opacity: 0.9;
    transform: scale(1.05);
    /* Slight zoom for dramatic effect */
}

.tech-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    justify-content: flex-end;
}

.tech-overlay span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 1px;
    border: 1px solid var(--accent-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    background: rgba(0, 242, 255, 0.1);
}

.tech-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.tech-content .subtitle {
    font-size: 1.1rem;
    color: var(--accent-blue);
    margin-bottom: 2rem;
    max-width: 100%;
}

.highlight-text {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #a0a8b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-note {
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-blue);
    color: var(--text-secondary);
}

.tech-note i {
    color: var(--accent-blue);
    margin-right: 0.5rem;
}

@media (max-width: 900px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .tech-image {
        order: -1;
        /* Image first on mobile */
        margin-bottom: 2rem;
    }

    .wireframe-img {
        transform: none;
        max-width: 100%;
        height: auto;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tech-image {
        max-width: 100%;
    }
}

/* Video Section */
.video-section {
    padding: 4rem 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* CTA Section / Download */
.cta-section {
    padding: 8rem 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.store-btn:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.store-btn i {
    font-size: 2rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-text span {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
    background: #02050a;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-brand h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
}

.modal-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: var(--accent-blue);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    /* Hide nav on mobile for MVP */
    .hero {
        text-align: center;
    }

    .cta-group {
        flex-direction: column;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}