:root {
    --primary-blue: #0082CA;
    --navy-deep: #0B1521;
    --white: #FFFFFF;
    --glass-base: rgba(255, 255, 255, 0.95);
    --glass-accent: rgba(255, 255, 255, 0.4);
    --border-soft: rgba(0, 130, 202, 0.15);
    --text-main: #333333;
    --text-muted: #666666;
    --premium-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s ease-in-out;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--navy-deep);
}

/* Custom Utilities */
.bg-primary-blue {
    background-color: var(--primary-blue) !important;
}

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

.bg-navy-deep {
    background-color: var(--navy-deep) !important;
}

/* Page Header Background */
.page-header-bg {
    background-color: var(--primary-blue);
    /* Fallback */
    background-image: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.85)), url('../assets/Technoplast/plant/front-gate-day-view.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.page-header-products {
    background-color: var(--primary-blue);
    background-image: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.85)), url('../assets/Technoplast/plant/sample-display.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.page-header-infra {
    background-color: var(--primary-blue);
    background-image: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.85)), url('../assets/Technoplast/moulding/plant-inside-3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.page-header-contact {
    background-color: var(--primary-blue);
    background-image: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.85)), url('../assets/Technoplast/plant/admin-block.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* Section Spacing */
section {
    padding: 100px 0;
}

.py-100 {
    padding-top: 100px;
    padding-bottom: 100px;
}

.border-primary {
    border-color: var(--primary-blue) !important;
}

.border-primary-blue {
    border-color: var(--primary-blue) !important;
}

.btn-primary-custom {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition-speed);
}

.btn-primary-custom:hover {
    background-color: #006FB0;
    color: white;
}

.btn-primary-blue {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    transition: var(--transition-speed);
}

.btn-primary-blue:hover {
    background-color: #006FB0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 130, 202, 0.3);
}

/* Background Patterns */
.bg-geometric {
    background-image:
        radial-gradient(circle at 2px 2px, rgba(0, 130, 202, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

.bg-industrial-grid {
    background-image:
        linear-gradient(rgba(0, 130, 202, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 130, 202, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
}

/* Navbar Overhaul */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-speed);
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

.navbar.sticky-nav {
    padding: 0.6rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 130, 202, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    font-weight: 600;
    color: var(--navy-deep) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-speed);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue) !important;
}

/* Hero Section */
.hero-section {
    background: var(--navy-deep);
    color: white;
    padding: 160px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Slideshow Background Container */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Individual Slides with Ken Burns zoom animation */
.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 10s ease;
    transform: scale(1.1);
    z-index: 1;
}

/* Active Slide state */
.hero-slideshow .slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
}

/* Gradient Overlay above slideshow, below text content */
.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 130, 202, 0.75), rgba(0, 130, 202, 0.35));
    z-index: 2;
    pointer-events: none;
}

.hero-section.has-video {
    background: none;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* Logo Motif Background */
.logo-motif {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background-color: var(--primary-blue);
    opacity: 0.1;
    position: absolute;
    z-index: -1;
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue) !important;
    border-width: 2px !important;
    border-style: solid;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.grayscale-hover div {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    opacity: 0.6;
}

.grayscale-hover div:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Footer Styling */
.footer-section {
    background-color: #1a1d20;
    color: #adb5bd;
}

.footer-section h5 {
    color: white;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition-speed);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.social-icons a {
    color: white;
    font-size: 1.25rem;
    margin-right: 1rem;
    transition: var(--transition-speed);
}

.social-icons a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    background-color: #111315;
    padding: 1.5rem 0;
}

/* Timeline Styling Redesign - High Fidelity */
.timeline-container {
    position: relative;
    margin-left: 1.5rem;
    padding-left: 3.5rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom,
            transparent,
            var(--primary-blue) 15%,
            var(--primary-blue) 85%,
            transparent);
    border-radius: 2px;
}

.timeline-item {
    margin-bottom: 5rem;
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: -48px;
    /* Centered on the 4px line */
    top: 10px;
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    border: 4px solid var(--white);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 0 4px rgba(0, 130, 202, 0.15);
}

/* Marker Pulse Animation */
.timeline-item:hover .timeline-marker {
    animation: markerPulse 1.5s infinite;
}

@keyframes markerPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 130, 202, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 130, 202, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 130, 202, 0);
    }
}

.timeline-content {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-speed);
}

.timeline-item:hover .timeline-content {
    background: var(--white);
    transform: translateX(15px);
    box-shadow: var(--premium-shadow);
    border-color: var(--primary-blue);
}

.timeline-date {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: var(--navy-deep);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

/* Premium Component Overhaul */
.glass-card {
    background: var(--glass-base);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--premium-shadow);
    transition: var(--transition-speed);
}

.glass-card:hover {
    border-color: var(--primary-blue);
    border-width: 2px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

.premium-shadow {
    box-shadow: var(--premium-shadow);
    border-radius: 16px;
}

.premium-shadow:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

/* Typography Extensions */
.display-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.section-accent {
    width: 80px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-blue), #00A3FF);
    border-radius: 3px;
    margin: 2rem 0;
}

/* Responsive Overrides */
@media (max-width: 991px) {

    section,
    .py-100 {
        padding: 60px 0;
    }

    .display-title {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .navbar-collapse {
        margin-top: 1rem;
        background: white;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .hero-section {
        padding: 100px 0;
    }
}

@media (max-width: 576px) {
    .display-title {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-section .gap-3 {
        flex-direction: column;
    }
}

/* Product & Infrastructure Cards */
/* Product & Infrastructure Cards */
.feat-card {
    background: var(--white);
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-speed);
}

.feat-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
    border-width: 2px;
}

.feat-icon-box {
    width: 70px;
    height: 70px;
    background: rgba(0, 130, 202, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    font-size: 1.8rem;
    transition: var(--transition-speed);
}

.feat-card:hover .feat-icon-box {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Organization Chart Styling */
.org-chart-wrapper {
    position: relative;
    padding: 3rem;
}

.org-node-parent {
    min-width: 250px;
}

.org-connector-vertical {
    width: 2px;
    height: 40px;
    background-color: var(--navy-deep);
    opacity: 0.2;
}

.org-connector-horizontal {
    width: 60%;
    height: 2px;
    background-color: var(--navy-deep);
    opacity: 0.2;
    position: relative;
}

.org-connector-horizontal::before,
.org-connector-horizontal::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 20px;
    background-color: var(--navy-deep);
    top: 0;
}

.org-connector-horizontal::before {
    left: 0;
}

.org-connector-horizontal::after {
    right: 0;
}

.org-connector-vertical-up {
    width: 2px;
    height: 20px;
    background-color: var(--navy-deep);
    opacity: 0.2;
    margin-bottom: 0;
    /* Connects from top */
}

/* Navbar Dropdown Hover */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeInUp 0.3s ease;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.dropdown-item:active,
.dropdown-item.active {
    background-color: var(--primary-blue);
}

/* Customer Section Styling */
.customer-logo-card {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all var(--transition-speed);
}

.customer-logo-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(0, 130, 202, 0.1);
}

.customer-logo-card img {
    max-height: 85px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(0%);
    transition: filter var(--transition-speed);
}

.customer-logo-card:hover img {
    filter: grayscale(0%);
}

.company-badge {
    background: var(--white);
    border: 1px solid var(--border-soft);
    color: var(--navy-deep);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-speed);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.company-badge:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 130, 202, 0.2);
}

/* Product Gallery styling */
.product-gallery-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.product-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 130, 202, 0.12);
    border-color: var(--primary-blue);
}

.product-img-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

/* Contact Details Sub-cards */
.contact-sub-card {
    background: var(--white);
    border: 1px solid rgba(0, 130, 202, 0.12);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all var(--transition-speed);
}

.contact-sub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 130, 202, 0.06);
    border-color: var(--primary-blue);
}

.contact-sub-card a.map-link-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 130, 202, 0.05);
    color: var(--primary-blue);
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    transition: all var(--transition-speed);
    text-decoration: none;
    font-weight: 600;
}

.contact-sub-card a.map-link-pill:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.02);
}

.contact-info-list i {
    font-size: 1.05rem;
    width: 24px;
    display: inline-block;
    text-align: center;
}
.footer-section .registered-offices {
    color: #adb5bd;
}

/* Technoplast plant photo gallery */
.gallery-tabs .nav-link {
    border: 1px solid rgba(0, 130, 202, 0.25);
    color: var(--primary-blue) !important;
    border-radius: 50px;
    font-weight: 600;
    padding: 0.5rem 1.25rem !important;
}

.gallery-tabs .nav-link.active,
.gallery-tabs .nav-link.active:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff !important;
}

.plant-photo {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: zoom-in;
    aspect-ratio: 3 / 4;
    background: #e9eef3;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.plant-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.plant-photo:hover img {
    transform: scale(1.05);
}

.plant-photo figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.75rem 0.75rem 0.6rem;
    background: linear-gradient(transparent, rgba(0, 25, 50, 0.85));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

#galleryModal .modal-content {
    box-shadow: none;
}

/* Technocast plant video gallery */
.plant-video {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background: #0b1521;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.plant-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.plant-video-play {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 130, 202, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    pointer-events: none;
}

.plant-video figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.75rem 0.75rem 0.6rem;
    background: linear-gradient(transparent, rgba(0, 25, 50, 0.85));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Home page "Inside Our Plants" showcase: landscape tiles */
#inside-plants .plant-video,
#inside-plants .showcase-photo {
    aspect-ratio: 4 / 3;
}
