/* Base styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;  /* Dark background */
    color: #fff;
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
nav {
    background-color: rgba(26, 26, 26, 0.95);
    padding: 1.5rem 4rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

nav.scrolled {
    background-color: rgba(26, 26, 26, 0.95);  /* Match body background */
    backdrop-filter: blur(20px);
    padding: 1rem 4rem;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

nav ul li a:hover {
    color: #3498db;
    transform: translateY(-2px);
}

nav ul li a.active {
    color: #3498db;
}

/* Intro section */
.intro-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0)),
                url('../images/background.jpeg') center/cover;
    position: relative;
}

.intro-content {
    max-width: 800px;
    padding: 0 2rem;
}

.intro-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 600;
}

.intro-content h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.intro-content p {
    color: white;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.intro-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 1rem;
}

.intro-btn:hover {
    background: white;
    color: #333;
}

/* Content sections */
.content-section {
    padding: 6rem 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #1a1a1a;  /* Match body */
}

.content-section:nth-child(even) {
    background-color: #222222;  /* Slightly lighter dark */
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.section-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.resume-download {
    margin-top: 2rem;
}

/* Skills */
.skill-bar {
    margin-bottom: 1.5rem;
}

.skill-label {
    display: block;
    margin-bottom: 0.5rem;
}

.skill-progress {
    height: 6px;
    background-color: #3498db;
    border-radius: 3px;
}

/* Timeline sections */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.timeline-item {
    padding: 2rem;
    background-color: #2a2a2a;  /* Even lighter dark */
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    color: #fff;
}

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

.timeline-item h3 {
    color: #3498db;  /* Keep the blue accent */
    margin-bottom: 0.5rem;
}

.timeline-item h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: normal;
}

/* Project previews */
.project-carousel {
    position: relative;
    padding: 0 4rem;
    overflow: hidden;
    margin-bottom: 4rem;
}

.project-previews {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.project-preview {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 620px;
}

.project-preview:hover {
    transform: translateY(-5px);
}

/* Add image container styles */
.project-preview .image-container {
    width: 100%;
    height: 240px;
    background-color: #2a2a2a;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.project-preview img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.preview-content {
    padding: 1.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.preview-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #3498db;
}

.preview-content p {
    margin-bottom: 1.2rem;
    line-height: 1.5;
    max-height: 4.5em;
    overflow: hidden;
}

.preview-link {
    display: inline-block;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
}

.preview-link:hover {
    background-color: #2980b9;
}

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

.python-app {
    border: none;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.python-app:hover {
    transform: translateY(-5px);
}

button {
    background-color: #3498db;  /* Solid blue */
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

button:hover {
    background-color: #2980b9;  /* Darker blue */
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#app-result {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f5f7fa;  /* Light grey */
    border-radius: 5px;
}

.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    background-color: black;  /* Add black background to container */
}

.project-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background-color: black;  /* Add black background to sections */
}

.project-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.3);
    transform: scale(1.1);
    z-index: 0;
    transition: opacity 0.4s ease;
    opacity: 0;
    will-change: opacity;  /* Optimize for opacity transitions */
}

.project-section.active::before {
    opacity: 1;  /* Simple opacity transition */
}

#project-1::before {
    background-image: url('../images/project_images/MAPLEE_Robot.png');
}

#project-2::before {
    background-image: url('../images/project_images/PathPlanning.png');
}

#project-3::before {
    background-image: url('../images/project_images/ReinforcementLearning.png');
}

.project-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 8rem;
}

.project-section.active .project-content {
    opacity: 1;  /* Simple opacity transition */
    transform: translateY(0);  /* Simple transform */
}

.project-text {
    flex: 1;
    color: white;
}

.project-text h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.project-text p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    max-width: 600px;
}

.project-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.project-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.project-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.project-link {
    display: inline-block;
    background-color: rgba(52, 152, 219, 0.9);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.project-link:hover {
    background-color: rgba(41, 128, 185, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Remove old project grid styles */
.projects-grid {
    display: none;
}

/* Add these new styles for the home page */
.home-container {
    padding-top: 60px; /* Account for fixed nav */
}

.home-scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.home-section {
    min-height: 100vh;
    padding: 4rem 8rem;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    position: relative;
    background-color: #1a1a1a;  /* Match dark theme */
}

.home-section:nth-child(even) {
    background-color: #222222;  /* Match dark theme */
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    background-color: #1a1a1a;  /* Match dark theme */
}

.skill-category {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.skill-category h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    padding: 0.5rem 0;
    color: #fff;
}

/* Keep only the spacing */
.resume-download {
    margin-top: 2rem;
}

/* Make sure all sections use the dark theme */
section {
    background-color: #1a1a1a;
}

section:nth-child(even) {
    background-color: #222222;
}

/* Remove these unused styles */
.home-section,
.home-scroll-container,
.skills-grid,
.skill-category,
.projects-grid {
    display: none;
}

/* Project carousel */
.project-carousel {
    position: relative;
    padding: 0 4rem;
    overflow: hidden;
}

.project-previews {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.project-preview {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 0;
}

.project-preview:hover {
    transform: translateY(-5px);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-btn {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-btn:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

.carousel-dots {
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2a2a2a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #3498db;
}


/* Extra Projects section */
#extra-projects {
    padding: 3rem 4rem;  /* Reduced padding */
    min-height: auto; /* Override the min-height from content-section */
}

#extra-projects .section-content {
    max-width: 800px;  /* Reduced max-width for smaller content */
    margin: 0 auto;
}

#extra-projects h2 {
    margin-bottom: 1rem;
}

#extra-projects p {
    margin-bottom: 1.5rem;
    color: #ccc;
}

#extra-projects li {
    list-style: none;
    margin-bottom: 0.5rem;
    list-style-type: disc;
    margin-left: 1rem;
}

#extra-projects li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

/* Contact section */
#contact {
    padding: 3rem 0;  /* Reduced padding */
    min-height: auto; /* Override the min-height from content-section */
}

.contact-container {
    max-width: 800px;  /* Reduced max-width */
    margin: 0 auto;
    padding: 1.5rem;  /* Reduced padding */
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;  /* Reduced gap */
    margin-top: 1.5rem;  /* Reduced margin */
}

.contact-form .full-width {
    grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;  /* Reduced padding */
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 0.9rem;  /* Reduced font size */
}

.contact-form textarea {
    min-height: 100px;  /* Reduced height */
    resize: vertical;
}

.contact-form button {
    padding: 0.75rem 1.5rem;  /* Reduced padding */
    margin-top: 1rem;  /* Reduced margin */
    font-size: 0.9rem;  /* Reduced font size */
}

.contact-info {
    text-align: center;
    margin: 2rem auto;
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    color: #3498db;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #2980b9;
    transform: translateY(-2px);
}

.contact-link i {
    font-size: 1.2rem;
}

/* Project Detail Page Styles */
.project-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: #fff;
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.project-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #3498db;
}

.project-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.project-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-tags span {
    background-color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.project-image-large {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image-large img {
    width: 100%;
    height: auto;
    display: block;
}

.project-description h2 {
    color: #3498db;
    margin-bottom: 1.5rem;
}

.project-description p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-description h3 {
    margin-bottom: 1rem;
    color: #e74c3c;
}

.project-description ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-description li {
    margin-bottom: 0.5rem;
}

.detail-section {
    margin-bottom: 4rem;
}

.detail-section h2 {
    color: #3498db;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
}

.implementation-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.tech-used {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.tech-used span {
    background-color: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.performance-metrics {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
    text-align: center;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
}

.metric-label {
    margin-top: 0.5rem;
    color: #ccc;
}

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

.application-card {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.application-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.application-card h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.project-conclusion {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.project-conclusion h2 {
    color: #3498db;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-overview {
        grid-template-columns: 1fr;
    }
    
    .performance-metrics {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Interactive Demo Section */
.interactive-demo {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #2a2a2a;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.upload-container {
    margin-top: 2rem;
}

.file-upload {
    margin-bottom: 1.5rem;
    text-align: center;
}

.upload-label {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #3498db;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.upload-label:hover {
    background-color: #2980b9;
}

.upload-label i {
    margin-right: 0.5rem;
}

input[type="file"] {
    display: none;
}

.file-name {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

.process-btn:disabled {
    background-color: #444;
    cursor: not-allowed;
}

.process-btn {
    margin-top: 2rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.8rem 2rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.process-btn:hover {
    background-color: #2980b9;
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.original-image, .processed-image {
    text-align: center;
}

.original-image img, .processed-image img {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.detection-results {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #2a2a2a;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.detection-results h3 {
    color: #3498db;
    margin-bottom: 1.5rem;
    text-align: center;
}

.results-section {
    padding: 1.5rem;
    background-color: #333;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.results-section h4 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.results-text {
    color: #fff;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 1rem;
}

.api-credit {
    color: #888;
    font-size: 0.8rem;
    font-style: italic;
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
}

@media (max-width: 768px) {
    .results-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-section, .analysis-section {
        padding: 1rem;
    }
}

/* Drag and drop styles */
.dropzone {
    border: 2px dashed #3498db;
    border-radius: 5px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(52, 152, 219, 0.05);
}

.dropzone:hover {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.1);
}

.dropzone.highlight {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.1);
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #999;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.image-placeholder p {
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

.original-image, .processed-image {
    text-align: center;
    background-color: #2a2a2a;
    border-radius: 5px;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.original-image h3, .processed-image h3 {
    margin: 1rem 0;
    color: #3498db;
}

.original-image img, .processed-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

/* Reinforcement Learning Demo Styles */
.rl-demo-container {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.rl-controls {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 5px;
}

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

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.control-group select, 
.control-group input[type="range"] {
    width: 100%;
    padding: 0.5rem;
    background-color: #333;
    border: none;
    border-radius: 3px;
    color: white;
}

.control-group span {
    display: inline-block;
    margin-top: 0.5rem;
    color: #3498db;
    font-family: monospace;
}

.train-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.train-btn:hover {
    background-color: #2980b9;
}

.rl-visualization {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.environment-view, 
.training-metrics {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 5px;
}

.environment-view h3, 
.training-metrics h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #3498db;
}

.placeholder-canvas, 
.placeholder-metrics {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #666;
    text-align: center;
}

.placeholder-canvas i, 
.placeholder-metrics i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #555;
}

#env-canvas, 
#reward-chart {
    background-color: #222;
    border-radius: 3px;
}

.metrics-summary {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.metric {
    background-color: #333;
    padding: 0.8rem;
    border-radius: 3px;
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.3rem;
}

.metric span:not(.metric-label) {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3498db;
}

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

.plain-detail-card {
    background-color: #2a2a2a;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.plain-detail-card h3 {
    color: #3498db;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.plain-detail-card h3 i {
    margin-right: 0.5rem;
}

@media (max-width: 992px) {
    .rl-demo-container {
        grid-template-columns: 1fr;
    }
    
    .rl-visualization {
        grid-template-columns: 1fr;
    }
}

/* Environment Builder Styles */
.environment-builder {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.algorithm-settings {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 5px;
    height: fit-content;
}

.algorithm-settings h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #3498db;
}

.environment-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.builder-controls {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 5px;
}

.builder-controls h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #3498db;
}

.tile-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.tile-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.25rem;
    border-radius: 5px;
    cursor: pointer;
    background-color: #333;
    transition: all 0.2s ease;
}

.tile-option:hover {
    background-color: #444;
}

.tile-option.selected {
    background-color: #3498db;
}

.tile-preview {
    width: 30px;
    height: 30px;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.empty-tile {
    background-color: #555;
}

.wall-tile {
    background-color: #000;
}

.bump-tile {
    background-color: #c4a484;
}

.oil-tile {
    background-color: #ff8c00;
}

.start-tile {
    background-color: #3498db;
}

.goal-tile {
    background-color: #2ecc71;
}

.tile-option span {
    font-size: 0.8rem;
    color: #ccc;
}

.tile-option.selected span {
    color: white;
}

.action-btn {
    flex: 1;
    padding: 0.8rem;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.action-btn:hover {
    background-color: #555;
}

.grid-container {
    background-color: #222;
    padding: 1rem;
    border-radius: 5px;
    display: flex;
    justify-content: center;
}

#environment-grid {
    width: 100%;
    max-width: 600px;
    height: auto;
    cursor: pointer;
    background-color: #333;
    border-radius: 3px;
}

.training-metrics {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 5px;
}

.training-metrics h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #3498db;
}

.metrics-container {
    background-color: #222;
    padding: 1rem;
    border-radius: 5px;
}

/* Validation Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
    overflow: hidden;
    min-height: 150px;
}

.modal-content h3 {
    color: #e74c3c;
    margin-top: 0;
}

.modal-content p {
    color: #000000;
    margin-bottom: 40px;
}

.modal-content button {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #2980b9;
}

@media (max-width: 992px) {
    .environment-builder {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .environment-container {
        gap: 1rem;
    }
    
    .tile-selector {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .algorithm-settings,
    .builder-controls,
    .training-metrics {
        padding: 1rem;
    }
}

/* Ari page styles */
.ari-content {
    max-width: 1000px;
    margin: 0 auto;
}

.ari-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.ari-intro h2 {
    color: #3498db;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.ari-intro p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.feature-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #ccc;
    line-height: 1.6;
}

.ari-description {
    background-color: #2a2a2a;
    padding: 3rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.ari-description h3 {
    color: #3498db;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.ari-description p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.ari-technologies h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag {
    background-color: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .ari-features {
        grid-template-columns: 1fr;
    }
    
    .ari-description {
        padding: 2rem;
    }
    
    .tech-tags {
        justify-content: center;
    }
} 

/* Dual Map Container for SLAM */
.dual-map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.map-section {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.map-section h3 {
    color: #3498db;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.map-section p {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.map-section .grid-container {
    background-color: #222;
    padding: 1rem;
    border-radius: 5px;
    margin: 0;
}

.map-section canvas {
    width: 100%;
    max-width: 600px;
    height: auto;
    cursor: pointer;
    background-color: #333;
    border-radius: 3px;
}

/* SLAM Controls */
.slam-controls {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.slam-controls h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.slam-controls .control-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.slam-controls .control-group label {
    min-width: 120px;
    color: #fff;
    font-weight: 500;
}

.slam-controls .control-group input[type="range"] {
    flex: 1;
    max-width: 200px;
}

.slam-controls .control-group select {
    flex: 1;
    max-width: 200px;
    padding: 0.5rem;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 5px;
}

.slam-controls .control-group span {
    min-width: 60px;
    color: #3498db;
    font-weight: 500;
}

.slam-btn {
    padding: 0.8rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 1rem;
    font-weight: 500;
}

.slam-btn:hover {
    background-color: #2980b9;
}

.slam-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

/* SLAM Metrics */
.slam-metrics {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.slam-metrics h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.metrics-grid .metric-card {
    background-color: #333;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

.metrics-grid .metric-card h4 {
    color: #ccc;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.metrics-grid .metric-card .metric-value {
    color: #3498db;
    font-size: 1.5rem;
    font-weight: bold;
}



/* Remove conflicting environment builder styles */

/* Episode slider highlight styles */
.episode-slider-highlight {
    animation: highlightPulse 2s ease-in-out 3;
    position: relative;
}

.episode-slider-highlight::after {
    content: "Check out the paths the agent followed throughout training!";
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 1000;
    animation: fadeInOut 6s ease-in-out;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    pointer-events: none;
}

.episode-slider-highlight::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #3498db;
    z-index: 1000;
    animation: fadeInOut 6s ease-in-out;
    pointer-events: none;
}

/* Ensure episode slider container has proper positioning */
#episode-slider-container {
    position: relative;
}

/* Episode navigation styles */
.episode-navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.episode-nav-btn {
    background-color: #444;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.episode-nav-btn:hover {
    background-color: #3498db;
    transform: translateY(-1px);
}

.episode-nav-btn:active {
    transform: translateY(0);
}

.episode-nav-btn:disabled {
    background-color: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.episode-navigation input[type="range"] {
    flex: 1;
    margin: 0;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
}

/* Core ML Concepts Page Styles */
.ml-concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.concept-card {
    background-color: #333;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.concept-card:hover {
    transform: translateY(-5px);
    border-color: #3498db;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.2);
}

.concept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s;
}

.concept-card:hover::before {
    left: 100%;
}

.concept-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.concept-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.concept-card p {
    color: #ccc;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.concept-status {
    background-color: #f39c12;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    width: fit-content;
    align-self: center;
    margin-top: 1rem;
}

.concept-demo-container {
    background-color: #2a2a2a;
    border-radius: 10px;
    margin-top: 2rem;
    overflow: hidden;
    border: 2px solid #3498db;
}

.demo-header {
    background-color: #3498db;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

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

.demo-content {
    padding: 2rem;
    min-height: 300px;
}

.demo-placeholder {
    text-align: center;
    color: #ccc;
}

.demo-placeholder i {
    color: #3498db;
    margin-bottom: 1rem;
}

.demo-placeholder h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.demo-placeholder p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.demo-placeholder em {
    color: #f39c12;
    font-style: italic;
}

/* Responsive design for ML concepts */
@media (max-width: 768px) {
    .ml-concepts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .concept-card {
        padding: 1.5rem;
    }
    
    .concept-icon {
        font-size: 2.5rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .demo-content {
        padding: 1rem;
        min-height: 200px;
    }
}

/* Model Showcase Styles */
.model-showcase {
    margin-top: 4rem;
}

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

.model-card {
    background-color: #2a2a2a;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f39c12, #e74c3c);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.model-card:hover {
    transform: translateY(-5px);
    border-color: #3498db;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.2);
}

.model-card:hover::before {
    transform: scaleX(1);
}

.model-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1.5rem;
    text-align: center;
}

.model-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-align: center;
}

.model-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.model-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999;
    font-size: 0.9rem;
    padding: 0.5rem;
    background-color: #333;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.spec-item:hover {
    background-color: #444;
    color: #fff;
}

.spec-item i {
    color: #3498db;
    width: 16px;
}

/* Model Detail Card Styles */
.detail-card {
    background-color: #2a2a2a;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f39c12, #e74c3c);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-3px);
    border-color: #3498db;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.15);
}

.detail-card:hover::before {
    transform: scaleX(1);
}

.detail-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.detail-text {
    flex: 2;
}

.detail-image {
    flex: 1;
    min-width: 200px;
}

.detail-text h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-text h3 i {
    color: #3498db;
    font-size: 1.3rem;
}

.detail-text p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.detail-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.detail-image .image-placeholder {
    background-color: #333;
    border: 2px dashed #555;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    color: #999;
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.detail-image .image-placeholder:hover {
    border-color: #3498db;
    background-color: #3a3a3a;
}

.detail-image .image-placeholder i {
    font-size: 2rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.detail-image .image-placeholder p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive design for model detail cards */
@media (max-width: 768px) {
    .detail-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .detail-card {
        padding: 1.5rem;
    }
    
    .detail-text h3 {
        font-size: 1.3rem;
    }
    
    .detail-text p {
        font-size: 0.95rem;
    }
    
    .detail-image {
        min-height: 150px;
    }
    
    .detail-image .image-placeholder {
        height: 150px;
        padding: 1.5rem;
    }
}

/* Expandable Content Styles */
.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background-color: #333;
    border-radius: 0 0 15px 15px;
    margin-top: 0;
}

.detail-card.expanded .expandable-content {
    max-height: 1000px;
    margin-top: 1rem;
}

.expandable-section {
    padding: 1.5rem;
}

.expandable-section h4 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expandable-section h4 i {
    font-size: 1rem;
}

.expandable-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.metrics-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-item {
    background-color: #2a2a2a;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #444;
}

.metric-value {
    display: block;
    color: #3498db;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.metric-label {
    color: #999;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.use-cases {
    list-style: none;
    padding: 0;
    margin: 0;
}

.use-cases li {
    color: #ccc;
    padding: 0.5rem 0;
    border-bottom: 1px solid #444;
    position: relative;
    padding-left: 1.5rem;
}

.use-cases li:last-child {
    border-bottom: none;
}

.use-cases li::before {
    content: '•';
    color: #3498db;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Cursor pointer for clickable cards */
.detail-card {
    cursor: pointer;
}

.detail-card:hover {
    transform: translateY(-3px);
    border-color: #3498db;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.15);
}

/* Responsive design for expandable content */
@media (max-width: 768px) {
    .expandable-section {
        padding: 1rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .metric-item {
        padding: 0.8rem;
    }
    
    .metric-value {
        font-size: 1.1rem;
    }
    
    .metric-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 992px) {
    .dual-map-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .slam-controls .control-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .slam-controls .control-group input[type="range"],
    .slam-controls .control-group select {
        max-width: 100%;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .tile-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .environment-builder {
        gap: 0.5rem;
    }
    
    .environment-container {
        gap: 0.5rem;
    }
    
    .algorithm-settings,
    .builder-controls,
    .training-metrics {
        padding: 0.75rem;
    }
    
    #environment-grid {
        max-width: 100%;
    }
}

/* Linear Regression Demo Styles */
.regression-demo {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.regression-demo .demo-header {
    text-align: left;
    margin-bottom: 2rem;
    background-color: #333;
    padding: 1rem;
    border-radius: 12px;
}

.regression-settings {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

.setting {
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    flex: 1;
    min-width: 200px;
}

.setting label{
    color: #ccc;
    font-size: 1rem;
}

.setting select {
    background-color: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 200px;
    min-height: 150px;
    appearance: none;
    text-align: center;
    text-align-last: center;
    text-wrap: wrap;
    hyphens: auto;
}

.setting select:hover {
    border-color: #3498db;
    background-color: #3a3a3a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.setting input[type="range"] {
    width: 95%;
    padding: 0.5rem;
    background-color: #333;
    border: none;
    border-radius: 3px;
    color: white;
}


.setting span {
    display: block;
    color: #3498db;
    font-family: monospace;
}

.plot-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

#regression-plot {
    border: 2px solid #444;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: crosshair;
    margin-bottom: 1rem;
}

.plot-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.control-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.control-btn:active {
    transform: translateY(0);
}

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

.stat-card {
    background: #3a3a3a;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border-color: #3498db;
}

.stat-card h5 {
    color: #3498db;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-card p {
    color: #ecf0f1;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

@media (max-width: 768px) {
    .regression-demo {
        padding: 1rem;
    }
    
    #regression-plot {
        width: 100%;
        max-width: 400px;
        height: 300px;
    }
    
    .plot-controls {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
    }
    
    .control-btn {
        width: 100%;
        justify-content: center;
    }
    
    .regression-stats {
        grid-template-columns: 1fr;
    }
} 