/* style.css - Medina Metal Workshop */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { font-family: 'Inter', sans-serif; }
.lang-bn body, .lang-bn h1, .lang-bn h2, .lang-bn h3, .lang-bn h4, .lang-bn .nav-link { font-family: 'Hind Siliguri', sans-serif; }

/* Navigation */
.nav-link {
    position: relative;
    color: #334155;
    font-weight: 600;
    transition: color 0.3s;
    padding: 4px 0;
}
.nav-link:hover, .nav-link.active { color: #d97706; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d97706;
    transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Page header */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Portfolio */
.portfolio-item { overflow: hidden; border-radius: 1rem; }
.portfolio-overlay {
    opacity: 0;
    transition: opacity 0.3s;
    background: rgba(15,23,42,0.8);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

/* Testimonial card */
.testimonial-card {
    background: white;
    border-radius: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Image containers - FIXED: images adjust to section content height */
.section-img-wrap {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 1rem;
}
.section-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Portfolio images - fixed height */
.portfolio-item img {
    width: 100%;
    height: 256px;
    object-fit: cover;
}

/* Desktop: image fills flex parent to match content height */
@media (min-width: 1024px) {
    .section-img-wrap {
        height: 100%;
    }
}

/* FAQ Accordion */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 2rem;
}
.faq-content.open {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}
.faq-toggle.active svg { transform: rotate(180deg); }

/* Pulse animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.pulse-animation { animation: pulse 2s infinite; }

/* Form focus */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217,119,6,0.1);
}

/* Hero Slider */
#hero-slider {
    position: relative;
}
.slider-slide {
    transition: opacity 0.8s ease-in-out;
}
.slider-slide.active {
    opacity: 1;
    z-index: 1;
}
.slider-slide:not(.active) {
    opacity: 0;
    z-index: 0;
}
.slider-dot {
    transition: all 0.3s;
}
.slider-dot.active {
    background: #d97706;
    width: 2.5rem;
}
.slider-arrow:hover {
    background: #d97706;
    border-color: #d97706;
}
@media (max-width: 768px) {
    .slider-arrow {
        width: 40px !important;
        height: 40px !important;
    }
    .slider-arrow svg {
        width: 20px;
        height: 20px;
    }
}
