/* Enhanced Visual Styles for English Pages */

/* Hero Section Enhanced Background */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1e3a5f 0%, #4a6fa5 100%);
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.9) 0%, rgba(74, 111, 165, 0.7) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255,255,255,0.03) 10px,
            rgba(255,255,255,0.03) 20px
        );
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-buttons {
    position: relative;
    z-index: 15;
    margin-top: 30px;
}

.hero-buttons .btn {
    position: relative;
    z-index: 20;
}

/* Enhanced Cards and Sections */
.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 40px 30px;
}

/* Features Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card .feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #4a6fa5 0%, #1e3a5f 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(74,111,165,0.3);
}

.feature-card .feature-icon i {
    font-size: 36px;
    color: #ffffff;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: #1e3a5f;
    margin-bottom: 15px;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74,111,165,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-card:hover::before {
    opacity: 1;
}

/* Decorative Elements */
.section-header {
    position: relative;
    text-align: center;
    margin-bottom: 60px;
}

.section-header::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(74,111,165,0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Gradient Text Effects */
.hero-title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
}

/* Remove gradient effect for better readability */
.hero-subtitle {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Stats Section Enhancement */
.hero-stats {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 40px;
    margin: 50px auto 0;
    max-width: 900px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    position: relative;
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .hero-stats {
        gap: 20px;
    }
}

/* Button Enhancements */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Ensure hero buttons are always clickable */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    position: relative;
    z-index: 100;
}

.hero-buttons .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Section Backgrounds */
.key-features {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    padding: 80px 0;
}

.key-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 50%, rgba(74,111,165,0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(74,111,165,0.03) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.key-features .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* Image Placeholder Styles */
.image-placeholder {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.image-placeholder::before {
    content: '🏭';
    font-size: 48px;
    opacity: 0.3;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255,255,255,0.5) 50%,
        transparent 70%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Timeline styles moved to about-modern.css to avoid conflicts */

/* Contact Form Enhancement */
.contact-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-group input,
.form-group textarea {
    background: rgba(255,255,255,0.8);
    border: 2px solid rgba(74,111,165,0.2);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    background: #ffffff;
    border-color: #4a6fa5;
    box-shadow: 0 0 0 4px rgba(74,111,165,0.1);
}

/* Gallery Enhancement */
.gallery-image {
    background: linear-gradient(135deg, #4a6fa5 0%, #1e3a5f 100%);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.gallery-image i {
    font-size: 60px;
    color: rgba(255,255,255,0.9);
    z-index: 2;
}

.gallery-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.1) 20px,
        rgba(255,255,255,0.1) 40px
    );
    animation: slidePattern 20s linear infinite;
}

@keyframes slidePattern {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

.gallery-item {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Equipment Grid Enhancement */
.equipment-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.equipment-item::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(74,111,165,0.1) 0%, transparent 70%);
    transition: all 0.5s ease;
}

.equipment-item:hover::before {
    top: -50%;
    left: -50%;
}

.equipment-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #4a6fa5 0%, #1e3a5f 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 5px 20px rgba(74,111,165,0.3);
}

.equipment-icon i {
    font-size: 36px;
    color: #ffffff;
}

/* Certification Cards Enhancement */
.certification-item {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.certification-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4a6fa5 0%, #1e3a5f 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.certification-item:hover::after {
    transform: scaleX(1);
}

.cert-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cert-icon i {
    font-size: 48px;
    background: linear-gradient(135deg, #4a6fa5 0%, #1e3a5f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Factory Location Cards */
.location-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    height: 100%;
}

.factory-item {
    background: rgba(255,255,255,0.7);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #4a6fa5;
    transition: all 0.3s ease;
}

.factory-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(74,111,165,0.15);
}

.factory-item h4 {
    color: #1e3a5f;
    margin-bottom: 10px;
}

.factory-item ul {
    list-style: none;
    padding: 0;
}

.factory-item ul li {
    padding: 5px 0;
    color: #6c757d;
    position: relative;
    padding-left: 20px;
}

.factory-item ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #4a6fa5;
}

/* Container Improvements */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ensure proper section spacing */
section {
    padding: 60px 0;
}

@media (min-width: 1200px) {
    .container {
        padding: 0 40px;
    }
}

/* Ensure all interactive elements are clickable */
a, button, .btn, input, textarea, select {
    position: relative;
    z-index: 10;
}

/* Hero specific button fix */
.hero .btn {
    position: relative;
    z-index: 100;
    display: inline-block;
}

/* Remove any conflicting transforms on load */
.hero-content,
.hero-stats,
.feature-card {
    opacity: 1 !important;
    transform: none !important;
}

/* About Page Enhancements */
.company-overview {
    padding-top: 120px;
    padding-bottom: 80px;
}

.overview-content {
    max-width: 1200px;
    margin: 0 auto;
}

.overview-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.overview-text h3 {
    font-size: 2rem;
    color: #1e3a5f;
    margin-bottom: 30px;
}

.overview-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #6c757d;
    margin-bottom: 25px;
}

.company-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.info-item i {
    font-size: 36px;
    color: #4a6fa5;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(74,111,165,0.1) 0%, rgba(74,111,165,0.05) 100%);
    border-radius: 15px;
}

.info-item strong {
    display: block;
    color: #1e3a5f;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-item span {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Timeline styles moved to about-modern.css to avoid conflicts */