/* 
   Jayvir Paper Industries - Design System & Global Styles
   Pure CSS for a modern, responsive, industrial-chic website
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Custom Properties / Design Tokens */
:root {
    /* Color Palette */
    --clr-primary: #0f172a;
    /* Deep slate/navy for structure and strength */
    --clr-primary-light: #1e293b;
    /* Lighter slate for cards/header */
    --clr-accent: #047AAC;
    /* Brand logo royal blue (Primary Accent) */
    --clr-accent-hover: #035e84;
    /* Darker blue for hover states */
    --clr-accent-light: #e0f2fe;
    /* Light blue background tint */
    --clr-bg: #f8fafc;
    /* Very light slate-blue background */
    --clr-card-bg: #ffffff;
    /* Pure white for content containers */
    --clr-text: #475569;
    /* Mid slate for high-readability body copy */
    --clr-text-light: #94a3b8;
    /* Light slate for captions/borders */
    --clr-border: #e2e8f0;
    /* Soft borders */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout Details */
    --container-max-width: 1280px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    --shadow-accent: 0 10px 20px -3px rgba(4, 122, 172, 0.25);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--clr-text);
    background-color: var(--clr-bg);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--clr-primary);
    line-height: 1.25;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

.title-left-accent {
    position: relative;
    padding-bottom: 1rem;
    font-size: 2.25rem;
    color: var(--clr-primary);
}

.title-left-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--clr-accent);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-sm);
}

ul,
ol {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

button {
    cursor: pointer;
    background: none;
}

/* Core Layout & Utility Classes */
.mobile-only {
    display: none !important;
}

.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-dark {
    background-color: var(--clr-primary);
    color: #ffffff;
}

.section-dark h2,
.section-dark h3 {
    color: #ffffff;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--clr-accent);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--clr-text);
}

.section-dark .section-header p {
    color: var(--clr-text-light);
}

/* Flex and Grid Utilities */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

/* Text Alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Text Colors */
.text-accent {
    color: var(--clr-accent) !important;
}

.text-muted {
    color: var(--clr-text-light);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
}

.btn-primary {
    background-color: var(--clr-accent);
    color: #ffffff;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -5px rgba(180, 83, 9, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
}

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-white-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-white-outline:hover {
    background-color: #ffffff;
    color: var(--clr-primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* Header & Glassmorphism Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all var(--transition-normal);
}

.header-scrolled {
    padding: 0.5rem 0;
    background-color: #ffffff;
    border-bottom-color: rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-md);
}

.header-scrolled .nav-link {
    color: var(--clr-primary-light);
}

.header-scrolled .logo-text {
    color: var(--clr-primary);
}

.header-scrolled .nav-link.active,
.header-scrolled .nav-link:hover {
    color: var(--clr-accent);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    transition: padding var(--transition-normal);
}

.header-scrolled .nav-container {
    padding: 0.4rem 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-hover) 100%);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

.logo-img {
    height: 85px;
    width: auto;
    object-fit: contain;
    border-radius: 0;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    transition: height var(--transition-normal);
}

.header-scrolled .logo-img {
    height: 62px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--clr-primary);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--clr-text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--clr-primary-light);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-accent);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--clr-accent);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--clr-primary);
    border-radius: 3px;
    transition: all var(--transition-fast);
}

.header-scrolled .mobile-menu-toggle span {
    background-color: var(--clr-primary);
}

/* Hero Banner Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    background-color: var(--clr-primary);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-slow) ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 0.35;
    /* overlay strength controlled by opacity since we stack above black */
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    color: #ffffff;
    padding-top: 5rem;
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--clr-accent);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-tagline::before {
    content: '';
    width: 30px;
    height: 2px;
    background-color: var(--clr-accent);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.15;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--clr-text-light);
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* Feature/Counter cards list */
.badge-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.badge-item {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

/* Info Overview / Card Grid */
.card {
    background-color: var(--clr-card-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--clr-accent);
    transition: height var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(217, 119, 6, 0.15);
}

.card:hover::before {
    height: 100%;
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--clr-accent-light);
    color: var(--clr-accent);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.card:hover .card-icon {
    background-color: var(--clr-accent);
    color: #ffffff;
    transform: scale(1.05);
}

.card h3 {
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--clr-text);
}

/* About Us Home block */
.about-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-teaser-img {
    position: relative;
}

.about-teaser-img::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 4px solid var(--clr-accent);
    border-radius: var(--border-radius-md);
    z-index: 1;
}

.about-teaser-img img {
    position: relative;
    z-index: 2;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
}

.about-teaser-badge {
    position: absolute;
    bottom: -10px;
    left: 40px;
    background-color: var(--clr-primary);
    color: #ffffff;
    padding: 1.5rem 2.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border-left: 5px solid var(--clr-accent);
}

.about-teaser-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-accent);
    line-height: 1;
    font-family: var(--font-heading);
}

.about-teaser-badge .text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stats Counter Section */
.stats-section {
    background-color: var(--clr-primary-light);
    color: #ffffff;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 2rem;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--clr-accent);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Product Section - Homepage */
.product-showcase-grid {
    grid-template-columns: repeat(4, 1fr);
}

.product-card {
    background-color: var(--clr-card-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.product-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform var(--transition-slow);
}

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

.product-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--clr-primary);
}

.product-card-content p {
    font-size: 0.9rem;
    color: var(--clr-text);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.product-card-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--clr-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.product-card-link svg {
    transition: transform var(--transition-fast);
}

.product-card:hover .product-card-link svg {
    transform: translateX(4px);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 23, 42, 0.08);
}

/* Sectors served section */
.sector-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.sector-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: var(--clr-accent);
}

.sector-icon {
    font-size: 2.5rem;
    color: var(--clr-accent);
    margin-bottom: 1rem;
}

.sector-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

/* Inquiry Banner CTA */
.cta-banner {
    position: relative;
    padding: 5rem 0;
    background-color: var(--clr-accent);
    color: #ffffff;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    border-radius: 50%;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer Styles */
.footer {
    background-color: #ffffff;
    color: var(--clr-text);
    padding: 5rem 0 2rem 0;
    border-top: 1px solid var(--clr-border);
}

.footer-grid {
    grid-template-columns: 2fr 1fr 1fr 2fr;
    margin-bottom: 4rem;
}

.footer-info .logo-text {
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
}

.footer-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--clr-text);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 38px;
    height: 38px;
    background-color: var(--clr-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--clr-accent);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer h4 {
    color: var(--clr-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--clr-accent);
}

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

.footer-links a {
    font-size: 0.95rem;
    color: var(--clr-text);
}

.footer-links a:hover {
    color: var(--clr-accent);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--clr-text);
}

.footer-contact li svg {
    flex-shrink: 0;
    color: var(--clr-accent);
    margin-top: 0.2rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--clr-text-light);
}

.footer-bottom p {
    margin: 0;
}

/* Page Header (About, Products, etc.) */
.page-hero {
    background-color: var(--clr-primary);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 450px;
    padding-top: 110px;
    box-sizing: border-box;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/hero_factory.png');
    background-size: cover;
    background-position: center center;
    opacity: 0.15;
}

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

.page-hero h1 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--clr-text-light);
}

.breadcrumb a:hover {
    color: var(--clr-accent);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
}

/* About Page Details */
.profile-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
}

.profile-text h3 {
    margin: 1.5rem 0 1rem 0;
    color: var(--clr-primary);
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--clr-accent);
}

.profile-quote {
    background-color: var(--clr-accent-light);
    color: var(--clr-accent-hover);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    font-style: italic;
    font-weight: 500;
    margin: 2rem 0;
}

.sidebar-card {
    background-color: var(--clr-primary-light);
    color: #ffffff;
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.sidebar-card h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.sidebar-feature-list li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.sidebar-feature-list svg {
    color: var(--clr-accent);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.vision-mission-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 4rem;
}

.vision-card {
    background-color: var(--clr-card-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.vision-card h3 {
    margin-bottom: 1rem;
}

/* Timeline Layout */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--clr-border);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 2rem 3rem;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #ffffff;
    border: 4px solid var(--clr-accent);
    top: 36px;
    border-radius: 50%;
    z-index: 1;
}

.left-item {
    left: 0;
    text-align: right;
}

.right-item {
    left: 50%;
}

.right-item::after {
    left: -10px;
}

.timeline-content {
    padding: 1.5rem;
    background-color: var(--clr-card-bg);
    position: relative;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clr-border);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--clr-accent);
    margin-bottom: 0.5rem;
}

/* Products Page Dynamic Filters */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    background-color: #ffffff;
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--clr-accent);
    color: #ffffff;
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-accent);
}

.product-detail-card {
    background-color: var(--clr-card-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-detail-img {
    height: 100%;
    min-height: 400px;
    background-color: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.product-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-detail-card:hover .product-detail-img img {
    transform: scale(1.04);
}

.product-detail-content {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--clr-accent);
    margin-bottom: 0.75rem;
}

.product-detail-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.product-features-list {
    margin: 2rem 0;
}

.product-features-list li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}

.product-features-list svg {
    color: var(--clr-accent);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Infrastructure Page details */
.infra-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.infra-gallery-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    height: 380px;
}

.infra-gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.infra-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.infra-gallery-card:hover img {
    transform: scale(1.06);
}

.infra-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0) 100%);
    color: #ffffff;
    z-index: 2;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.infra-gallery-card:hover .infra-gallery-overlay {
    background: linear-gradient(to top, rgba(4, 122, 172, 0.95) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.infra-gallery-overlay h4 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.infra-gallery-overlay p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .infra-gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .infra-gallery-card {
        height: 320px;
    }
}

.quality-parameters {
    margin-top: 5rem;
}

/* Contact Us Layout */
.contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info-panel {
    background-color: var(--clr-primary-light);
    color: #ffffff;
    padding: 3rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.contact-info-panel h3 {
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.contact-info-panel p {
    color: var(--clr-text-light);
    margin-bottom: 2.5rem;
}

.contact-details-list li {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--clr-accent);
    flex-shrink: 0;
}

.contact-info-panel .contact-icon-box {
    color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.1);
}

.contact-text-box h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-text-box p {
    color: var(--clr-text-light);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Contact Form styling */
.contact-form-card {
    background-color: #ffffff;
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius-md);
    padding: 3.5rem;
    box-shadow: var(--shadow-sm);
}

.contact-form-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.contact-form-card p {
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius-sm);
    background-color: var(--clr-bg);
    color: var(--clr-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 16px;
    padding-right: 3rem;
}

.form-control:focus {
    border-color: var(--clr-accent);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Form success/error messages */
.form-feedback {
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.form-feedback.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-feedback.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Map Iframe Wrapper */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clr-border);
    margin-top: 4rem;
}

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

/* Animations with Intersection Observer */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive Media Queries */
@media (max-width: 1100px) {
    .product-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 968px) {
    .mobile-only {
        display: inline-flex !important;
    }

    .header-cta {
        display: none !important;
    }

    h1 {
        font-size: 2.5rem;
    }

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

    .page-hero {
        min-height: 380px;
        padding-top: 90px;
    }

    h2 {
        font-size: 1.85rem;
    }

    .section {
        padding: 4rem 0;
    }

    /* Header adjustments */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--clr-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        transition: right var(--transition-normal);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        color: #ffffff;
        font-size: 1.25rem;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Navigation toggle active state */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: #ffffff !important;
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: #ffffff !important;
    }

    /* Layout adjustments */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        padding-top: 6rem;
    }

    .hero-tagline {
        justify-content: center;
    }

    .hero-tagline::before {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-teaser {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .product-detail-card {
        grid-template-columns: 1fr;
    }

    .product-detail-img {
        min-height: 250px;
        height: 250px;
    }

    .product-detail-content {
        padding: 2rem;
    }

    .product-detail-content h2 {
        font-size: 1.75rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item::after {
        left: 21px;
        right: auto;
    }

    .left-item,
    .right-item {
        left: 0;
    }

    .infra-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info-panel {
        padding: 2rem;
    }

    .contact-form-card {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .product-showcase-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
        margin-top: 2rem;
        gap: 1.5rem;
    }

    .hero {
        height: auto;
        min-height: 500px;
        padding: 7.5rem 0 4rem 0;
    }

    .hero-content {
        padding-top: 0;
    }

    .filter-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin-bottom: 2.5rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .filter-btn {
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
        text-align: center;
        width: 100%;
        display: block;
        box-sizing: border-box;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 3rem 0;
    }

    h2 {
        font-size: 1.65rem;
    }

    .title-left-accent {
        padding-bottom: 0.75rem;
    }

    .title-left-accent::after {
        width: 45px;
        height: 3px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

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

    .page-hero {
        min-height: 300px;
        padding-top: 80px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 3rem 0 2rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        font-size: 0.78rem;
    }

    .about-teaser-badge {
        left: 20px;
        padding: 1rem 1.5rem;
    }

    .vision-card {
        padding: 1.75rem;
    }

    .product-detail-content {
        padding: 1.25rem;
    }

    .product-detail-content h2 {
        font-size: 1.45rem;
        margin-bottom: 0.75rem;
    }

    .product-tag {
        font-size: 0.72rem;
        letter-spacing: 1px;
        margin-bottom: 0.5rem;
    }

    .contact-info-panel {
        padding: 1.5rem;
    }

    .contact-form-card {
        padding: 1.5rem;
    }

    .contact-details-list li {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 1rem;
    }

    .logo-img {
        height: 52px;
    }

    .header-scrolled .logo-img {
        height: 44px;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .hero-tagline {
        font-size: 0.8rem;
    }

    .filter-btn {
        padding: 0.65rem 0.4rem;
        font-size: 0.78rem;
    }
}