/* EMKA PEN - Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero Slider */
.hero-slider {
    height: 500px;
}

@media (min-width: 768px) {
    .hero-slider {
        height: 600px;
    }
}

@media (min-width: 1024px) {
    .hero-slider {
        height: 700px;
    }
}

.hero-slider .swiper-slide {
    position: relative;
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider .swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-slider .slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 10;
}

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

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #ea580c;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
}

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

.product-card .product-image {
    transition: transform 0.5s ease;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

.service-card:hover .service-icon {
    background-color: #ea580c;
    color: white;
}

.service-icon {
    transition: all 0.3s ease;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    background-color: #ea580c;
    color: white;
}

.feature-card:hover .feature-icon {
    background-color: white;
    color: #ea580c;
}

.feature-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Form */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(calc(100% + 2rem));
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background-color: #10b981;
}

.toast.error {
    background-color: #ef4444;
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.show {
    max-height: 600px;
}

/* Sticky header shadow on scroll */
header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* WhatsApp Button - Always visible */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 99;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

/* Back to top button - Shows on scroll */
.back-to-top {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background-color: #ea580c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #c2410c;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.5);
}

/* Mobile adjustments for floating buttons */
@media (max-width: 768px) {
    .whatsapp-btn {
        right: 1rem;
        bottom: 1.5rem;
    }

    .back-to-top {
        right: 1rem;
        bottom: 5.5rem;
    }
}
