/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/
Template: hello-elementor
Author: Your Name or Company Name
Author URI: Your Website URL
Description: Child theme for Hello Elementor with custom modifications.
Version: 1.0.0
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hello-elementor-child
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Global Styles & Variables
   ========================================================================== */

:root {
  --header-height: 120px;
}

body {
  background-color: var(--e-global-color-secondary) !important;
  color: var(--e-global-color-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body .elementor {
  background-color: transparent !important;
}

/* ==========================================================================
   2. Particle Canvas & Intro Overlay
   ========================================================================== */

/* Hide Elementor content initially to prevent FOUC before JS runs */
body.elementor-page-10 > [data-elementor-type="header"],
body.elementor-page-10 > [data-elementor-type="wp-page"],
body.elementor-page-10 > .elementor-location-footer {
  opacity: 0;
}

#content-wrapper {
  opacity: 0;
  visibility: hidden;
  background-color: transparent !important;
} 

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--e-global-color-secondary);
}

#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: white;
  transition: opacity 1s ease;
} 

#intro-overlay p {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--e-global-color-text);
  text-align: center;
  opacity: 0;
  animation: fadeIn 2s ease 2s forwards, blinkZoom 1.5s ease-in-out 4s infinite;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes blinkZoom {
  0%, 100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1.08);
  }
}

/* ==========================================================================
   3. Theme Component Styles
   ========================================================================== */

/* Header & Logo */
.cs-header-logo {
  filter: brightness(0) invert(1);
}

.cs-primary-button {
  border-radius: 6px;
  overflow: hidden;
}

.cs-primary-button .elementor-button-text {
  color: #fff;
}

.cs-header-cta--link {
  display: none;
}

/* Theme Toggle Switch */
.cs-switch-button-container {
  --button-size: 48px;
  width: var(--button-size);
  height: var(--button-size);
}

.cs-switch-button {
  background-color: #2c2c2c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--button-size);
  height: var(--button-size);
  padding: 6px;
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.cs-switch-button:hover,
.cs-switch-button:focus {
  background-color: #2c2c2c;
}

.cs-switch-button svg {
  position: absolute;
  transition: transform 0.4s ease, opacity 0.3s ease;
  color: #fff;
}

#theme-icon-light {
  transform: translateY(0);
  opacity: 1;
}

#theme-icon-dark {
  transform: translateY(100%);
  opacity: 0;
}

/* ==========================================================================
   4. Page-Specific Styles (Homepage)
   ========================================================================== */

/* Glass Effect Container */
.cs-glass-container {
  border-radius: 16px !important;
  background-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

/* Animated SVG Icon */
.cs-svg-icon path {
  fill: rgba(0, 0, 0, 0.06) !important;
  stroke: var(--e-global-color-accent) !important;
  stroke-width: 8 !important;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawPath 3.5s ease-in-out alternate infinite;
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

/* Pricing Box */
.cs-pricing-box path {
  fill: var(--e-global-color-accent) !important;
}

.cs-pricing-box .elementor-icon-box-title::after {
  content: "+";
  float: right;
  transition: transform 0.3s ease;
  color: var(--e-global-color-accent);
}

.cs-pricing-box.open .elementor-icon-box-title::after {
  content: "−";
}

/* FAQ Accordion */
.cs-home-faq .elementor-accordion-item {
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  padding: 16px;
  border-radius: 16px !important;
  background-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.cs-home-faq .elementor-tab-content,
.elementor-tab-title {
  border: none !important;
}

/* ==========================================================================
   5. Light Mode Overrides
   ========================================================================== */

body.light-mode {
  --e-global-color-secondary: #ffffff !important;
  --e-global-color-text: #000000;
  --e-global-color-11327ba: #f0f0f0;
}

body.light-mode .cs-switch-button {
  background-color: #dfdfdf;
  border-color: #ddd;
}

body.light-mode .cs-switch-button svg {
  color: #333;
}

body.light-mode #theme-icon-light {
  transform: translateY(-100%);
  opacity: 0;
}

body.light-mode #theme-icon-dark {
  transform: translateY(0);
  opacity: 1;
}

body.light-mode .cs-header-logo {
  filter: none;
}

body.light-mode .cs-primary-button .elementor-button-text {
  color: #fff !important;
}

body.light-mode .elementor-menu-toggle svg path {
  fill: #000;
}

body.light-mode .cs-glass-container {
  background-color: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.13) !important;
}

body.light-mode .cs-home-faq .elementor-accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.13) !important;
  background-color: rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Pricing Page
  ========================================================================== */

.cs-pricing-cards path {
    fill: var(--e-global-color-accent) !important;
}

.checkmark {
    color: var(--e-global-color-accent);
    font-weight: 900;
}

.cs-pricing-card {
    height: 60vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 10px;
    transition: height 0.3s ease-in-out;
}

.cs-pricing-card.expanded {
    height: auto;
    overflow: visible;
    padding-bottom: 0;
}

.cs-pricing-card::after {
    content: ' ';
    position: absolute;
    bottom: 0;
    left:0;
    width: 100%;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    pointer-events: none;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
}

.cs-pricing-card.expanded::after {
    opacity: 0;
}

.cs-pricing-card .view-more-btn {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: var(--e-global-color-accent);
    font-weight: 900;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    transition: background-color 0.3s ease;
	background-color: transparent;
}

.cs-pricing-card .view-more-btn:hover {
    color: #fff;
    background: transparent;
}

/* ==========================================================================
   6. Responsive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
  .cs-action-container {
    width: max-content;
    margin-left: auto;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 80px;
  }
}

@media (max-width: 500px) {
  .cs-header-cta {
    display: none;
  }
  .cs-header-cta--link {
    display: block;
  }
}
