/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #121218;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-purple: #7c3aed;
    --accent-green: #6bb42d;
    --accent-blue: #3b82f6;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #6bb42d 0%, #4a9020 100%);
    --gradient-hero: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.15) 0%, transparent 50%);
}

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

#surface-points-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    contain: strict;
}

.page-content {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

/* Navigation Bar
   Always fixed + CSS --nav-top avoids absolute↔fixed layer thrashing.
   Opaque bg (no backdrop-filter) avoids sampling the live WebGL canvas. */
.navbar {
    position: fixed;
    top: var(--nav-top, calc(100vh - 6.5rem));
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    z-index: 1000;
    background: rgba(18, 18, 24, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0.75rem 2rem;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    /* Fallback for pages that hardcode .scrolled without the homepage scroll script */
    top: var(--nav-top, 1rem);
    background: rgba(18, 18, 24, 0.97);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

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

.logo-img {
    height: 72px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.cta-button {
    background: var(--accent-purple);
    color: white !important;
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #6d28d9;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.burger-icon {
    width: 28px;
    height: 28px;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 8.5rem;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    align-items: flex-start;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(92vh - 14rem);
}

.hero-content {
    max-width: 600px;
    padding-top: 0.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

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

.btn-primary {
    background: var(--accent-purple);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    background: rgba(124, 58, 237, 0.12);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid rgba(124, 58, 237, 0.45);
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(124, 58, 237, 0.22);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: min(56vh, 520px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating 3D Sphere */
.floating-3d-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 400px;
    height: 400px;
}

#hero-3d-canvas {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 20px 60px rgba(124, 58, 237, 0.6));
}

.floating-icons {
    position: relative;
    width: 100%;
    height: 100%;
}

.float-icon {
    position: absolute;
    --float-size: 100px;
    --orbit: 15rem;
    width: var(--float-size);
    height: var(--float-size);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(124, 58, 237, 0.3));
}

.float-icon:nth-child(1) {
    --offset-x: 14px;
    --offset-y: -12px;
    top: calc(50% - var(--float-size) / 2 - var(--orbit) + var(--offset-y));
    left: calc(50% - var(--float-size) / 2 + var(--offset-x));
    animation-delay: 0s;
}

.float-icon:nth-child(2) {
    --offset-x: 22px;
    --offset-y: 10px;
    top: calc(50% - var(--float-size) / 2 - var(--orbit) * cos(72deg) + var(--offset-y));
    left: calc(50% - var(--float-size) / 2 + var(--orbit) * sin(72deg) + var(--offset-x));
    animation-delay: 1.2s;
}

.float-icon:nth-child(3) {
    --offset-x: -18px;
    --offset-y: 16px;
    top: calc(50% - var(--float-size) / 2 - var(--orbit) * cos(144deg) + var(--offset-y));
    left: calc(50% - var(--float-size) / 2 + var(--orbit) * sin(144deg) + var(--offset-x));
    animation-delay: 2.4s;
}

.float-icon:nth-child(4) {
    --offset-x: 12px;
    --offset-y: -8px;
    top: calc(50% - var(--float-size) / 2 - var(--orbit) * cos(216deg) + var(--offset-y));
    left: calc(50% - var(--float-size) / 2 + var(--orbit) * sin(216deg) + var(--offset-x));
    animation-delay: 3.6s;
}

.float-icon:nth-child(5) {
    --offset-x: -20px;
    --offset-y: -10px;
    top: calc(50% - var(--float-size) / 2 - var(--orbit) * cos(288deg) + var(--offset-y));
    left: calc(50% - var(--float-size) / 2 + var(--orbit) * sin(288deg) + var(--offset-x));
    animation-delay: 4.8s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Services Section */
.services {
    padding: 8rem 2rem;
    background: rgba(5, 5, 8, 0.3);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-category {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.service-category:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon img {
    width: 40px;
    height: 40px;
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.category-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.platform-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.platform-icons img {
    height: 40px;
    max-width: 90px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.platform-icons img:hover {
    opacity: 1;
}

/* Characters Section */
.characters {
    padding: 8rem 2rem;
    background: var(--bg-dark);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.character-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.character-card:hover {
    transform: translateY(-6px);
    border-color: rgba(107, 180, 45, 0.4);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}

.character-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.character-content {
    padding: 1.4rem;
}

.character-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
    color: var(--accent-green);
}

.character-content p {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.character-link {
    display: inline-block;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.character-link:hover {
    color: var(--accent-green);
    border-color: rgba(107, 180, 45, 0.7);
}

.characters-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* Projects Section */
.projects {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
    /* background: rgba(10, 10, 15, 0.3); */
    /* backdrop-filter: blur(18px) saturate(1.2); */
    /* -webkit-backdrop-filter: blur(18px) saturate(1.2); */
}

.projects .section-container {
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.projects-grid.single-project {
    grid-template-columns: 1fr;
    justify-items: center;
}

.projects-grid.single-project .project-card-link {
    width: 100%;
    max-width: 50%;
}

.projects-filters {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.project-filter-btn {
    border: 2px solid rgba(124, 58, 237, 0.45);
    background: rgba(124, 58, 237, 0.12);
    color: var(--text-primary);
    font: inherit;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.project-filter-btn:hover {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.22);
    border-color: var(--accent-purple);
}

.project-filter-btn.active {
    color: white;
    background: rgba(124, 58, 237, 0.85);
    border-color: rgba(124, 58, 237, 0.95);
}

.projects-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    background: rgba(18, 18, 24, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.3rem 1rem;
}

.project-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card-trigger {
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    text-align: inherit;
    font: inherit;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}

.project-coming-soon-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(8, 8, 12, 0.88);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.project-coming-soon-overlay p {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #f3f3f8;
    text-align: center;
}

.project-coming-soon-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-purple);
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-coming-soon-link:hover {
    color: #a78bfa;
    text-decoration: underline;
}

.project-card.is-coming-soon-open .project-coming-soon-overlay {
    opacity: 1;
    pointer-events: auto;
}

.project-card.is-coming-soon-open {
    transform: translateY(-6px);
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}

.project-media {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}

.project-image,
.project-preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-preview-video {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.project-card.is-preview-playing .project-preview-video {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .project-preview-video {
        display: none;
    }
}

.project-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

.project-type {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent-green);
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.85rem;
}

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

.project-platforms {
    margin-top: auto;
    padding-top: 0.85rem;
}

.project-platforms-label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.55rem;
    font-weight: 600;
}

.project-platform-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.project-platform-icons img {
    flex: 1 1 7.25rem;
    min-width: 6.75rem;
    max-width: 100%;
    width: auto;
    height: 2.75rem;
    object-fit: contain;
    object-position: center;
    padding: 0.35rem 0.5rem;
    box-sizing: border-box;
    border-radius: 10px;
    background: rgba(124, 58, 237, 0.14);
    border: 1px solid rgba(124, 58, 237, 0.35);
}

.project-platform-icons img.platform-icon--primary {
    flex: 1 1 100%;
    min-width: 100%;
    height: 3.35rem;
    padding: 0.45rem 0.65rem;
    background: rgba(124, 58, 237, 0.22);
    border-color: rgba(124, 58, 237, 0.5);
}

.project-tags span {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #d8d8e5;
}

.projects-cta {
    margin-top: 2.5rem;
    text-align: center;
}

#projects-toggle-btn {
    cursor: pointer;
    font: inherit;
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    background: rgba(10, 10, 15, 0.3);
}

.features h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 820px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.75rem;
    }
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(107, 180, 45, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(107, 180, 45, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 45px;
    height: 45px;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

/* CTA Section */
.cta-section {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(107, 180, 45, 0.1) 100%);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-container h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-container p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

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

/* Extras Section */
.extras {
    padding: 5rem 2rem 7rem;
    background: var(--bg-dark);
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.extras-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.75rem;
    max-width: 1180px;
    margin: 0 auto;
    align-items: start;
}

.extras-carousel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.extras-carousel-viewport {
    overflow: hidden;
    border-radius: 20px;
}

.extras-carousel-track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}

.extras-carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.extras-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.extras-carousel-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 2px solid rgba(124, 58, 237, 0.45);
    background: rgba(124, 58, 237, 0.12);
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.extras-carousel-btn:hover {
    background: rgba(124, 58, 237, 0.22);
    border-color: var(--accent-purple);
    transform: translateY(-1px);
}

.extras-carousel-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.extras-carousel-dot {
    width: 0.55rem;
    height: 0.55rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.extras-carousel-dot.is-active {
    background: var(--accent-purple);
    transform: scale(1.2);
}

.extras-carousel-dot:focus-visible,
.extras-carousel-btn:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

.extra-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.extra-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}

.extra-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.extra-content {
    padding: 1.65rem 1.75rem 1.85rem;
}

.extra-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.65rem;
    color: var(--accent-green);
}

.extra-content p {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.extra-button {
    margin-top: 0.25rem;
}

.news-card {
    display: flex;
    flex-direction: column;
}

.news-card .extra-content {
    display: flex;
    flex-direction: column;
    padding: 1.65rem 1.75rem 1.85rem;
}

.news-card .extra-content h3 {
    font-size: 1.3rem;
    margin: 0 0 1.15rem;
    color: var(--accent-green);
}

.news-list {
    list-style: none;
    display: grid;
    gap: 0;
}

.news-list li {
    display: grid;
    grid-template-columns: minmax(148px, 41%) 1fr;
    column-gap: 1.15rem;
    align-items: start;
    padding: 0 0 1.35rem;
    margin: 0 0 1.35rem;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background: transparent;
}

.news-list li:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.news-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.news-copy {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    padding-top: 0.1rem;
}

.news-list h4 {
    font-size: 1.05rem;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.35;
}

.news-summary {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.news-header h3 {
    margin-bottom: 0;
}

.news-manage-link {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.news-manage-link:hover {
    color: #9f7aea;
}

/* News admin page */
.news-admin-page {
    min-height: 100vh;
    background: var(--bg-dark);
    padding: 3rem 1.5rem;
}

.news-admin-panel {
    max-width: 960px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
}

.news-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.news-admin-header h1 {
    font-size: 1.8rem;
}

.news-story-form {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.news-login-form {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.news-login-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.news-cms-panel.is-hidden {
    display: none;
}

.news-story-form label {
    display: grid;
    gap: 0.45rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.news-story-form input,
.news-story-form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(5, 5, 8, 0.6);
    color: var(--text-primary);
}

.news-story-form textarea {
    resize: vertical;
}

.news-story-form .btn-primary {
    border: none;
    cursor: pointer;
    justify-self: start;
}

.news-form-status {
    min-height: 1.3rem;
    color: var(--accent-green);
}

.news-form-status.is-error {
    color: #f87171;
}

.news-admin-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.news-admin-item {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(124, 58, 237, 0.08);
}

.news-admin-image {
    width: 160px;
    height: 110px;
    border-radius: 10px;
    object-fit: cover;
}

.news-admin-item-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.news-admin-item-content p {
    color: var(--text-secondary);
    margin-bottom: 0.55rem;
}

.news-admin-meta {
    font-size: 0.8rem;
    color: #c9c9d5;
}

.news-delete-button {
    cursor: pointer;
    border-width: 1px;
    align-self: center;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
}

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

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    width: 3.25rem;
    height: 3.25rem;
    display: block;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    opacity: 0.88;
    background: none;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
    }

    .hero-visual {
        order: -1;
        margin-top: 0;
        margin-bottom: 1.5rem;
        width: min(100%, 420px);
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content {
        order: 1;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        height: 360px;
    }

    .floating-3d-sphere {
        width: 300px;
        height: 300px;
    }

    .float-icon {
        --float-size: 80px;
        --orbit: 12rem;
    }

    .float-icon:nth-child(1) { --offset-x: 10px; --offset-y: -8px; }
    .float-icon:nth-child(2) { --offset-x: 16px; --offset-y: 8px; }
    .float-icon:nth-child(3) { --offset-x: -14px; --offset-y: 12px; }
    .float-icon:nth-child(4) { --offset-x: 8px; --offset-y: -6px; }
    .float-icon:nth-child(5) { --offset-x: -16px; --offset-y: -8px; }

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

    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .characters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .extras-layout {
        grid-template-columns: 1fr;
        max-width: 680px;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0.5rem;
        left: 1rem;
        right: 1rem;
        transform: none;
        padding: 0;
        width: auto;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .navbar.scrolled {
        top: 0.5rem;
        background: transparent;
        box-shadow: none;
        border-color: transparent;
    }

    .nav-container {
        justify-content: space-between;
        gap: 1rem;
    }

    .logo,
    .hamburger {
        background: rgba(18, 18, 24, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 100px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    }

    .logo {
        padding: 0.45rem 0.95rem;
    }

    .logo-img {
        height: 46px;
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        padding: 0;
        flex-shrink: 0;
    }

    .nav-menu {
        display: none;
    }

    .burger-icon {
        width: 22px;
        height: 22px;
        display: block;
    }

    .hero {
        min-height: 100vh;
        padding: 6.5rem 1.5rem 2rem;
    }

    .hero-container {
        min-height: calc(100vh - 8.5rem);
    }

    .hero-visual {
        height: 280px;
        width: min(100%, 320px);
        margin-left: auto;
        margin-right: auto;
    }

    .floating-3d-sphere {
        width: 250px;
        height: 250px;
    }

    .float-icon {
        --float-size: 60px;
        --orbit: 9rem;
    }

    .float-icon:nth-child(1) { --offset-x: 6px; --offset-y: -5px; }
    .float-icon:nth-child(2) { --offset-x: 10px; --offset-y: 5px; }
    .float-icon:nth-child(3) { --offset-x: -8px; --offset-y: 8px; }
    .float-icon:nth-child(4) { --offset-x: 5px; --offset-y: -4px; }
    .float-icon:nth-child(5) { --offset-x: -10px; --offset-y: -5px; }

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

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

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    .services, .features, .cta-section {
        padding: 4rem 1.5rem;
    }

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

    .extras-grid,
    .extras-layout {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .news-admin-item {
        grid-template-columns: 1fr;
    }

    .news-admin-image {
        width: 100%;
        height: 180px;
    }

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

    .projects-grid.single-project .project-card-link {
        max-width: 100%;
    }

    .projects-filters {
        gap: 0.55rem;
    }

    .project-filter-btn {
        padding: 0.5rem 0.85rem;
    }

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

    .platform-icons img {
        height: 36px;
    }

    .cta-container h2 {
        font-size: 2rem;
    }

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
