/* Global Variables */
:root {
    --primary-color: #003366;
    /* Deep Corporate Blue */
    --secondary-color: #c90000;
    /* Accent Red */
    --text-color: #333;
    --light-bg: #f4f4f4;
    --dark-bg: #222;
    --white: #fff;
    --transition: all 0.3s ease;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto 20px;
}

.section-title .line-white {
    background: var(--secondary-color);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: #a10000;
    transform: translateY(-2px);
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 110px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.nav-links ul {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-color);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.btn-contact {
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--primary-color) !important;
}

.btn-contact:hover {
    background: var(--primary-color);
    color: var(--white) !important;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    /* Partial width */
    max-width: 300px;
    height: 100%;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 80px 30px;
    transition: 0.4s ease;
}

.mobile-menu.open {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-link {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    /* Nav fixed overrides needed? Padding on body? No, hero is usually full */
}

.slider-container {
    height: 100%;
    position: relative;
}

.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;
    text-align: center;
}

.slide.active {
    opacity: 1;
}

.slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay for text readability */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.5s;
}

.slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.prev-slide,
.next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    font-size: 2rem;
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.prev-slide:hover,
.next-slide:hover {
    background: rgba(255, 255, 255, 0.5);
}

.prev-slide {
    left: 20px;
}

.next-slide {
    right: 20px;
}

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

.bg-light {
    background: var(--light-bg);
}

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

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.missions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mission-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--secondary-color);
}

.mission-box h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.mission-box i {
    color: var(--secondary-color);
}

.mission-box ul {
    font-size: 0.95rem;
    padding-left: 20px;
    list-style: disc;
}

/* Products Section */
.search-container {
    max-width: 600px;
    margin: 0 auto 50px;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-container input:focus {
    border-color: var(--primary-color);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 200px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #aaa;
}

.card-body {
    padding: 25px;
    text-align: center;
}

.card-body h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Workshop Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-placeholder {
    height: 250px;
    background: #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    border-radius: 5px;
    font-weight: 600;
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.info-item h4 {
    margin-bottom: 5px;
    color: #ccc;
    font-size: 0.9rem;
}

.info-item a:hover {
    color: var(--secondary-color);
}

.whatsapp-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #25D366;
    color: white;
    font-weight: bold;
    border-radius: 30px;
    margin-top: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.whatsapp-btn:hover {
    background: #128C7E;
}

.text-white {
    color: var(--white) !important;
}

.text-white h2 {
    color: var(--white) !important;
}

/* Footer */
footer {
    background: #111;
    color: #666;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

/* Floating Action Button */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1005;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.float-whatsapp:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

.float-phone {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 115px;
    /* 40px + 60px + 15px gap */
    right: 40px;
    background-color: #007bff;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1005;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.float-phone:hover {
    transform: scale(1.1);
    background-color: #0056b3;
}

/* Responsive */
@media (max-width: 992px) {
    .section h2 {
        font-size: 2rem;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

    .float-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Gallery Hover Cursor */
.gallery-item img {
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    z-index: 2001;
    /* Higher than lightbox if needed, or same level */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.product-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.product-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.product-modal-close:hover {
    color: #000;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 20px;
}

.modal-images img {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.modal-details h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.product-desc {
    margin-bottom: 30px;
    font-size: 1.05rem;
    color: #555;
    text-align: justify;
}

/* Product Table */
.table-responsive {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.product-table th,
.product-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.product-table th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.product-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.product-table tr:hover {
    background-color: #f1f1f1;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }

    .product-modal-content {
        margin: 10% auto;
        padding: 20px;
    }
}

/* Product Navigation */
.btn-back {
    display: inline-block;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-back:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.list-title {
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Map Styling & Layout */
.map-container {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 20px;
}

.map-container iframe {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee !important;
}

@media (max-width: 768px) {
    .float-phone {
        bottom: 85px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}