/* 
 * HyperbotResearch Products - Main Stylesheet
 * Version: 1.0
 */

/* ========================================
   Google Fonts Import
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@200;300;400;600;700&family=Open+Sans:wght@300;400;600;700&display=swap');

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

body {
    font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   Animated Background
   ======================================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #0a0a0a, #1a1a2e, #16213e, #0a0a0a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating particles */
.particle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* ========================================
   Header & Navigation
   ======================================== */
header {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #ffffff;
}

.logo img {
    height: 40px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Nunito Sans', sans-serif;
}

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

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #00d4ff;
}

.back-btn {
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

/* ========================================
   Hero Section (Landing Page)
   ======================================== */
.hero {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 0px;
}

.hero p {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* ========================================
   Products Grid (Landing Page)
   ======================================== */
.products-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.5);
}

.product-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: block;
    border-radius: 10px;
}

.product-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #00d4ff;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
}

.product-card .subtitle {
    font-size: 1rem;
    color: #aaaaaa;
    margin-bottom: 1rem;
    font-style: italic;
}

.product-card p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ========================================
   Product Detail Pages
   ======================================== */
.hero-product {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.product-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.product-info h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 0px;
}

/* Lampi and LoRaChain use same white color as others */

.product-info .subtitle {
    font-size: 1.3rem;
    color: #aaaaaa;
    margin-bottom: 2rem;
    font-style: italic;
}

.product-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 1.5rem;
}

.product-image {
    width: 100%;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

/* ========================================
   Sections
   ======================================== */
.section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #00d4ff;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
}

/* Lampi specific color */
.section h3.lampi-color {
    color: #ffd700;
}

/* LoRaChain specific color */
.section h3.lorachain-color {
    color: #00ff88;
}

/* ========================================
   Video Container
   ======================================== */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 3rem;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.video-container video {
    width: 100%;
    display: block;
}

/* ========================================
   Features Grid
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
}

.feature-card h4 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Lampi specific color */
.feature-card.lampi-border {
    border-color: rgba(255, 215, 0, 0.2);
}

.feature-card.lampi-border h4 {
    color: #ffd700;
}

/* LoRaChain specific color */
.feature-card.lorachain-border {
    border-color: rgba(0, 255, 136, 0.2);
}

.feature-card.lorachain-border h4 {
    color: #00ff88;
}

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

/* ========================================
   Diagrams
   ======================================== */
.diagram-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
}

.diagram-placeholder svg {
    width: 100%;
    max-width: 800px;
    height: auto;
}

/* ========================================
   Technical Specs
   ======================================== */
.tech-specs {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.tech-specs ul {
    list-style: none;
    padding: 0;
}

.tech-specs li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #cccccc;
}

.tech-specs li:last-child {
    border-bottom: none;
}

.tech-specs strong {
    color: #00d4ff;
    margin-right: 1rem;
}

/* Lampi specific */
.tech-specs.lampi-border {
    border-color: rgba(255, 215, 0, 0.2);
}

.tech-specs.lampi-border strong {
    color: #ffd700;
}

/* LoRaChain specific */
.tech-specs.lorachain-border {
    border-color: rgba(0, 255, 136, 0.2);
}

.tech-specs.lorachain-border strong {
    color: #00ff88;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #00d4ff, #7b2ff7);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: 600;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.btn-large {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-large:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4);
}

/* ========================================
   CTA Section (LoRaChain)
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    margin: 4rem 0;
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #00ff88;
}

.cta-section p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 2rem;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: #888888;
}

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

    .hero p {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
    }

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

    .product-header {
        grid-template-columns: 1fr;
    }

    .product-info h2 {
        font-size: 2rem;
    }

    nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }

    .product-card h3 {
        font-size: 1.5rem;
    }

    .section h3 {
        font-size: 1.5rem;
    }

    .product-info h2 {
        font-size: 1.75rem;
    }
}

/* ========================================
   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; }
