/* 
=========================================================
* JKD Plastics - Premium Corporate Stylesheet
* Brand Color Palette: Deep Royal Blue, Bright Cyan, Slate Dark, Light Slate
=========================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0b2d64;         /* Deep Navy Blue */
    --primary-rgb: 11, 45, 100;
    --secondary: #0ea5e9;       /* Bright Cyan Blue */
    --secondary-rgb: 14, 165, 233;
    --accent: #22c55e;          /* WhatsApp Green */
    --dark: #0f172a;            /* Slate 900 */
    --dark-muted: #1e293b;      /* Slate 800 */
    --light: #f8fafc;           /* Slate 50 */
    --light-muted: #f1f5f9;     /* Slate 100 */
    --gray: #64748b;            /* Slate 500 */
    --border: #e2e8f0;          /* Slate 200 */
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
}

/* Global Resets & Elements */
body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--dark-muted);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary);
}

/* Custom Selection Color */
::selection {
    background-color: var(--secondary);
    color: #fff;
}

/* Typography & Display Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 30%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, var(--secondary) 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Navigation Styles */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
    padding: 0.8rem 0;
}

.navbar-custom.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-custom.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-custom.scrolled .nav-link:hover,
.navbar-custom.scrolled .nav-link.active {
    color: var(--secondary) !important;
}

.navbar-custom.scrolled .navbar-brand {
    color: #fff !important;
}

.navbar-custom .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    color: var(--primary) !important;
}

.navbar-custom .navbar-brand span {
    color: var(--secondary);
}

.navbar-custom .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-muted) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    margin: 0 0.1rem;
    transition: var(--transition);
}

.navbar-custom .nav-link:hover {
    color: var(--secondary) !important;
    background-color: rgba(14, 165, 233, 0.08);
}

.navbar-custom .nav-link.active {
    color: #fff !important;
    background-color: var(--primary);
}

.navbar-custom.scrolled .nav-link.active {
    color: #fff !important;
    background-color: var(--secondary);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(11, 45, 100, 0.92), rgba(15, 23, 42, 0.95)), url('../images/hero_bg.svg') no-repeat center center;
    background-size: cover;
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    padding: 8rem 0 6rem 0;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--light), transparent);
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    z-index: 0;
}

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

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Custom Buttons */
.btn-premium {
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-premium-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, #0284c7 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.btn-premium-primary:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-premium-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-premium-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-premium-dark {
    background-color: var(--primary);
    color: #fff;
    border: none;
}

.btn-premium-dark:hover {
    background-color: var(--dark);
    color: #fff;
    transform: translateY(-2px);
}

/* Feature Cards & Sections */
.section-title {
    position: relative;
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-title.center {
    text-align: center;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.card-premium {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.card-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(14, 165, 233, 0.3);
}

.icon-box-premium {
    width: 60px;
    height: 60px;
    border-radius: 0.75rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card-premium:hover .icon-box-premium {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

/* Products Layout */
.product-card {
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(14, 165, 233, 0.3);
}

.product-img-wrapper {
    position: relative;
    background-color: #f8fafc;
    padding: 2rem;
    text-align: center;
    overflow: hidden;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrapper img {
    max-height: 220px;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    text-transform: uppercase;
}

.product-custom-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

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

.product-spec-table {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.product-spec-table td {
    padding: 0.25rem 0;
    border-bottom: none;
}

.product-spec-table td.spec-label {
    color: var(--gray);
    font-weight: 500;
    width: 45%;
}

.product-spec-table td.spec-value {
    color: var(--dark);
    font-weight: 600;
    text-align: right;
}

/* Manufacturing Timeline Workflow */
.timeline-workflow {
    position: relative;
    margin: 3rem 0;
}

.timeline-workflow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border);
    transform: translateY(-50%);
    z-index: 1;
}

@media (max-width: 991px) {
    .timeline-workflow::before {
        top: 0;
        bottom: 0;
        left: 30px;
        right: auto;
        width: 4px;
        height: 100%;
        transform: none;
    }
}

.workflow-step {
    position: relative;
    z-index: 2;
    background-color: var(--light);
}

.workflow-node {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fff;
    border: 4px solid var(--secondary);
    color: var(--primary);
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 991px) {
    .workflow-node {
        margin: 0;
        position: absolute;
        left: 2px;
        top: 0;
    }
    .workflow-content {
        margin-left: 80px;
        padding-bottom: 2rem;
    }
}

.workflow-step:hover .workflow-node {
    background-color: var(--secondary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(14, 165, 233, 0.15);
}

/* Industries We Serve Grid */
.industry-card {
    position: relative;
    height: 240px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.industry-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 15%, rgba(15, 23, 42, 0.4) 100%);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
}

.industry-card:hover .industry-card-overlay {
    background: linear-gradient(to top, rgba(11, 45, 100, 0.98) 30%, rgba(11, 45, 100, 0.6) 100%);
}

.industry-card-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.industry-card:hover .industry-card-desc {
    max-height: 80px;
    margin-top: 0.5rem;
}

/* Gallery Filters and Cards */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.btn-filter {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--dark-muted);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    transition: var(--transition);
}

.btn-filter:hover, .btn-filter.active {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 250px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-hover {
    position: absolute;
    inset: 0;
    background: rgba(11, 45, 100, 0.85);
    backdrop-filter: blur(4px);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: #fff;
    padding: 1.5rem;
}

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

/* Testimonials Carousel */
.testimonial-card {
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    margin: 1rem 0;
}

.testimonial-rating {
    color: #f59e0b;
    margin-bottom: 1rem;
}

.quote-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: rgba(14, 165, 233, 0.1);
    line-height: 1;
}

/* FAQ Accordion */
.faq-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: 0.75rem !important;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--dark);
    padding: 1.25rem 1.5rem;
    background-color: #fff;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(14, 165, 233, 0.05);
    color: var(--secondary);
    box-shadow: none;
}

.faq-accordion .accordion-body {
    background-color: #fff;
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 1.25rem 1.5rem;
}

/* Footer & Lead Generation Floating widgets */
.footer-custom {
    background-color: #0b1329;
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem 0;
    font-size: 0.92rem;
    border-top: 4px solid var(--secondary);
}

.footer-custom h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-custom h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 6px;
}

.footer-contact-info li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact-info i {
    color: var(--secondary);
    margin-top: 3px;
}

/* Floating Actions Area */
.floating-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-float {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
    transition: var(--transition);
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
}

.btn-float:hover {
    transform: translateY(-4px) scale(1.05);
    color: #fff;
}

.btn-whatsapp {
    background-color: var(--accent);
}

.btn-whatsapp::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: pulseFloat 2s infinite;
    z-index: -1;
}

.btn-call {
    background-color: var(--secondary);
}

.btn-inquire-sticky {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left top;
    z-index: 999;
    background-color: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: -4px 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-inquire-sticky:hover {
    background-color: var(--secondary);
    color: #fff;
}

@keyframes pulseFloat {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Contact Map and Styling */
.map-container {
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Info strip top bar */
.top-bar {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
    color: rgba(255, 255, 255, 0.9);
}

.top-bar a:hover {
    color: var(--secondary);
}

/* Quick Inquiry Modal Card */
.modal-content-custom {
    border-radius: 1.25rem;
    border: none;
    overflow: hidden;
}

.modal-header-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border: none;
    padding: 1.5rem;
}

/* Admin Dashboard layout tweaks */
.admin-sidebar {
    background-color: #0f172a;
    min-height: 100vh;
    color: #94a3b8;
}

.admin-sidebar .nav-link {
    color: #94a3b8;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    color: #fff;
    background-color: #1e293b;
    border-left-color: var(--secondary);
}

.admin-card {
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.admin-login-body {
    background: linear-gradient(135deg, #0b1329 0%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    color: #f8fafc;
}
