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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
}

/* Hero Section */
.hero {
    padding: 2rem;
    text-align: center;
    background-color: #f5f5f5;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000000;
}

.hero__description {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0 auto 2rem;
    max-width: 600px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 560px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

/* SmartBoxes Showcase */
.smartboxes-showcase {
    padding: 4rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

.smartboxes-showcase h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #000000;
}

.smartboxes-image {
    max-width: 800px;
    margin: 0 auto;
}

.round-image {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Schematics Section */
.schematics {
    padding: 4rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

.schematics h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #000000;
}

.schematics-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.schematics-text {
    flex: 1;
    text-align: left;
    max-width: 500px;
}

.schematics-text ul {
    list-style-type: none;
    margin-top: 1rem;
}

.schematics-text li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.schematics-text li::before {
    content: "•";
    color: #4CAF50;
    position: absolute;
    left: 0;
}

.schematics-image {
    flex: 1;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.schematics-img {
    width: 50%;  /* Make image 2x smaller */
    height: auto;
    border-radius: 20px;  /* Match device-image border radius */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Project Ideas Section */
.project-ideas {
    padding: 4rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

.project-ideas h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #000000;
}

.section-description {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.idea-card {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.idea-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.idea-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.idea-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #000000;
}

.idea-card p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

.more-ideas {
    margin-top: 3rem;
    font-size: 1.1rem;
    color: #6b7280;
    font-style: italic;
}

/* Order Now Section */
.order-now {
    padding: 4rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

.order-now h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #000000;
}

.order-now-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #000000;
    text-align: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-details {
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

.contact-details a {
    color: #4CAF50;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.order-button {
    display: inline-block;
    background-color: #4CAF50;
    color: white !important;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.order-button:hover {
    background-color: #45a049;
    color: white !important;
}

/* Navigation Styles */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4CAF50;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #000000;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Adjust main content for fixed navbar */
main {
    margin-top: 70px;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #f0f0f0;
    z-index: 999;
}

.progress-bar {
    height: 100%;
    background-color: #4CAF50;
    width: 0%;
    transition: width 0.1s ease;
}

/* Section Transitions */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Footer Styles */
.site-footer {
    background-color: #ffffff;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid #eee;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #000000;
}

.footer-section p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4CAF50;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    color: #4CAF50;
}

.social-link i {
    font-size: 1.5rem;
    width: 24px;
    text-align: center;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 0;
    }

    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .schematics-content {
        flex-direction: column;
        align-items: stretch;
        padding-left: 0;
        padding-right: 0;
    }

    .schematics-text {
        max-width: 100%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .schematics-image {
        max-width: 100%;
        justify-content: center;
    }

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

    .idea-card {
        padding: 1.25rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section ul {
        display: inline-block;
        text-align: left;
    }

    .smartboxes-image {
        max-width: 100%;
    }
    
    .round-image {
        border-radius: 25px;
    }
}

.instagram-grid {
    padding: 3rem 2rem;
    background: #fff;
    text-align: center;
}

.firmwares-table-wrapper {
    margin: 2rem auto 0 auto;
    max-width: 900px;
    background: #18191a;
    border-radius: 10px;
    padding: 1.5rem 1rem 1rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.firmwares-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    background: none;
    font-size: 1.05rem;
}
.firmwares-table th, .firmwares-table td {
    padding: 0.7rem 1rem;
    text-align: left;
}
.firmwares-table th {
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid #333;
    background: #222;
}
.firmwares-table td {
    border-bottom: 1px solid #222;
    vertical-align: middle;
}
.firmwares-table tr:last-child td {
    border-bottom: none;
}
.firmwares-table td:first-child {
    font-weight: 500;
    white-space: nowrap;
}
.firmwares-note {
    color: #ccc;
    font-size: 0.98em;
    margin-top: 1.2rem;
    font-style: italic;
    text-align: left;
}
@media (max-width: 600px) {
    .firmwares-table-wrapper {
        padding: 0.5rem 0.2rem;
    }
    .firmwares-table th, .firmwares-table td {
        padding: 0.5rem 0.3rem;
        font-size: 0.98rem;
    }
}

/* Responsive firmware table */
@media (max-width: 700px) {
  .firmwares-table-wrapper {
    overflow-x: auto;
    padding: 0.5rem 0.2rem;
  }
  .firmwares-table {
    min-width: 600px; /* or whatever fits your columns */
    font-size: 0.98rem;
  }
  .firmwares-table th, .firmwares-table td {
    padding: 0.5rem 0.3rem;
  }
}

.firmware-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.firmware-link:hover {
    color: #81c784;
    text-decoration: underline;
}

.firmware-bin-disabled {
    color: #888;
    background: none;
    text-decoration: line-through;
    cursor: not-allowed;
    font-weight: 500;
    opacity: 0.7;
    pointer-events: none;
}

.arduino-setup {
    padding: 4rem 2rem 2rem 2rem;
    background: #fff;
    text-align: left;
    max-width: 900px;
    margin: 0 auto 2rem auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    color: #000;
}
.arduino-setup h2 {
    text-align: center;
}
.arduino-steps ol {
    margin-left: 1.2rem;
    margin-bottom: 1.5rem;
}
.arduino-steps li {
    margin-bottom: 1.1rem;
    font-size: 1.08rem;
    line-height: 1.6;
    color: #000;
}
.arduino-steps code {
    background: #222;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.98em;
}
.arduino-steps a {
    color: #4CAF50;
    text-decoration: none;
}
.arduino-steps a:hover {
    text-decoration: underline;
}
.arduino-note {
    background: #f8f9fa;
    color: #333;
    border-left: 4px solid #4CAF50;
    padding: 1rem 1.2rem;
    border-radius: 6px;
    font-size: 1.01em;
    margin-top: 1.5rem;
}

.faq-section {
    padding: 4rem 2rem 2rem 2rem;
    background: #fff;
    max-width: 900px;
    margin: 0 auto 2rem auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.faq-list {
    margin-top: 2rem;
}
.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #eee;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    font-size: 1.08rem;
    color: #222;
    margin-bottom: 0.3rem;
}
.faq-answer {
    color: #444;
    font-size: 1.03rem;
    line-height: 1.6;
}

#instagram {
    display: block;
    height: 80px;
    margin-top: -80px;
    /* Offset for fixed navbar */
}
.ai-codegen {
    margin-top: 3rem;
    padding: 4rem 2rem 2rem 2rem;
    background: #fff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: left;
}
.ai-codegen h2 {
    text-align: center;
}
.ai-codegen .section-description {
    text-align: center;
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.ai-codegen-steps ol {
    margin-left: 1.2rem;
    margin-bottom: 1.5rem;
}
.ai-codegen-steps li {
    margin-bottom: 1.1rem;
    font-size: 1.08rem;
    line-height: 1.6;
}
.ai-codegen-steps code {
    background: #222;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.98em;
}
.ai-codegen-note {
    background: #f8f9fa;
    color: #333;
    border-left: 4px solid #4CAF50;
    padding: 1rem 1.2rem;
    border-radius: 6px;
    font-size: 1.01em;
    margin-top: 1.5rem;
}
.ai-codegen-note ul {
    margin: 0.5em 0 0 1.2em;
    padding: 0;
}
.ai-codegen-note li {
    margin-bottom: 0.5em;
    font-size: 1em;
}

.ai-prompt-example {
    margin: 1.2em 0 1.2em 0;
    background: #f4f4f4;
    border-left: 4px solid #4CAF50;
    padding: 1em 1.2em;
    border-radius: 6px;
    font-size: 1em;
    color: #222;
    overflow-x: auto;
}
.ai-prompt-example code {
    background: none;
    color: #222;
    font-size: 0.98em;
    padding: 0;
    border-radius: 0;
    white-space: pre-line;
    display: block;
}

/* ========== Order Form Container ========== */
.order-container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ========== Form Groups ========== */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}
.required::after {
    content: " *";
    color: #e53935;
}

/* ========== Shipping Methods ========== */
.shipping-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.shipping-method {
    border: 2px solid #ddd;
    padding: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}
.shipping-method:hover {
    border-color: #4CAF50;
    background: #f0fff0;
}
.shipping-method.selected {
    border-color: #4CAF50;
    background: #f0fff0;
}
.shipping-method input[type="radio"] {
    margin-right: 0.5rem;
}
.price {
    font-weight: 600;
    color: #4CAF50;
    margin: 0.5rem 0;
}

/* ========== Error and Success ========== */
.error {
    color: #e53935;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
    text-align: center;
}
.error-message {
    background-color: #ffebee;
    color: #e53935;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.error-message ul {
    list-style-type: none;
    padding-left: 0;
}
.error-message li {
    margin-bottom: 0.5rem;
}

/* ========== Order Details & Payment ========== */
.order-details {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}
.payment-details h2,
.order-details h2,
.next-steps h2 {
    margin-top: 0;
}
.amount-to-pay {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.total-amount {
    color: #4CAF50;
}
.bank-details table {
    width: 100%;
    margin-bottom: 1rem;
}
.bank-details td {
    padding: 0.25rem 0.5rem;
}
.payment-reference .order-id {
    font-weight: bold;
    font-size: 1.1rem;
    color: #4CAF50;
    margin-top: 0.5rem;
}

/* ========== Quantity and Running Total ========== */
.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.quantity-wrapper input[type="number"] {
    width: 100px;
}
.running-total {
    font-size: 1.1rem;
    font-weight: 500;
    color: #4CAF50;
}

/* ========== Buttons ========== */
button[type="submit"],
.back-button {
    background-color: #4CAF50;
    color: white !important;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
    text-align: center;
    display: inline-block;
}
button[type="submit"] {
    width: 100%;
}
button[type="submit"]:hover,
.back-button:hover {
    background-color: #45a049;
}
.back-button {
    text-decoration: none;
    margin-top: 20px;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .order-container {
        padding: 1rem;
        margin: 1rem;
    }
    .quantity-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    .quantity-wrapper input[type="number"] {
        width: 100%;
    }
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.hero-text {
    flex: 1 1 0;
}

.hero-image-small {
    width: 120px; /* Adjust as needed for 2x smaller */
    height: auto;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: block;
}
@media (max-width: 700px) {
    .hero-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .hero-image-small {
        width: 80px;
        margin-top: 12px;
    }
}

/* Code and URL wrapping styles */
.arduino-steps code,
.ai-codegen-steps code,
.pinout-info pre {
    display: block;
    white-space: pre-wrap;       /* Since CSS 2.1 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
    overflow-wrap: break-word;
    max-width: 100%;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    line-height: 1.4;
}

.arduino-steps a,
.ai-codegen-steps a {
    word-break: break-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

@media (max-width: 768px) {
    .arduino-steps code,
    .ai-codegen-steps code,
    .pinout-info pre {
        font-size: 0.85em;
        padding: 0.4rem;
    }
    
    .arduino-steps a,
    .ai-codegen-steps a {
        font-size: 0.9em;
    }
} 