:root {
    /* Colors */
    --bg-color: #0f0518;
    --bg-gradient: radial-gradient(circle at 50% 0%, #2a1b3d 0%, #0f0518 60%);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-bg: rgba(255, 255, 255, 0.06);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --primary: #ffffff;
    --accent-purple: #b066ff;
    --accent-pink: #ff66b2;
    --gradient-main: linear-gradient(135deg, #b066ff 0%, #ff66b2 100%);

    /* Fonts */
    --font-main: 'Space Grotesk', sans-serif;

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-xxl: 8rem;
}

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

body {
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 2;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(to right, #ff9a9e, #fad0c4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

/* --- Components --- */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

.glass-card:hover {
    background: var(--card-hover-bg);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.primary-btn {
    background: var(--gradient-main);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.secondary-btn {
    background: transparent;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* --- Navbar --- */
.navbar {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo span {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.nav-link {
    font-size: 0.9rem;
    opacity: 0.7;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

.nav-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: white;
    color: black;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background: white;
    margin: 5px 0;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align to left */
    padding-top: 80px;
    /* Offset for navbar */
    position: relative;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
    text-align: left;
    margin-right: auto;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* --- Sections General --- */
section {
    padding: var(--space-xxl) 0;
}

.center-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.section-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: #ccc;
    background: rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* --- About / Stats --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.stat-card h3 {
    font-size: 3.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

/* --- Products Grid --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 320px;
}

.product-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.product-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tags span {
    font-size: 0.75rem;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ccc;
}

.link-btn {
    font-size: 0.9rem;
    color: var(--accent-purple);
    font-weight: 600;
}

/* --- Work Grid --- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.work-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.work-card:hover {
    transform: translateY(-5px);
}

.work-card.large {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
}

.work-content {
    padding: 3rem;
    flex: 1;
}

.work-visual {
    flex: 1;
    height: 300px;
    background: #222;
    overflow: hidden;
}

.work-card.large .work-visual {
    height: 400px;
}

.work-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.work-card:hover .work-visual img {
    transform: scale(1.05);
}

.work-category {
    display: inline-block;
    background: rgba(176, 102, 255, 0.2);
    color: #d4aaff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.work-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.work-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.view-project {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    border-bottom: 1px solid white;
    padding-bottom: 2px;
}

/* --- News Grid --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    padding: 0;
    overflow: hidden;
}

.news-image {
    height: 200px;
    background: #222;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 2rem;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.read-more {
    font-size: 0.9rem;
    color: white;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Team Grid --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    text-align: center;
}

.member-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem auto;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    margin-bottom: 0.5rem;
}

.team-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.socials a {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.socials a:hover {
    color: white;
}

/* --- CTA Section --- */
.cta-card {
    background: linear-gradient(135deg, #2a1b3d 0%, #0f0518 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-visual {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
}

.sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.s1 {
    width: 300px;
    height: 300px;
    background: rgba(176, 102, 255, 0.2);
    top: -50px;
    right: -50px;
}

.s2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 102, 178, 0.2);
    bottom: -50px;
    right: 100px;
}

/* --- Contact Section --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.info-block {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-block h4 {
    margin-bottom: 0.5rem;
}

.info-block p {
    color: var(--text-muted);
}

.contact-form-card {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* --- Footer --- */
.footer {
    margin-top: 4rem;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.footer-links-col {
    display: flex;
    gap: 2rem;
}

.footer-links-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: right;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.legal {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.legal a {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-deco {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20rem;
    color: rgba(255, 255, 255, 0.01);
    pointer-events: none;
}

/* --- Responsive --- */
@media (max-width: 1024px) {

    .stats-grid,
    .products-grid,
    .news-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-card.large {
        grid-column: span 1;
        flex-direction: column;
    }

    .work-card.large .work-visual {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 0;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

    .stats-grid,
    .products-grid,
    .news-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .footer-links-col {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-bottom {
        text-align: left;
        width: 100%;
    }

    .legal {
        justify-content: flex-start;
    }
}

/* --- Article Pages --- */
.article-header {
    padding: 6rem 0 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.article-meta {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--text-main);
}

.article-date-category {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.article-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-category {
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--accent-purple);
    background: rgba(176, 102, 255, 0.1);
}

.article-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
}

.article-body h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-image {
    margin: 3rem 0;
}

.article-image img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-style: italic;
}

.article-cta {
    background: linear-gradient(135deg, rgba(176, 102, 255, 0.1) 0%, rgba(255, 102, 178, 0.1) 100%);
    border: 1px solid rgba(176, 102, 255, 0.3);
    border-radius: 16px;
    padding: 3rem;
    margin: 4rem 0;
    text-align: center;
}

.article-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.article-cta p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Article Footer Adjustments */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2rem;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: white;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2.5rem;
    }

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

    .article-body {
        font-size: 1rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}