/* ==========================================================================
   COMMON HERO SECTION STYLES
   Used across home.html, about.html, capasity.html, contact.html
   ========================================================================== */

/* Global Page Styling */
body {
    overflow-x: hidden;
    max-width: 100vw;
    background: linear-gradient(135deg, var(--bg-gradient-start, #fef7f0) 0%, var(--bg-gradient-end, #fdf4e8) 30%, var(--bg-gradient-start, #fcf1e6) 70%, var(--bg-gradient-end, #faf0e4) 100%) !important;
    color: var(--text-primary, #334155);
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(253, 126, 20, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(253, 126, 20, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Ensure consistent box model */
* {
    box-sizing: border-box;
}

/* Enhanced background decoration */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-decoration::before,
.bg-decoration::after {
    content: '';
    position: absolute;
    background: linear-gradient(45deg, rgba(253, 126, 20, 0.12), rgba(251, 191, 36, 0.08));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.bg-decoration::before {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
    animation-delay: -3s;
}

.bg-decoration::after {
    width: 500px;
    height: 500px;
    bottom: -250px;
    left: -250px;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(5deg); 
    }
}

/* ==========================================================================
   COMMON HERO SECTION LAYOUT
   ========================================================================== */

/* Hero Section Base */
.hero-section {
    position: relative;
    z-index: 1;
    padding: 60px 0 60px 0;
    margin-top: 40px;
    overflow-x: hidden;
}

/* Hero Layout Columns - Generic */
.hero-left-column,
.hero-right-column {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 20px 0;
}

/* Left Column Alignment */
.hero-left-column {
    justify-content: flex-start;
}

/* Right Column Alignment */
.hero-right-column {
    justify-content: center;
}

/* Hero Content Wrappers */
.hero-content-wrapper {
    min-height: 400px;
    padding: 20px 0;
    width: 100%;
    max-width: 100%;
}

.hero-image-wrapper {
    min-height: 400px;
    padding: 20px 0;
    width: 100%;
    max-width: 100%;
}

/* ==========================================================================
   COMMON HERO TYPOGRAPHY
   ========================================================================== */

/* Main Hero Titles */
.hero-title,
.company-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--text-primary, #1e293b);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: center;
}

@media (min-width: 992px) {
    .hero-title,
    .company-title {
        text-align: left;
    }
}

/* Company Name Highlighting */
.company-name {
    color: var(--accent-primary, #fd7e14);
    position: relative;
}

.company-name::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #fd7e14, #fbbf24);
    border-radius: 2px;
}

/* Hero Subtitles */
.hero-subtitle,
.company-tagline {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(253, 126, 20, 0.05);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(253, 126, 20, 0.1);
    justify-content: center;
    margin-bottom: 12px;
}

@media (min-width: 992px) {
    .hero-subtitle,
    .company-tagline {
        justify-content: flex-start;
    }
}

/* Hero Subtitle Icons */
.hero-subtitle-icon,
.tagline-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #fd7e14, #fbbf24);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-subtitle-icon i,
.tagline-icon i {
    font-size: 0.9rem;
    color: white;
}

/* Hero Subtitle Text */
.hero-subtitle-text,
.tagline-text {
    margin: 0;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    line-height: 1.3;
}

/* Hero Descriptions */
.hero-description {
    font-size: 1rem;
    color: #3b82f6;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.4;
}

@media (min-width: 992px) {
    .hero-description {
        text-align: left;
    }
}

/* Highlight specific words */
.hero-description strong {
    color: var(--accent-primary, #fd7e14);
    font-weight: 700;
}

/* ==========================================================================
   COMMON HERO IMAGES
   ========================================================================== */

/* Hero Image Containers */
.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(253, 126, 20, 0.15);
    background: linear-gradient(135deg, var(--card-bg, #ffffff) 0%, var(--bg-secondary, #f8fafc) 100%);
    border: 2px solid rgba(253, 126, 20, 0.1);
    aspect-ratio: 5/4;
}

/* Hero Images */
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Image Overlays */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(253, 126, 20, 0.9) 100%);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

/* Hover Effects */
.hero-image-container:hover .image-overlay {
    transform: translateY(0);
}

.hero-image-container:hover .hero-image {
    transform: scale(1.05);
}

/* Overlay Content */
.overlay-content h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.overlay-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   COMMON PRODUCTS GRID STYLING
   ========================================================================== */

/* Products Section */
.products-section-simple {
    margin-top: 8px;
}

.manufacturer-text {
    font-size: 1rem;
    color: #3b82f6;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.4;
}

@media (min-width: 992px) {
    .manufacturer-text {
        text-align: left;
    }
}

/* Products Grid */
.products-grid-final {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    justify-items: center;
}

@media (min-width: 768px) {
    .products-grid-final {
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .products-grid-final {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: 1fr;
        justify-items: start;
        gap: 16px;
    }
}

/* Product Items */
.product-item-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-primary, #1e293b);
    transition: all 0.3s ease;
    border-radius: 16px;
    min-width: 100px;
    background: var(--card-bg, rgba(255, 255, 255, 0.5));
    border: 2px solid transparent;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.product-item-final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.05), rgba(251, 191, 36, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 14px;
}

.product-item-final:hover::before {
    opacity: 1;
}

.product-item-final:hover {
    color: var(--accent-primary, #fd7e14);
    text-decoration: none;
    transform: translateY(-6px);
    background: var(--card-bg, rgba(255, 255, 255, 0.8));
    border-color: rgba(253, 126, 20, 0.2);
    box-shadow: 0 12px 32px rgba(253, 126, 20, 0.15);
}

/* Product Icons */
.product-icon-final {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fd7e14, #fbbf24);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.25);
}

.product-item-final:hover .product-icon-final {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(253, 126, 20, 0.35);
}

.product-icon-final i {
    font-size: 1.2rem;
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Product Names */
.product-name-final {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.product-item-final:hover .product-name-final {
    font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Desktop and Large Tablets (≥992px) */
@media (min-width: 992px) {
    .hero-left-column {
        min-height: 500px;
        padding: 40px 20px 40px 0;
        justify-content: flex-start;
    }

    .hero-right-column {
        min-height: 500px;
        padding: 40px 0 40px 20px;
        justify-content: center;
    }
}

/* Medium Tablets (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: 50px 0 50px 0;
        margin-top: 30px;
    }

    .hero-left-column {
        min-height: 400px;
        padding: 30px 20px;
        margin-bottom: 2rem;
        justify-content: center;
    }

    .hero-right-column {
        min-height: 350px;
        padding: 20px;
        margin-top: 0;
        justify-content: center;
    }

    .hero-content-wrapper {
        min-height: 300px;
        padding: 15px 0;
    }

    .hero-image-wrapper {
        min-height: 300px;
        padding: 15px 0;
    }

    .hero-image-container {
        max-width: 100%;
        margin: 0;
    }
}

/* Small Tablets and Large Phones (576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding: 45px 0 45px 0;
        margin-top: 25px;
    }

    .hero-left-column {
        min-height: 350px;
        padding: 25px 15px;
        margin-bottom: 1.5rem;
        justify-content: center;
    }

    .hero-right-column {
        min-height: 300px;
        padding: 20px 15px;
        margin-top: 0;
        justify-content: center;
    }

    .hero-content-wrapper,
    .hero-image-wrapper {
        min-height: 250px;
        padding: 10px 0;
    }

    .hero-image-container {
        max-width: 100%;
        margin: 0;
    }
}

/* Mobile Devices (≤575px) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 40px 0 40px 0;
        margin-top: 20px;
    }

    .hero-left-column {
        min-height: 300px;
        padding: 20px 10px;
        margin-bottom: 1rem;
        justify-content: center;
    }

    .hero-right-column {
        min-height: 250px;
        padding: 15px 10px;
        margin-top: 0;
        justify-content: center;
    }

    .hero-content-wrapper,
    .hero-image-wrapper {
        min-height: 200px;
        padding: 10px 0;
    }

    .hero-image-container {
        max-width: 100%;
        margin: 0;
        border-radius: 12px;
    }

    /* Mobile product grid adjustments */
    .products-grid-final {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-item-final {
        padding: 12px 16px;
        min-width: auto;
    }
    
    .product-icon-final {
        width: 40px;
        height: 40px;
    }
    
    .product-icon-final i {
        font-size: 1rem;
    }
    
    .product-name-final {
        font-size: 0.8rem;
    }

    .bg-decoration::before,
    .bg-decoration::after {
        width: 300px;
        height: 300px;
    }

    .bg-decoration::before {
        top: -150px;
        right: -150px;
    }

    .bg-decoration::after {
        bottom: -150px;
        left: -150px;
    }
}

/* General mobile responsive improvements */
@media (max-width: 768px) {
    body::before {
        background:
            radial-gradient(circle at 20% 30%, rgba(253, 126, 20, 0.06) 0%, transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.04) 0%, transparent 40%);
    }

    .hero-section {
        padding: 60px 0;
    }
}