:root {
    --bg-color: #ffffff0a;
    --text-color-primary: #ffffff;
    --text-color-secondary: #a0a0a0;
    --accent-color-light: #5a57a5;
    --accent-color-dark: #3a387a;
    --card-bg-gradient-start: rgba(28, 26, 68, 0.5);
    --card-bg-gradient-end: rgba(18, 17, 42, 0.5);
    --card-border-gradient-start: #4A468B;
    --card-border-gradient-end: #3B386C;
}

body {
    margin: 0;
    color: var(--text-color-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 300vh;
}

.section-outer-container {
    display: flex;
    justify-content: center;
    min-height: fit-content;
    background-color: rgba(0, 0, 0, 0.562);
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 40px;
    align-items: center;
    margin-bottom: 80px;
    margin-top: 100px;
}

.columns-flex-wrapper {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.left-column {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
}

.main-heading {
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 10px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #e0e0e0, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.sub-text {
    color: var(--text-color-secondary);
    font-size: 1.1em;
    margin-bottom: 40px;
}

.card-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card {
    background-color: #ffffff0a;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    transform: translateY(50px);
    border-radius: 20px;
  }
  
  .card.is-visible {
    opacity: 1;
    border-radius: 20px;
    transform: translateY(0);

}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header .icon {
    background-color: rgb(0,85,255);
    border-radius: 50%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-primary);
}

.card-header .icon svg {
    width: 24px;
    height: 24px;
}

.how-we-work-tag {
   display: flex;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.875rem; /* text-sm */
  background-color: #000000;
  padding: 12px; /* Padding from original wrapper */
  border-radius: 25px; /* Border-radius from original wrapper */
  border: 1px solid white;
  max-width: fit-content;
  margin-bottom: 20px;

  
}

.card-title {
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 15px;
}

.card-description {
    color: var(--text-color-secondary);
    font-size: 0.95em;
    margin-bottom: 25px;
}

.card-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s;
}

.btn.primary {
    background-color: rgb(0,85,255);
    color: var(--text-color-primary);
}

.btn.primary:hover {
    box-shadow: 0 0 15px rgba(0,85,255,0.8), inset 0 0 0.55em 0 #ffffff;
                transform: translateY(-2px);
}

.btn.secondary {
    background-color: rgba(0, 0, 0, 0.26);
    color: var(--text-color-primary);
    border: 1px solid #ffffff;
}

/* ✅ FIXED HEIGHT HERE */
.right-column {
    flex: 1;
    display: flex;
    align-items: flex-start;
    position: relative;
    width: 100%;
    max-width: 500px;
    /* Removed min-height: 200vh */
}

/* ✅ MODIFIED TO MAINTAIN CONSISTENT SHAPE */
.image-wrapper {
    position: sticky;
    top: 10vh;
    width: 100%;
    height: 100%;
    max-height: 500px;
    max-width: 500px;
    aspect-ratio: 3/4;
    background-color: transparent;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    z-index: 2;
}


.bottom-right-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 0.85em;
    color: var(--text-color-secondary);
    z-index: 100;
}

.bottom-right-fixed a {
    color: var(--text-color-secondary);
    text-decoration: none;
}

.bottom-right-fixed a span {
    color: var(--accent-color-light);
    font-weight: 600;
}


@media (max-width: 1024px) {
    .section-outer-container {
        flex-direction: column;
        padding: 30px;
        padding-top: 5vh;
        min-height: auto;
    }

    .columns-flex-wrapper {
        flex-direction: column;
        justify-content: center; /* Ensures content within wrapper is centered on main axis */
        align-items: center; /* 🔥 MODIFIED: Centers columns horizontally when flex-direction is column */
        gap: 30px;
    }

    .left-column {
        max-width: 100%;
        margin-bottom: 50px;
        text-align: center;
        align-items: center; /* 🔥 ADDED: Centers direct children within left-column */
    }

    .main-heading {
        font-size: 2.8em;
    }

    .sub-text {
        font-size: 1em;
        margin-left: auto;
        margin-right: auto;
        max-width: 500px;
    }

    .card-container {
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 450px;
    }

    .card-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
    }

    .right-column {
        width: 100%;
        height: auto;
        margin-bottom: 50px;
        /* align-items: center; - This is already centered by columns-flex-wrapper's align-items */
    }

    .image-wrapper {
        max-width: 400px;
        top: 5vh;
        margin: 0 auto; /* 🔥 ADDED: Centers the image wrapper itself */
    }
}

@media (max-width: 768px) {
    .main-heading {
        font-size: 2.2em;
    }

    .sub-text {
        font-size: 0.9em;
    }

    .card-title {
        font-size: 1.4em;
    }

    .card-description {
        font-size: 0.9em;
    }

    .card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .section-outer-container {
        padding: 20px;
    }

    .main-heading {
        font-size: 1.8em;
    }

    .sub-text {
        font-size: 0.85em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.8em;
    }

    .card-header .icon svg {
        width: 20px;
        height: 20px;
    }

    .how-we-work-tag { /* This was originally named stage-tag */
        font-size: 0.7em;
    }
}

.fade-in-element{
opacity:0;
transform:translateY(20px);
transition: opacity 0.8s ease-out,transform 0.8s ease-out;
}
.fade-in-element.is-visible{
opacity: 1;
transform: translateY(0);
}