/*
 * Dreams & Designs - Components Styles
 * Reusable UI Components
 * Version: 2.0.0
 */

/* ==========================================================================
   Icon Boxes / Feature Blocks
   ========================================================================== */
.icon-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.icon-box {
    text-align: center;
    padding: 2rem;
    background: var(--color-white);
    border-radius: 0;
    transition: var(--transition-normal);
}

.icon-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.icon-box-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 50%;
    transition: var(--transition-normal);
}

.icon-box:hover .icon-box-icon {
    background: var(--color-primary-dark);
    transform: rotateY(360deg);
}

.icon-box-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.icon-box-text {
    color: var(--color-gray);
    font-size: 0.95rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--color-white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.card-title a {
    color: var(--color-dark);
}

.card-title a:hover {
    color: var(--color-primary);
}

.card-excerpt {
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-gray-light);
}

/* ==========================================================================
   Portfolio / Gallery
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(233, 30, 99, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-category {
    color: var(--color-white);
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Portfolio Filter */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-slider {
    max-width: 1000px;
    margin: 0.5rem auto 0;
    width: 90%;
}

.testimonial-item {
    text-align: center;
    padding: 0.5rem;
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--color-primary);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: #d0d0d0;
    line-height: 1.5;
}

.testimonial-author {
    font-size: 1rem;
    font-weight: 600;
    color: #d0d0d0;
    padding: 1rem;
}

.testimonial-position {
    font-size: 0.9rem;
    color: #d0d0d0;
}

/* Swiper Navigation Arrows */
.testimonial-slider .swiper-button-next,
.testimonial-slider .swiper-button-prev {
    color: #ffffff;
    width: 44px;
    height: 44px;
    padding: 15px;
}

.testimonial-slider .swiper-button-next:hover,
.testimonial-slider .swiper-button-prev:hover {
    color: #000000;	
}

.testimonial-slider .swiper-button-next::after,
.testimonial-slider .swiper-button-prev::after {
    font-size: 24px;
    font-weight: bold;
}

/* Swiper Pagination Dots */
.testimonial-slider .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.testimonial-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #ffffff;
}

.testimonial-slider .swiper-pagination-bullet:hover {
    background: var(--color-primary);
    opacity: 1;
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
}

.hero-slider {
    height: 100%;
}

.hero-slide {
    height: 80vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(45, 45, 45, 0.75) 0%, 
        rgba(45, 45, 45, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    max-width: 700px;
    color: var(--color-white);
}

.hero-title {
    font-size: 4rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Swiper Navigation */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: #ffffff;
    background: rgba(233, 30, 99, 1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 30px;
}

.hero-slider .swiper-button-next:after,
.hero-slider .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background: var(--color-primary);
    color: #000000;
}

/* Swiper Pagination Dots */
.hero-slider .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.5;
    width: 12px;
    height: 12px;	
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--color-primary);
    opacity: 1;
    background: #ffffff;
}

.hero-slider .swiper-pagination-bullet:hover {
    background: var(--color-primary);
    opacity: 1;
}

/* ==========================================================================
   Animation Classes
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .icon-boxes {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}