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

:root {
    --primary-color: #ff8c42;
    --secondary-color: #f25c27;
    --accent-color: #ff3b30;
    --dark-bg: #1f130d;
    --darker-bg: #140c08;
    --light-bg: #fff6ec;
    --text-dark: #2b1a14;
    --text-light: #fbeee6;
    --card-bg: #2d1a14;
    --gradient-1: linear-gradient(135deg, #ff9a3c 0%, #ff6f61 100%);
    --gradient-2: linear-gradient(135deg, #ffb347 0%, #f25c27 100%);
    --gradient-3: linear-gradient(135deg, #ffd166 0%, #ff6b6b 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(31, 19, 13, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110vw;
    height: 110vh;
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    border-radius: 36px;
    will-change: transform;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
    transform: translateZ(0);
}

.hero-visual-glow {
    position: absolute;
    inset: -15%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 163, 92, 0.4), transparent 55%);
    filter: blur(40px);
    z-index: -1;
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 12, 8, 0.35) 0%, rgba(20, 12, 8, 0.75) 65%);
    pointer-events: none;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.12) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    z-index: 3;
    padding: 2rem;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.glitch {
    position: relative;
    display: inline-flex;
    gap: 0.08em;
}

.glitch span {
    display: inline-block;
    opacity: 0;
    transform: translateX(-20px);
    color: transparent;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch.reveal span {
    animation: letterReveal 0.65s ease forwards;
    animation-delay: calc(var(--d) * 0.12s);
}

@keyframes letterReveal {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-meta {
    margin-bottom: 2rem;
    font-size: 1rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.separator {
    margin: 0 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease 0.8s backwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

#demo-video.section {
    padding: 4rem 0;
}

.dark-section {
    background: var(--dark-bg);
    color: var(--text-light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 2px;
}

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.problem-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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


.problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.goal-section {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.goal-inner {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
}

.goal-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.goal-text {
    flex: 1;
}

.goal-graphic img {
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.goal-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0 0.75rem;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

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

.feature-list-item {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-dark);
}

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

.approach {
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

/* System Pillars */
.system-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pillar-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.pillar {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.pillar:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.pillar-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.pillar h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Perception Section */
.perception-overview {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.challenge-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    border-left: 4px solid var(--primary-color);
}

.challenge-box p {
    margin: 0.5rem 0;
}

.challenge-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.challenge-graphic img {
    max-width: 140px;
    width: 100%;
    height: auto;
    display: block;
}

.challenge-graphic {
    margin-left: auto;
}

.subsection-title {
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem;
    color: var(--secondary-color);
}

.dark-section .subsection-title {
    color: var(--secondary-color);
}

.section-subhead {
    font-size: 2.2rem;
    margin: 0 0 1.5rem;
    color: var(--text-dark);
    letter-spacing: 0.01em;
    scroll-margin-top: 140px;
}

.dark-section .section-subhead {
    color: var(--text-light);
}

.anchor-spacer {
    height: 0;
    scroll-margin-top: 170px;
}


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

.strategy-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.dark-section .strategy-card {
    background: var(--card-bg);
}

.strategy-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.dark-section .strategy-card h4 {
    color: var(--primary-color);
}

.pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 10px;
}

.dark-section .pipeline {
    background: var(--dark-bg);
}

.pipeline-step {
    background: var(--gradient-2);
    color: white;
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.pipeline-arrow {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Comparison Table */
.comparison-table {
    margin-top: 3rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.dark-section table {
    background: var(--card-bg);
}

thead {
    background: var(--gradient-2);
    color: white;
}

th, td {
    padding: 1rem;
    text-align: left;
}

tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dark-section tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(255, 140, 66, 0.08);
}

tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.dark-section tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.positive {
    color: var(--primary-color);
    font-weight: 700;
}

.comparison-table td:not(:first-child) {
    color: var(--primary-color);
    font-weight: 700;
}

.comparison-table td:first-child {
    color: var(--text-dark);
    font-weight: 400;
}

.dark-section .comparison-table td:first-child {
    color: var(--text-light);
}

table td {
    color: var(--text-dark);
}

.dark-section table td {
    color: var(--text-light);
}

.design-table-wrapper {
    margin-top: 2rem;
}

.design-table {
    width: 100%;
    overflow-x: auto;
}

.design-table table {
    min-width: 720px;
}
/* Planning Section */
.planning-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.planning-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
}

.feature-box h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Actuation Section */
.actuation-challenge {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.actuation-challenge h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    letter-spacing: 0.02em;
    font-weight: 700;
}

.perception-overview h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.challenge-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.challenge-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--accent-color);
}

.challenge-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

.hardware-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.hardware-card.highlight {
    background: white;
    color: var(--text-dark);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.hardware-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.hardware-card.highlight h4 {
    color: var(--secondary-color);
}

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

.iteration-card {
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.iteration-card.problem {
    border-left: 4px solid var(--primary-color);
}

.iteration-card.solution {
    border-left: 4px solid var(--primary-color);
}

.iteration-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Architecture Section */
.architecture-diagram {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.arch-layer {
    margin-bottom: 2rem;
    text-align: center;
}

.arch-layer h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.arch-layer:last-child {
    margin-bottom: 0;
}

.arch-node {
    display: inline-block;
    background: var(--gradient-2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    margin: 0.5rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.arch-node.small {
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
}

.architecture-description {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
}

.architecture-description h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Future Work */
.future-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.future-card {
    background: var(--darker-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.future-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.25);
}

.future-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.future-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.future-card p {
    color: var(--text-light);
    font-weight: 700;
}

.section-note {
    margin: 0.4rem 0 1.2rem;
    color: inherit;
    line-height: 1.6;
}

.conclusion-section .container {
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Summary */
.summary-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.summary-item-link {
    text-decoration: none;
    color: inherit;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.summary-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.25);
}

.summary-number {
    font-size: 3rem;
    font-weight: bold;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 80px;
}

.summary-item p {
    font-size: 1.2rem;
}

/* Team Section */
.team-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.team-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.team-photo {
    margin: 2rem auto 0;
    max-width: 720px;
    text-align: center;
}

.team-photo img {
    width: 100%;
    height: auto;
    display: inline-block;
    background: transparent;
    mix-blend-mode: screen;
}

.member {
    background: var(--gradient-2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
    white-space: nowrap;
}

.member-role {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
    display: block;
    margin-top: 0.2rem;
}

.member-link {
    color: inherit;
    text-decoration: none;
}

.team-table {
    width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.team-table table {
    min-width: 1000px;
}

.team-table td {
    text-align: justify;
    text-justify: inter-word;
}

.team-table td:first-child {
    text-align: left;
    white-space: nowrap;
    text-justify: auto;
}

.team-table a.team-link {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.team-table a.team-link:hover,
.team-table a.team-link:focus-visible {
    text-decoration: none;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
}

.team-table th:nth-child(2),
.team-table td:nth-child(2) {
    min-width: 260px;
    white-space: nowrap;
    text-align: left;
}

/* Additional Materials spacing */
#additional-materials .section-note {
    margin: 0 0 0.5rem;
}

#additional-materials .feature-list {
    margin: 0 0 0.5rem;
}

#additional-materials .feature-list li {
    margin: 0 0 0.5rem;
    padding: 0 0 0 1.4rem;
}

.sponsor-section {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.sponsor-section h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.sponsor-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.sponsor-logo {
    max-height: 60px;
    width: auto;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}

.sponsor-link {
    display: inline-flex;
}

.sponsor-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.thank-you {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--gradient-2);
    border-radius: 15px;
    color: white;
}

.thank-you h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--darker-bg);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .goal-content {
        flex-direction: column;
    }

    .challenge-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-visual {
        width: 120vw;
        height: 110vh;
        opacity: 0.9;
    }

    .strategies-grid,
    .planning-features,
    .iteration-grid {
        grid-template-columns: 1fr;
    }

    .summary-item {
        flex-direction: column;
        text-align: center;
    }

    .pipeline {
        flex-direction: column;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.5rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Image Styles */
.image-showcase {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

.showcase-image {
    max-width: 320px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.showcase-image:hover {
    transform: scale(1.02);
}

.method-images {
    margin-top: 1.5rem;
    text-align: center;
}

.method-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.perception-visualization {
    margin-top: 3rem;
}

.visualization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.viz-item {
    text-align: center;
}

.viz-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.viz-item:hover .viz-image {
    transform: scale(1);
}

.viz-item p {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.kernel-slider {
    margin-top: 2rem;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.kernel-slider .slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.kernel-slider input[type="range"] {
    width: 100%;
    accent-color: var(--primary-color);
    margin-bottom: 1rem;
}

.kernel-image-frame {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    position: relative;
}

.kernel-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.glass-slide-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    z-index: 10;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.hardware-showcase {
    margin: 3rem 0;
    text-align: center;
}

.hardware-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.image-caption {
    font-style: italic;
    color: #666;
    margin-top: 1rem;
}

.hardware-setup-wide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, rgba(255, 214, 102, 0.18), rgba(255, 140, 66, 0.18));
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.hardware-setup-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hardware-setup-text h3 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.hardware-setup-text p {
    margin-bottom: 0.5rem;
}

.hardware-setup-text .feature-list {
    margin-top: 0.5rem;
}

.card-image {
    width: 100%;
    height: 260px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.iteration-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.model-viewer-frame {
    width: 100%;
    height: 320px;
    border-radius: 10px;
    background: radial-gradient(circle at 25% 25%, rgba(255, 214, 102, 0.25), transparent 45%), radial-gradient(circle at 75% 60%, rgba(255, 140, 66, 0.18), transparent 50%), linear-gradient(135deg, #fff4e8, #ffe5d1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    margin-bottom: 1rem;
}

model-viewer .model-fallback {
    display: none;
}

model-viewer:not(:defined) {
    display: block;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff4e8, #ffe5d1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

model-viewer:not(:defined) .model-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 320px;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0 1rem;
    text-align: center;
}

.architecture-image-container {
    margin-bottom: 3rem;
    text-align: center;
}

.architecture-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}


/* Demo Section */
.step-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.step-card {
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 1rem 1.5rem;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dark-section .step-card {
    background: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.12);
}

.step-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.step-card p {
    margin: 0;
    color: var(--text-dark);
}

.dark-section .step-card p {
    color: var(--text-light);
    opacity: 0.9;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.step-arrow {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 700;
}

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

.demo-item {
    text-align: center;
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dark-section .demo-item {
    background: var(--card-bg);
}

.demo-item:hover {
    transform: translateY(-5px);
}

.demo-gif {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.demo-item h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

@media (min-width: 1100px) {
    .demo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 2.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}
}

.result-images {
    margin-top: 3rem;
    text-align: center;
}

.result-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Responsive Image Adjustments */
@media (max-width: 768px) {
    .card-image {
        height: 150px;
    }

    .image-showcase {
        justify-content: center;
    }

    .showcase-image {
        max-width: 240px;
    }

    .visualization-grid,
    .demo-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1100px) {
    .team-members {
        flex-wrap: nowrap;
    }

    .member {
        padding: 0.9rem 1.6rem;
    }
}
