/*
Theme Name:   Hello Elementor Child
Description:  A child theme for Hello Elementor
Author:       Anosh Rameez
Template:     hello-elementor
Version:      1.0.0
Text Domain:  hello-elementor-child
*/

/* =============================================
   BASE
   ============================================= */
body {
    outline: 1px solid red !important;
    overflow-x: hidden;
}

/* =============================================
   BORDER GLOW BUTTON
   ============================================= */
.border-glow {
    position: relative;
    z-index: 1;
    border: none !important;
    border-radius: 0px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
}

.border-glow::before {
    content: '';
    position: absolute;
    z-index: -2;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(196, 255, 42, 0.1),
        rgba(196, 255, 42, 1) 20%,
        transparent 40%
    );
    animation: rotateGlow 4s linear infinite;
}

.border-glow::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 1px;
    top: 1px;
    right: 1px;
    bottom: 1px;
    background: #111111;
    border-radius: 0px;
}

.border-glow .elementor-button {
    background: transparent !important;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.border-glow:hover::before {
    animation-duration: 2s;
}

@keyframes rotateGlow {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================
   CONTACT FORM
   ============================================= */
.ignite-contact-form {
    font-family: 'Inter', sans-serif;
    color: #fff;
}

.ignite-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 400;
}

.ignite-contact-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.ignite-contact-form .form-group {
    flex: 1;
    margin-bottom: 20px;
}

.ignite-contact-form .wpcf7-form-control.wpcf7-text,
.ignite-contact-form .wpcf7-form-control.wpcf7-textarea {
    background-color: #1a1a1a !important;
    border: none !important;
    color: #ffffff !important;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
}

.ignite-contact-form .wpcf7-form-control.wpcf7-text {
    border-radius: 30px !important;
    padding: 16px 25px !important;
}

.ignite-contact-form .wpcf7-form-control.wpcf7-textarea {
    border-radius: 20px !important;
    padding: 20px 25px !important;
    min-height: 120px;
    resize: vertical;
}

.ignite-contact-form ::-webkit-input-placeholder { color: #777; }
.ignite-contact-form ::-moz-placeholder          { color: #777; }
.ignite-contact-form :-ms-input-placeholder      { color: #777; }

.ignite-contact-form .wpcf7-checkbox {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    row-gap: 15px;
    column-gap: 20px;
    margin-top: 10px;
}

.ignite-contact-form .wpcf7-list-item {
    margin-left: 0 !important;
    margin-bottom: 0 !important;
}

.ignite-contact-form .wpcf7-list-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    margin-bottom: 0;
}

.ignite-contact-form .wpcf7-list-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #fff;
    border-radius: 4px;
    background-color: transparent;
    margin-right: 12px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.ignite-contact-form .wpcf7-list-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ignite-contact-form .wpcf7-submit {
    background-color: transparent !important;
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
    border-radius: 40px !important;
    padding: 18px 30px !important;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 10px;
}

.ignite-contact-form .wpcf7-submit:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

@media (max-width: 768px) {
    .ignite-contact-form .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }
    .ignite-contact-form .wpcf7-checkbox {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   TESTIMONIAL SCROLL SECTION
   ============================================= */
.testimonial-scroll-section {
    position: relative !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 30vh;
    
    /* FIX 1: Isko perspective aur height context dene ke liye container properties */
    min-height: 100vh; 
}

.sticky-bg-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Is container ko full height par block rakhein taake inner track kar sake */
    height: 100%; 
    pointer-events: none;
    z-index: 1;
}

.sticky-bg-text-inner {
    position: -webkit-sticky;
    position: sticky;
    /* FIX: top: 0 ki jagah isko vertical center align set kiya */
    top: 50%;
    transform: translateY(-50%);
    height: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.cards-stack-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    margin-top: -10vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50vh;
}

.testimonial-sticky-card {
    position: -webkit-sticky;
    position: sticky;
    width: 100%;
    max-width: 450px;
    background: #f5f5f5;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.08);
}

.testimonial-sticky-card:nth-child(1) { top: 24vh; }
.testimonial-sticky-card:nth-child(2) { top: 24vh; }
.testimonial-sticky-card:nth-child(3) { top: 24vh; }
.testimonial-sticky-card:nth-child(4) { top: 24vh; }

.testimonial-scroll-section .elementor-button-wrapper {
    position: relative;
    z-index: 30 !important;
    margin-top: 15vh;
}

/* Testimonial card hover — triggers hover-cont fill */
.testimonial-sticky-card:hover .hover-cont {
    color: #ffffff;
}
.testimonial-sticky-card:hover .hover-cont::before {
    height: 100%;
    top: 0;
}

@media (max-width: 767px) {
    .testimonial-scroll-section { padding-bottom: 20vh; }
    .sticky-bg-text { font-size: 18vw !important; }
    .cards-stack-wrapper { max-width: 90%; gap: 28vh; }
    .testimonial-sticky-card { padding: 25px; }
    .testimonial-sticky-card:nth-child(1) { top: 30vh; }
    .testimonial-sticky-card:nth-child(2) { top: 31vh; }
    .testimonial-sticky-card:nth-child(3) { top: 32vh; }
    .testimonial-sticky-card:nth-child(4) { top: 30vh; }
}

/* =============================================
   HOVER CONTAINER  (.hover-cont)
   ============================================= */
.hover-cont {
    position: relative;
    z-index: 1;
    overflow: hidden !important;
    padding: 30px 0px;

    /* Combined transition — color + padding + all children */
    transition:
        color 0.4s ease,
        padding 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Black fill from bottom on hover */
.hover-cont::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #000000;
    z-index: -1;
    transition: height 0.4s ease;
}

/* Hover state */
.hover-cont:hover {
    padding: 30px 10px;
}

.hover-cont:hover::before {
    height: 100%;
    top: 0;
}

/* Text, Icon, & Text Editor color on hover */
.hover-cont:hover h1,
.hover-cont:hover h2,
.hover-cont:hover h3,
.hover-cont:hover h4,
.hover-cont:hover h5,
.hover-cont:hover h6,
.hover-cont:hover .elementor-icon,
.hover-cont:hover .elementor-icon i,
.hover-cont:hover .elementor-icon svg,
.hover-cont:hover .elementor-icon-list-icon,
.hover-cont:hover .elementor-icon-list-icon i,
.hover-cont:hover .elementor-icon-list-icon svg,
.hover-cont:hover .elementor-icon-list-text,
.hover-cont:hover .elementor-text-editor,
.hover-cont:hover .elementor-text-editor p,
.hover-cont:hover p {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Mobile */
@media (max-width: 767px) {
    .hover-cont { padding: 25px; }
}

/* =============================================
   LETTER SPLIT ANIMATION (heading)
   ============================================= */
.hover-cont .split-letter {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
    transition-delay: calc(var(--i) * 0.02s);
}

.hover-cont:hover .split-letter {
    transform: translateY(-4px);
}

/* =============================================
   HIDE / HOVERED BUTTONS
   ============================================= */

/* hide-btn — visible by default, disappears on hover */
.hide-btn {
    opacity: 1;
    transform: translateY(0px);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.76, 0, 0.24, 1);
    display: inline-flex !important;
}

.hover-cont:hover .hide-btn {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

/* hovered-btn — hidden by default, appears on hover */
.hovered-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.76, 0, 0.24, 1);
    display: inline-flex !important;
}

.hover-cont:hover .hovered-btn {
    opacity: 1;
    transform: translateY(0px);
    pointer-events: all;
}

/* =============================================
   CURSOR FOLLOW IMAGE FLOAT
   ============================================= */
.cursor-image-float {
    position: fixed !important;
    width: 520px !important;
    height: 300px !important;
    border-radius: 0px !important;
    overflow: hidden !important;
    pointer-events: none !important;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999999 !important;
    top: 0;
    left: 0;
    background: transparent !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.cursor-image-float.is-active {
    opacity: 1;
    transform: scale(1);
}

/* Image inside widget */
.cursor-image-float img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    pointer-events: none !important;
    display: block !important;
}
/* 1. Image Default State (The Fix for Smooth Scaling) */
#main-cont .img-cont img {
    /* Enforce an aspect ratio so height is NEVER 'auto' (which causes the snapping) */
	 aspect-ratio: 1 / 1 !important;
    width: 100%!important;
    height: 100% !important;
    max-width: 1200px !important; 
    max-height: 1200px !important;
    object-fit: cover !important;
    transform-origin: left center;
    transition: all 0.4s cubic-bezier(0.76, 0, 0.24, 1) !important;
}

/* Image Hover State */
#main-cont:hover .img-cont img {
    width: 240px !important;
    height: 240px !important;
    max-width: 240px !important;
    max-height: 240px !important;
    aspect-ratio: 1 / 1 !important; /* Smoothly transitions into a square */
    margin-left: 0 !important; 
}
/* 2. Text Default State (Hidden & Takes 0 Space) */
#main-cont .text-cont .h-shown-text {
    opacity: 0;
    max-height: 0px;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(0px); /* Starts slightly lower for a slide-up effect */
    transition: all 0.5s cubic-bezier(0.76, 0, 0.24, 1);
    pointer-events: none; /* Can't click when hidden */
}

/* Text Hover State (Visible & Expands Space) */
#main-cont:hover .text-cont .h-shown-text {
    opacity: 1;
    max-height: 800px; /* Safely fits any paragraph */
    transform: translateY(0px);
    pointer-events: auto; /* Clickable again */
}
/* Tab 1 (Education - Blue) */
.custom-pill-tabs .elementor-tab-title.elementor-active:nth-child(1) {
    background: #194bfb !important; 
}
/* Tab 2 (Not-for-profit - Change color here) */
.custom-pill-tabs .elementor-tab-title.elementor-active:nth-child(2) {
    background: #ff5e00 !important; 
}
/* Tab 3 (Ambitious Orgs - Change color here) */
.custom-pill-tabs .elementor-tab-title.elementor-active:nth-child(3) {
    background: #8a2be2 !important; 
}
.stick-cont {
  position: sticky;
  top: 10vh;
  margin-bottom: 10vh;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .stick-cont {
    position: relative;
    top: 0;
    margin-bottom: 0;
    height: auto;
  }
}
