/* ===== Global Styles ===== */
:root {
    --puiux-black: #000000;
    --puiux-purple: #8E45BF;
    --puiux-pink: #E9408F;
    --puiux-turquoise: #35C0C5;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Tajawal', sans-serif;
}

/* ===== Preloader ===== */
#preloader {
    animation: fadeOut 0.5s ease-in-out 3s forwards;
}

#lottie-dress {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

/* Fashion animations for preloader */
.fashion-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.fashion-element {
    position: absolute;
    opacity: 0.3;
    animation-name: float;
    animation-duration: 15s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.needle {
    width: 50px;
    height: 50px;
    background: url('https://cdn-icons-png.flaticon.com/512/1253/1253500.png') no-repeat center center;
    background-size: contain;
    top: 20%;
    left: 10%;
}

.button {
    width: 40px;
    height: 40px;
    background: url('https://cdn-icons-png.flaticon.com/512/1067/1067608.png') no-repeat center center;
    background-size: contain;
    top: 15%;
    right: 20%;
    animation-delay: 2s;
}

.thread {
    width: 60px;
    height: 60px;
    background: url('https://cdn-icons-png.flaticon.com/512/6953/6953338.png') no-repeat center center;
    background-size: contain;
    bottom: 20%;
    left: 15%;
    animation-delay: 1s;
}

.scissors {
    width: 60px;
    height: 60px;
    background: url('https://cdn-icons-png.flaticon.com/512/2765/2765346.png') no-repeat center center;
    background-size: contain;
    bottom: 25%;
    right: 15%;
    animation-delay: 3s;
}

.fabric {
    width: 70px;
    height: 70px;
    background: url('https://cdn-icons-png.flaticon.com/512/2270/2270916.png') no-repeat center center;
    background-size: contain;
    top: 40%;
    left: 20%;
    animation-delay: 1.5s;
}

.ruler {
    width: 60px;
    height: 60px;
    background: url('https://cdn-icons-png.flaticon.com/512/2951/2951043.png') no-repeat center center;
    background-size: contain;
    top: 35%;
    right: 10%;
    animation-delay: 2.5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        transform: translate(20px, -15px) rotate(5deg);
    }
    40% {
        transform: translate(-15px, 10px) rotate(-3deg);
    }
    60% {
        transform: translate(-20px, -10px) rotate(8deg);
    }
    80% {
        transform: translate(15px, 15px) rotate(-5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Progress bar in preloader */
.progress-container-rtl {
    width: 300px;
    max-width: 80%;
    margin: 0 auto;
    position: relative;
}

.progress-bar-rtl {
    width: 100%;
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill-rtl {
    height: 100%;
    width: 0%;
    background: linear-gradient(to left, var(--puiux-purple), var(--puiux-pink));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-percentage {
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 12px;
    font-weight: bold;
    color: var(--puiux-purple);
}

.loading-text-rtl {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.loading-text-wrapper {
    display: inline-block;
    position: relative;
}

.loading-text-wrapper:after {
    content: "...";
    position: absolute;
    right: -20px;
    animation: ellipsis 1.2s infinite;
}

@keyframes ellipsis {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

/* Page transition effect */
.transition-layer {
    position: absolute;
    width: 100%;
    height: 0;
    background-color: var(--puiux-purple);
    transition: height 0.5s ease;
    z-index: 1;
}

.transition-layer-1 {
    background-color: var(--puiux-purple);
    z-index: 3;
}

.transition-layer-2 {
    background-color: var(--puiux-pink);
    z-index: 2;
    transition-delay: 0.1s;
}

.transition-layer-3 {
    background-color: var(--puiux-turquoise);
    z-index: 1;
    transition-delay: 0.2s;
}
h1.text-4xl.md\:text-5xl.lg\:text-6xl.font-tajawal.font-bold.text-puiux.mb-6.leading-tight.animate__animated.animate__fadeIn {
    font-size: 3rem;
    line-height: 1.4;
}
@keyframes fadeOut {
    0% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

/* ===== Feature Cards ===== */
.feature-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ===== Tech Cards ===== */
.tech-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    opacity: 1 !important; /* إضافة جديدة لضمان ظهور العناصر */
}

/* تحديد CSS مخصص لقسم التقنيات */
#tech-stack .tech-card {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

#tech-stack .grid {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ضمان ظهور صور التقنيات بشكل صحيح */
.tech-card img {
    opacity: 1 !important;
    max-width: 100% !important;
    height: auto !important;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ===== Tabs ===== */
.tab-button {
    color: #777;
    position: relative;
    transition: all 0.3s ease;
}

.tab-button:after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    left: 0;
    height: 3px;
    background-color: var(--puiux-purple);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button.active {
    color: var(--puiux-purple);
    font-weight: bold;
}

.tab-button.active:after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

/* ===== Timeline ===== */
.timeline-item {
    display: flex;
    position: relative;
    padding-right: 2.5rem;
}

.timeline-item.right {
    flex-direction: row-reverse;
    padding-right: 0;
    padding-left: 2.5rem;
}

.timeline-number {
    width: 40px;
    height: 40px;
    background-color: var(--puiux-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
}

.timeline-item.right .timeline-number {
    right: auto;
    left: 0;
}

.timeline-content {
    background-color: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    margin-right: 1.5rem;
    flex: 1;
}

.timeline-item.right .timeline-content {
    margin-right: 0;
    margin-left: 1.5rem;
}

@media (max-width: 768px) {
    .timeline-item, .timeline-item.right {
        flex-direction: column;
        padding-right: 0;
        padding-left: 0;
        padding-top: 3rem;
    }
    
    .timeline-number {
        right: 50%;
        transform: translateX(50%);
    }
    
    .timeline-item.right .timeline-number {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-content, .timeline-item.right .timeline-content {
        margin-right: 0;
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* ===== FAQ ===== */
.faq-item {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.faq-question {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-icon i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem;
    max-height: 1000px;
}

/* ===== Size Checkboxes ===== */
.size-checkbox span {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-checkbox input:checked + span {
    background-color: var(--puiux-purple);
    color: white;
    border-color: var(--puiux-purple);
}

/* ===== Isometric Card Styles ===== */
.isometric-card {
    position: relative;
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
    transition: all 0.3s ease;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        15px 15px 35px rgba(0, 0, 0, 0.05);
}

.isometric-card:hover {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.isometric-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 10px;
    height: 100%;
    background: linear-gradient(to bottom, var(--puiux-purple), var(--puiux-pink));
    transform: skewY(-45deg) translateY(-10px);
    transform-origin: top;
}

.isometric-card::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, var(--puiux-pink), var(--puiux-turquoise));
    transform: skewX(-45deg) translateX(-10px);
    transform-origin: left;
}

.price-card-container {
    perspective: 1000px;
}

.price-card {
    transform-style: preserve-3d;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.6s ease;
}

.price-card:hover {
    transform: rotateY(0) rotateX(0);
}

.discount-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--puiux-pink), var(--puiux-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transform: rotate(-15deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.discount-badge-pricing {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--puiux-pink), var(--puiux-purple));
    color: white;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    margin-right: 0.5rem;
    transform: rotate(-5deg);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.current-price {
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 10px;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.features-list {
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.countdown-container {
    border-top: 1px dashed #e5e5e5;
    padding-top: 1rem;
}

.countdown-timer {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--puiux-purple);
}

.custom-tab-container {
    perspective: 800px;
}

.custom-tab {
    transform-style: preserve-3d;
    transform: rotateX(10deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.custom-tab:hover {
    transform: rotateX(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-item {
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(5deg);
    transition: all 0.4s ease;
}

.portfolio-item:hover {
    transform: perspective(1000px) rotateY(0);
}

/* ===== Print Styles ===== */
@media print {
    .print-button, .mobile-tab-bar {
        display: none !important;
    }
    
    #preloader {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    body {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* ===== Animations ===== */
.tech-card, .feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1 !important; /* ضمان الظهور */
}

/* تجاوز تأثيرات AOS لضمان ظهور العناصر */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.tech-card:hover, .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ===== Price Block Animation ===== */
/* يترك خالي عمداً */

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

/* Special Hover Effects */
.special-hover {
    position: relative;
    overflow: hidden;
}

.special-hover:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.special-hover:hover:after {
    opacity: 1;
    transform: scale(2);
}

/* Gradient button with shadow */
.gradient-btn {
    background: linear-gradient(to right, var(--puiux-pink), var(--puiux-purple));
    color: white;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gradient-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* ===== Mobile Styles ===== */
@media (max-width: 768px) {
    .isometric-card {
        transform: perspective(1000px) rotateX(3deg) rotateY(-3deg);
    }
    
    .price-card {
        transform: rotateY(-5deg) rotateX(3deg);
    }
    
    .portfolio-item {
        transform: perspective(1000px) rotateY(3deg);
    }
}
