/* Full page background */
body {
    background: linear-gradient(to bottom, 
        rgba(11, 12, 16, 1) 0%,
        rgba(31, 31, 31, 1) 100%
    );
    min-height: 100vh;
}

/* Main content wrapper */
main {
    background: linear-gradient(180deg, 
        rgba(11, 12, 16, 0) 0%,
        rgba(11, 12, 16, 0.6) 10%,
        rgba(31, 31, 31, 0.8) 20%,
        rgba(31, 31, 31, 0.95) 30%,
        rgba(31, 31, 31, 1) 40%,
        rgba(31, 31, 31, 1) 60%,
        rgba(31, 31, 31, 0.95) 70%,
        rgba(31, 31, 31, 0.8) 80%,
        rgba(11, 12, 16, 0.6) 90%,
        rgba(11, 12, 16, 0) 100%
    );
    min-height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
    padding-bottom: 2rem;
}

/* Robots Page Specific Styling */
.robots-history {
    max-width: 1800px;
    margin: var(--header-height) auto 0;
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(180deg,
        rgba(11, 12, 16, 0) 0%,
        rgba(11, 12, 16, 0.4) 5%,
        rgba(11, 12, 16, 0.7) 15%,
        rgba(11, 12, 16, 0.85) 25%,
        rgba(31, 31, 31, 0.95) 35%,
        rgba(31, 31, 31, 0.98) 50%,
        rgba(31, 31, 31, 0.95) 65%,
        rgba(11, 12, 16, 0.85) 75%,
        rgba(11, 12, 16, 0.7) 85%,
        rgba(11, 12, 16, 0.4) 95%,
        rgba(11, 12, 16, 0) 100%
    );
    color: white;
    position: relative;
    overflow: visible;
    min-height: calc(100vh - var(--header-height));
}

/* Add ambient gradient background */
.robots-history::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(36, 152, 220, 0.03) 0%, transparent 80%),
        radial-gradient(circle at 70% 70%, rgba(255, 131, 0, 0.03) 0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
    animation: gradientMove 20s ease-in-out infinite alternate;
}

@keyframes gradientMove {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(20px, 20px) scale(1.1);
    }
}

.robot-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    max-width: 1800px;
    margin: 2rem auto;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

/* Center last row using grid */
.robot-grid {
    grid-template-rows: auto auto auto;
    grid-auto-rows: 1fr;
}

.robot-card:nth-last-child(2) {
    grid-column: 3 / span 1;
}

.robot-card:last-child {
    grid-column: 4 / span 1;
}

.robot-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, 
        rgba(36, 152, 220, 0.05) 0%,
        rgba(26, 26, 26, 0.9) 50%,
        rgba(255, 131, 0, 0.05) 100%
    );
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        0 0 15px rgba(255, 131, 0, 0.1),
        0 0 15px rgba(36, 152, 220, 0.1);
    transition: all 0.3s ease;
    border: 1px solid;
    border-image: linear-gradient(135deg, rgba(36, 152, 220, 0.3), rgba(255, 131, 0, 0.3)) 1;
    backdrop-filter: blur(5px);
    height: 100%;
    min-height: 400px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    visibility: hidden;
}

.robot-card.animate {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}

.robot-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 
        0 0 25px rgba(255, 131, 0, 0.2),
        0 0 25px rgba(36, 152, 220, 0.2);
}

.robot-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.robot-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.robot-info h2 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-family: 'Nasalization', sans-serif;
    color: white;
}

.robot-info h3 {
    color: var(--primary-orange);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
}

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

.specs h4 {
    color: #2498DC;
    font-size: 0.9rem;
    margin: 0;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 131, 0, 0.3);
}

.specs p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Section Title Styling */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
    font-family: 'Nasalization', sans-serif;
    background: linear-gradient(90deg, #2498DC, #FF8300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(36, 152, 220, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, #2498DC, #FF8300);
    box-shadow: 0 0 10px rgba(36, 152, 220, 0.5);
}

.section-description {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 1800px) {
    .robot-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .robot-card:nth-last-child(2) {
        grid-column: 2 / span 1;
    }
    .robot-card:last-child {
        grid-column: 4 / span 1;
    }
}

@media (max-width: 1500px) {
    .robot-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .robot-card:nth-last-child(2) {
        grid-column: 2 / span 1;
    }
    .robot-card:last-child {
        grid-column: 3 / span 1;
    }
}

@media (max-width: 1200px) {
    .robot-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .robot-card:nth-last-child(2) {
        grid-column: 1 / span 1;
    }
    .robot-card:last-child {
        grid-column: 2 / span 1;
    }
}

@media (max-width: 900px) {
    .robot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .robot-card:nth-last-child(2),
    .robot-card:last-child {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .robot-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.robot-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 12, 16, 0.9);
    z-index: 1000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.robot-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.robot-modal {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    background: linear-gradient(135deg,
        rgba(36, 152, 220, 0.1) 0%,
        rgba(26, 26, 26, 0.95) 50%,
        rgba(255, 131, 0, 0.1) 100%
    );
    border-radius: 20px;
    padding: 2rem;
    color: white;
    border: 1px solid;
    border-image: linear-gradient(135deg, rgba(36, 152, 220, 0.5), rgba(255, 131, 0, 0.5)) 1;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.robot-modal.active {
    transform: scale(1);
    opacity: 1;
}

.robot-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.robot-modal-close:hover {
    transform: scale(1.1);
    color: var(--primary-orange);
}

.robot-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.robot-modal-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.robot-modal-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.robot-modal-info {
    text-align: left;
}

.robot-modal-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Nasalization', sans-serif;
    background: linear-gradient(90deg, #2498DC, #FF8300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.robot-modal-info h3 {
    font-size: 1.5rem;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
}

.robot-modal-specs {
    display: grid;
    gap: 1.5rem;
}

.robot-modal-specs h4 {
    color: #2498DC;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #FF8300;
    padding-bottom: 0.5rem;
}

.robot-modal-specs p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
    .robot-modal-content {
        grid-template-columns: 1fr;
    }
    
    .robot-modal {
        width: 95%;
        padding: 1.5rem;
    }
    
    .robot-modal-info h2 {
        font-size: 2rem;
    }
} 