/* 
Theme Name: Space & Store
Theme URI: https://spacenstore.com/
Author: Freelance-Creator
Author URI: https://www.freelance-creator.com/
Template: astra
Version: 1.0.0
*/

/* Astra Header Builder */
#ast-desktop-header, #ast-mobile-header {
	position: fixed;
	top: 0;
	left: 0;
	padding: 0;
	width: 100%;
	transition: all ease-out 0.5s;
	z-index: 999;
}

#ast-desktop-header.active, #ast-mobile-header.active {
	background-color: #F8F8F8;
	box-shadow: 0 3px 20px 0 rgba(0, 0, 0, 0.1);
	padding: 0;
}

#ast-desktop-header.active img.custom-logo, #ast-mobile-header.active img.custom-logo {
	content: url('/wp-content/uploads/2025/09/web-logo.svg');
	width: 60px !important;
	transition: all ease-out 0.5s;
}

#ast-desktop-header.active .main-header-menu > .menu-item > .menu-link, .main-header-menu > .menu-item > .menu-link, #ast-desktop-header.active .ast-builder-html-element {
	color: #121212;
}

#ast-desktop-header.active .main-header-menu > .menu-item > .menu-link:hover, .main-header-menu > .menu-item > .menu-link:hover, #ast-desktop-header.active .main-header-menu .current-menu-item > .menu-link {
	color: #f26622;
}

.dropdown-menu-toggle .ast-arrow-svg, .ast-menu-toggle .ast-arrow-svg {
	transform: rotate(-90deg);
	transition: transform 0.3s ease;
}

.menu-item-has-children:hover .dropdown-menu-toggle .ast-arrow-svg, .menu-item-has-children:hover .ast-menu-toggle .ast-arrow-svg {
	transform: rotate(0deg);
}

.menu-item-has-children[aria-expanded="true"] .dropdown-menu-toggle .ast-arrow-svg, .menu-item-has-children[aria-expanded="true"] .ast-menu-toggle .ast-arrow-svg {
	transform: rotate(0deg);
}

.ast-builder-html-element .fa-phone-alt {
	color: #f26622!important;
}

/* Content */
.why-choose-us ul {
	list-style: none;
	padding-left: 0;
}

.why-choose-us ul li {
	position: relative;
	padding-left: 1.8rem;
}

/* .why-choose-us ul li::before {
	content: "📦";
	position: absolute;
	left: 0;
	font-size: 1.2em;
	color: #F26622;
} */

.image1, .image2, .image3 {
	cursor: pointer;
}

.image1 h3:hover, .image2 h3:hover, .image3 h3:hover {
	color: #8a8f94!important;
}

.elementor-widget-n-accordion .e-n-accordion-item-title-text {
	text-align: center;
}

.service-con p, .service-con .elementor-widget-button {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-con:hover p, .service-con:hover .elementor-widget-button {
	opacity: 1;
	transform: translateY(0);
}

.service-logo {
	opacity: 30%;
	transition: 0.4;
}

/* Outline Text */
.outline-text {
	-webkit-text-stroke: 2px #121212;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* Animated H1 Text */
.animated-heading-target, .animated-heading-scroll {
	visibility: hidden;
}

.animated-heading {
	font-size: clamp(2rem, 5vw, 4rem);
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	margin: 0;
	visibility: visible; /* Show once processed */
}

.animated-heading {
	font-size: clamp(2rem, 5vw, 4rem);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	margin: 0;
}

.animated-heading .word {
	display: inline-block;
	margin-right: 0.3em;
}

.animated-heading .char {
	display: inline-block;
	opacity: 0;
	transform: translateY(50px) rotateX(90deg);
	animation: charReveal 0.8s ease-out forwards;
	/* Preserve color inheritance from parent elements */
}

.animated-heading .char.line-break {
	display: block;
	width: 100%;
	height: 0;
	line-height: 0;
}

.animated-heading .char.line-break br {
	line-height: 0;
}

/* Staggered animation delays */
.animated-heading .char:nth-child(1) { animation-delay: 0.1s; }
.animated-heading .char:nth-child(2) { animation-delay: 0.15s; }
.animated-heading .char:nth-child(3) { animation-delay: 0.2s; }
.animated-heading .char:nth-child(4) { animation-delay: 0.25s; }
.animated-heading .char:nth-child(5) { animation-delay: 0.3s; }
.animated-heading .char:nth-child(6) { animation-delay: 0.35s; }
.animated-heading .char:nth-child(7) { animation-delay: 0.4s; }
.animated-heading .char:nth-child(8) { animation-delay: 0.45s; }
.animated-heading .char:nth-child(9) { animation-delay: 0.5s; }
.animated-heading .char:nth-child(10) { animation-delay: 0.55s; }
.animated-heading .char:nth-child(11) { animation-delay: 0.6s; }
.animated-heading .char:nth-child(12) { animation-delay: 0.65s; }
.animated-heading .char:nth-child(13) { animation-delay: 0.7s; }
.animated-heading .char:nth-child(14) { animation-delay: 0.75s; }
.animated-heading .char:nth-child(15) { animation-delay: 0.8s; }
.animated-heading .char:nth-child(16) { animation-delay: 0.85s; }
.animated-heading .char:nth-child(17) { animation-delay: 0.9s; }
.animated-heading .char:nth-child(18) { animation-delay: 0.95s; }
.animated-heading .char:nth-child(19) { animation-delay: 1s; }
.animated-heading .char:nth-child(20) { animation-delay: 1.05s; }

/* Continue pattern for more characters if needed */
.animated-heading .char:nth-child(n+21) { 
	animation-delay: calc(1.1s + (var(--char-index, 0) * 0.05s)); 
}

@keyframes charReveal {
	0% {
		opacity: 0;
		transform: translateY(50px) rotateX(90deg);
	}
	50% {
		opacity: 0.5;
		transform: translateY(10px) rotateX(45deg);
	}
	100% {
		opacity: 1;
		transform: translateY(0) rotateX(0deg);
	}
}

/* Alternative animation styles */
.animated-heading.fade-up .char {
	transform: translateY(30px);
	animation: fadeUpReveal 0.6s ease-out forwards;
}

@keyframes fadeUpReveal {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animated-heading.slide-in .char {
	transform: translateX(-30px);
	animation: slideInReveal 0.6s ease-out forwards;
}

@keyframes slideInReveal {
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.animated-heading.bounce-in .char {
	transform: scale(0);
	animation: bounceInReveal 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes bounceInReveal {
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (max-width: 768px) {
	.animated-heading {
		font-size: clamp(1.5rem, 6vw, 2.5rem);
	}
	
	.animated-heading .word {
		margin-right: 0.2em;
	}
}

/* Rotating text around logo */
.circular-text-container {
	position: relative;
	width: 160px;
	height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}

.circular-text-link.left-align {
	margin: 0;
	display: inline-block;
}

.rotating-text {
	position: absolute;
	width: 100%;
	height: 100%;
	animation: rotate 20s linear infinite;
}

.text-char {
	position: absolute;
	left: 50%;
	transform-origin: 0 80px;
	font-size: 12px;
	font-weight: bold;
	color: white;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
	font-family: 'Arial', sans-serif;
	letter-spacing: 1px;
}

.logo-container {
	position: relative;
	z-index: 10;
	width: 100px;
	height: 100px;
	background: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
	overflow: hidden;
}

.logo {
	width: 60px;
	height: auto;
	object-fit: contain;
}

.outer-circle {
	position: absolute;
	width: 150px;
	height: 150px;
	border: 1px dashed rgba(255,255,255,0.3);
	border-radius: 50%;
	animation: rotate-reverse 25s linear infinite;
}

.pulse-effect {
	position: absolute;
	width: 110px;
	height: 110px;
	border: 2px solid rgba(255,255,255,0.4);
	border-radius: 50%;
	animation: pulse 3s ease-in-out infinite;
}

@keyframes rotate {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@keyframes rotate-reverse {
	from {
		transform: rotate(360deg);
	}
	to {
		transform: rotate(0deg);
	}
}

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
		opacity: 0.7;
	}
	50% {
		transform: scale(1.1);
		opacity: 0.3;
	}
}

@media (max-width: 768px) {
	.circular-text-container {
		width: 120px;
		height: 120px;
	}
	
	.text-char {
		transform-origin: 0 60px;
		font-size: 10px;
	}
	
	.outer-circle {
		width: 110px;
		height: 110px;
	}
	
	.logo-container {
		width: 45px;
		height: 45px;
	}
	
	.logo {
		width: 30px;
	}
	
	.pulse-effect {
		width: 50px;
		height: 50px;
	}
}

.circular-text-link {
	display: block;
	text-decoration: none;
	border-radius: 50%;
	transition: transform 0.3s ease;
	width: fit-content;
	margin: 0 auto;
}

.circular-text-link:hover {
	transform: scale(1.05);
	cursor: pointer;
}

.circular-text-link:hover .circular-text-container {
	opacity: 0.9;
}

.rotating-text.color-white .text-char {
	color: #fff;
}

.rotating-text.color-grey .text-char {
	color: #121212;
}

/* Floating Image Animations */

/* Basic smooth up and down float */
.floating-image {
	animation: float 3s ease-in-out infinite;
}

@keyframes float {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-15px);
	}
}

/* Gentle floating - smaller movement */
.floating-gentle {
	animation: floatGentle 4s ease-in-out infinite;
}

@keyframes floatGentle {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-8px);
	}
}

/* More dramatic floating */
.floating-dramatic {
	animation: floatDramatic 2.5s ease-in-out infinite;
}

@keyframes floatDramatic {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-25px);
	}
}

/* Floating with slight rotation */
.floating-rotate {
	animation: floatRotate 4s ease-in-out infinite;
}

@keyframes floatRotate {
	0%, 100% {
		transform: translateY(0px) rotate(0deg);
	}
	25% {
		transform: translateY(-10px) rotate(1deg);
	}
	50% {
		transform: translateY(-15px) rotate(0deg);
	}
	75% {
		transform: translateY(-10px) rotate(-1deg);
	}
}

/* Floating with scale effect */
.floating-scale {
	animation: floatScale 3.5s ease-in-out infinite;
}

@keyframes floatScale {
	0%, 100% {
		transform: translateY(0px) scale(1);
	}
	50% {
		transform: translateY(-12px) scale(1.02);
	}
}

/* Multiple direction floating */
.floating-multi {
	animation: floatMulti 5s ease-in-out infinite;
}

@keyframes floatMulti {
	0%, 100% {
		transform: translateY(0px) translateX(0px);
	}
	25% {
		transform: translateY(-10px) translateX(3px);
	}
	50% {
		transform: translateY(-20px) translateX(0px);
	}
	75% {
		transform: translateY(-10px) translateX(-3px);
	}
}

/* Slow and relaxed floating */
.floating-slow {
	animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-18px);
	}
}

/* Fast bouncy floating */
.floating-bouncy {
	animation: floatBouncy 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes floatBouncy {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-20px);
	}
}

/* Floating with shadow effect for more realism */
.floating-shadow {
	position: relative;
	animation: floatShadow 3s ease-in-out infinite;
}

.floating-shadow::after {
	content: '';
	position: absolute;
	bottom: -20px;
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	height: 10px;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 50%;
	animation: shadowFloat 3s ease-in-out infinite;
	z-index: -1;
}

@keyframes floatShadow {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-15px);
	}
}

@keyframes shadowFloat {
	0%, 100% {
		transform: translateX(-50%) scale(1);
		opacity: 0.2;
	}
	50% {
		transform: translateX(-50%) scale(0.8);
		opacity: 0.1;
	}
}

/* Hover effects - pause animation on hover */
.floating-image:hover,
.floating-gentle:hover,
.floating-dramatic:hover,
.floating-rotate:hover,
.floating-scale:hover,
.floating-multi:hover,
.floating-slow:hover,
.floating-bouncy:hover,
.floating-shadow:hover {
	animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	/* Reduce movement on mobile for better performance */
	.floating-image,
	.floating-gentle,
	.floating-dramatic,
	.floating-rotate,
	.floating-scale,
	.floating-multi,
	.floating-slow,
	.floating-bouncy,
	.floating-shadow {
		animation-duration: 4s; /* Slower on mobile */
	}
	
	/* Reduce movement distance on mobile */
	@keyframes float {
		0%, 100% { transform: translateY(0px); }
		50% { transform: translateY(-10px); }
	}
	
	@keyframes floatDramatic {
		0%, 100% { transform: translateY(0px); }
		50% { transform: translateY(-15px); }
	}
}

/* Pulese Effect */
.pulse::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 25px;
    transform: translate(-50%, -50%);
    background: rgba(203, 191, 151, 0.8);
    border-radius: 50%;
    z-index: -1;
    opacity: 0; /* Start completely hidden */
    animation: pulseEffect 2.5s ease-out infinite;
    animation-fill-mode: forwards; /* Don't apply 0% state before delay */
}

/* Staggered delays */
.pulse-1::after { animation-delay: 0s; }
.pulse-2::after { animation-delay: 0.8s; }
.pulse-3::after { animation-delay: 1.6s; }
.pulse-4::after { animation-delay: 2.4s; }

@keyframes pulseEffect {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

/* Scrolling right */
.scroll-right {
	overflow: hidden;
	white-space: nowrap;
}

.scroll-right > * {
	display: inline-block;
	animation: scroll-right 30s linear infinite;
}

@keyframes scroll-right {
	from {
		transform: translateX(-50%);
	}
	to {
		transform: translateX(0%);
	}
}

/* Scrolling left */
.scroll-left {
	overflow: hidden;
	white-space: nowrap;
}

.scroll-left > * {
	display: inline-block;
	animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
	from {
		transform: translateX(0%);
	}
	to {
		transform: translateX(-50%);
	}
}