/* This file contains the CSS styles for the website, defining the layout and appearance of the web pages. */

/* Basic Reset and Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #d1d5db; 
    background-color: #2e395b; /* Dark blue background */
}

/* Utility & extracted styles from templates */
.section-title-gradient {
    background: linear-gradient(135deg, #007bff, blue); 
    color: white;
    padding: 16px 0;
    border-radius: 8px;
    text-align: center;
    font-size: 2.0em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    letter-spacing: 1px;
}

.highlight-title {
    color: white;
}

.highlight-title1 {
    color: white;
}

.product-media {
    margin: 8px 0;
}

.product-image {
    max-width: 260px;
    height: auto;
    border-radius: 8px;
    color: white;
}

.custom-solutions-info {
    color: white;
    margin: 10px;
}

.custom-features {
    margin-left: 24px;
}

.custom-pricing {
    margin-bottom: 8px;
}

/* Feature images on home page */
.feature-image {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 180px;
    margin: 0 auto 1rem;
}

/* Reusablecadetblue card container for highlighted sections */
.card-cadetblue {
    background-color: cadetblue;
    color: black;
    padding: 20px;
    border-radius: 38px;
    margin-left: 10%;
    margin-right: 10%;
}

/* Specific tweaks per section using the shared card */
.about-content.card-cadetblue {
    border-radius: 88px;
}

/* cadetblue paragraph container for About page */
.p-cadetbluep {
    background:cadetblue;
    color: black;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: left;
}

.inline-link {
    color: #e6f7ff;
    font-weight: 600;
    text-decoration: underline;
}

.inline-link:hover {
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 80%;
    overflow: hidden;
    /* background:cadetblue */
}

footer {
    background: #0f172a; /* Darker blue for footer */
    color: #94a3b8; /* Mutedcadetblue text */
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product-item {
    background: #334155; /* Dark blue-cadetblue for product cards */
    border: 1px solid #475569; /* Slightly lighter border */
    border-radius: 8px;
    margin: 10px;
    padding: 15px;
    flex: 1 1 calc(30% - 20px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color:white; /* Light text for readability */
}

.solution-details{
    background:cadetblue; 
    font-size: 1.15em; 
    padding: 10px; 
    border-radius: 6px;
    color: black; /* Light text for readability */
    line-height: 2;
    font-size: 1.3em; 
}

.product-item h2 {
    font-size: 1.5em;
    color: #38bdf8; /* Accent blue for headings */
}

.product-item p {
    font-size: 1em;
    color: white; /* Muted lightcadetblue for descriptions */
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 5px;
}

.contact-form button {
    background: #35424a;
    color: #ffffff;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #e8491d;
}

/* Navigation */
.navbar {
    background: #0f172a; /* Darker blue for navbar */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nav-logo-img {
    display: block;
}

.nav-logo-link {
    display: inline-block;
    line-height: 0;
}

.nav-logo .nav-logo-name {
    color: #38bdf8; /* Accent blue for logo */
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 0.25rem;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-toggle {
    background: none;
    border: none;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
}

.nav-toggle:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 3px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-link {
    color: white; /* Mutedcadetblue for links */
    font-size: 1.3rem;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link.active {
    color: #38bdf8;
    font-weight: 600;
    border-bottom: 2px solid #38bdf8;
}

.nav-link:hover {
    color: #38bdf8; /* Accent blue on hover */
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    background: rgba(56, 189, 248, 0.1);
    border: 2px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}

.language-link:hover {
    border-color: #38bdf8;
}

.language-link.active {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.2);
}

.nav-wiki-link {
    color: #e6f7ff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 2px solid rgba(230, 247, 255, 0.4);
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.nav-wiki-link:hover {
    color: #38bdf8;
    /* background: #e6f7ff; */
    border-color: #e6f7ff;
}

.software-section {
    padding: 3rem 0;
    background: rgba(15, 23, 42, 0.85);
}

.software-section.platform {
    background: rgba(15, 23, 42, 0.92);
}

.software-section-header {
    margin-bottom: 1rem;
    text-align: center;
}

.software-section-description {
    margin: 0 auto 2rem;
    max-width: 900px;
}

.software-details {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
    margin-bottom: 1.5rem;
}

.software-features {
    background: #1e293b;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}

.software-feature-list {
    list-style: none;
    margin-top: 1rem;
    display: grid;
    gap: 0.75rem;
}

.software-feature-list li {
    position: relative;
    padding-left: 1.5rem;
    color: #f8fafc;
}

.software-feature-list li::before {
    content: "•";
    position: absolute;
    left: 0.3rem;
    color: #38bdf8;
}

.software-gallery {
    display: grid;
    gap: 1.5rem;
}

.software-gallery-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
}

.software-gallery-caption {
    font-weight: 600;
    color: cyan;
    /* text-transform: uppercase; */
    letter-spacing: 0.05em;
}

.software-gallery img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: #0f172a;
}

.software-cta {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(56, 189, 248, 0.35));
}

.software-cta .btn {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .container {
        width: 100%;
        padding: 0 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 1rem;
        padding-top: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        display: none;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .language-switch {
        width: 100%;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2e395b, #0f172a); /* Gradient for hero section */
    color: #e2e8f0; /* Light text */
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #38bdf8; /* Accent blue for hero heading */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #cbd5e1; /* Muted lightcadetblue */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    background: #38bdf8; /* Accent blue for buttons */
    color: #0f172a; /* Dark text for contrast */
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.hero-buttons .btn:hover {
    background: #0284c7; /* Darker blue on hover */
}

/* Hero Section Enhancements */
.hero-highlight {
    background: linear-gradient(135deg,cadetblue, #494c4f);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid #27ae60;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.highlight-icon {
    font-size: 1.5rem;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-highlight p {
    margin: 0;
    font-size: 1rem;
    color: blue;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    border: none;
    font-weight: bold;
    background: #334155; /* Dark blue-cadetblue */
    color: #e2e8f0;
    border: 1px solid #475569;
}

.btn:hover {
    background: #475569; /* Slightly lighter on hover */
    color: #e2e8f0;
}

.btn-primary {
    background: #38bdf8; /* Accent blue */
    color: #0f172a; /* Dark text for contrast */
}

.btn-primary:hover {
    background: #0284c7; /* Darker blue on hover */
}

.btn-secondary {
    background: transparent;
    color: #38bdf8; /* Accent blue */
    border: 2px solid #38bdf8;
}

.btn-secondary:hover {
    background: #38bdf8;
    color: #0f172a; /* Dark text for contrast */
}

/* Features Section */
.features {
    padding: 20px 10px;
    background: #2e395b; /* Dark blue background */
    color: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #38bdf8; /* Accent blue for section heading */
}

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

.feature-card {
    background:cadetblue; /* Dark blue-cadetblue for feature cards */
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    color: black; /* Light text */
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #38bdf8; /* Accent blue for icons */
}

/* Page Header */
.page-header {
    background: #0f172a; /* Darker blue */
    color: #e2e8f0; /* Light text */
    padding: 20px 0;
}

.page-header h1 {
    font-size: 2.0rem;
    margin-bottom: 1rem;
}

/* Products */
.products {
    padding: 80px 0;
    /* background: blue;  */
}


.category-card {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #007bff;
    border-radius: 10px;
}

.category-card h2 {
    margin-bottom: 1rem;
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    color: white; /* Light text for readability */
}

.product-item {
    background:cadetblue;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    color: white; /* Light text for readability */
}

.product-item h3 {
    margin-bottom: 1rem;
    color: white; /* Light text for readability */
}

@media (max-width: 600px) {
    section.features {
        padding: 48px 0;
    }

    section.features .features-grid {
        gap: 1.5rem;
    }

    section.features .feature-card {
        padding: 1.5rem;
    }

    .products {
        padding: 48px 0;
    }

    .category-card {
        padding: 1.5rem;
    }

    .product-grid {
        gap: 1.5rem;
    }

    .product-item {
        padding: 1.25rem;
    }
}

.features {
    margin: 1rem 0;
}

.feature-tag {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.usage {
    margin: 0.25rem 0 1rem;
}

.usage-tag {
    background: #1d4ed8;
}

.pricing {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.price-tier {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.price {
    font-weight: bold;
    color: #27ae60;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: white;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    background: white;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: black;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Footer */
footer {
    background: #0f172a; /* Darker blue for footer */
    color: #94a3b8; /* Mutedcadetblue text */
    padding: 20px 0;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

/* CTA Section */
.cta {
    background: #2c3e50;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta h2 {
    margin-bottom: 1rem;
}

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

/* Alert Styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* ThingsBoard Account Creation Styles */
.activation-section {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.activation-link-box {
    margin: 15px 0;
    padding: 15px;
    background-color: #fff;
    border: 2px dashed #28a745;
    border-radius: 6px;
    word-break: break-all;
}

.activation-link {
    color: #28a745;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
}

.activation-link:hover {
    text-decoration: underline;
}

.activation-note {
    margin-top: 15px;
    font-style: italic;
    color: #6c757d;
}

.success-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #c3e6cb;
}

.captcha-placeholder {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #6c757d;
    text-align: center;
}

.captcha-mock {
    color: #6c757d;
}

.customer-account-cta {
    background: #2e395b;
    padding: 40px 0;
    margin: 40px 0;
    border-radius: 8px;
}

.customer-account-cta .highlight-title {
    color: #ffffff;
    margin-bottom: 15px;
}

.customer-account-cta .p-cadetbluep {
    color: #e2e8f0;
    margin-bottom: 25px;
}

.tenant-account-cta {
    background: #2e395b;
    padding: 40px 0;
    margin: 40px 0;
    border-radius: 8px;
}

.tenant-account-cta .highlight-title {
    color: #ffffff;
    margin-bottom: 15px;
}

.tenant-account-cta .p-cadetbluep {
    color: #e2e8f0;
    margin-bottom: 25px;
}

/* Search and Filter Section */
.search-filter-section {
    background:cadetblue;
    padding: 30px 0;
    /* border-bottom: 1px solid #e9ecef; */
    border-radius: 8px;
}

.search-filter-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-group {
    display: flex;
    border: 2px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    background: white;
}

.search-input {
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    width: 300px;
    outline: none;
}

.search-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
}

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

.filter-select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: #2c3e50;
}

.clear-btn {
    background: #e74c3c;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
}

.clear-btn:hover {
    background: #c0392b;
    color: white;
}

.search-results-info {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-style: italic;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Enhanced Product Features */
.feature-tag.thingsboard {
    background: #27ae60;
}

.specifications {
    margin: 1rem 0;
    padding: 1rem;
    background:cadetblue;
    border-radius: 5px;
}

.specifications h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.specifications ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specifications li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.product-actions {
    margin-top: 1rem;
    text-align: center;
}

/* FAQ Styles */
.faq-section {
    padding: 60px 0;
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    background:cadetblue;
    border: 2px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #334155; /* Dark blue-cadetblue */
    color: #e2e8f0;
    padding: 15px;
}

.faq-question {
    background:cadetblue;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: blue;
}

.faq-question.active {
    background: #3498db;
    color: blue;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
}

.faq-answer {
    padding: 1.5rem;
    display: none;
    background: blue;
}

.faq-contact-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background:cadetblue;
    border-radius: 10px;
}

.faq-contact-cta h3 {
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Product Demo Features */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.demo-badge {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 0 0 0 rgba(46, 204, 113, 0.4); 
    }
    50% { 
        box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 0 4px rgba(46, 204, 113, 0.6); 
    }
}

.product-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-demo {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-demo:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

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

.btn-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-demo:hover::before {
    left: 100%;
}

.demo-icon {
    font-size: 1.1rem;
    animation: bounce-icon 2s infinite;
}

@keyframes bounce-icon {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-1px);
    }
}

/* Enhanced button styling */
.btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    color: white;
    text-decoration: none;
}

/* Demo Showcase Section */
.demo-showcase {
    background: linear-gradient(135deg,cadetblue,darkcadetblue);
    padding: 80px 0;
    border-top: 1px solid #e9ecef;
}

.demo-showcase h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 2.5rem;
}

.demo-showcase > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
}

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

.demo-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    background: #334155; /* Dark blue-cadetblue */
    color: white;
    border-radius: 8px;
    padding: 15px;
}

.demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #27ae60, #f39c12);
    animation: gradient-flow 3s ease-in-out infinite;
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.demo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.demo-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.demo-status {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.demo-card p {
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.demo-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.demo-features span {
    background: #acf0f1;
    color: #2c3e50;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.demo-cta {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 12px;
    color: white;
}

.demo-cta p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.demo-cta .btn {
    background: white;
    color: #3498db;
}

.demo-cta .btn:hover {
    background:cadetblue;
    color: #2980b9;
}

/* Responsive Design for Demo Section */
@media (max-width: 768px) {
    .demo-showcase h2 {
        font-size: 2rem;
    }
    
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .demo-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-highlight {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-highlight p {
        font-size: 0.9rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }

    .search-filter-container {
        flex-direction: column;
        text-align: center;
    }
    
    .search-input {
        width: 100%;
        max-width: 300px;
    }
    
    .faq-categories {
        justify-content: center;
    }
    
    .category-btn {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

input, textarea, select {
    background: #334155; /* Dark blue-cadetblue background */
    color: #e2e8f0; /* Light text */
    border: 1px solid #475569; /* Slightly lighter border */
    padding: 10px;
    border-radius: 5px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #38bdf8; /* Accent blue for focus */
}

.about-content {
    background: #2e395b; /* Dark blue background */
    color: #e2e8f0; /* Light text for readability */
    padding-top: 2rem;
}

.faq-section, .contact-content {
    background: #2e395b; /* Dark blue background */
    color: #e2e8f0; /* Light text for readability */
}

.hero-section {
    background: linear-gradient(135deg, #007bff, blue); /* Gradient for hero */
    text-align: center;
    color: white; padding: 10px; border-radius: 5px;
}

/* EMS Generator Page */
.ems-generator-page {
    margin-bottom: 1rem;
}

.ems-generator-section .container {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr);
}

.ems-generator-card,
.ems-result-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
}

.ems-generator-form textarea,
.ems-result {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #e2e8f0;
    padding: 1rem;
    font-family: 'Source Code Pro', 'Courier New', monospace;
    resize: vertical;
    min-height: 400px;
}

.ems-generator-form select {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #e2e8f0;
}

.ems-generator-form textarea::placeholder {
    color: #94a3b8;
}

.ems-result {
    min-height: 640px;
}

#system-message {
    min-height: 320px;
}

.ems-generator-form button {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 0.75rem;
}

.ems-form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn-secondary {
    border: 1px solid #38bdf8;
    color: #38bdf8;
    background: transparent;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #38bdf8;
    color: #0f172a;
}

.btn-tertiary {
    border: 1px solid #475569;
    color: #e2e8f0;
    background: transparent;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.btn-tertiary:hover,
.btn-tertiary:focus {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #38bdf8;
}

.form-hint {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.ems-chat-panel {
    background: rgba(2, 6, 23, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.ems-chat-panel.is-hidden {
    display: none;
}

.ems-chat-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ems-chat-panel__title {
    font-weight: 600;
    color: #f8fafc;
}

.ems-chat-panel__subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}

.ems-chat-log {
    background: #0b1120;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 1rem;
    max-height: 360px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ems-chat-message {
    border-radius: 12px;
    padding: 0.85rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.ems-chat-message.is-user {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    align-self: flex-end;
}

.ems-chat-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.ems-chat-role {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.ems-chat-content {
    margin-top: 0.4rem;
    white-space: pre-wrap;
    color: #f8fafc;
    font-size: 0.95rem;
}

.ems-chat-empty {
    color: #94a3b8;
    font-size: 0.9rem;
}

.ems-loading {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.ems-loading.active {
    display: flex;
}

.ems-loading__content {
    text-align: center;
    color: #e2e8f0;
    padding: 2rem;
}

.ems-spinner {
    width: 72px;
    height: 72px;
    border: 6px solid rgba(148, 163, 184, 0.3);
    border-top-color: #38bdf8;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: ems-spin 1s linear infinite;
}

@keyframes ems-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   User Authentication Styles
   ========================================================================== */

/* Navigation Auth Section */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1rem;
}

.nav-user-greeting {
    color: #94a3b8;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-auth-link {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.nav-auth-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #38bdf8;
}

.nav-register-btn {
    background-color: #38bdf8;
    color: #0f172a;
    font-weight: 600;
}

.nav-register-btn:hover {
    background-color: #0ea5e9;
    color: #0f172a;
}

.nav-logout {
    color: #f87171;
}

.nav-logout:hover {
    background-color: rgba(248, 113, 113, 0.1);
    color: #ef4444;
}

/* Auth Page Content */
.auth-content {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
}

.auth-info {
    margin-bottom: 1.5rem;
}

.auth-info h2 {
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.auth-info p {
    color: #1e293b;
    margin-bottom: 1rem;
}

/* Registration Steps */
.auth-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.auth-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #0f172a;
    color: #38bdf8;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.auth-step p {
    margin: 0;
    color: #0f172a;
    padding-top: 4px;
}

/* Auth Form Section */
.auth-form-section {
    padding: 1.5rem;
}

.auth-form-section h2 {
    color: #0f172a;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.auth-form .form-group {
    margin-bottom: 0.5rem;
}

.auth-form label {
    display: block;
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    color: #0f172a;
    transition: border-color 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: #0f172a;
}

.auth-form input::placeholder {
    color: #94a3b8;
}

.form-note {
    font-size: 0.85rem;
    color: #1e293b;
    background-color: rgba(255, 255, 255, 0.4);
    padding: 0.75rem;
    border-radius: 6px;
    margin: 0.5rem 0;
}

.btn-block {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #1e293b;
}

.auth-switch a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: underline;
}

.auth-switch a:hover {
    color: #334155;
}

/* Registration Success Page */
.auth-success-content {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    text-align: center;
}

.success-icon {
    color: #22c55e;
    margin-bottom: 1.5rem;
}

.auth-success-content h2 {
    color: #0f172a;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.success-message {
    color: #1e293b;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.success-instructions {
    background-color: rgba(255, 255, 255, 0.4);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.success-instructions h3 {
    color: #0f172a;
    margin-bottom: 1rem;
}

.success-instructions ol {
    margin-left: 1.5rem;
    color: #1e293b;
}

.success-instructions li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.spam-note {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    min-width: 160px;
}

/* Mobile responsiveness for auth */
@media (max-width: 768px) {
    .nav-auth {
        flex-direction: column;
        gap: 0.5rem;
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }

    .nav-user-greeting {
        display: none;
    }

    .nav-auth-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    .auth-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .auth-success-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn {
        width: 100%;
    }
}

/* ==========================================================================
   My Account Page Styles
   ========================================================================== */

.my-account-content {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
}

.account-info-section {
    margin-bottom: 2rem;
}

.account-info-section h2 {
    color: #0f172a;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
}

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

.account-field {
    background-color: rgba(255, 255, 255, 0.4);
    padding: 1rem 1.25rem;
    border-radius: 8px;
}

.account-field label {
    display: block;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-value {
    font-size: 1.1rem;
    color: #0f172a;
    font-weight: 500;
    margin: 0;
}

.account-actions-section {
    margin-bottom: 2rem;
}

.account-actions-section h2 {
    color: #0f172a;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
}

.account-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.account-quick-links .btn {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.account-logout-section {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #0f172a;
    color: #0f172a;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s, color 0.2s;
}

.btn-outline:hover {
    background-color: #0f172a;
    color: white;
}

/* My Account nav link styling */
.nav-my-account {
    font-weight: 600;
}

.nav-my-account.active {
    color: #38bdf8;
}

/* Mobile responsiveness for my account */
@media (max-width: 768px) {
    .my-account-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .account-quick-links {
        flex-direction: column;
    }

    .account-quick-links .btn {
        width: 100%;
    }
}
