:root {
    --primary-color: #fca311;
    /* Industrial Orange/Yellow */
    --secondary-color: #14213d;
    /* Dark Blue/Black */
    --bg-dark: #1a1a1a;
    --bg-darker: #0d0d0d;
    --text-light: #e5e5e5;
    --text-grey: #a0a0a0;
    --font-main: 'Cairo', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Navbar */
.navbar {
    background-color: rgba(26, 26, 26, 0.95);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    /* Adjust based on navbar height */
    width: auto;
    object-fit: contain;
    border-radius: 50%;
    /* Since the logo is circular */
    border: 2px solid var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 700;
    transition: var(--transition);
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-darker) !important;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 900 !important;
}

.btn-primary:hover {
    background-color: #fff;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: url('assets/hero-bg.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 60px;
    /* Offset for fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
}

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(252, 163, 17, 0.4);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-grey);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: var(--transition);
}

.btn-cta:hover {
    background-color: var(--primary-color);
    color: var(--bg-darker);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(252, 163, 17, 0.3);
}

.cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-fb:hover {
    background-color: #1877F2;
    border-color: #1877F2;
    color: white;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

.btn-wa:hover {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-loc:hover {
    background-color: #DB4437;
    border-color: #DB4437;
    color: white;
    box-shadow: 0 5px 15px rgba(219, 68, 55, 0.3);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: block;
    /* Changed from inline-block to block */
    /* Removed potentially buggy centering hack */
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.dark-bg {
    background-color: var(--bg-darker);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Reduced from 300px to 250px for mobile */
    gap: 2rem;
}

.card {
    background-color: #242424;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    /* Ensure content is structured */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #e5e5e5;
    /* Explicit color */
}

.card p {
    color: var(--text-grey);
    font-size: 1rem;
}

/* Footer */
.footer {
    background-color: #000;
    padding: 3rem 0;
    border-top: 5px solid var(--primary-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background-color: #242424;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #000;
}

.copyright {
    text-align: center;
    color: var(--text-grey);
    border-top: 1px solid #333;
    padding-top: 1rem;
}

/* Mobile Responsiveness */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a1a1a;
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        border-bottom: 2px solid var(--primary-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
    }
}

/* Owner Section */
.owner-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    background-color: #242424;
    padding: 3rem;
    border-radius: 15px;
    border-right: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.owner-image {
    flex: 0 0 300px;
    position: relative;
}

.owner-image img {
    width: 300px;
    height: 300px;
    border-radius: 15px;
    object-fit: cover;
    object-position: top;
    /* Focus on the face */
    filter: contrast(1.1) brightness(1.05) sepia(0.1);
    border: 3px solid var(--primary-color);
    box-shadow: 10px 10px 0 rgba(252, 163, 17, 0.2);
    transition: var(--transition);
}

.owner-image:hover img {
    transform: translate(-5px, -5px);
    box-shadow: 15px 15px 0 rgba(252, 163, 17, 0.4);
}

.owner-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.owner-info .role {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: bold;
    display: inline-block;
    border-bottom: 2px solid #555;
    padding-bottom: 5px;
}

.owner-info .description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.owner-signature {
    font-size: 1.3rem;
    color: var(--text-grey);
    font-style: italic;
}

@media (max-width: 900px) {
    .owner-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 2rem;
    }

    .owner-image {
        flex: 0 0 auto;
        margin-bottom: 1rem;
    }

    .owner-image img {
        width: 250px;
        height: 250px;
        box-shadow: none;
        /* Simplify for mobile */
    }

    .owner-image:hover img {
        transform: none;
    }
}

/* Products Page Styles */
.page-header {
    background-color: #242424;
    padding: 120px 0 50px;
    /* Top padding for fixed navbar */
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.categories-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid #333;
    color: var(--text-grey);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(252, 163, 17, 0.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: #242424;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.product-img {
    height: 200px;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* If you have images, use this */
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-info .category {
    color: var(--text-grey);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-info .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.btn-product {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
}

.btn-product:hover {
    background-color: var(--primary-color);
    color: var(--bg-darker);
}

.placeholder-card {
    border: 2px dashed #444;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem;
    opacity: 0.7;
}