:root {
    --primary-color: #006064;
    /* Deep Cyan/Teal */
    --secondary-color: #00bcd4;
    /* Brighter Cyan */
    --accent-color: #ffca28;
    /* Amber for highlights */
    --text-dark: #263238;
    --text-light: #eceff1;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --sidebar-width: 250px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Sidebar --- */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-color) 0%, #00363a 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    z-index: 1000;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed) ease;
}

.logo h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.8;
    display: block;
    margin-top: -5px;
}

.nav-links {
    margin-top: -2rem;
}

.nav-links li {
    margin-bottom: 1rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all var(--transition-speed);
    font-weight: 500;
}

.nav-links a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    transform: translateX(5px);
}

.sidebar-footer p {
    font-size: 0.8rem;
    opacity: 0.6;
    text-align: center;
}

/* --- Main Content --- */
main {
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-speed) ease;
}

section {
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Home Section --- */
#home {
    background: url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    position: relative;
    color: var(--white);
    align-items: flex-start;
    justify-content: center;
    padding-left: 10%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 96, 100, 0.9) 0%, rgba(0, 96, 100, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    animation: fadeIn Up 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 202, 40, 0.4);
}

/* --- About Section --- */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #546e7a;
}

.placeholder-img {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- Vision Section --- */
#vision {
    background-color: var(--white);
}

.vision-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
}

.vision-card:hover {
    transform: translateY(-10px);
}

.icon-large {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.vision-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.vision-card p {
    font-size: 1.3rem;
    font-style: italic;
    color: #546e7a;
}

/* --- Mission Section --- */
.mission-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed);
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-top-color: var(--secondary-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card p {
    color: #78909c;
}

/* --- Contact Section --- */
#contact {
    background-color: var(--text-dark);
    color: var(--white);
}

#contact .section-title {
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1.5rem;
    font-size: 1.2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

/* --- Mobile Toggle --- */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- Sustainability Section (V2) --- */
#sustainability .text-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2e7d32;
}

/* --- Certifications (V2) --- */
.fa-certificate,
.fa-shield-alt,
.fa-award {
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.fa-certificate:hover,
.fa-shield-alt:hover,
.fa-award:hover {
    transform: scale(1.2);
    color: var(--accent-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }

    #sidebar {
        width: 250px;
        transform: translateX(-100%);
    }

    #sidebar.active {
        transform: translateX(0);
    }

    main {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .content-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-wrapper {
        padding: 1.5rem;
    }

    #home {
        padding-left: 2rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Products Section --- */
.product-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.product-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.stock-filter {
    display: flex;
    align-items: center;
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--secondary-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
}

.image-container {
    position: relative;
}

.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
}

.stock-badge.in-stock {
    background-color: #4CAF50;
}

.stock-badge.out-of-stock {
    background-color: #f44336;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.request-btn,
.call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.request-btn {
    background: var(--primary-color);
    color: var(--white);
}

.request-btn:hover {
    background: #004d51;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 96, 100, 0.3);
}

.call-btn {
    background: #fff8e1;
    color: #e65100;
    border: 1.5px solid #ffcc80;
}

.call-btn:hover {
    background: #ffe0b2;
    color: #bf360c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.2);
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close-modal:hover {
    color: var(--text-dark);
}

/* Modal Form Inputs Override */
#orderForm input,
#orderForm textarea {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid #ddd;
}

#orderForm input:focus,
#orderForm textarea:focus {
    background: var(--white);
    border-color: var(--primary-color);
}

/* Toast Notification */
.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 4000;
    left: 50%;
    bottom: 30px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}