/* ==========================================================================
   TS Packaging — Global Stylesheet
   Consolidated from layouts/app.blade.php + page-specific <style> blocks
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme Tokens
   -------------------------------------------------------------------------- */
:root {
    --color-primary: #191970;
    --color-primary-shade: #101044;
    --color-primary-tint: #6a6aa8;
    --color-primary-soft: #eceef8;
    --color-accent: #ffb200;
    --color-accent-deep: #e09e00;
    --color-accent-soft: #fff7e0;
    --color-dark: #14142e;
    --color-dark-soft: #1e1e40;
    --color-neutral-900: #1b1b18;
    --color-neutral-600: #3e3e3a;
    --color-neutral-400: #706f6c;
    --color-neutral-200: #e3e3e0;
    --color-neutral-100: #ededec;
}

html,
body {
    font-family: "Oswald", sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
}

/* --------------------------------------------------------------------------
   2. Layout / Base
   -------------------------------------------------------------------------- */
.menu-transition {
    transition:
        opacity 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1),
        visibility 0.5s;
}

.menu-link-hover {
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}

.menu-link-hover::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: currentColor;
    transition: width 0.25s ease;
}

.menu-link-hover:hover::after {
    width: 100%;
}

body.menu-open {
    overflow: hidden;
}

#preloader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: white;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-img {
    transition: transform 0.4s ease;
}

.zoom-img:hover {
    transform: scale(1.02);
}

.skew-btn {
    clip-path: polygon(0% 0%, 100% 0%, 96% 100%, 0% 100%);
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.9rem;
    display: block;
    text-decoration: none;
}

.skew-btn b {
    font-weight: 700;
    float: right;
}

@keyframes scrollAnim {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* --------------------------------------------------------------------------
   3. Shared Hero (scroll indicator + entrance animations)
   -------------------------------------------------------------------------- */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.scroll-line {
    display: block;
    width: 2px;
    height: 50px;
    background: #ffb200;
    margin: 0 auto;
    animation: scrollAnim 1.5s infinite;
}

.hero-rise {
    opacity: 0;
    animation: heroRise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-zoom {
    transform: scale(1.1);
    will-change: transform;
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@media (prefers-reduced-motion: reduce) {
    .hero-rise {
        animation: none;
        opacity: 1;
    }

    .scroll-line {
        animation: none;
    }
}

/* --------------------------------------------------------------------------
   4. Home (index)
   -------------------------------------------------------------------------- */
.full-width-section {
    width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-scale {
    transform: scale(0.92);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.hero-rise.hero-rise-fill {
    background-image: linear-gradient(#ffb200, #ffb200);
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 0% 100%;
    animation:
        heroRise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        heroFill 1.2s ease forwards;
}

@keyframes heroFill {
    to {
        background-size: 100% 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .hero-rise,
    .hero-rise.hero-rise-fill {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }
}

/* --------------------------------------------------------------------------
   5. Products (business-segments)
   -------------------------------------------------------------------------- */
.product-media {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    box-shadow: 0 30px 60px -30px rgba(23, 23, 45, 0.45);
}

.product-media img {
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-media:hover img {
    transform: scale(1.05);
}

.number-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    height: 3.25rem;
    padding: 0 0.85rem;
    background: #ffb200;
    color: #191970;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
    box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.35);
}

.spec-card {
    background: #2b2a28;
    color: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.4);
}

.spec-block {
    padding: 1.5rem 1.75rem;
}

.spec-block + .spec-block {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.spec-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffb200;
    margin-bottom: 0.85rem;
}

.spec-title i {
    font-size: 0.9rem;
}

.spec-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.spec-list li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.spec-list li:last-child {
    margin-bottom: 0;
}

.spec-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 0.45rem;
    height: 0.45rem;
    background: #ffb200;
    transform: rotate(45deg);
}

.spec-capacity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(90deg, #ffb200, #e09e00);
    color: #191970;
    padding: 1.15rem 1.75rem;
    font-weight: 700;
}

.spec-capacity .value {
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   6. Nav Cards (products / in-house-lab)
   -------------------------------------------------------------------------- */
.nav-card {
    background: #2d2a2a;
    transition: all 0.25s ease;
}

.nav-card:hover {
    background: #ffb200;
    color: #191970;
    transform: translateY(-4px);
    box-shadow: 0 18px 30px -14px rgba(255, 178, 0, 0.55);
}

.nav-card .icon {
    color: #ffb200;
    transition: color 0.25s ease;
}

.nav-card:hover .icon {
    color: #191970;
}

/* --------------------------------------------------------------------------
   7. CEO Message
   -------------------------------------------------------------------------- */
.leadership-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.leadership-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.15);
}

.quote-mark {
    font-size: 5rem;
    line-height: 0.6;
    font-family: Georgia, serif;
}

.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .quote-mark {
        font-size: 3.5rem;
    }
}

/* --------------------------------------------------------------------------
   8. Certification
   -------------------------------------------------------------------------- */
.cert-card-horizontal {
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(255, 178, 0, 0.2);
}

.cert-card-horizontal:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 45px -15px rgba(0, 0, 0, 0.2);
    border-color: #ffb200;
}

.cert-details {
    background: linear-gradient(135deg, #fffdf9, #ffffff);
    padding: 1.8rem;
}

.cert-image-area {
    background: #fff7e0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 2rem;
    border-left: 1px solid #ffe2a8;
}

.cert-image-area img {
    max-height: 380px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    transition:
        transform 0.25s,
        box-shadow 0.25s;
    border: 2px solid #fff;
    background: white;
}

.cert-image-area img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
}

.badge-status {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .cert-image-area {
        min-height: 340px;
    }

    .cert-image-area img {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .cert-card-horizontal .grid {
        grid-template-columns: 1fr !important;
    }

    .cert-image-area {
        border-left: none;
        border-top: 1px solid #ffe2a8;
        min-height: 280px;
        padding: 1.5rem;
    }

    .cert-image-area img {
        max-height: 250px;
    }

    .cert-details {
        padding: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   9. Section Heading (shared)
   -------------------------------------------------------------------------- */
.section-heading-border {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    border-left: 8px solid #ffb200;
    padding-left: 1.5rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .section-heading-border {
        font-size: 2rem;
        padding-left: 1rem;
    }
}

/* --------------------------------------------------------------------------
   10. Gallery
   -------------------------------------------------------------------------- */
.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.95rem;
    border: none;
}

.filter-btn.active,
.filter-btn:hover {
    background: #191970;
    color: #fff;
}

@media (max-width: 768px) {
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
    break-inside: avoid;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0;
}

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

#lightbox.active {
    display: flex;
}

#lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

#lightbox .close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

#lightbox .close-lightbox:hover {
    transform: rotate(90deg);
}

#lightbox .lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 2rem;
    border-radius: 40px;
}

/* --------------------------------------------------------------------------
   11. Manufacturing
   -------------------------------------------------------------------------- */
.machine-table th {
    background: #19197014;
    font-weight: 600;
}

.pillar-card {
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    background: white;
    border-radius: 1.5rem;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
    border-color: #ffb200;
}

/* --------------------------------------------------------------------------
   12. Compliance
   -------------------------------------------------------------------------- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.cert-card {
    text-align: center;
    border-right: 3px solid #ffd876;
    padding: 0 1rem;
}

.cert-card:last-child {
    border-right: none;
}

@media (max-width: 768px) {
    .cert-card {
        border-right: none;
        border-bottom: 2px solid #ffd876;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}

.award-year-list .award-row {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #ffd876;
    padding: 1rem 0;
}

.award-year-list .year {
    width: 80px;
    font-weight: 600;
    font-size: 1.2rem;
}

.award-year-list .desc {
    flex: 1;
    font-weight: 400;
}

@media (max-width: 640px) {
    .award-year-list .year {
        width: 60px;
        font-size: 1rem;
    }
}

.full-container {
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .full-container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* --------------------------------------------------------------------------
   13. In-House Laboratory
   -------------------------------------------------------------------------- */
.obj-card {
    background: #2d2a2a;
    border-radius: 1.25rem;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.obj-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.45);
}

.equip-card {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid #e5e7eb;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.equip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -20px rgba(23, 23, 45, 0.25);
    border-color: #ffb200;
}

.equip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    background: #191970;
    color: #ffb200;
    font-size: 1.3rem;
    border-radius: 0.9rem;
    flex-shrink: 0;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.equip-card:hover .equip-icon {
    background: #ffb200;
    color: #191970;
}

@media (prefers-reduced-motion: reduce) {
    .obj-card,
    .equip-card,
    .nav-card {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */
.form-section-full {
    width: 100%;
    background: #ffffff;
}

.contact-big-heading {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    border-left: 8px solid #ffb200;
    padding-left: 1.5rem;
    margin: 0;
    line-height: 1.2;
}

.form-input-large,
.form-select-large,
.form-textarea-large {
    width: 100%;
    padding: 1rem 0.75rem;
    background: #f9f9f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s;
    font-size: 1.125rem;
    font-family: "Oswald", sans-serif;
}

.form-input-large:focus,
.form-select-large:focus,
.form-textarea-large:focus {
    border-color: #ffb200;
    box-shadow: 0 0 0 3px rgba(255, 178, 0, 0.2);
}

.form-label-large {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 1.1rem;
}

.submit-btn-large {
    background-color: #191970;
    color: #fff;
    transition: all 0.3s;
    font-size: 1.25rem;
    padding: 1rem 2rem;
    border-radius: 40px;
    font-weight: 500;
}

.submit-btn-large:hover {
    background-color: #ffb200;
    color: #191970;
    transform: scale(1.02);
}

.contact-card {
    transition: all 0.3s ease;
    background: #fff7e0;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.1);
}

.thankyou-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.thankyou-modal.active {
    display: flex;
}

.thankyou-content {
    background: white;
    max-width: 400px;
    width: 90%;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.inner-max-width {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

@media (max-width: 768px) {
    .contact-big-heading {
        font-size: 2.5rem;
        padding-left: 1rem;
    }

    .inner-max-width {
        padding: 2rem 1.5rem;
    }
}
