/* Reset, Base Styles, and Color Palette */
:root {
    --bg-dark-primary: #181c24;
    --bg-dark-secondary: #23283b;
    --text-primary: #f0f2f5;      /* Brighter white for high importance text */
    --text-secondary: #c5cdd8;    /* Softer, readable grey for paragraphs */
    --accent-primary: #ffb347;     /* Your main orange/gold accent */
    --accent-secondary-start: #667eea;
    --accent-secondary-end: #764ba2;
    --border-color: #4a5162;      /* A subtle border color for inputs */
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-primary); /* Use primary text color */
    background: linear-gradient(120deg, var(--bg-dark-primary) 0%, var(--bg-dark-secondary) 100%);
}

/* Header Styles */
header {
    background: var(--bg-dark-secondary);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: color 0.2s, border-bottom 0.2s;
    position: relative;
    background: none;
    border-bottom: 2px solid transparent; /* Add transparent border for smooth transition */
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
    background: none;
    box-shadow: none;
    transform: none;
}

/* Main Content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: none;
}

/* Home Page Styles */
.image-showcase {
    position: relative;
    width: 600px;
    height: 380px;
    margin: 2rem auto 3rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.image-showcase img {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 18px;
    object-fit: cover;
    transition: 
        opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    opacity: 0;
    z-index: 1;
    width: 320px;
    height: 220px;
    transform: translate(-50%, -50%) scale(0.7);
    filter: blur(4px) grayscale(60%);
    pointer-events: none;
}

.image-showcase img.active {
    opacity: 1;
    z-index: 3;
    width: 480px;
    height: 320px;
    transform: translate(-50%, -50%) scale(1);
    filter: none;
    pointer-events: auto;
}

.image-showcase img.prev {
    opacity: 0.6;
    z-index: 2;
    width: 220px;
    height: 150px;
    transform: translate(-160%, -50%) scale(0.6);
    filter: blur(6px) grayscale(80%);
}

.image-showcase img.next {
    opacity: 0.6;
    z-index: 2;
    width: 450px;
    height: 150px;
    transform: translate(60%, -50%) scale(0.6);
    filter: blur(6px) grayscale(80%);
}

/* Carousel indicators (optional, for navigation) */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.carousel-indicator[style*="background: white"] {
    background: var(--accent-primary) !important;
    transform: scale(1.2);
}

/* Introduction Section */
.introduction {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-dark-secondary);
    margin: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.introduction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-secondary-start), var(--accent-secondary-end));
}

.introduction h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.introduction p {
    font-size: 1.2rem;
    color: var(--text-secondary); /* FIXED: Low contrast */
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Mission, Vision, Values Section */
.mvc {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
}

.mission, .vision, .values {
    background: var(--bg-dark-secondary);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission::before,
.vision::before,
.values::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-secondary-start), var(--accent-secondary-end));
}

.mission:hover,
.vision:hover,
.values:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.mvc h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-primary); /* FIXED: Low contrast */
}

.mvc p, .values ul li {
    color: var(--text-secondary); /* Set consistent paragraph color */
}

.values ul {
    list-style: none;
}

.values ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.values ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-secondary-start);
    font-weight: bold;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, var(--bg-dark-secondary) 60%, var(--bg-dark-primary) 100%);
    color: var(--text-primary);
    padding: 6rem 2rem 4rem;
    text-align: center;
    border-radius: 15px;
    margin: 2rem;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

.company-story {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.company-story h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary); /* FIXED: Low contrast */
}

.company-story p {
    font-size: 1.2rem;
    color: var(--text-secondary); /* FIXED: Low contrast */
    line-height: 1.8;
}

/* Team Section */
.team {
    padding: 4rem 2rem;
    background: var(--bg-dark-secondary);
}

.team h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary); /* FIXED: Low contrast */
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background: var(--bg-dark-secondary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.team-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 15px 40px rgba(255,179,71,0.10);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--accent-secondary-start);
}

.team-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary); /* FIXED: Low contrast */
}

.team-card p {
    color: var(--accent-secondary-start);
    font-weight: 500;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--bg-dark-secondary), var(--bg-dark-primary));
    color: var(--text-primary);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 15px;
    margin: 2rem;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: var(--text-secondary);
}

.btn {
    display: inline-block;
    background: var(--accent-primary);
    color: var(--bg-dark-secondary);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255,179,71,0.18);
    border: none;
}

.btn:hover {
    background: var(--text-primary);
    color: var(--bg-dark-secondary);
    box-shadow: 0 10px 25px rgba(255,179,71,0.28);
}

/* Gallery Styles */
.gallery-hero {
    background: linear-gradient(135deg, var(--bg-dark-secondary), var(--bg-dark-primary));
    color: var(--text-primary);
    padding: 4rem 2rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: var(--bg-dark-secondary);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    animation: zoomIn 0.3s ease;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--accent-secondary-start);
}

/* Products Page */
.products {
    padding: 4rem 2rem;
}

.products h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary); /* FIXED: Low contrast */
}

.products > p { /* Use > to target only direct child paragraph */
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary); /* FIXED: Low contrast */
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-dark-secondary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 15px 40px rgba(255,179,71,0.08);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
    color: var(--text-primary); /* FIXED: Low contrast */
}

.product-card p {
    padding: 0 1.5rem;
    color: var(--text-secondary); /* FIXED: Low contrast */
    line-height: 1.6;
    text-align: left;
}

.product-card .btn {
    margin: 1.5rem;
    display: inline-block;
}

/* Contact Page */
.contact-page {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-page h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary); /* FIXED: Low contrast */
}

.contact-page > p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary); /* FIXED: Low contrast */
    margin-bottom: 3rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info {
    background: var(--bg-dark-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    height: fit-content;
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary); /* FIXED: Low contrast */
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--text-secondary); /* FIXED: Low contrast */
}

.contact-form {
    background: var(--bg-dark-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.contact-form h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary); /* FIXED: Low contrast */
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    font-weight: 500;
    color: var(--text-secondary); /* FIXED: Low contrast */
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 2px solid var(--border-color); /* IMPROVED */
    background-color: var(--bg-dark-primary); /* IMPROVED */
    color: var(--text-primary); /* IMPROVED */
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-secondary-start);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.contact-form button {
    background: linear-gradient(135deg, var(--accent-secondary-start), var(--accent-secondary-end));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.map {
    background: var(--bg-dark-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.map h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary); /* FIXED: Low contrast */
}

.map iframe {
    border-radius: 10px;
}

/* Footer */
footer {
    background: var(--bg-dark-primary);
    color: var(--text-primary);
    padding: 1.2rem 1rem 0.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.2rem;
    border-top: 1px solid var(--border-color);
}

footer > div {
    flex: 1 1 180px;
    min-width: 180px;
}

.contacts p {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    color: var(--text-secondary);
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

.quick-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.2rem 0.7rem;
    border-radius: 14px;
    transition: color 0.2s;
    width: fit-content;
    background: none;
}

.quick-links a:hover {
    color: var(--accent-primary);
}

.social-media {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.3rem;
}

.social-media a {
    display: inline-block;
    background: var(--bg-dark-secondary);
    border-radius: 50%;
    padding: 5px;
    transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
    box-shadow: 0 2px 8px rgba(58, 74, 107, 0.12);
}

.social-media a:hover {
    box-shadow: 0 8px 24px rgba(255,179,71,0.18);
    transform: scale(1.12) rotate(-4deg);
    background: var(--accent-primary);
}

.social-media img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
    background: var(--bg-dark-secondary);
}

.copyright {
    flex-basis: 100%;
    text-align: center;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.80;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .image-showcase {
        height: 300px;
        margin: 1rem;
    }
    
    .introduction h2 {
        font-size: 2rem;
    }
    
    .about-hero h1,
    .gallery-hero h1,
    .products h1,
    .contact-page h1 {
        font-size: 2.2rem;
    }
    
    .mvc {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    footer {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .social-media {
        justify-content: center;
    }
}

/* Media query for footer was slightly different, merging for simplicity */
@media (max-width: 900px) {
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
}

/* No asset path changes needed in current CSS, just ensure any url() references are relative if used. */
