/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f4f4f4;
    overflow-x: hidden;
}

/* Header */
header {
    background: #001f3f;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-area img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.company-text h1 {
    font-size: 1.2rem;
}

.company-text p {
    font-size: 0.8rem;
    color: #ff7b00;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #ff7b00;
}

/* ===== FIXED SLIDER CSS ===== */
.slider-container {
    width: 100%;
    height: 80vh; /* Adjust height as needed */
    padding: 0; /* Remove padding for sections */
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%; /* Force slide to be exactly screen width */
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes images fit perfectly without distortion */
    display: block;
}

/* Navigation Arrows */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: 0.3s;
}

.prev { left: 10px; border-radius: 0 5px 5px 0; }
.next { right: 10px; border-radius: 5px 0 0 5px; }

.prev:hover, .next:hover {
    background: #ff7b00;
}

/* Dots */
.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background-color: #ff7b00;
    width: 30px;
    border-radius: 10px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: url('assets/images/factory.jpg') center/cover no-repeat;
    height: 60vh;
    position: relative;
    padding: 0;
}

.overlay {
    background: rgba(0,0,0,0.6);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.overlay h2 { font-size: 2.5rem; }

/* Product Grid */
section { padding: 60px 10%; text-align: center; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover { transform: translateY(-10px); }

.card img { width: 100%; height: 200px; object-fit: cover; }

/* Capacity */
.capacity { background: #001f3f; color: white; }
.capacity h3 { font-size: 2.5rem; color: #ff7b00; margin: 15px 0; }

/* Contact Form */
.contact form {
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
}

.contact input, .contact textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact button {
    background: #ff7b00;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* Footer */
.footer { background: #001f3f; color: white; padding: 40px 10% 20px; }
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: left;
}

.footer-box h3 { color: #ff7b00; margin-bottom: 15px; }
.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
}

/* ===== Loader ===== */
#loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #001f3f; /* Dark blue background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
}

.loader-content {
    text-align: center;
}

.loader-content img {
    width: 100px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.loader-content h2 {
    font-size: 22px;
    color: #ffffff; /* This forces the text to be pure white */
    animation: blink 1.5s infinite;
    font-weight: 500;
}

/* Pulsing Logo Effect */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Flashing Text Effect - Adjusting opacity for better visibility on white */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.6; } /* Kept slightly higher so it doesn't disappear too much */
    100% { opacity: 1; }
}