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

/* Prevent media elements from causing horizontal overflow on small screens */
img, picture, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

html{
    color: #333;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, #445b44 0%, #1a3a1b 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-wrap: wrap; /* allow items to wrap into two rows when space is limited */
}

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


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

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    /* Use wrapping so the nav can become two rows while keeping desktop-like flow
       Center the logo only when it occupies its own row */
    nav {
        gap: 0.6rem;
        padding: 1rem; /* reduce horizontal padding to avoid overflow */
        justify-content: center;
    }

    /* When wrapped, force the logo to its own row and center it */
    .logo {
        flex: 0 0 100%; /* occupy full width so it sits on its own row */
        text-align: center;
        order: -1; /* keep logo visually first */
    }

    .logo img {
        margin-right: 0; /* remove extra right-margin when centered */
        display: inline-block;
    }

    /* Force nav-menu to its own row below the logo */
    .nav-menu {
        flex: 0 0 100%;
        width: 100%;
        overflow: hidden;
        order: 0;
    }

    .nav-menu ul {
        width: 100%;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
        padding: 0;
        margin: 0;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c5f2d 0%, #1a3a1b 100%);
    color: white;
    padding: 2rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

.hero-robot {
    width: 70%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    display: inline-block;
    object-fit: contain;
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5f2d;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

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

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c5f2d;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Specs Section */
.specs {
    padding: 5rem 2rem;
    background: white;
}

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

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

.spec-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 10px;
    border-left: 4px solid #2c5f2d;
}

.spec-value {
    font-size: 2rem;
    font-weight: bold;
    color: #2c5f2d;
    margin-bottom: 0.5rem;
}

.spec-label {
    color: #666;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2c5f2d 0%, #1a3a1b 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
/* sub Sections */
.sub-container {
    max-width: 1200px;
    margin: 0 auto;
}

.sub-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

/* Upcoming Section */
.upcoming {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
}



.upcoming-text {
    color: #333;
}

.upcoming-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

/* Upcoming Section (enhanced visuals) */
.upcoming {
    padding: 2rem 2rem;
    background: #f0f4ff;
    position: relative;
    overflow: hidden;
}

.upcoming-container {
    max-width: 1100px;
    margin: 0 auto;
}

.upcoming-content {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.upcoming-text {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(18,38,63,0.08);
    color: #222;
}

.upcoming-text p {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: #444;
}

.upcoming-features {
    list-style: none;
    margin: 1rem 0 1.5rem 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.upcoming-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.upcoming-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.upcoming-robot {
    width: 320px;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(18,38,63,0.12);
}

.upcoming-robot:hover {
    transform: translateY(-10px) rotate(0deg) scale(1.02);
    box-shadow: 0 30px 70px rgba(18,38,63,0.18);
}


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

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Footer */
footer {
    background: #1a3a1b;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    /* removed unused .cta-buttons media rule */

    nav ul {
        gap: 1rem;
    }

    /* removed unused .robot-icon media rule */
    .hero-robot {
        width: 200px;
        height: auto;
    }
    /* Stack upcoming content so text is above image on mobile */
    .upcoming-content {
        grid-template-columns: 1fr;
    }
}

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

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-image {
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* R2 Section Styling */
.r2 {
    padding: 2rem 2rem;
    background: #f0f4ff;
}

.r2 .sub-container {
    max-width: 1100px;
    margin: 0 auto;
}

.r2 .sub-content {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2.5rem;
    align-items: start;
}

.r2 .r2-block {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(18,38,63,0.08);
    color: #222;
    line-height: 1.5;
}

.r2 .r2-block h3 {
    margin-top: 0;
    color: #2c5f2d;
}

.r2 .upcoming-image {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.r2 .upcoming-robot {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(18,38,63,0.12);
}

.figure-placeholder {
    width: 100%;
    max-width: 420px;
    height: 220px;
    border-radius: 10px;
    border: 2px dashed rgba(44,95,45,0.12);
    background: linear-gradient(180deg,#fbfffa,#ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-weight: 600;
    margin: 0.8rem 0;
}

.figure-placeholder.small {
    width: 220px;
    max-width: 100%;
    height: 120px;
    border-radius: 8px;
    font-size: 0.95rem;
    margin: 0.6rem 0;
}

.figure-caption {
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.4rem;
}

/* R2 gallery: show two thumbnails side-by-side, stack on small screens */
.r2-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: start;
    margin-top: 1rem;
}

.r2-gallery .upcoming-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .r2-gallery {
        grid-template-columns: 1fr;
    }
}

/* Make gallery thumbnails match video container size exactly */
.gallery-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

/* Override .upcoming-robot styles for gallery images */
.gallery-container img.upcoming-robot {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: none;
}

/* Small R1 section: inline image + compact spacing */

.r1-text {
    max-width: 1100px;
    margin: 0 auto;
    color: #2c5f2d;
    font-size: 0.975rem;
}

/* R1: larger card that follows R2 styling with a taller inline image */
.r1 {
    
    padding: 2rem 2rem;
    background: #f0f4ff;
}

.r1 .r1-block {
    max-width: 1100px;
    margin: 0 auto;
    display: block;
    padding: 2rem;
    border-radius: 16px;
    background: white;
}

.r1 .r1-text {
    margin: 0;
    color: #222;
    line-height: 1.5;
    font-size: 1rem;
}

.r1 .inline-robot {
    height: 200px; /* ensure at least 200px height for R1 image */
    width: auto;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(18,38,63,0.12);
    margin-right: 1rem;
    object-fit: cover;
}

@media (max-width: 768px) {
    .r1 .r1-block {
        flex-direction: column;
        align-items: stretch;
    }
    .r1 .inline-robot {
        width: 100%;
        height: auto;
        margin-right: 0;
    }
}

/* R1 content: two-column layout similar to Upcoming */
.r1 .r1-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: center;
}

.r1 .r1-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.r1 .r1-robot {
    width: 100%;
    max-width: 320px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(18,38,63,0.12);
}

@media (max-width: 768px) {
    .r1 .r1-content {
        grid-template-columns: 1fr;
    }
    .r1 .r1-robot {
        width: 100%;
        height: auto;
    }
}

/* R2 Videos: two-column grid for embedded YouTube videos */
.r2-videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.video-container, .gallery-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(18,38,63,0.08);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .r2-videos {
        grid-template-columns: 1fr;
    }
}
