/* ==========================================================================
   ROYAL FILAMENTS LLP - Professional Industrial Theme
   ========================================================================== */

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

:root {
    /* Industrial Color Palette */
    --primary-blue: #0B2545;
    /* Deep Navy */
    --secondary-blue: #13315C;
    /* Medium Navy */
    --tertiary-blue: #134074;
    /* Lighter Navy/Steel */

    --accent-orange: #F26419;
    /* Safety/Industrial Orange */
    --accent-yellow: #F6AA1C;
    /* Warning/Energetic Yellow */

    --text-main: #333333;
    /* Dark Gray for Body */
    --text-light: #555555;
    /* Medium Gray for Subtext */
    --text-muted: #888888;

    --bg-white: #FFFFFF;
    --bg-light: #F4F7F6;
    /* Off-white/slate */
    --bg-dark: #0B2545;

    --border-color: #E2E8F0;

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

    /* Shadows */
    --shadow-soft: 0 10px 30px -10px rgba(11, 37, 69, 0.05);
    --shadow-heavy: 0 20px 40px -15px rgba(11, 37, 69, 0.1);
    --shadow-hover: 0 30px 60px -20px rgba(11, 37, 69, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--bg-white);
}

.bg-dark h2,
.bg-dark h3 {
    color: var(--bg-white);
}

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

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
    background-color: var(--secondary-blue);
    color: #FFFFFF;
    font-size: 0.85rem;
    padding: 12px 0;
    font-weight: 600;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar.hidden {
    max-height: 0;
    padding: 0;
    opacity: 0;
    border: none;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links,
.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-links span,
.top-bar-contact a {
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.top-bar-contact a:hover {
    color: var(--accent-yellow);
    transform: translateY(-1px);
}

.top-bar i {
    color: var(--accent-orange);
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* ==========================================================================
   Navigation (Refined)
   ========================================================================== */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10001;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow));
    width: 0%;
    transition: width 0.1s ease;
}

site-header {
    display: block;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 10000;
    /* Ensure it stays above everything */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 40px rgba(11, 37, 69, 0.08);
}

.main-header.scrolled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-orange) 50%, transparent 100%);
    opacity: 0.8;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 95px;
    gap: 2rem;
    transition: all 0.4s ease;
}

.main-header.scrolled .nav-container {
    height: 70px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    flex-wrap: nowrap;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo img {
    height: 55px;
    transition: height 0.4s ease;
}

.main-header.scrolled .logo img {
    height: 45px !important;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.4s ease;
}

.main-header.scrolled .logo-title {
    font-size: 1.1rem;
}

/* Mobile Side Only */
.mobile-only {
    display: none;
}

@media (max-width: 992px) {
    .mobile-only {
        display: block;
    }
}

.main-nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.main-nav a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary-blue);
    padding: 0.6rem 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-orange);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    opacity: 1;
    bottom: -2px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-orange);
}

.nav-cta .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0.8rem;
    z-index: 10002;
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 2px solid transparent;
    text-align: center;
}

.btn:hover i {
    transform: translateX(4px);
}

.btn i {
    transition: transform 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: #d65510;
    /* Darker orange */
    color: var(--bg-white);
    box-shadow: 0 8px 15px rgba(242, 100, 25, 0.3);
    /* Glowing shadow */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-blue);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--tertiary-blue);
    color: var(--bg-white);
    box-shadow: 0 8px 15px rgba(19, 49, 92, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--bg-white);
    color: var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-blue);
}

/* Sticky Right CTA */
.sticky-cta {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: right bottom;
    background-color: var(--accent-orange);
    color: var(--bg-white);
    padding: 1rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 2px;
    z-index: 1001;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sticky-cta:hover {
    background-color: #d65510;
    color: #fff;
    padding-bottom: 2rem;
    /* creates a pull out effect */
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-premium {
    position: relative;
    color: var(--bg-white);
    padding: 12rem 0 10rem 0;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
    animation: slowZoom 20s infinite alternate ease-in-out;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 37, 69, 0.85) 0%, rgba(11, 37, 69, 0.6) 50%, rgba(19, 49, 92, 0.9) 100%);
    z-index: 1;
}

/* Glassmorphism for sub-info */
.hero-features {
    margin-top: 4rem;
    display: flex;
    gap: 3rem;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    flex-wrap: wrap;
}

.hero-feature-item {
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-feature-item i {
    color: var(--accent-orange);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 10px rgba(242, 100, 25, 0.4));
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-premium .container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tag {
    display: inline-block;
    background: rgba(242, 100, 25, 0.15);
    border: 1px solid rgba(242, 100, 25, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--accent-orange);
    padding: 0.6rem 1.4rem;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(242, 100, 25, 0.1);
}

.hero-premium h1 {
    font-size: clamp(2.5rem, 8vw, 4.8rem);
    color: var(--bg-white);
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    font-weight: 900;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-premium p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3.5rem;
    max-width: 850px;
    font-weight: 400;
    line-height: 1.6;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    opacity: 0.8;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-orange);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 2s infinite ease-in-out;
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

@keyframes scrollMouse {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 25px;
        opacity: 0;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(242, 100, 25, 0.3);
}

.back-to-top i {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.cert-icon {
    font-size: 3.5rem;
    color: var(--accent-orange);
    margin-bottom: 2rem;
    display: inline-block;
    transition: all 0.5s ease;
}

.card:hover .cert-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 10px 15px rgba(242, 100, 25, 0.2));
}

/* ==========================================================================
   Structural Layouts & Grids
   ========================================================================== */
.grid {
    display: grid;
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .grid {
        gap: 1.5rem;
    }
}

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

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

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

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

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

.section-title p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards (More Premium Look) */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 3rem 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-bottom: 4px solid transparent;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Smoother hover */
}

.card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    /* Deeper shadow */
    border-bottom-color: var(--accent-orange);
    transform: translateY(-8px);
}

.card-icon {
    font-size: 3rem;
    color: var(--secondary-blue);
    margin-bottom: 1.8rem;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.card p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Dark Cards */
.card-dark {
    background: var(--secondary-blue);
    color: var(--bg-white);
    border: none;
    padding: 3rem;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(11, 37, 69, 0.15);
}

.card-dark h3 {
    color: var(--bg-white);
}

.card-dark p {
    color: rgba(255, 255, 255, 0.8);
}

.card-dark .card-icon {
    color: var(--accent-yellow);
}

/* ==========================================================================
   Premium Product Grid
   ========================================================================== */
.premium-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .premium-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 650px) {
    .premium-product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.product-card-premium {
    position: relative;
    border-radius: 16px;
    background: var(--bg-white);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 37, 69, 0.04);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(11, 37, 69, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(11, 37, 69, 0.12);
    border-color: rgba(242, 100, 25, 0.3);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 90%;
    /* Defines aspect ratio */
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.product-img-wrapper img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 75%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.1));
}

.product-card-premium:hover .product-img-wrapper img {
    transform: translate(-50%, -50%) scale(1.1);
}

.product-content-premium {
    padding: 2rem 1.8rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content-premium h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--primary-blue);
    font-weight: 800;
    line-height: 1.3;
}

.product-content-premium p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-orange);
    color: var(--bg-white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 10;
    box-shadow: 0 6px 15px rgba(242, 100, 25, 0.3);
    backdrop-filter: blur(5px);
}


/* ==========================================================================
   Tables & Forms
   ========================================================================== */
.industrial-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    overflow: hidden;
}

.industrial-table th,
.industrial-table td {
    padding: 1.5rem 1.8rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.industrial-table th {
    background: #f8fafc;
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 1.05rem;
}

.industrial-table td {
    color: var(--text-main);
}

.industrial-table tr:hover {
    background: #fcfcfd;
}

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

.form-control {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    background: #fff;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(19, 49, 92, 0.1);
}

/* ==========================================================================
   Footer (Improved Layout)
   ========================================================================== */
.main-footer {
    background-color: #051429;
    /* Ultra dark navy */
    color: rgba(255, 255, 255, 0.7);
    padding: 6rem 0 2rem;
}

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

.footer-heading {
    color: var(--bg-white);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 800;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-yellow);
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--accent-orange);
    margin-top: 5px;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.vibrant-credits {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.beating-heart {
    color: #ff4d4d;
    margin: 0 4px;
    display: inline-block;
    animation: heartBeat 1.5s infinite ease-in-out;
}

.vibrant-link {
    color: var(--accent-yellow) !important;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.vibrant-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-orange));
    transition: width 0.3s ease;
}

.vibrant-link:hover {
    color: var(--bg-white) !important;
    text-shadow: 0 0 10px rgba(246, 170, 28, 0.4);
}

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

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.25);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.2);
    }
}

/* ==========================================================================
   Page Headers (Internal Pages)
   ========================================================================== */
.page-header {
    background: var(--bg-dark);
    color: var(--bg-white);
    padding: 7rem 0 5rem;
    text-align: center;
    border-bottom: 5px solid var(--accent-orange);
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.page-header p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

/* Industrial Responsive Grid Fixes */
.responsive-grid-card {
    height: 100%;
}

.form-container-premium {
    background: var(--bg-white);
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-heavy);
}

@media (max-width: 768px) {
    .form-container-premium {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Responsive Design (Fully Optimized)
   ========================================================================== */

/* Tablet & Smaller Desktop */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .nav-container {
        padding: 0 1rem;
    }

    .main-nav {
        gap: 1.5rem;
    }
}

/* Mobile & Tablet Portrait */
@media (max-width: 992px) {

    /* Navbar handling */
    .mobile-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    /* Hide in header, rely on sticky */

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(11, 37, 69, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 10000;
        transform: translateX(100%);
        visibility: hidden;
    }

    .main-nav.active {
        transform: translateX(0);
        visibility: visible;
    }

    .main-nav a {
        color: var(--bg-white);
        font-size: 2rem;
        padding: 0.5rem;
        width: auto;
        text-align: center;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a:hover,
    .main-nav a.active {
        background: transparent;
        color: var(--accent-orange);
        transform: scale(1.1);
    }

    .hero-premium {
        padding: 10rem 0 6rem 0;
    }

    .hero-premium h1 {
        font-size: 3rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

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

/* Prevent scroll when menu is active */
body.menu-open {
    overflow: hidden;
}

/* Mobile Phones */

/* ==========================================================================
   PREMIUM ANIMATIONS & HOVER EFFECTS (ADDED)
   ========================================================================== */

/* 3D Card effect on Hover */
.card,
.card-dark,
.industrial-table {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

.card:hover,
.card-dark:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(11, 37, 69, 0.25);
    z-index: 10;
}

.card-icon i {
    transition: all 0.4s ease;
}

.card:hover .card-icon i,
.card-dark:hover .card-icon i {
    transform: scale(1.2) rotate(5deg);
    color: var(--accent-orange);
}

/* Image wrappers for smooth zoom */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.img-hover-zoom img {
    transition: transform 0.8s ease;
    display: block;
    width: 100%;
}

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

/* Form effects */
.form-control {
    border: 2px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.form-control:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(11, 37, 69, 0.1);
}

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

/* Smooth Navigation Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

/* Fix spacing around site elements */
site-header {
    display: block;
    z-index: 9999;
    position: relative;
}

site-footer {
    display: block;
    width: 100%;
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr !important;
    }

    .top-bar {
        padding: 4px 0 !important;
    }

    .top-bar .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.2rem 0.6rem;
        padding: 0 0.5rem;
    }

    .top-bar-links,
    .top-bar-contact {
        width: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.2rem 0.6rem;
    }

    .top-bar-links span,
    .top-bar-contact a {
        margin: 0 !important;
        font-size: 0.68rem;
        /* Slightly smaller for maximum compression */
        display: flex;
        align-items: center;
        width: auto;
        padding: 2px 0;
    }

    .top-bar i {
        margin-right: 3px !important;
        font-size: 0.75rem !important;
    }

    .nav-container {
        height: 60px;
        /* Even shorter */
        gap: 0.5rem;
    }

    .main-header .container {
        padding: 0 1rem;
    }

    .logo-title {
        display: inline;
        font-size: 1rem;
    }

    .logo img {
        height: 38px !important;
    }

    .hero-premium h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .hero-premium p {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .hero-premium {
        padding: 4rem 0 3rem;
        /* Moved up significantly */
        min-height: auto;
    }

    .page-header {
        padding: 6rem 0 3rem;
    }

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

    .section {
        padding: 4rem 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .card,
    .card-dark,
    .form-container-premium {
        padding: 2rem 1.25rem !important;
    }

    .card h2,
    .form-container-premium h2 {
        font-size: 1.75rem !important;
    }

    .card strong,
    .card h4 {
        word-break: break-all;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .sticky-cta {
        transform: none;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        border-radius: 0;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .industrial-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .industrial-table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .hero-premium h1 {
        font-size: 1.8rem;
    }

    .logo-title {
        display: inline;
        font-size: 0.9rem;
    }
}

/* Application List Styles */
.application-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.application-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.05rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.application-list li i {
    color: var(--accent-orange);
    font-size: 0.9rem;
}

.card:hover .application-list li {
    transform: translateX(5px);
}

.category-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    opacity: 0.05;
    font-family: var(--font-heading);
    transition: all 0.4s ease;
    pointer-events: none;
}

.card:hover .category-number {
    opacity: 0.2;
    transform: scale(1.1);
    color: var(--accent-orange);
}

/* ==========================================================================
   Certification Page Specific Styles
   ========================================================================== */
.certification-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    position: relative;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 37, 69, 0.12);
    border-color: var(--accent-orange);
}

.iso-badge-wrapper {
    width: 140px;
    height: 140px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
    padding: 15px;
    border: 1px solid #edf2f7;
    transition: transform 0.3s ease;
}

.certification-card:hover .iso-badge-wrapper {
    transform: scale(1.05);
}

.iso-badge-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4CAF50;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 1.5rem 0;
    padding: 6px 16px;
    background: rgba(76, 175, 80, 0.08);
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.verified-badge i {
    font-size: 1rem;
}

.cert-btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: auto;
}

.cert-btn-group .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
    width: 100%;
}

/* Download Button Enhancement */
.cert-btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.cert-btn-group .btn {
    box-shadow: 0 4px 12px rgba(242, 100, 25, 0.2);
    transition: all 0.3s ease;
}

.cert-btn-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 100, 25, 0.3);
}


@media (max-width: 768px) {
    .certification-card {
        padding: 2rem 1.5rem;
    }

    .iso-badge-wrapper {
        width: 100px;
        height: 100px;
    }
}