/* Font Face Declaration for Moonbase */
@font-face {
    font-family: 'Moonbase';
    src: url('assets/fonts/Lineto_Trial_Delivery_250522172928/Moonbase LL VIP/Moonbase LL VIP - Latin - Web Fonts/Fonts/MoonbaseLLVIPTrialWeb.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
}

/* CSS Variables */
:root {
    --primary-color: #000000;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --bg-primary: #FAFAF8;
    --bg-secondary: #FFFFFF;
    --border-color: #E5E5E5;
    --border-dark: #000000;
    --font-nunito: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-moonbase: 'Moonbase', sans-serif;
    --max-width: 900px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-nunito);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    position: relative;
    top: 0;
    width: 100%;
    background: var(--bg-primary);
    z-index: 1000;
    padding: 40px 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-moonbase);
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-variation-settings: "wght" 400;
}

.logo-img {
    height: 24px;
    width: auto;
    transition: all 0.3s ease;
    margin-top: -5px;
}

.logo:hover {
    font-variation-settings: "wght" 600;
}

.logo:hover .logo-img {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    display: block;
    padding: 40px 0 40px;
    position: relative;
}

.hero-content {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-image {
    width: 380px;
    height: auto;
    display: block;
    opacity: 0.8;
    flex-shrink: 0;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-title {
    font-family: var(--font-nunito);
    font-size: 2.0rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: var(--font-nunito);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 480px;
}

.button-container {
    text-align: center;
    margin-top: 32px;
}

.hero-button {
    display: inline-block;
    padding: 10px 30px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--text-primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hero-button:hover {
    background: var(--text-primary);
    color: var(--bg-secondary);
    border-color: var(--text-primary);
}

/* Remove neural network animation */
.hero-visual {
    display: none;
}

/* About Section */
.about-section {
    padding: 60px 0 40px 0;
    background-color: var(--bg-primary);
    position: relative;
}

.about-section .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.main-intro {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.main-intro strong {
    font-weight: 600;
    font-style: italic;
}

.main-content {
    /* Remove max-width to align with hero section */
}

.main-content p {
    text-align: left;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.main-content p:last-child {
    margin-bottom: 0;
}

.main-content a {
    color: var(--text-primary);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.main-content a:hover {
    opacity: 0.7;
}

/* Blogs Section */
.blogs-section {
    padding: 40px 0 80px 0;
    background-color: var(--bg-primary);
}

.blogs-section .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.blogs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.blogs-header h3 {
    font-weight: 500;
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-primary);
}

.blogs-navigation {
    display: flex;
    gap: 1rem;
}

.blogs-nav {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    padding: 0;
}

.blogs-nav:hover:not(:disabled) {
    color: var(--text-secondary);
}

.blogs-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.blogs-nav svg {
    width: 20px;
    height: 20px;
}

.blogs-wrapper {
    position: relative;
    overflow: hidden;
}

.blogs-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.0rem;
    transition: transform 0.3s ease;
    min-height: 300px;
}

.blog-card {
    background-color: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: var(--text-primary);
}

.blog-card img {
    width: 100%;
    border-radius: 10px;
    display: block;
    margin-bottom: 1.6rem;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.blog-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.blog-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.8rem 0;
}

.blog-card p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.blog-desc-link {
    color: var(--text-secondary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.blog-desc-link:hover {
    color: var(--text-primary);
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.footer-logo {
    font-family: var(--font-moonbase);
    font-size: 2rem;
    font-variation-settings: "wght" 400;
}

.footer-logo-img {
    height: 20px;
    width: auto;
    transition: all 0.3s ease;
    margin-top: -5px;
}

.footer-logo:hover .footer-logo-img {
    opacity: 0.8;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .navbar {
        padding: 30px 0;
    }

    .logo-img {
        height: 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .hero {
        padding: 60px 20px 80px;
        min-height: calc(100vh - 100px);
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .hero-image {
        width: 200px;
        margin: 0 auto;
    }

    .hero-text {
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-section {
        padding: 60px 0;
    }

    .about-section .container {
        padding: 0 20px;
    }

    .about-section p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* Blogs responsive */
    .blogs-section {
        padding: 60px 0;
    }

    .blogs-section .container {
        padding: 0 20px;
    }

    .blogs-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .blogs-header h3 {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .footer-logo-img {
        height: 18px;
    }

    .footer-links {
        justify-content: center;
        gap: 20px;
    }

    .footer {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 18px;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Blogs mobile */
    .blogs-container {
        grid-template-columns: 1fr;
    }

    .blogs-header {
        gap: 1rem;
    }

    .blogs-header h3 {
        font-size: 1.25rem;
    }

    .blogs-nav {
        width: 32px;
        height: 32px;
    }

    .blogs-nav svg {
        width: 16px;
        height: 16px;
    }

    .blog-card {
        padding: 0.75rem;
    }

    .blog-card h4 {
        font-size: 1.2rem;
    }

    .blog-card p {
        font-size: 0.9rem;
    }

    .footer-logo-img {
        height: 16px;
    }

    .footer-links {
        gap: 16px;
        text-align: center;
    }

    .footer-links a {
        font-size: 0.875rem;
    }

    .about-section {
        padding: 60px 0;
    }

    .about-section .container {
        padding: 0 20px;
    }

    .main-intro {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .main-content p {
        font-size: 0.95rem;
    }
}