@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poly:ital@0;1&display=swap');

#theme-toggle {
    display: none;
}

:root{
    --primary-text-color: #153d5a;
    --bg-color: #ffffff;
    --heading-font: 'Inter', sans-serif;
    --body-font: 'Ubuntu', sans-serif;

    --btn-color: #ffffff;
    --btn-bg: #153d5a;

    --header-link-hover: #153d5a;
    --header-link-hover-bg: #153d5a20;
    
    --input-hover-bd-color: #153d5a;
    
    --dropdown-bg: #f3f4f6;
    --dropdown-hover-bg: #153d5a20;

    --faq-h-text: #153d5a;
    --faq-content-text: #1e1e1e;

    --hr-color: #e5e7eb;

    --footer-link: #153d5a;
    --footer-link-hover: #153d5a;

    --header-bg: #edececa5;
    --hero-gradient: #fcfcfc;
    --hero-bg-img: url("../assets/images/background/dots-dark.svg");
}

.tw-dark {
    --primary-text-color: #ffffff;
    --bg-color: #153d5a;

    --btn-color: #153d5a;
    --btn-bg: #ffffff;

    --header-link-hover: #ffffff;
    --header-link-hover-bg: #ffffff20;

    --input-hover-bd-color: #ffffff;

    --dropdown-bg: #1a4a6d;
    --dropdown-hover-bg: #ffffff20;

    --faq-h-text: #ffffff;
    --faq-content-text: #d4d4d4;

    --hr-color: #ffffff20;

    --footer-link: #ffffff;
    --footer-link-hover: #ffffff;

    --header-bg: #1a4a6da5;
    --hero-gradient: #153d5a;
    --hero-bg-img: url("../assets/images/background/dots.svg");
}

html {
    scroll-behavior: smooth;
    /* font-family: "Ubuntu", sans-serif; */
}

body.modal-open {
    overflow: hidden;
}

header > .collapsible-header{
    display: flex;
    gap: 1rem;
    width: 100%;
    background-color: inherit;
    place-content: center;
    overflow: hidden;
    transition: width 0.3s ease, height 0.3s ease;
}

hr{
    border-color:var(--hr-color); 
    border-style: solid;
}

.animated-collapse{
    transition: width 0.3s ease;
}

.header-links {
    position: relative;
    display: flex;
    align-items: center;
    min-width: fit-content;
    padding: 8px 15px;
    z-index: 2; 
    cursor: pointer;
    transition: background-color 0.5s, color 0.3s;
}

.header-links::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; 
    width: 100%;
    height: 100%;
    /* color: var(--header-link-hover); */
    background-color: var(--header-link-hover-bg);
    transform: scale(40%);
    opacity: 0;
    border-radius: 8px;
    transition: all 300ms;
}

.header-links:hover{
    color: var(--header-link-hover);
}

.header-links:hover::after {
    transform: scale(100%);
    opacity: 1;
}

.hero-section{
    background-image: var(--hero-bg-img);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: var(--heading-font);
}

.hero-bg-gradient{
    background: linear-gradient(180deg, var(--hero-gradient) 23%, rgba(21, 61, 90, 0.1) 87%, var(--hero-gradient) 97%);
}

.gradient-text{
    background: linear-gradient(90deg, #153d5a 18%, #2a5a7a 71%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--heading-font);
}

.purple-bg-grad{
    background: linear-gradient(90deg, #153d5a20 8%, #2a5a7a20 31%, #3a6a8a20 76%, #4a7a9a20 89%);
    filter: blur(50px);
    opacity: 0.5;
}

#dashboard {
    /* transform-origin: bottom center; */
    transform: perspective(1200px) translateX(0px) translateY(12px) scale(0.8)
        rotate(0deg) rotateX(70deg);
    transition: transform 0.5;
}

.opacity-0{
    opacity: 0 !important;
}

.opacity-100{
    opacity: 100 !important;
}

.btn{
    padding: 10px 15px;
    width: max-content;
    border-radius: 10px;
    color: var(--btn-color);
    background-color: var(--btn-bg);
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
}

.btn:hover{
    opacity: 0.9;
}

.btn:disabled{
    cursor: default;
}

.input{
    padding: 10px;
    background-color: transparent;
    border-radius: 5px;
    outline: none;
    min-width: 100px;
    border: 1px solid #979797;
    transition: border 0.3s;
}

.input:active, .input:focus, .input:focus-within{
    border: 1px solid var(--input-hover-bd-color) !important;
}

/* ------------------- scrollbar ------------- */
.scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 20px;
}

.scrollbar::-webkit-scrollbar-track {
    border-radius: 25px;
/* background: #f7f4ed; */
}

.scrollbar::-webkit-scrollbar-thumb {
    background: #d7d7d7;
    border-radius: 25px;
}

/* ---------------- dropdown --------------------- */
.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    outline: none;
    /* background-color: #153d5a; */
    /* border: 1px solid #ccc; */
}

.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1;
    background-color: var(--dropdown-bg);
    /* border: 1px solid #c9c9c9; */
    list-style-type: none;
    padding: 0;
    width: 100%;
    left: 0px;
    /* top: 105%; */
    border-radius: 10px;
    overflow: hidden;
}

.dropdown-menu li {
    padding: 8px 12px;
    cursor: pointer;
}

.dropdown-menu li:hover {
    background-color: var(--dropdown-hover-bg);
}

/* -------------- carousel ------------------*/
.carousel-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    max-width: 800px;
}
  
.carousel {
    display: inline-block;
    animation: scroll 10s linear infinite;
}
  
.carousel-img {
    display: inline-block;
    margin: 0 20px;
}
  
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ------ animated border ------- */
.animated-border {
    position: relative;
    overflow: visible;
}

.animated-border::after{
    content: '';
    position: absolute;
    top: 0px; 
    left: -100%; 
    width: 30%;
    height: 100%;
    border-radius: inherit; 
    /* background: linear-gradient(#6366f1 23%, rgba(124,190,255,0) 87%); */
    background-color: #6366f1;
    background-repeat: no-repeat;
    /* background-size: 200% 200%; */
    background-position: 0% 0%;
    filter: blur(1.5rem);
    opacity: 0.8;
    box-shadow: inset 0px 0px 20px 5px #6366f1;
    /* transform: rotate(90deg); */
    z-index: -2;
    pointer-events: none;
    animation: slide 10s ease-in-out infinite;
}

.animated-border::before{
    filter: blur(1.5rem);
    opacity: 0.3;
    will-change: transform;
}

@keyframes slide{
    0% {
        left: -100%; /* Start completely outside the left edge */
        right: 100%; /* End completely outside the right edge */
    }
   
    100% {
        left: 100%; /* Move completely outside the right edge */
        right: -100%; /* End completely outside the left edge */
    }
}

.footer-link{
    width: -moz-fit-content;
    width: fit-content;
    color: var(--footer-link);
    transition: color 0.3s;
}

.footer-link:hover{
    color: var(--footer-link-hover);
}

/* Style for the collapsible content such as faq (accordion) */
.faq-accordion {
    background-color: inherit;
    color: var(--faq-h-text);
    cursor: pointer;
    padding: 15px 18px; 
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: height 0.4s;
}

.faq .content {
    padding: 0px 18px;
    color: var(--faq-content-text);
    height: max-content;
    overflow: hidden;
    background-color: transparent;
    text-align: justify;
    max-height: 0px;
    transition: max-height 0.4s, padding 0.4s;
}

.faq .content.expanded {
    max-height: 2000px; /* Large enough to handle long answers */
    padding: 15px 18px;
}

@media not all and (min-width: 1024px) {
    header .collapsible-header {
        position: fixed;
        top: 60px;
        left: 0px;
        flex-direction: column;
        opacity: 0;
        height: 0vh;
        min-height: 0vh;
        /* height: 100dvh; */
        width: 100vw;
        justify-content: flex-start;
        padding: 20px;
        padding-top: 30px;
        padding-bottom: 20px;
        place-items: center;
        text-align: center;
        background-color: var(--header-bg);
        /* color: #373636; */
        overflow-y: auto;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: 0px 2px 3px 2px #9f9f9f7c;
        z-index: 100;
    }

    header .collapsible-header nav {
        margin-top: 20px !important;
        margin-bottom: 10px;
        gap: 15px !important;
    }

    header .collapsible-header .lg\:tw-mx-4 {
        margin-top: 15px !important;
        position: relative;
        top: 0;
    }
    
    .max-md\:tw-flex-col {
        gap: 8px !important;
    }
}

/* Add styles for modal background blur */
#main-content.content-blur,
header.content-blur,
footer.content-blur {
  filter: blur(4px); /* Adjust blur amount as needed */
  transition: filter 0.3s ease-in-out;
  /* Optional: prevent interaction with blurred background */
  /* pointer-events: none; */ 
}

/* Ensure modals and their backdrops are not affected if they were somehow inside */
.modal {
  filter: none !important;
}

/* Add backdrop blur effect to Bootstrap modals */
.modal-backdrop {
  filter: none !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.5) !important;
}
/* End modal background blur styles */

/* Add new styles for hero and subtitle */
.hero-section h2 {
    font-family: var(--heading-font);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-section .subtitle {
    font-family: var(--body-font);
    font-weight: 400;
    line-height: 1.6;
    color: var(--primary-text-color);
}

.highlight-underline {
    background-image: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 48%,
      rgba(255, 255, 0, 0.6) 50% /* use yellow if you're mimicking highlight */
    );
    background-repeat: no-repeat;
    background-size: 100% 1em;
    background-position: 0 100%;
    display: inline;
    font-weight: 700; /* Make just this bold */
  }

/* --- Enlarge the logo without increasing navbar height ---
     This scales the image while keeping its container size fixed. */
header a > div {
    overflow: visible;
}

header a > div img {
    transform: scale(1.35); /* Adjust scale factor as needed */
    padding-left: 5px;
    transform-origin: center;
}

/* Mobile menu button container adjustments */
@media (max-width: 1024px) {
    .max-md\:tw-flex-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .btn {
        min-width: 200px;
        margin: 5px 0;
        padding: 10px 20px;
    }
    
    #theme-toggle {
        margin-bottom: 5px;
    }
}

/* Initial state for mobile menu */
.collapsible-header {
    height: 0vh;
    min-height: 0vh;
    opacity: 0;
    transition: height 0.3s, opacity 0.3s, min-height 0.3s;
}

@media (min-width: 1024px) {
    .collapsible-header {
        height: auto !important;
        min-height: auto !important;
        opacity: 1 !important;
    }
}

/* Pricing card alignment */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch; /* This ensures all cards have equal height */
}

.pricing-grid > div {
    display: flex;
    height: 100%; /* Ensure full height */
}

.pricing-card-aligned,
.pricing-card-popular {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute content evenly */
}

/* Ensure buttons are always at the bottom */
.pricing-card-aligned .pricing-btn,
.pricing-card-popular .pricing-btn {
    margin-top: auto;
}

/* Responsive behavior for mobile */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .pricing-card-aligned,
    .pricing-card-popular {
        height: auto; /* Allow natural height on mobile */
        min-height: 400px; /* Ensure minimum height for consistency */
    }
}

/* Pricing button hover effects - unified across all tiers */
.pricing-btn {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.pricing-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid #153d5a;
}

.pricing-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    z-index: -1;
}

.pricing-btn:hover::before {
    border-color: #153d5a;
    opacity: 0.5;
}

/* Dark mode pricing button hover */
.dark .pricing-btn:hover {
    border: 2px solid white;
}

.dark .pricing-btn:hover::before {
    border: 2px solid white;
}

/* Pro and Enterprise button specific base styles; hover now matches starter */
.pricing-btn-enterprise {
    background-color: #153d5a;
    color: white;
}

/* Dark mode keeps unified hover color */
.dark .pricing-btn:hover {
    border: 2px solid white;
}

.dark .pricing-btn:hover::before {
    border-color: white;
}

/* Move Starter card content down by 10px */
.pricing-card-aligned:first-child {
    padding-top: 2rem; /* 10px = 0.625rem, but using 2.5rem to account for existing padding */
}

/* Test: Add bottom margin to Starter button */
.pricing-card-aligned:first-child .pricing-btn {
    margin-bottom: 9px; /* Add 10px bottom margin to test alignment */
}

.pricing-card-aligned:last-child .pricing-btn {
    margin-bottom: 9px; /* Add 10px bottom margin to test alignment */
}


/* Move Starter card content down by 10px */
.pricing-card-aligned:last-child {
    padding-top: 2rem; /* 10px = 0.625rem, but using 2.5rem to account for existing padding */
}

/* Move Pro card button down to align with other cards */
.pricing-card-popular {
    padding-top: 2.5rem; /* Add top padding to account for the "Most Popular" badge */
}

.pricing-card-popular .pricing-btn {
    margin-top: auto; /* Keep button at bottom */
}

/* Custom Alert Banners - Modern Design */
.custom-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: 90%;
    max-width: 500px;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
}

.custom-alert.hiding {
    animation: slideUp 0.4s ease-in forwards;
}

.custom-alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 3px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    font-family: var(--body-font);
    position: relative;
}

.custom-alert-content.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.custom-alert-content.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.custom-alert-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 6px;
}

.custom-alert-icon svg {
    width: 100%;
    height: 100%;
}

.custom-alert-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.custom-alert-title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
}

.custom-alert-message {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.95;
}

.custom-alert-close {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.custom-alert-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.custom-alert-close:active {
    transform: scale(0.95);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .custom-alert {
        top: 10px;
        width: 95%;
        max-width: none;
    }
    
    .custom-alert-content {
        padding: 14px 16px;
    }
    
    .custom-alert-icon {
        width: 28px;
        height: 28px;
    }
    
    .custom-alert-title {
        font-size: 14px;
    }
    
    .custom-alert-message {
        font-size: 13px;
    }
}

/* Demo Video Styles */
.video-modal-backdrop {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.6) !important;
}

.demo-video-wrapper {
    max-width: 70vw;
    max-height: 80vh;
    margin: 0 auto;
    position: relative;
}

.demo-video {
    width: 100%;
    max-width: 70vw;
    max-height: 80vh;
    display: block;
}

.video-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.video-close-button:hover {
    background-color: rgba(0, 0, 0, 0.95);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .demo-video-wrapper {
        max-width: 70vw;
        max-height: 85vh;
    }
    
    .demo-video {
        max-width: 70vw;
        max-height: 85vh;
    }
    
    .video-close-button {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
    }
}

/* Play Button Overlay */
.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    transition: all 0.3s ease;
}

.play-button-circle {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(21, 61, 90, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.play-button-icon {
    width: 32px;
    height: 32px;
    color: rgba(21, 61, 90, 0.8);
    fill: currentColor;
    margin-left: 2px;
}

#dashboard:hover .play-button-overlay {
    background-color: rgba(0, 0, 0, 0.2);
}

#dashboard:hover .play-button-circle {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .play-button-circle {
        padding: 12px;
    }

    .play-button-icon {
        width: 24px;
        height: 24px;
    }
}

/* Security Architecture page - Italic subtitle styles */
.security-hero-subtitle {
    font-style: italic;
}

/* Fix Capabilities section video alignment and sizing */
#features .tw-grid-cols-3 > div {
    display: flex;
    align-items: flex-start;
}

#features .tw-grid-cols-3 > div > a {
    display: flex;
    flex-direction: column;
}

/* Ensure all video containers have exact same dimensions */
#features .tw-grid-cols-3 > div > a > div:first-child {
    width: 100% !important;
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#features .tw-grid-cols-3 video {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    vertical-align: top;
}

/* Ensure all video containers start at exact same position */
#features .tw-grid-cols-3 > div:nth-child(1) video,
#features .tw-grid-cols-3 > div:nth-child(2) video,
#features .tw-grid-cols-3 > div:nth-child(3) video {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    top: 0;
}

/* Hero CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid #153d5a;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--body-font);
}

.cta-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.cta-btn-primary {
    background-color: white;
    color: #153d5a;
}

.cta-btn-primary:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 61, 90, 0.2);
    color: #153d5a;
}

.cta-btn-primary:hover svg {
    transform: translateX(3px);
}

.cta-btn-secondary {
    background-color: white;
    color: #153d5a;
}

.cta-btn-secondary:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 61, 90, 0.2);
}

/* Dark mode */
.tw-dark .cta-btn-primary,
.tw-dark .cta-btn-secondary {
    background-color: #17181b;
    color: white;
    border-color: white;
}

.tw-dark .cta-btn-primary:hover,
.tw-dark .cta-btn-secondary:hover {
    background-color: #202124;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-cta-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 16px;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Video subtitle/caption styling */
video::cue {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 1.2em;
    font-family: var(--body-font);
    line-height: 1.4;
    padding: 0.2em 0.5em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

video::-webkit-media-text-track-container {
    position: relative;
    z-index: 1;
}

video::-webkit-media-text-track-display {
    position: relative;
    z-index: 1;
}