/* ==================================
   Homepage Styles
   Kitchen Project
   ================================== */

/* Section Header Styles */
.section-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.section-header-wrapper h2,
.section-header-wrapper .engineering-corner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 20px 40px;
    margin: 0;
    white-space: nowrap;
    position: relative;
    text-shadow: none;
}

/* Fallback for browsers that don't support background-clip */
@supports not (background-clip: text) {
    .section-header-wrapper h2,
    .section-header-wrapper .engineering-corner {
        color: #667eea;
        -webkit-text-fill-color: initial;
    }
}

.title-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.title-dots span {
    font-size: 12px;
    color: #3498db;
    opacity: 0.7;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.title-dots span:nth-child(1) {
    animation-delay: 0s;
}

.title-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.title-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.section-header-wrapper:hover .title-dots span {
    opacity: 1;
    color: #764ba2;
}

/* Hover effect on title */
.section-header-wrapper h2:hover,
.section-header-wrapper .engineering-corner:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Add subtle glow effect */
.section-header-wrapper h2::before,
.section-header-wrapper .engineering-corner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-header-wrapper h2:hover::before,
.section-header-wrapper .engineering-corner:hover::before {
    opacity: 1;
}

.section-description {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ==================================
   Products Slider Styles
   ================================== */
.products-slider-container {
    padding: 0 60px;
}

.productsSwiper {
    padding-bottom: 50px;
}

.productsSwiper .swiper-slide {
    height: auto;
}

.productsSwiper .product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.productsSwiper .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Navigation Buttons */
.products-swiper-button-next,
.products-swiper-button-prev {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.products-swiper-button-next:hover,
.products-swiper-button-prev:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Custom Arrow Icons */
.products-swiper-button-next::after,
.products-swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* RTL Support */
html[dir="rtl"] .products-swiper-button-next::after {
    content: '›';
}

html[dir="rtl"] .products-swiper-button-prev::after {
    content: '‹';
}

html[dir="rtl"] .products-swiper-button-next {
    right: auto;
    left: -10px;
}

html[dir="rtl"] .products-swiper-button-prev {
    left: auto;
    right: -10px;
}

/* LTR Support */
html[dir="ltr"] .products-swiper-button-next::after {
    content: '›';
}

html[dir="ltr"] .products-swiper-button-prev::after {
    content: '‹';
}

html[dir="ltr"] .products-swiper-button-next {
    right: -10px;
}

html[dir="ltr"] .products-swiper-button-prev {
    left: -10px;
}

/* Pagination */
.products-swiper-pagination {
    bottom: 10px !important;
}

.products-swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #667eea;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.products-swiper-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 30px;
    border-radius: 6px;
}

/* ==================================
   Hero Section (3D Slider)
   ================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    z-index: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 3rem;
}

.hero-text-wrapper {
    position: relative;
    min-height: 400px;
}

.hero-text-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    color: #fff;
}

.hero-text-item.active {
    opacity: 1;
    visibility: visible;
}

.hero-text-item h1 {
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-text-item p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    line-height: 1.8;
}

/* Text Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text-item.active .animate-title {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-text-item.active .animate-description {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-text-item.active .animate-button {
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Slider Container - 3D Effect */
.slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    perspective: 1000px;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.slide {
    position: absolute;
    width: 70%;
    height: 80%;
    top: 10%;
    left: 15%;
    transform-style: preserve-3d;
    transform: translateZ(-1000px);
    transition: transform 1s, opacity 1s;
    opacity: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide.active {
    transform: translateZ(0px);
    opacity: 1;
    z-index: 10;
}

.slide.prev-1 {
    transform: translateZ(-200px) translateX(-40%) scale(0.9);
    opacity: 0.7;
    z-index: 9;
}

.slide.prev-2 {
    transform: translateZ(-400px) translateX(-60%) scale(0.8);
    opacity: 0.5;
    z-index: 8;
}

.slide.next-1 {
    transform: translateZ(-200px) translateX(40%) scale(0.9);
    opacity: 0.7;
    z-index: 9;
}

.slide.next-2 {
    transform: translateZ(-400px) translateX(60%) scale(0.8);
    opacity: 0.5;
    z-index: 8;
}

/* RTL Adjustments for Slides */
html[dir="rtl"] .slide.prev-1 {
    transform: translateZ(-200px) translateX(40%) scale(0.9);
}

html[dir="rtl"] .slide.prev-2 {
    transform: translateZ(-400px) translateX(60%) scale(0.8);
}

html[dir="rtl"] .slide.next-1 {
    transform: translateZ(-200px) translateX(-40%) scale(0.9);
}

html[dir="rtl"] .slide.next-2 {
    transform: translateZ(-400px) translateX(-60%) scale(0.8);
}

/* Navigation Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
}

.slider-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #667eea;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.slider-nav:active {
    transform: scale(0.95);
}

/* Pagination Dots */
.slider-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.page-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.page-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.page-dot.active {
    background: #fff;
    width: 40px;
    border-radius: 6px;
}

/* ==================================
   Responsive Design
   ================================== */
   
/* Section Headers - Responsive */
@media (max-width: 768px) {
    .section-header-wrapper {
        gap: 15px;
    }
    
    .section-title-main {
        padding: 15px 30px;
        font-size: 1.5rem;
    }
    
    .title-dots {
        gap: 5px;
    }
    
    .title-dots span {
        font-size: 10px;
    }
}

/* Products Slider - Responsive */
@media (max-width: 768px) {
    .products-slider-container {
        padding: 0 50px;
    }
    
    .products-swiper-button-next,
    .products-swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .products-swiper-button-next::after,
    .products-swiper-button-prev::after {
        font-size: 16px;
    }
}

/* Hero Section - Responsive */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-content {
        padding: 0 1rem;
        margin-bottom: 40px;
    }
    
    .hero-text-wrapper {
        min-height: 300px;
    }
    
    .slider-container {
        height: 500px;
    }
}

@media (max-width: 767px) {
    .slider-container {
        height: 400px;
    }
    
    .slide {
        width: 85%;
        height: 70%;
        left: 7.5%;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-controls {
        padding: 0 10px;
    }
    
    .hero-text-item h1 {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
}

