:root {
    --primary: #401f71;
    --accent: #f1a804;
    --purple: #bd08ff;
    --dark: #030637;
    --light: #dddddd;
}

body {
    background: linear-gradient(180deg, #ffffff 0%, #dddddd 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
}

header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
}

.site-title {
    text-decoration: none;
    color: var(--primary);
}

nav a {
    color: var(--dark);
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: var(--primary);
}

/* Mega Menu Styling */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(45deg, #ffffff 0%, #dddddd 100%);
  padding: 30px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: none;
  opacity: 0;
  transform: translateY(-20px);
  z-index: 200;
  border-bottom: 2px solid var(--light);
  transition: all 0.3s ease;
}

.mega-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Logo */
.mega-logo {
  height: 30px;
  width: 30px;
  border-radius: 50%;
}

/* Column fade-in animation */
.mega-row > div {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInCol 0.5s forwards;
}

.mega-menu a {
    color: var(--primary);
    text-decoration: none;
}

.mega-menu a:hover {
    font-weight: bold; 
}

.mega-row > div:nth-child(1) { animation-delay: 0.1s; }
.mega-row > div:nth-child(2) { animation-delay: 0.25s; }
.mega-row > div:nth-child(3) { animation-delay: 0.4s; }
.mega-row > div:nth-child(4) { animation-delay: 0.55s; }

@keyframes fadeInCol {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .mega-row { flex-direction: column; }
  .mega-row > div { animation-delay: 0s; margin-bottom: 20px; }
}


.hero-title span {
    color: var(--primary);
}

.btn-primary-custom {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn-primary-custom i {
    margin-left: 8px;
}

.btn-primary-custom:hover {
    background: var(--purple);
}

.hero-img {
  background: transparent; /* fully transparent */
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible; /* allow rings to expand outside container */
}

/* General pulsating ring animation using scale */
.pulse-ring {
  transform-origin: center;
  animation: pulse 3s infinite ease-in-out;
}

/* Different durations and delays for dramatic effect */
.ring1 { animation-duration: 3s; animation-delay: 0s; }
.ring2 { animation-duration: 4s; animation-delay: 0.5s; }
.ring3 { animation-duration: 2.5s; animation-delay: 0.8s; }
.ring4 { animation-duration: 5s; animation-delay: 0.2s; }

/* Pulse keyframes using transform scale */
@keyframes pulse {
  0% { transform: scale(1); stroke-opacity: 0.6; }
  50% { transform: scale(1.3); stroke-opacity: 0.3; }
  100% { transform: scale(1); stroke-opacity: 0.6; }
}

.feature-box {
    background: linear-gradient(145deg, #ffffff, #dddddd);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transition: transform 0.4s, box-shadow 0.4s;
    text-align: center;
}

.feature-box h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.img-box {
    background: linear-gradient(145deg, #ffffff, #dddddd);
    padding: 5px;
    border-radius: 10px;
    border: 1px solid var(--primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transition: transform 0.4s, box-shadow 0.4s;
    text-align: center;
}

.img-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

section#cta {
    background: linear-gradient(90deg, var(--primary), var(--purple));
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin: 40px auto;
}

section#cta .btn {
    margin: 10px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    font-size: 1rem;
}

section#cta .btn i {
    font-size: 1.1rem;
}

/* Base button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    margin-bottom: 5px;

    background: linear-gradient(45deg, var(--primary), var(--dark));
    color: var(--light);

    border-radius: 5px;
    font-weight: 300;
    text-decoration: none;

    transform: translateY(0);
    transition: background 0.25s ease, transform 0.2s ease, opacity 0.3s ease;
}

.cta-btn i {
    font-size: 1.1rem;
    line-height: 1;
}

/* Insert a "|" only when an <i> is followed by text */
.cta-btn i + span::before,
.cta-btn i + *:not(i)::before {
    content: "|";
    margin: 0 5px;
    opacity: 0.6;
    font-weight: 200;
}

.cta-btn:hover {
    background: linear-gradient(45deg, var(--primary) 5%, var(--dark) 30%);
    transform: translateY(-2px);
    border: solid #bd08ff 1px;
}

.cta-btn:active {
    transform: translateY(0);
    background: linear-gradient(180deg, var(--primary), var(--dark));
}

footer {
    background: #1a1a1a;
    color: white;
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}

hr {
    border-top: 2px solid var(--accent);
    margin: 0 auto 20px auto;
}

/* The full overlay */
#lightbox-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    backdrop-filter: blur(8px);
    background: linear-gradient( rgba(0,0,0,0.7), var(--light) );
    opacity: 0;
    transition: opacity .35s ease;
}

#lightbox-overlay.show {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: opacity .2s ease;
}

.lightbox-close:hover {
    opacity: .6;
}

/* Fade + zoom animation */
#lightbox-image {
    max-width: 90vw;
    max-height: 70vh;
    border-radius: 10px;

    opacity: 0;
    transform: scale(0.95);
    transition: transform .35s ease, opacity .35s ease;
}

#lightbox-overlay.show #lightbox-image {
    opacity: 1;
    transform: scale(1);
}

#lightbox-caption {
    color: var(--dark);
    margin-top: 15px;
    text-align: center;
    font-size: 1rem;
    max-width: 80vw;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.2);
    border: none;
    color: rgba(223, 223, 223, 0.3);
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 20;
    transition: background .2s ease;
}

/* Positions */
.lightbox-prev {
    left: 10px;
}
.lightbox-next {
    right: 10px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        display: none;
    }
}

/* Thumbnails wrapper */
#lightbox-thumbs-wrapper {
    width: 90vw;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Thumbnails container */
#lightbox-thumbs {
    overflow-x: auto;
    white-space: nowrap;

    display: flex;
    gap: 10px;
    padding: 10px;
    scroll-behavior: smooth;

    max-width: 80vw;
}

/* Single thumbnail */
.lightbox-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity .2s, transform .2s;
}

/* Active thumbnail highlight */
.lightbox-thumb.active {
    opacity: 1;
    outline: 2px solid var(--dark);
    transform: scale(1.1);
}

#lightbox-thumbs::-webkit-scrollbar {
    height: 8px;
}

#lightbox-thumbs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
}

#lightbox-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 5px;
}

#lightbox-thumbs {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.4) rgba(255,255,255,0.15);
}



/* On-boarding */
.onboarding-step {
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #fff;
    overflow: hidden;
}

.step-header {
    width: 100%;
    background: #f8f8f8;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.step-header:hover {
    background: #f0f0f0;
}

.step-number {
    background: var(--primary, #0066ff);
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    margin-right: 10px;
    font-weight: 300;
}

.step-header span {
    flex: 1;
    text-align: left;
    font-weight: 600;
}

.step-body {
    display: none;
    padding: 5px 10px 10px;
    background: #fff;
    line-height: 1.6;
}

.step-body .onboard-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 15px;
    margin-top: 10px;
    text-decoration: none;
    color: var(--primary, #0066ff);
    font-weight: 500;
}

.step-body .onboard-link:hover {
    text-decoration: underline;
}

.note {
    font-size: 0.9rem;
    color: #777;
    border-left: 3px solid var(--accent);
    padding-left: 10px;
    margin-top: 10px;
}

.onboarding-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    color: var(--dark);
    text-decoration: none;
    cursor: pointer;
    border-bottom: solid var(--dark) 1px;
    transition: opacity .2s ease;
}

/* Insert a "|" only when an <i> is followed by text */
.onboarding-link i + span::before,
.onboarding-link  i + *:not(i)::before {
    content: "|";
    margin: 0 5px;
    opacity: 0.6;
    font-weight: 200;
}

.onboarding-link:hover {
    background: var(--accent);
    border: solid var(--primary) 1px;
    border-radius: 5px;
}

