section {
    padding-top: 40px;
    padding-bottom: 60px;
    /* margin-top: 80px;
    margin-bottom: 80px; */
}

/* Reduce vertical gap specifically for the focus section so the video sits closer to the hero */
#focus {
    padding-top: 24px; /* smaller top padding for the focus section */
}

body {
    background-color: #121212;
    color: #d0d0d0 !important;
}

/* Headings for dark theme */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: #d8d8d8 !important;
}

.section-heading {
    padding-bottom: 20px;
    color: #bb86fc; /* Purple accent color from Material Design dark theme */
    font-weight: bold;
}

.navbar {
    border-radius: 0;
    background-color: #2d2438 !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1030; /* Higher z-index to ensure dropdowns appear above other content */
}

.navbar .container {
    max-height: 60px;
}

/* Navbar Logo Styles */

/* Default Styles */
.navbar-brand {
    font-weight: bold;
    color: #aec700;
    font-size: 2rem;
    font-style: italic;
    display: flex;
    align-items: center;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.7);
}

.navbar-brand img {
    max-height: 100px;
    width: auto;
    padding-top: 10px;
    margin-left: 10px;
    filter: drop-shadow(2px 2px 2.5px rgba(0, 0.3, 0.3, 0.5));
    vertical-align: middle;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .navbar-brand img {
        max-height: 80px;
        padding-top: 5px;
        margin-left: 5px;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-brand img {
        max-height: 60px;
        padding-top: 5px;
        margin-left: 5px;
    }
}

@media (max-width: 575px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand img {
        max-height: 40px;
        padding-top: 3px;
        margin-left: 3px;
    }
}

.navbar-nav .nav-link {
    font-size: 24px;
    padding: 10px 15px;
    color: #d0d0d0;
}

@media (max-width: 768px) {
    .navbar-nav .nav-item.dropdown .dropdown-menu .dropdown-item {
        color: #d0d0d0; /* Light text for dropdown items */
    }

    /* If you also want to change the color of the nav-link itself */
    .navbar-nav .nav-link {
        color: #d0d0d0; /* Light text for nav links */
    }
}

.navbar-brand:hover,
.navbar-nav .nav-link:hover {
    color: #bb86fc; /* Purple accent color on hover */
}

/* Fix dropdown menu background and z-index */
.dropdown-menu {
    background-color: #2d2438 !important;
    border: 1px solid #333;
    z-index: 1031; /* Even higher z-index for the dropdown */
}

.dropdown-item {
    color: #d0d0d0 !important;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #3a3045 !important;
    color: #e6b800 !important;
}

/* Fix for mobile navbar */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #2d2438;
        z-index: 1032;
        padding: 10px;
        border-radius: 0 0 5px 5px;
        border: 1px solid #333;
        border-top: none;
    }
}

/* hero section  */

#hero {
    background: #1e1e1e;
    padding-top: 20px; 
    padding-bottom: 20px; 
    z-index: -1;
}

.hero-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px; 
}

.hero-img-container {
    max-width: 100%;
}

/* Optional: Adjustments for smaller screens */
@media (max-width: 991px) {
    .hero-description {
        text-align: left; 
        margin-left: 10px;
        margin-right: 12px;
    }
    
    .hero-img-container {
        order: -1; 
        margin-bottom: 20px; 
    }
}

@media (max-width: 767px) {
    .btn.btn-primary {
        width: 100%; 
    }
}

.hero-description {
    margin-left: 20px; 
    text-align: center;
}
.hero-description h2{
    font-size: 24px;
    margin-bottom: 20px;
}
.btn.btn-primary {
    background-color: #bb86fc;
    border-color: #bb86fc;
    color: #121212;
}

.btn.btn-primary:hover {
    background-color: #a370f7;
    border-color: #a370f7;
    color: #121212;
}

/* feature card css */

.feature-card,
.metric-card {
    border: 1px solid #333;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    background-color: #1e1e1e;
    margin: 0 10px;
}

.feature-card .card:hover {
    box-shadow: 0 0 10px rgba(187, 134, 252, 0.3);
}

.feature-card .card-img-top {
    max-height: 300px;
    object-fit: cover;
}

.feature-card .card-title {
    /* font-size: 24px; */
    margin-bottom: 10px;
    color: #bb86fc; /* Purple accent color */
}

.feature-card h3 {
    margin-bottom: 0;
    color: #bb86fc; /* Purple accent color */
}

.feature-card p {
    margin-bottom: 0;
    font-size: 18px;
    color: #b0b0b0;
}

.feature-card-light-override {
    border: 1px solid #333;
    background-color: #252525;
}

.feature-card-light-override .card {
    background-color: #252525;
}

.feature-card {
    padding: 15px;
    transition: transform 0.3s ease;
}

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

.feature-card .card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #2d2438;
}

/* Responsive styles for feature cards */
@media (max-width: 992px) {
    .feature-card {
        margin-bottom: 30px;
    }
    
    /* Ensure cards have proper spacing when stacked */
    .col-lg-4, .col-md-4 {
        padding-bottom: 20px;
    }
    
    /* Target the feature cards specifically */
    #focus .row > div {
        margin-bottom: 25px;
    }
    
    #focus .row > div:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .feature-card {
        padding: 10px;
        margin-bottom: 25px;
    }
}

/* Fix spacing for feature cards at standard breakpoints */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Add vertical spacing between cards when they stack */
    .col:not(:last-child) {
        margin-bottom: 20px;
    }
    
    /* Ensure consistent text margins */
    h5, .h5 {
        margin-top: 15px;
        margin-bottom: 10px;
    }
    
    /* Fix hero text margins to be consistent with content below */
    .hero-container h5 {
        margin: 15px 10px;
    }
    
    /* Ensure feature cards have proper spacing */
    .feature-card {
        margin-bottom: 15px;
    }
    
    /* Ensure card content has proper spacing */
    .card-body {
        padding: 15px 10px;
    }
}

/* Additional fixes for extra small devices */
@media (max-width: 575.98px) {
    /* Add vertical spacing between cards when they stack */
    .col:not(:last-child) {
        margin-bottom: 15px;
    }
    
    /* Ensure consistent text margins */
    h5, .h5 {
        margin-top: 12px;
        margin-bottom: 8px;
    }
    
    /* Fix hero text margins to be consistent with content below */
    .hero-container h5 {
        margin: 12px 8px;
    }
    
    /* Ensure feature cards have proper spacing */
    .feature-card {
        margin-bottom: 12px;
        padding: 10px;
    }
    
    /* Ensure card content has proper spacing */
    .card-body {
        padding: 12px 8px;
    }
}

.metric-card {
    padding: 18px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 18px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: flex;
    height: 100%;
    background-color: #1e1e1e;
}

.metric-card i {
    display: inline-block;
    margin-right: 5px;
    font-size: 30px;
    vertical-align: middle;

}

.metric-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    margin: 0;
    display: inline-block;
    align-items: center;
    vertical-align: middle;
    color: #bb86fc; /* Purple accent color */
}

.metric-card img {
    width: 30px;
    height: auto;
    margin-bottom: 10px;
}

.metric-card p {
    font-size: 24px;
    color: #b0b0b0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-social-links {
    text-align: right;
}

.social-icons {
    display: inline-block; 
    padding: 0px;
    margin: 0px;
}

/* Contact modal: provide consistent spacing between social icons */
#contactModal .social-icons {
    display: flex;
    gap: 12px; /* spacing between icons */
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    margin: 0;
}
.social-icon {
    display: inline-block;
    margin: 20px; 
    padding: 10px; 
    font-size: 20px; 
    color: #2b8bf2; 
    border-radius: 50%; 
    transition: background-color 0.3s, color 0.3s; 
}

.social-icon:hover {
    color: black; 
   
}

.footer-icons {
    font-size: 35px;
}

.footer-icons i {
    margin-right: 10px;
    margin-bottom: 15px;
    color: #fff;

}

.footer-icons i:hover {
    color: #1e90ff;
    
}

.footer {
    margin-top: auto !important; 
    background-color: #0e2b47;
    padding: 20px 0;
    /* height: 100%; */
    background-color: #1e1e1e;
}

.footer p {
    margin-bottom: 0;
    color: #d0d0d0;
}

.footer-icons .bi-facebook {
    color: #fff;
    font-size: 22px;
}

.footer-icons .bi-twitter {
    color: #fff;
    font-size: 22px;
}

.footer-icons .bi-instagram {
    color: #fff;
    font-size: 22px;
}

/* limit mermaid diagrams height to maximum of 30% of screen size */
.mermaid {
    max-height: 80vh;
}

/* chatbot button styling */

.pricing-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.pricing-card {

    height: 100%;
    border-radius: 12px;
    background-color: #F0F8FF;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 auto;
    background-color: #1e1e1e;
}

.pricing-card:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.pricing-header {
    font-weight: bold;
    padding: 15px;
    color: #212529;
    background-color: #d4e5f6;
    transition: background-color 0.3s ease-in-out;
    background-color: #252525;
    color: #d0d0d0;
}

.pricing-header:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.pricing-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #bb86fc; /* Purple accent color */
}

.pricing-body {
    flex: 1;
    padding: 15px;
}

.pricing-price {
    margin-bottom: 20px;
}

.pricing-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 0;
    text-align: left;
}

.pricing-list-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-footer {
    margin-top: auto;
    padding: 15px;
    text-align: center;
}

@media (max-width: 576px) {
    .pricing-body {
        text-align: center;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .pricing-columns {
        column-count: 1;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .pricing-inner {
        max-width: 100%;
    }

    .pricing-columns {
        column-count: 2;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .pricing-columns {
        column-count: 2;
    }
}

@media (min-width: 1200px) {
    .pricing-columns {
        column-count: 2;
    }
}

/* Make Join Beta button more prominent */
.btn-primary.installBtn {
    background-color: #e6b800; /* Muted Indian yellow */
    border-color: #e6b800;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 0 8px rgba(230, 184, 0, 0.3); /* Reduced glow */
    transition: all 0.3s ease;
}

.btn-primary.installBtn:hover {
    background-color: #cca300; /* Slightly darker on hover */
    border-color: #cca300;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(230, 184, 0, 0.5); /* Reduced glow on hover */
}

/* Make AI360 menu item more prominent */
.nav-link.ai360-link {
    color: #e6b800 !important; /* Muted Indian yellow */
    font-weight: bold;
    position: relative;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.nav-link.ai360-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: #e6b800; /* Muted Indian yellow */
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link.ai360-link:hover::after {
    transform: scaleX(1);
}

/* AI360 title styling with smoky trail */
.ai360-title {
    color: #e6b800 !important; /* Muted Indian yellow */
    position: relative;
    display: inline-block;
}

.ai360-title-trail {
    position: absolute;
    left: -10px;
    top: 0;
    width: 120%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(230, 184, 0, 0) 0%, 
        rgba(230, 184, 0, 0.08) 20%, 
        rgba(230, 184, 0, 0.15) 40%, 
        rgba(230, 184, 0, 0.08) 60%, 
        rgba(230, 184, 0, 0) 100%);
    filter: blur(8px);
    z-index: 0;
    animation: titleTrail 5s infinite alternate ease-in-out;
}

@keyframes titleTrail {
    0% {
        opacity: 0.3;
        transform: translateX(-5px);
    }
    100% {
        opacity: 0.6;
        transform: translateX(5px);
    }
}

/* Blue smoky fade trail effect for hero section */
.blue-fade-trail {
    position: absolute;
    left: 46%;
    top: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(18, 168, 243, 0) 0%, 
        rgba(18, 168, 243, 0.15) 40%, 
        rgba(18, 168, 243, 0.3) 100%);
    filter: blur(15px);
    z-index: 1;
    clip-path: polygon(33% 0.48%, 108% 7.53%, 101% 93.19%, 33% 99.27%);
    animation: fadeTrail 8s infinite alternate ease-in-out;
}

@keyframes fadeTrail {
    0% {
        opacity: 0.6;
        transform: translateX(-5px);
    }
    100% {
        opacity: 0.8;
        transform: translateX(5px);
    }
}

/* Responsive styles for hero section */
@media (max-width: 1200px) {
    .blue-fade-trail {
        left: 45%;
    }
}

/* Target the specific breakpoint where the issue occurs (between laptop and mobile) */
@media (min-width: 768px) and (max-width: 1100px) {
    /* Override Bootstrap's container max-width constraints for hero section */
    #hero .container {
        max-width: 95% !important; /* Override Bootstrap's fixed width */
        width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Ensure the columns within the hero have proper spacing */
    #hero .row {
        margin-left: -15px;
        margin-right: -15px;
        width: 100% !important;
    }
    
    #hero .row > * {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Make other containers match */
    .container {
        max-width: 95% !important;
        width: 95% !important;
    }
    
    /* Reduce horizontal spacing between feature cards */
    #products .row, #activities .row, #focus .row {
        margin-left: -8px !important;
        margin-right: -8px !important;
    }
    
    #products .row > *, #activities .row > *, #focus .row > * {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* Make feature cards take more width */
    #products .col, #activities .col, #focus .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33%;
        max-width: 33.33%;
    }
    
    /* Ensure feature cards have proper internal spacing */
    .feature-card {
        padding: 8px;
    }
}

@media (max-width: 992px) {
    /* When columns stack, change the trail to horizontal */
    .blue-fade-trail {
        left: 0;
        top: 48%;
        width: 100%;
        height: 80px;
        clip-path: polygon(0% 33%, 7.53% 0%, 93.19% 0%, 99.27% 33%);
        background: linear-gradient(to bottom, 
            rgba(18, 168, 243, 0) 0%, 
            rgba(18, 168, 243, 0.15) 40%, 
            rgba(18, 168, 243, 0.3) 100%);
    }
    
    /* Ensure the left column doesn't take full width */
    .hero-container .col-lg-6 {
        max-width: 95%;
        margin: 0 auto;
    }
    
    /* Add vertical spacing between stacked columns */
    .hero-container .row > .col-lg-6:first-child {
        margin-bottom: 40px;
    }
    
    /* Add vertical spacing between stacked columns */
    .hero-container .row > .col-lg-6:last-child {
        margin-top: 40px;
    }
}

@media (max-width: 576px) {
    /* Hide the trail on very small screens */
    .blue-fade-trail {
        display: none;
    }
    
    /* Further reduce horizontal spacing */
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Light background container for contrast */
.light-background-container {
    background-color: #252525;
}

/* Animation for the comic image */
.hero-comic-image {
    animation: flyInFromRight 1.2s ease-out forwards;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

@keyframes flyInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Customize card components for dark theme */
.card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    color: #d0d0d0;
}

.card-body {
    background-color: #1e1e1e;
}

/* Customize modal components for dark theme */
.modal-content {
    background-color: #1e1e1e;
    color: #d0d0d0;
    border: 1px solid #333;
}

.modal-header {
    border-bottom: 1px solid #333;
}

.modal-footer {
    border-top: 1px solid #333;
}

/* Customize form elements for dark theme */
.form-control {
    background-color: #252525;
    border: 1px solid #333;
    color: #d0d0d0;
}

.form-control:focus {
    background-color: #252525;
    color: #d0d0d0;
    border-color: #bb86fc;
    box-shadow: 0 0 0 0.25rem rgba(187, 134, 252, 0.25);
}

/* Contact modal: fix alignment & spacing for inputs/labels to match site */
#contactModal .modal-dialog {
    max-width: 640px;
}

/* Slightly larger padding inside modal body for consistent spacing */
#contactModal .modal-body {
    padding: 1.25rem;
}

/* Ensure each field block has consistent vertical spacing */
#contactModal .modal-body .mb-3 {
    margin-bottom: 1rem;
}

/* Make labels consistent and aligned above inputs */
#contactModal .modal-body label.form-label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: inherit;
}

/* Normalize inputs inside contact modal (override any bg-dark or other modifiers) */
#contactModal .modal-body .form-control,
#contactModal .modal-body .form-control:focus {
    background-color: #252525 !important;
    border: 1px solid #333 !important;
    color: #d0d0d0 !important;
    padding: 0.5rem 0.75rem;
    height: auto;
    line-height: 1.4;
    box-shadow: none !important;
}

/* Ensure textarea gets proper min-height and spacing */
#contactModal .modal-body textarea.form-control {
    min-height: 110px;
    resize: vertical;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

/* Make submit button align with inputs and full width on small screens */
#contactModal .modal-body .btn[type="submit"] {
    margin-top: 0.5rem;
}

/* Force consistent width for form elements */
#contactModal .modal-body .form-control,
#contactModal .modal-body .form-label {
    width: 100%;
    box-sizing: border-box;
}

/* Responsive tweaks */
@media (max-width: 576px) {
    #contactModal .modal-dialog {
        margin: 0.75rem;
        max-width: 100%;
        width: calc(100% - 1.5rem);
    }
    #contactModal .modal-body {
        padding: 1rem;
    }
    #contactModal .contact-social-links {
        text-align: center;
        margin-top: 1rem;
    }
}

/* Customize buttons for dark theme */
.btn-primary {
    background-color: #bb86fc;
    border-color: #bb86fc;
    color: #121212;
}

.btn-primary:hover {
    background-color: #a370f7;
    border-color: #a370f7;
    color: #121212;
}

/* Accordion customization for dark theme */
.accordion-item {
    background-color: #1e1e1e;
    border: 1px solid #333;
}

.accordion-button {
    background-color: #252525;
    color: #d0d0d0;
}

.accordion-button:not(.collapsed) {
    background-color: #333;
    color: #bb86fc;
}

.accordion-button::after {
    filter: invert(1);
}

/* FAQ: ensure answer text is readable in both dark and light modes */
#faq .accordion-body {
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Links inside FAQ answers */
#faq .accordion-body a {
    color: #bb86fc;
    text-decoration: underline;
}

/* Light-mode overrides */
body[light-mode="light"] #faq .accordion-body {
    color: #101112;
}

body[light-mode="light"] #faq .accordion-body a {
    color: #0d6efd;
}

/* Code tag styling for dark theme */
code {
    color: #d4d4d4;
    font-family: monospace;
    font-size: 16px;
    background: #2d2d2d;
    padding: 3px 5px;
    border-radius: 3px;
    border: 1px solid #444;
}

/* Ensure code blocks inside pre tags maintain their highlighting */
pre code {
    background-color: transparent;
    padding: 0;
    border: none;
}

/* ===== Fix: remove gap between video and border ===== */
.video-wrapper {
  display: block;                 /* allow full-width behavior */
  width: 100%;
  max-width: 1200px;              /* wider to match hero/container */
  margin: 0 auto;                 /* center within parent container */
  padding: 0;                     /* no inner space */
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 12px;            /* single radius source */
  overflow: hidden;               /* clip video to border radius */
  background: #000;               /* so edges are seamless */
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

/* Make the video fill the wrapper, no own radius/shadow/margins */
.video-wrapper .ai360-demo-video,
.ai360-demo-video {
  display: block;
  width: 100%;
  height: auto;
  /* Lock intrinsic aspect to prevent half-height on initial load across devices */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0;
  border: 0;
  border-radius: 0;               /* let wrapper provide the rounding */
  box-shadow: none;               /* avoid shadow “halo” gap */
}

/* Ensure the video scales nicely on tablets/laptops and matches other container overrides */
@media (min-width: 768px) and (max-width: 1100px) {
  .video-wrapper {
    max-width: 95% !important;    /* match other container overrides in this range */
  }
}

/* Keep a sensible cap on very wide screens */
@media (min-width: 1200px) {
  .video-wrapper {
    max-width: 1200px;
  }
}

/* If the parent is full-width and you want this centered: */
.video-wrapper-center {
  display: flex;
  justify-content: center;
}

/* Ensure video fits small screens */
@media (max-width: 768px) {
    .ai360-demo-video {
        max-width: 100%;
    }
}
