/* Merged Styles */

/* --- index.css --- */
:root {
    --color-primary: #ff5722;
    /* Industrial Safety Orange */
    --color-primary-hover: #e64a19;
    --color-bg: #121212;
    --color-surface: #2d2d2d;
    /* Slightly lighter surface for contrast */
    --color-text: #ffffff;
    --color-text-secondary: #b0b0b0;
    --font-main: 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* Ensure generic padding on mobile */
    width: 100%;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background-color: var(--color-primary);
    color: #000;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color var(--transition-speed);
}

.btn:hover {
    background-color: var(--color-primary-hover);
}

img {
    max-width: 100%;
    display: block;
}

/* --- App.css --- */
.app {
    width: 100%;
    min-height: 100vh;
}

/* --- Navbar.css --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    /* Semi-transparent default */
    backdrop-filter: blur(5px);
    /* Little blur */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Bottom border */
}

.navbar.scrolled {
    background-color: rgba(18, 18, 18, 0.85);
    /* Slightly darker when scrolled */
    padding: 1rem 0;
    backdrop-filter: blur(12px);
    /* Stronger blur when scrolled */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--color-primary);
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li {
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-speed);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links li::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-speed);
}

.nav-links li:hover {
    color: var(--color-primary);
}

.nav-links li:hover::after {
    width: 100%;
}

.mobile-menu-icon {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-icon {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        /* Dropdown directly below navbar */
        right: 20px;
        /* Align to right or under icon */
        left: auto;
        /* Reset left */
        bottom: auto;
        /* Reset bottom */
        width: 200px;
        background-color: var(--color-surface);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        flex-direction: column;
        align-items: center;
        gap: 0;
        /* Remove gap, use padding on items */
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        z-index: 1001;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
        max-height: 300px;
        /* Expand down */
        left: auto;
        /* Ensure it doesn't slide */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }
}

/* --- Hero.css --- */
.hero {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay for text readability */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: slideUp 0.8s ease-out forwards;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--color-primary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
    /* Init hidden for animation */
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    /* No background */
    color: white;
    border: none;
    font-size: 1.5rem;
    /* Smaller size */
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s, transform 0.3s;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    /* Shadow for visibility */
}

.slider-arrow:hover {
    color: var(--color-primary);
    transform: translateY(-50%) scale(1.2);
    /* Scale effect instead of background */
}

.slider-arrow.prev {
    left: 20px;
    /* Spacing from edge */
}

.slider-arrow.next {
    right: 20px;
    /* Spacing from edge */
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--color-primary);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}

/* --- About.css --- */
.about-section {
    background-color: var(--color-surface);
    text-align: center;
}

.company-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text-secondary);
}

/* --- Brands.css --- */
.brands-section {
    background-color: var(--color-bg);
}

.brands-container {
    position: relative;
    display: flex;
    align-items: center;
}

.brands-list {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
    width: 100%;
    scrollbar-width: none;
    /* Firefox */
}

.brands-list::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

.brand-card {
    min-width: 250px;
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid transparent;
    /* Init border for layout stability */
    transition: transform var(--transition-speed), border-color var(--transition-speed);
    cursor: pointer;
}

.brand-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.brand-card.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.2);
}

.brand-logo {
    height: 80px;
    /* Bigger logos */
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: grayscale(1);
    transition: filter var(--transition-speed);
}

.brand-card h3 {
    margin-bottom: 2rem;
    /* Increased spacing */
    font-size: 1.2rem;
}

.brand-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1.2rem;
    opacity: 1;
    transform: none;
    transition: all var(--transition-speed);
}

.brands-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.brands-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.brands-nav {
    display: flex;
    gap: 1rem;
}

.scroll-btn {
    background-color: var(--color-primary);
    /* Solid color */
    color: #000;
    /* Contrast text */
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* Circle */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.scroll-btn:hover {
    background-color: #fff;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .brands-header {
        flex-direction: row;
        /* Keep row */
        align-items: center;
    }
}

/* --- Products.css --- */
.products-section {
    background-color: var(--color-surface);
    min-height: 500px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
    /* Center items if they don't fill row */
}

.no-products {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1.2rem;
}

.product-card {
    background-color: var(--color-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--color-primary);
}

.product-image {
    position: relative;
    height: 250px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay span {
    color: #fff;
    border: 2px solid var(--color-primary);
    padding: 0.5rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    background-color: rgba(0, 0, 0, 0.5);
}

.product-info {
    padding: 1.5rem;
}

.product-brand {
    font-size: 0.8rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #dcdcdc;
}

.mobile-listing-prompt {
    display: none;
    /* Hidden by default */
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    border: 1px dashed #444;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background-color: var(--color-surface);
    color: var(--color-text-secondary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.footer::before {
    /* Subtle glow at top */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col {
    text-align: left;
}

.footer-col h3 {
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    font-weight: 800;
    font-size: 1.2rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.footer-legal a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--color-primary);
}

.separator {
    opacity: 0.3;
}

/* Page Content (Contact Page) */
.page-content {
    padding-top: 80px;
    /* Offset fixed header */
}

/* Solid Nav for non-home pages */
.navbar.solid-nav {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {

    /* On mobile, if we are in default view (no brand selected), we NOW show all products too. 
       Removing the hide logic. */
}

/* --- Partners.css --- */
.partners-section {
    background-color: var(--color-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    /* Hide overflow for marquee */
}

.partners-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.partners-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    filter: grayscale(0%);
    opacity: 1;
    transition: all var(--transition-speed);
    flex-shrink: 0;
    /* Prevent shrinking */
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.partner-logo img {
    height: 100px;
    /* Bigger logos */
    width: auto;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move by half since we duplicated content */
    }
}

/* --- Contact.css --- */
.contact-section {
    background-color: var(--color-surface);
    padding-bottom: 0;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.contact-desc {
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.2rem;
}

.contact-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.05);
    /* Slight transparent bg */
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-speed);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #777;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.2);
}

.contact-form button {
    align-self: flex-start;
    padding: 1rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--color-primary), #d84315);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-primary);
    color: #000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, background-color 0.3s;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--color-primary-hover);
    color: #fff;
}

.scroll-to-top.visible {
    display: flex;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form button:hover {
    background: linear-gradient(45deg, #d84315, var(--color-primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
}

.map-container {
    width: 100%;
    height: 350px;
    /* Fixed height for mobile */
    background-color: #333;
    border-radius: 8px;
    overflow: hidden;
}

.footer {
    background-color: #000;
    padding: 2rem 0;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-top: auto;
}

@media (min-width: 768px) {
    .contact-container {
        flex-direction: row;
    }

    .map-container {
        flex: 1;
        height: auto;
        /* Let flex take over height on desktop */
        min-height: 350px;
        /* But keep a minimum */
    }
}

/* --- ProductModal.css --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Darker backdrop */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: var(--color-surface);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    /* Allow max height */
    overflow-y: auto;
    /* Enable scroll if content overflows */
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: scaleUp 0.3s ease-out;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.close-btn:hover {
    color: var(--color-primary);
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-image-container {
    width: 100%;
    height: 300px;
    background-color: #fff;
    /* White bg for product image contrast */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.modal-details {
    padding: 2rem;
    color: var(--color-text);
}

.modal-brand {
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.modal-details h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #dcdcdc;
}

.modal-description {
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.modal-action-btn {
    width: 100%;
    text-align: center;
}

@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
    }

    .modal-image-container {
        width: 50%;
        height: auto;
        min-height: 400px;
    }

    .modal-details {
        width: 50%;
        padding: 3rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}