/* Blueprint-style theme for CNC Shop Manager - Patriotic Theme */

/* Import monospace/technical fonts that match blueprint style */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* Color variables */
:root {
    /* Main colors - patriotic theme */
    --blue: #002366;       /* American flag blue */
    --red: #ce0e2dff;      /* American flag red */
    --dark-gray: #656565;  /* Industrial medium gray */
    --light-gray: #D5D5D5; /* Clean light gray */
    --black: #000000;      /* Pure black */
    --white: #FFFFFF;      /* Pure white */
    
    /* Lighter variations */
    --blue-light: #003399;
    --red-light: #e13e56;
    --dark-gray-light: #8A8A8A;
    
    /* Even lighter variations for backgrounds */
    --blue-bg: #e6eaf5;
    --red-bg: #fce6e9;
    --dark-gray-bg: #F0F0F0;
    
    /* Darker variations for accents and hover states */
    --blue-dark: #001a4d;
    --red-dark: #a00b24;
    --dark-gray-dark: #454545;
    
    /* Blueprint theme colors - updated to match patriotic palette */
    --blueprint-dark: #000000;
    --blueprint-medium: #656565;
    --blueprint-light: #D5D5D5;
    --grid-color: rgba(0, 0, 0, 0.02);    /* Extremely faint gray for small grid lines */
    --grid-color-dark: rgba(0, 0, 0, 0.04); /* Very faint gray for major grid lines */
    --white: #ffffff;  /* Pure white background */
    --border-color: #000000;
    --margin-color: rgba(0, 0, 0, 0.05); /* Very faint gray for margin line */
    
    /* Replace green with blue for the patriotic theme */
    --green: var(--blue);       /* Replace vibrant neon green with American flag blue */
    --green-light: var(--blue-light);
    --green-bg: var(--blue-bg);
    --green-dark: var(--blue-dark);
    
    /* Legacy color variables - maintained for backward compatibility */
    --yellow: var(--red);  /* Replaced with American flag red */
}

/* Custom Font */
@font-face {
    font-family: 'RollandinEmilie';
    src: url('../fonts/RollandinEmilie.ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'RollandinEmilie';
    src: url('assets/fonts/RollandinEmilie.ttf');
    font-weight: normal;
    font-style: normal;
}

/* Technical drawing style headings with shadow cutout effect - only for major titles */
h1, h2, .display-5 {
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 1px;
    /* Cool shadow cutout effect */
    text-shadow: 
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff,
        2px 2px 3px rgba(0, 0, 0, 0.5),
        4px 4px 8px rgba(0, 0, 0, 0.15);
}

/* Standard heading styles without shadow effect */
h3, h4, h5, h6, .card-title, .step-title, .addon-title, .ribbon-text {
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 1px;
}

/* Responsive adjustments for headings */
@media (max-width: 767.98px) {
    h1, h2, .display-5 {
        /* Slightly reduced shadow effect for mobile */
        text-shadow: 
            -0.5px -0.5px 0 #fff,
            0.5px -0.5px 0 #fff,
            -0.5px 0.5px 0 #fff,
            0.5px 0.5px 0 #fff,
            1px 1px 2px rgba(0, 0, 0, 0.5),
            2px 2px 4px rgba(0, 0, 0, 0.15);
    }
}

/* Monospaced font for technical specs and details */
.lead, p {
    font-family: 'Roboto Mono', 'IBM Plex Mono', monospace;
    font-weight: 500;
}

/* Navigation links with Orbitron */
.nav-link {
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 1px;
}

/* Card image styles */
.card-img-container {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.card-img-top {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* Red overlay for gallery images */
.product-gallery .card-img-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
 
}

/* Color Variables */
body {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--black) !important;
    line-height: 1.7;
    position: relative;
    padding-top: 76px; /* Add padding for fixed header */
    /* Drafting paper background */
    background-color: #fcfcfc;
    background-image: 
        /* Small grid */
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
        /* Major grid */
        linear-gradient(var(--grid-color-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color-dark) 1px, transparent 1px);
    background-size: 
        20px 20px,  /* Small grid size horizontal and vertical */
        20px 20px,  /* Small grid size horizontal and vertical */
        100px 100px, /* Major grid size horizontal and vertical */
        100px 100px; /* Major grid size horizontal and vertical */
    background-position:
        0 0,
        0 0,
        0 0,
        0 0;
}

/* Margin line */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 40px;
    width: 1px;
    height: 100%;
    background-color: var(--margin-color);
    z-index: -1;
    pointer-events: none;
}

/* Coffee stains background */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 100%;
    z-index: -2;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: 
        85% 65%,  
        20% 95%,
        50% 80%;
    background-size: 
        250px 250px,
        200px 200px,
        280px 280px;
    opacity: 0.15;
    background-attachment: scroll;
}

/* Make all section backgrounds transparent */
section, .card, header, footer, .bg-white, .bg-light {
    background-color: transparent !important;
}

/* Remove any previous drafting paper elements */
.drafting-paper, .small-grid, .major-grid, .margin-line {
    display: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--black) !important;
}

.display-5 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.lead {
    font-weight: 400;
    font-size: 1.15rem;
    color: var(--black) !important;
}

/* Header */
header {
    position: static;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent !important;
    box-shadow: none;
    border-bottom: none;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    max-width: 100%;
    height: auto;
}

.logo h1 {
    color: var(--black) !important;
    font-family: 'Space Mono', monospace;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--black) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: #002366 !important;
}

/* Cards and Sections */
.card {
    border: 1px solid var(--blueprint-light);
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
}

.card-title {
    font-family: 'Space Mono', monospace;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 0;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Space Mono', monospace;
}

.btn-dark {
    background-color: #002366;
    border-color: #002366;
    color: var(--black) !important;
}

/* Hero Section */
.hero {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.hero-image-container {
    position: relative;
    width: 100%;
    display: block;
    line-height: 0; /* Removes any space below the image */
    font-size: 0; /* Ensures no whitespace */
}

.hero-svg-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    vertical-align: bottom; /* Ensures no gap at bottom */
    position: relative;
    z-index: 2; /* Higher z-index to stay in front of the pastel bar */
}

.hero-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.transform-text {
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 0 20px;
}

/* Responsive adjustments for the transform text */
@media (max-width: 991.98px) {
    .transform-text {
        font-size: 2.8rem;
    }
}

@media (max-width: 767.98px) {
    .transform-text {
        font-size: 2.2rem;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 575.98px) {
    .transform-text {
        font-size: 1.8rem;
        letter-spacing: 1px;
        -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.5);
    }
    
    .floating-words-container {
        top: 10px;
    }
}

/* Feature Icons */
.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
}

/* Rotating Text Animation */
#rotating-word {
    display: inline-block;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    color: var(--black) !important;
    border-bottom: 1px dashed var(--black) !important;
}

/* Watercolor effect for images */
.watercolor-effect {
    position: relative;
    z-index: 1;
}

.watercolor-effect::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background-image: none; /* Removed coffee stain image */
    z-index: -1;
    opacity: 0.2;
}

/* Apply watercolor effect to specific images */
.hero-image {
    position: relative;
}

.card .feature-icon {
    position: relative;
}

/* Footer */
footer {
    background-color: transparent;
    border-top: 3px solid #002366;
    padding: 2rem 0;
}

footer a {
    color: var(--black) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'IBM Plex Mono', monospace;
}

footer a:hover {
    color: #002366 !important;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero {
        padding: 3rem 0;
    }
    
    .display-5 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        text-align: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }

    /* Improved mobile typography */
    h1, .h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .lead {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Improve spacing on mobile */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Better button sizing for mobile */
    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    h1, .h1 {
        font-size: 1.6rem;
    }
    
    h2, .h2 {
        font-size: 1.3rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    p {
        font-size: 0.9rem;
    }
}

/* Ensure all backgrounds are off-white */
.bg-light, section, .card, footer, header, body {
    background-color: #fcfcfc;
}

/* Remove shadows for blueprint design */
.shadow, .shadow-sm {
    box-shadow: none !important;
}

/* Clean borders */
.border, .border-top, .border-bottom {
    border-color: var(--blueprint-light) !important;
}

/* Links styling */
a.text-decoration-none {
    color: var(--black) !important;
    position: relative;
    font-weight: 500;
    font-family: 'IBM Plex Mono', monospace;
}

a.text-decoration-none:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--black) !important;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

a.text-decoration-none:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Add Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css");

/* Product Gallery Styles */
.product-gallery {
    background-color: #f8f9fa;
}

small  {
    font-size: 12px !important;
}

.product-gallery .card {
    transition: transform 0.3s ease, border 0.3s ease;
    height: 100%;
    border: 1px solid var(--blueprint-dark) !important; /* Changed to black border with !important to override border-0 */
    position: relative;
    overflow: hidden; /* Ensure the gradient stays within the card */
    box-shadow: none !important; /* Remove shadow */
    border-radius: 5px !important; /* Add slightly rounded corners */
}

.product-gallery .card:hover {
    transform: translateY(-5px);
    border: 2px solid var(--blueprint-dark) !important; /* Thicker border on hover with !important */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important; /* Keep the shadow on hover */
}

.product-gallery .card-img-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Creates perfect 1:1 aspect ratio */
    overflow: hidden;
    background-color: transparent;
    border-bottom: none;
}

/* Add colored overlay to images */
.product-gallery .card-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

/* Apply different colored overlays based on card position */
.product-gallery .col-12:nth-child(4n+1) .card-img-container::after {
    background-color: #002366;
}

.product-gallery .col-12:nth-child(4n+2) .card-img-container::after {
    background-color: #001a4d;
}

.product-gallery .col-12:nth-child(4n+3) .card-img-container::after {
    background-color: var(--dark-gray);
}

.product-gallery .col-12:nth-child(4n+4) .card-img-container::after {
    background-color: var(--light-gray);
}

/* Increase overlay opacity on hover */
.product-gallery .card:hover .card-img-container::after {
    opacity: 0.4;
}

.product-gallery .card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain to prevent cropping */
    z-index: 1; /* Ensure the image is below the overlay */
}

/* Card body styles with multi-color top border */
.product-gallery .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    position: relative;
    flex-grow: 1;
}

/* Add multi-color border above the card body */
.product-gallery .card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, 
        #002366 25%, 
        #001a4d 25%, 
        #001a4d 50%, 
        var(--dark-gray) 50%, 
        var(--dark-gray) 75%, 
        var(--light-gray) 75%);
    z-index: 3;
}

.product-gallery .card-title {
    font-family: 'Orbitron', sans-serif;
}

.product-gallery .card-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

.product-gallery .card-footer {
    padding-top: 0;
}

.product-gallery .btn-outline-dark {
    border-width: 1px;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
}

/* Ensure consistent card heights regardless of content */
.product-gallery .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-gallery .card-text {
    flex-grow: 1;
}

/* Responsive adjustments for product gallery */
@media (max-width: 991.98px) {
    .product-gallery .row-cols-md-3 > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767.98px) {
    .product-gallery .card-title {
        font-size: 1rem;
    }
    
    .product-gallery .card-text {
        font-size: 0.85rem;
    }
    
    /* Ensure single column on mobile */
    .product-gallery .row > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Maintain image size on mobile */
    .product-gallery .card-img-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .product-gallery .row-cols-1 > .col {
        margin-bottom: 1.5rem;
    }
}

/* Add-ons Banner Styles */
.addons-banner {
    background-color: #f8f9fa;
    border-color: #e9ecef !important;
    border-top: 3px solid var(--dark-gray);
    border-bottom: 3px solid var(--dark-gray);
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.addons-banner .row {
    flex-wrap: wrap; /* Allow wrapping on small screens */
    padding-bottom: 5px;
    margin-right: 0;
    margin-left: 0;
}

.addon-item {
    padding: 0 8px; /* Reduce side padding */
}

.addon-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px; /* Consistent height */
    position: relative;
    z-index: 1;
    margin: 0 auto; /* Center in container */
    width: 100%;
    max-width: 60px;
}

.addon-icon {
    max-height: 40px;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Add asymmetrical blob backgrounds to add-on icons */
.addon-icon-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 110%;
    transform: translate(-50%, -50%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    opacity: 0.2;
    z-index: -1;
    transition: all 0.3s ease;
}

/* Add different blob shapes for variety */
.addon-item:nth-child(7n+1) .addon-icon-container::before {
    background-color: #002366;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.addon-item:nth-child(7n+2) .addon-icon-container::before {
    background-color: #001a4d;
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
}

.addon-item:nth-child(7n+3) .addon-icon-container::before {
    background-color: var(--dark-gray);
    border-radius: 60% 40% 60% 30% / 30% 60% 40% 70%;
}

.addon-item:nth-child(7n+4) .addon-icon-container::before {
    background-color: var(--light-gray);
    border-radius: 40% 60% 30% 70% / 70% 30% 50% 40%;
}

.addon-item:nth-child(7n+5) .addon-icon-container::before {
    background-color: var(--dark-gray);
    border-radius: 50% 30% 60% 40% / 40% 50% 60% 30%;
}

.addon-item:nth-child(7n+6) .addon-icon-container::before {
    background-color: #002366;
    border-radius: 70% 40% 50% 60% / 30% 40% 70% 60%;
}

.addon-item:nth-child(7n+7) .addon-icon-container::before {
    background-color: #001a4d;
    border-radius: 35% 65% 65% 35% / 45% 55% 45% 55%;
}

.addon-icon-container:hover {
    transform: translateY(-3px);
}

.addon-icon-container:hover::before {
    opacity: 0.4;
    border-radius: 55% 45% 55% 45% / 45% 55% 45% 55%;
    height: 120%;
}

.addon-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: normal; /* Allow text to wrap */
    word-break: break-word; /* Break long words if needed */
    line-height: 1.2;
    margin-top: 5px;
    height: 2.4em; /* Fixed height for title */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Mobile optimizations for add-ons section */
@media (max-width: 767.98px) {
    .addon-icon-container {
        height: 40px;
        max-width: 50px;
    }
    
    .addon-icon {
        max-height: 30px;
    }
    
    .addon-title {
        font-size: 0.65rem;
    }
    
    .addons-banner .g-3 {
        --bs-gutter-x: 0.5rem; /* Reduce gutter on mobile */
        --bs-gutter-y: 0.5rem;
    }
}

/* Setup Process Section Styles */
.setup-process {
    background-color: #f8f9fa;
    border-top: 3px solid #002366;
    border-bottom: 3px solid #002366;
}

.setup-step {
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 5px;
    padding: 2rem 1.5rem;
    position: relative;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.setup-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    background-color: #000;
    color: #fff!important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    z-index: 2;
}

.step-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 -1.5rem;
    background-color: #f8f9fa;
    padding: 1rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.step-icon img {
    max-height: 120px;
    width: auto;
    max-width: calc(100% - 2rem); /* Ensure image stays within padding */
}

@media (max-width: 767.98px) {
    .setup-step {
        padding: 1.5rem 1rem;
    }
    
    .step-title {
        font-size: 1rem;
    }
}

/* Ribbon Banner Styles */
.ribbon-container {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
    overflow: hidden;
    border: none !important;
    text-decoration: none !important;
}

.ribbon {
    background-color: #002366;
    display: inline-block;
    position: relative;
    padding: 0.75rem 2rem;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.ribbon:before, .ribbon:after {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 100%;
    background-color: #001a4d;
}

.ribbon:before {
    left: -10px;
    transform: skewX(-20deg);
}

.ribbon:after {
    right: -10px;
    transform: skewX(20deg);
}

.ribbon-text {
    color: white !important;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-decoration: none !important;
    border-bottom: none !important;
}

.ribbon-text:after, .ribbon-text:before {
    display: none !important;
}

@media (max-width: 767.98px) {
    .ribbon-text {
        font-size: 1rem;
    }
    
    .ribbon {
        padding: 0.5rem 1.5rem;
    }
}

/* HAAS Compatibility Banner styling */
.ribbon-container.haas-compatibility {
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.haas-compatibility .ribbon {
    background-color: #ce0e2dff;
    border: 2px solid var(--black);
}

.haas-compatibility .ribbon:before, .haas-compatibility .ribbon:after {
    background-color: #a00b24;
}

.haas-compatibility .ribbon-text {
    color: #ffffff;
    font-weight: 900;
}

/* SVG with Title - New Clean Approach */
.svg-with-title {
    display: block;
    width: 100%;
    line-height: 0;
    font-size: 0;
    background-color: #000;
}

.svg-title {
    background-color: #000;
    color: #fff;
    padding: 1rem 0;
    margin: 0;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.2;
    position: relative;
}

.svg-title:after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.8) 50%, 
        rgba(255,255,255,0) 100%);
}

.svg-with-title img {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

@media (max-width: 767.98px) {
    .svg-title {
        font-size: 1.75rem;
    }
    
    .svg-title:after {
        bottom: 0.3rem;
    }
}

/* Pricing Section Styles */
.pricing-section {
    background-color: #ffffff;
}

small  {
    font-size: 12px !important;
}

.pricing-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card .pastel-top-border {
    display: flex;
    width: 100%;
    height: 4px;
}

.pricing-card .yellow {
    background-color: #ce0e2dff;
}

.pricing-card .red {
    background-color: #a00b24;
}

.pricing-card .blue {
    background-color: #002366;
}

.pricing-card .green {
    background-color: #001a4d;
}

.pricing-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    font-family: 'Orbitron', sans-serif;
}

.module-badge {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 8px 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #002366;
    border-color: #002366;
    color: var(--black) !important;
}

.btn-outline-primary {
    border-color: #002366;
    color: #002366;
}

.btn-outline-primary:hover {
    background-color: #002366;
    border-color: #002366;
    color: var(--black);
}

/* Mobile optimizations */
@media (max-width: 767.98px) {
    .price-tag {
        font-size: 1.75rem;
    }
}

/* Contact Section Styles */
.contact-section {
    background-color: #ffffff;
    display: flex;
    align-items: stretch;
    border-top: 3px solid var(--dark-gray);
}

.map-container {
    border: 1px solid #000;
    overflow: hidden;
    height: 100%;
    min-height: 450px;
    display: flex;
}

.map-container iframe {
    flex: 1;
    border: none;
}

/* Black and white map styling */
.grayscale-map {
    filter: grayscale(100%);
}

.contact-info-card {
    border: 1px solid #000;
    background-color: #fff;
    padding: 2rem;
    height: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Local Server Section Styles */
.local-server-section {
    border: 2px solid #002366;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.local-server-section .card {
    transition: all 0.3s ease;
    border: none !important;
}

.local-server-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Add colored borders to the local server cards */
.local-server-section .col:nth-child(1) .card,
.local-server-section .col:nth-child(5) .card,
.local-server-section .col:nth-child(9) .card {
    border-top: 4px solid #002366 !important;
}

.local-server-section .col:nth-child(2) .card,
.local-server-section .col:nth-child(6) .card {
    border-top: 4px solid #001a4d !important;
}

.local-server-section .col:nth-child(3) .card,
.local-server-section .col:nth-child(7) .card {
    border-top: 4px solid var(--dark-gray) !important;
}

.local-server-section .col:nth-child(4) .card,
.local-server-section .col:nth-child(8) .card {
    border-top: 4px solid var(--light-gray) !important;
}

/* Style the feature icons */
.feature-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white) !important;
}

/* Change text-primary to use our colors */
.local-server-section .col:nth-child(1) .text-primary,
.local-server-section .col:nth-child(5) .text-primary,
.local-server-section .col:nth-child(9) .text-primary {
    color: #002366 !important;
}

.local-server-section .col:nth-child(2) .text-primary,
.local-server-section .col:nth-child(6) .text-primary {
    color: #001a4d !important;
}

.local-server-section .col:nth-child(3) .text-primary,
.local-server-section .col:nth-child(7) .text-primary {
    color: var(--dark-gray) !important;
}

.local-server-section .col:nth-child(4) .text-primary,
.local-server-section .col:nth-child(8) .text-primary {
    color: var(--dark-gray-light) !important;
}

/* Style the local server section title */
.local-server-section h2.display-5 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.local-server-section h2.display-5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 4px;
    background: linear-gradient(to right, 
        #002366 25%, 
        #001a4d 25%, 
        #001a4d 50%, 
        var(--dark-gray) 50%, 
        var(--dark-gray) 75%, 
        var(--light-gray) 75%);
}

/* Update the video overlay bar */
.local-server-section .position-absolute.bottom-0.start-0.w-100.d-flex div:nth-child(1) {
    background-color: #002366 !important;
}

.local-server-section .position-absolute.bottom-0.start-0.w-100.d-flex div:nth-child(2) {
    background-color: #001a4d !important;
}

.local-server-section .position-absolute.bottom-0.start-0.w-100.d-flex div:nth-child(3) {
    background-color: var(--dark-gray) !important;
}

.local-server-section .position-absolute.bottom-0.start-0.w-100.d-flex div:nth-child(4) {
    background-color: var(--light-gray) !important;
}

/* Style the text-primary class in the local server section */
.local-server-section .text-primary {
    color: var(--black) !important;
    font-weight: bold;
}

/* Server Features Section Styling */
.server-features .card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.server-features .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

.server-features .card-body {
    padding: 1rem;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(var(--blueprint-rgb), 0.1);
    flex-shrink: 0;
}

.feature-icon i {
    color: var(--black) !important;
}

.server-features .card-title {
    font-weight: 600;
    color: var(--black) !important;
}

.server-features .card-text {
    color: #555;
    line-height: 1.4;
}

@media (max-width: 767.98px) {
    .server-features {
        overflow-x: hidden;
    }
    
    .server-features .card {
        margin-bottom: 0.5rem;
    }
    
    .server-features .card-body {
        padding: 0.75rem;
    }
}

/* Local Server Section - New Design */
.local-server-section {
    padding: 3rem 0;
    overflow-x: hidden;
}

.feature-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-icon-circle i {
    font-size: 1.25rem;
}

.local-server-section .card {
    transition: all 0.3s ease;
}

.local-server-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.local-server-section .card-title {
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .local-server-section .card {
        margin-bottom: 1rem;
    }
    
    .local-server-section .card-body {
        padding: 1rem;
    }
    
    .feature-icon-circle {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon-circle i {
        font-size: 1rem;
    }
}

/* Animated dots */
.animated-dots-container {
    position: absolute;
    width: 100%;
    top: -10px;
    left: 0;
    text-align: center;
    z-index: 2;
}

.animated-dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    margin: 0 12px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}

.dot-yellow {
    background-color: #ce0e2dff;
    animation: float 3s infinite ease-in-out;
}

.dot-red {
    background-color: #a00b24;
    animation: float 3s infinite ease-in-out 0.5s;
}

.dot-blue {
    background-color: var(--dark-gray);
    animation: float 3s infinite ease-in-out 1s;
}

.dot-green {
    background-color: var(--light-gray);
    animation: float 3s infinite ease-in-out 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Add blob behind MRP image */
.featured-image {
    position: relative;
    z-index: 1;
}

.featured-image img {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Add blob backgrounds to featured sections */
.featured-content .featured-image, .featured-content-alt .featured-image {
    position: relative;
    overflow: hidden;
}

/* Blue blob for the first featured image (OTHER MRPs) */
.featured-content .featured-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 110%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: #002366;
    opacity: 0.3;
    z-index: -1;
}

/* Red blob for the second featured image (CNC SHOP MANAGER) */
.featured-content-alt .featured-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 110%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: #ce0e2dff;
    opacity: 0.3;
    z-index: -1;
}

/* Ensure images are above text on mobile */
@media (max-width: 991px) {
    .featured-content, .featured-content-alt {
        display: flex;
        flex-direction: column;
    }
    
    .featured-content .row, .featured-content-alt .row {
        flex-direction: column;
    }
    
    /* Image first, then text for both sections */
    .featured-content .row .col-lg-6:first-child,
    .featured-content-alt .row .col-lg-6:last-child {
        order: 1;
    }
    
    .featured-content .row .col-lg-6:last-child,
    .featured-content-alt .row .col-lg-6:first-child {
        order: 2;
        margin-top: 2rem;
    }
}

/* ERP image styling - specific colors for each image */
.featured-image img[src*="erp-bad.png"] {
    background-color: #ce0e2dff;
    padding: 15px;
    border-radius: 8px;
}

.featured-content-alt .featured-image img {
    background-color: #002366;
    padding: 15px;
    border-radius: 8px;
}

/* Transform section with dark overlay */
.transform-section {
    position: relative;
    width: 100%;
}

.transform-image-container {
    position: relative;
    width: 100%;
    display: block;
    line-height: 0; /* Removes any space below the image */
    font-size: 0; /* Ensures no whitespace */
}

.transform-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Reduced opacity for better visibility */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.transform-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.2;
    color: #fff !important;
}

/* Responsive typography for transform title */
@media (max-width: 768px) {
    .transform-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
        margin-bottom: 0.5rem;
    }
    
    .transform-underline {
        width: 60px;
        height: 3px;
        margin-top: 8px;
    }
}

@media (max-width: 576px) {
    .transform-title {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
        margin-bottom: 0.3rem;
    }
    
    .transform-underline {
        width: 40px;
        height: 2px;
        margin-top: 5px;
    }
}

/* Floating word responsive styling */
@media (max-width: 768px) {
    .floating-word {
        font-size: 1.2rem !important;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 576px) {
    .floating-word {
        font-size: 0.9rem !important;
        letter-spacing: 0;
    }
}

/* Video Section Styles */
.video-section {
    padding: 60px 0;
}

.video-thumbnail-container {
    cursor: pointer;
    transition: transform 0.3s ease;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-thumbnail-container:hover {
    transform: translateY(-5px);
}

.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    cursor: pointer;
    background-color: transparent;
}

.play-button-circle {
    width: 150px; /* Increased from 100px */
    height: 150px; /* Increased from 100px */
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 5px solid #002366; /* Thicker border */
    animation: strongPulse 2s infinite;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), 
                0 0 60px rgba(192, 255, 107, 0.6),
                0 0 20px 8px rgba(255, 0, 0, 0.8); /* Added red glow */
    z-index: 2;
}

.transform-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.2;
}

.transform-section {
    background: #000;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0;
}

.transform-header {
    background: #000;
    color: #fff;
    padding: 1.5rem 0 1rem;
    margin: 0;
    text-align: center;
}

.transform-underline {
    height: 2px;
    width: 50%;
    margin: 0.8rem auto 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
}

.floating-animation-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.floating-text-item {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 5px rgba(0,0,0,0.7);
    animation: floatingTextFade 20s infinite;
}

.transform-image-container {
    position: relative;
}

.transform-image-container img {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

.transform-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

@keyframes floatingTextFade {
    0% {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    10% {
        opacity: 1;
        visibility: visible;
    }
    20% {
        opacity: 0;
        visibility: hidden;
    }
    80% {
        opacity: 0;
        visibility: hidden;
    }
    90% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

.play-button-circle::before {
    content: '';
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: glowPulse 3s infinite;
}

.play-button-circle i {
    color: #002366;
    font-size: 60px; /* Increased from 40px */
    margin-left: 10px; /* Adjusted for larger size */
    filter: drop-shadow(0 0 5px rgba(223, 5, 5, 0.8));
}

.play-button-text {
    margin-top: 20px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: bold;
    font-size: 24px;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 15px;
    border-radius: 5px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(192, 255, 107, 0.8);
    border: 2px solid #002366;
    animation: textPulse 2s infinite alternate;
}

.play-button-overlay:hover .play-button-circle {
    transform: scale(1.15);
    box-shadow: 0 0 40px rgba(238, 27, 27, 0.8),
                0 0 80px rgba(117, 0, 0, 0.4);
}

.play-button-overlay:hover .play-button-text {
    background-color: #002366;
    color: black;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes strongPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(241, 132, 132, 0.9),
                    0 0 30px rgba(0, 0, 0, 0.5);
    }
    
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 20px rgba(192, 255, 107, 0),
                    0 0 40px rgba(241, 0, 0, 0.6);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(192, 255, 107, 0),
                    0 0 30px rgba(0, 0, 0, 0.5);
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes textPulse {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 768px) {
    .play-button-circle {
        width: 120px;
        height: 120px;
    }
    
    .play-button-circle i {
        font-size: 45px;
    }
    
    .play-button-text {
        font-size: 18px;
    }
    
    .play-button-overlay::before {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .play-button-circle {
        width: 100px;
        height: 100px;
    }
    
    .play-button-circle i {
        font-size: 35px;
        margin-left: 7px;
    }
    
    .play-button-text {
        font-size: 16px;
        padding: 4px 10px;
    }
    
    .play-button-overlay::before {
        font-size: 24px;
        margin-bottom: 10px;
    }
}

/* Modal Video Styles */
.modal-content {
    border-radius: 8px;
    overflow: hidden;
    border: none;
}

.modal-header {
    border-bottom: none;
    padding: 15px 20px;
    background-color: var(--white);
}

.modal-body {
    padding: 0;
}

.modal-dialog {
    max-width: 800px;
    margin: 1.75rem auto;
}

/* Responsive styles for video section */
@media (max-width: 767.98px) {
    .play-button-circle {
        width: 60px;
        height: 60px;
    }
    
    .play-button-circle i {
        font-size: 24px;
    }
    
    .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }
}

/* Ensure video stops playing when modal is closed */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

/* Hero banner styles */
.hero-banner {
    max-width: 100%;
    margin: 0 auto;
}

.hero-banner .lead {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Ribbon container styles */
.ribbon-container {
    width: 100%;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.ribbon {
    display: inline-block;
    position: relative;
    margin: 0;
    padding: 0.5em 1em;
    background: #002366;
    color: var(--black);
    font-weight: bold;
}

/* Pricing card styles */
.pricing-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.pricing-card .pastel-top-border {
    display: flex;
    width: 100%;
    height: 3px;
}

.pricing-card .pastel-top-border div {
    width: 25%;
    height: 100%;
}

.pricing-card .yellow {
    background-color: #ce0e2dff;
}

.pricing-card .red {
    background-color: #a00b24;
}

.pricing-card .blue {
    background-color: #002366;
}

.pricing-card .green {
    background-color: #001a4d;
}

/* Setup step styles */
.setup-step {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.setup-step .pastel-top-border {
    display: flex;
    width: 100%;
    height: 3px;
    margin-bottom: 10px;
}

.setup-step .pastel-top-border div {
    width: 25%;
    height: 100%;
}

.setup-step .pastel-top-border .yellow {
    background-color: #ce0e2dff;
}

.setup-step .pastel-top-border .red {
    background-color: #a00b24;
}

.setup-step .pastel-top-border .blue {
    background-color: #002366;
}

.setup-step .pastel-top-border .green {
    background-color: #001a4d;
}

/* Full width SVG section */
.full-width-svg-section {
    background: #000;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0;
}

.svg-title-container {
    background: #000;
    color: #fff;
    padding: 1.5rem 0 1rem;
    margin: 0;
    text-align: center;
}

/* Feature icon circle */
.feature-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
}

.feature-icon-circle i {
    font-size: 1.2rem;
}

/* Step number circle */
.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #002366;
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

/* Custom package styles */
.custom-package {
    border: 2px solid #002366;
}

/* Step title container */
.step-title-container {
    display: inline-block;
    position: relative;
    padding-top: 6px;
}

/* Responsive Typography */
@media (max-width: 767.98px) {
    /* Headings */
    h1, .h1 {
        font-size: 1.8rem;
    }
    
    h2, .h2, .display-5 {
        font-size: 1.6rem;
    }
    
    h3, .h3 {
        font-size: 1.4rem;
    }
    
    h4, .h4 {
        font-size: 1.2rem;
    }
    
    h5, .h5 {
        font-size: 1.1rem;
    }
    
    /* Body text */
    .lead {
        font-size: 1rem;
    }
    
    p, .p {
        font-size: 0.95rem;
    }
    
    /* Navigation */
    .nav-link {
        font-size: 0.8rem;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Cards */
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
    
    /* Buttons */
    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    /* Small text */
    .small, small, .addon-title {
        font-size: 0.75rem;
    }
}

/* Even smaller screens */
@media (max-width: 575.98px) {
    /* Headings */
    h1, .h1 {
        font-size: 1.6rem;
    }
    
    h2, .h2, .display-5 {
        font-size: 1.4rem;
    }
    
    h3, .h3 {
        font-size: 1.2rem;
    }
    
    /* Body text */
    .lead {
        font-size: 0.95rem;
    }
    
    /* Buttons */
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.5rem 1.2rem;
    }
}

/* Transform section with dark overlay */
.transform-image-container {
    position: relative;
    width: 100%;
    display: block;
    line-height: 0;
}

.transform-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Reduced opacity */
    z-index: 1;
    pointer-events: none;
}

.transform-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.2;
    color: #fff !important;
}

/* Responsive adjustments for transform title */
@media (max-width: 768px) {
    .transform-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 576px) {
    .transform-title {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
}

/* Transform image styling */
.transform-image {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

/* Transform section styling */
.transform-section {
    background: #000;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0;
    position: relative;
}

.transform-header {
    background: #000;
    color: #fff;
    padding: 1.5rem 0 1rem;
    margin: 0;
    text-align: center;
    position: relative;
    z-index: 20;
}

.transform-underline {
    height: 2px;
    width: 50%;
    margin: 0.8rem auto 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
}

/* Responsive adjustments for transform title */
@media (max-width: 768px) {
    .transform-title {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 576px) {
    .transform-title {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
}

/* Transform image container and overlay */
.transform-image-container {
    position: relative;
    width: 100%;
    display: block;
    line-height: 0;
}

.transform-image {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

.transform-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4); /* Changed from 0.5 to 0.4 opacity for better visibility */
}

/* Floating text animation for transform section */
.transform-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4); /* Changed from 0.5 to 0.4 opacity for better visibility */
}

.transform-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Floating words styling */
.floating-words-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
}

.floating-word {
    position: absolute;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
    opacity: 1; /* Changed from 0 to 1 to make words visible */
    transform: none; /* Removed translateY to keep words in place */
    white-space: nowrap;
}

/* Responsive typography for transform title */
@media (max-width: 768px) {
    .transform-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 576px) {
    .transform-title {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .floating-word {
        font-size: 0.9rem;
    }
}

/* Global text styling - ensure all text is black */
h1, h2, h3, h4, h5, h6, p, span, a:not(:hover), li, label, .card-title, .card-text {
    color: var(--black) !important;
}

/* Specific overrides for section headings */
.hero-banner h1,
.product-gallery h2,
.local-server-section h2,
.pricing-section h2,
.setup-process h2,
.contact-section h2,
.addons-banner h2 {
    color: var(--black) !important;
}

/* Override previous heading color settings */
.pricing-section h2,
.setup-process h2,
.contact-section h2 {
    color: var(--black) !important;
}

/* Keep text-primary in local server section black instead of blue */
.local-server-section .text-primary {
    color: var(--black) !important;
    font-weight: bold;
}

/* Keep all text-primary black */
.text-primary {
    color: var(--black) !important;
}

/* Only apply color to links on hover */
a {
    color: var(--black) !important;
}

a:hover {
    color: #002366 !important;
}

/* Make sure buttons have proper contrast */
.btn-dark, .btn-primary {
    color: var(--black) !important;
}

/* Make sure footer text is black */
footer, footer a, footer p, footer h5, footer .text-muted {
    color: var(--black) !important;
}

footer a:hover {
    color: #002366 !important;
}

/* Remove line under navbar */
header, .navbar, nav {
    border-bottom: none !important;
    box-shadow: none !important;
}

.navbar {
    border: none !important;
}

.navbar::after {
    display: none !important;
}

/* Ensure header has no bottom border */
header.py-3.bg-white {
    border-bottom: 0 !important;
}

/* Override any Bootstrap default borders on navbar */
.navbar-light, .navbar-expand-lg {
    border: none !important;
    box-shadow: none !important;
}

/* Button Styles - Ensure white text on dark buttons */
.btn-dark,
button.btn-dark,
input[type="submit"].btn-dark,
.btn-dark *,
form .btn-dark,
.contact-form .btn-dark,
button[type="submit"].btn-dark,
.btn.btn-dark {
    color: var(--white) !important;
    background-color: var(--black) !important;
    border-color: var(--black) !important;
}

.btn-dark i,
.btn-dark span,
.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active,
button.btn-dark i,
form .btn-dark i,
.contact-form .btn-dark i,
button[type="submit"].btn-dark i {
    color: var(--white) !important;
}

/* Target the specific send message button */
button[type="submit"].btn-dark,
button[type="submit"].btn.btn-dark,
.contact-form button[type="submit"],
form button[type="submit"].btn-dark,
button[type="submit"].btn-dark i {
    color: var(--white) !important;
}

/* Direct targeting for the send message button */
button.btn.btn-dark.w-100,
button.btn.btn-dark.w-100 i,
button.btn.btn-dark.w-100 span {
    color: var(--white) !important;
}

/* Contact Form Section Styling */
.contact-form-section {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, rgba(213, 213, 213, 0.1) 25%, transparent 25%, transparent 87%, rgba(213, 213, 213, 0.1) 87.5%, rgba(213, 213, 213, 0.1));
    background-size: 10px 10px;
    opacity: 0.5;
    z-index: 1;
}

.contact-form-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #002366;
}

.contact-form-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(192, 255, 107, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9e9e9;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #002366;
    box-shadow: 0 0 0 0.2rem rgba(192, 255, 107, 0.25);
}

.contact-form .form-check-input:checked {
    background-color: #002366;
    border-color: #002366;
}

.contact-form .btn {
    background-color: #002366;
    border: none;
    color: var(--black) !important;
    font-weight: 600;
    padding: 0.75rem 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form .btn:hover {
    background-color: #001a4d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192, 255, 107, 0.4);
}

.contact-form .btn:active {
    transform: translateY(0);
}

.contact-form-section h2 {
    position: relative;
    display: inline-block;
}

.contact-form-section h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: #002366;
    transform: translateX(-50%);
}

/* Phone Video Container Styles */
.phone-video-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    position: relative;
    width: 240px;
    height: 480px;
    background-color: #000;
    border-radius: 36px;
    padding: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 8px solid #333;
    overflow: hidden;
}

.phone-frame:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background-color: #333;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 2;
}

.phone-screen-video,
.phone-screen-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 28px;
}

.phone-screen-fallback {
    display: none;
}

video:not([playsinline]) {
    display: none;
}

video:not([playsinline]) + .phone-screen-fallback {
    display: block;
}

/* Responsive Adjustments for Phone Frame */
@media (max-width: 768px) {
    .phone-frame {
        width: 200px;
        height: 400px;
        border-radius: 30px;
    }
}

@media (max-width: 576px) {
    .phone-frame {
        width: 180px;
        height: 360px;
        border-radius: 28px;
    }
}

/* Video Modal Styles */
#videoModal .modal-content {
    background-color: #000;
    border: none;
}

#videoModal .modal-header {
    border-bottom: 1px solid #333;
    background-color: #111;
    color: white;
}

#videoModal .btn-close {
    filter: invert(1);
}

#videoModal .modal-body {
    position: relative;
    overflow: hidden;
}

#modalVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

/* Ensure white text on dark backgrounds */
.bg-primary, 
.bg-danger, 
.bg-dark, 
[style*="background-color: #002366"], 
[style*="background-color: var(--red)"],
[style*="background-color: #001a4d"],
[style*="background-color: var(--red-dark)"],
[style*="background-color: #3C3B6E"],
[style*="background-color: #B22234"],
[style*="background-color: #2A2A4D"],
[style*="background-color: #901C2A"],
.btn-primary,
.btn-danger,
.text-bg-primary,
.text-bg-danger {
    color: var(--white) !important;
}

/* Ensure white text in buttons with dark backgrounds */
.btn-primary, 
.btn-danger, 
.btn-dark {
    color: var(--white) !important;
}

/* Ensure white text in cards with dark backgrounds */
.card.bg-primary, 
.card.bg-danger, 
.card.bg-dark,
.card[style*="background-color: #002366"],
.card[style*="background-color: var(--red)"],
.card[style*="background-color: #001a4d"],
.card[style*="background-color: var(--red-dark)"] {
    color: var(--white) !important;
}

/* Ensure white text in sections with dark backgrounds */
section.bg-primary, 
section.bg-danger, 
section.bg-dark,
section[style*="background-color: #002366"],
section[style*="background-color: var(--red)"],
section[style*="background-color: #001a4d"],
section[style*="background-color: var(--red-dark)"] {
    color: var(--white) !important;
}

/* Ensure white text in headers with dark backgrounds */
header.bg-primary, 
header.bg-danger, 
header.bg-dark,
header[style*="background-color: #002366"],
header[style*="background-color: var(--red)"],
header[style*="background-color: #001a4d"],
header[style*="background-color: var(--red-dark)"] {
    color: var(--white) !important;
}

/* Ensure white text in footers with dark backgrounds */
footer.bg-primary, 
footer.bg-danger, 
footer.bg-dark,
footer[style*="background-color: #002366"],
footer[style*="background-color: var(--red)"],
footer[style*="background-color: #001a4d"],
footer[style*="background-color: var(--red-dark)"] {
    color: var(--white) !important;
}

/* Ensure links in dark areas are visible */
.bg-primary a:not(.btn), 
.bg-danger a:not(.btn), 
.bg-dark a:not(.btn),
[style*="background-color: #002366"] a:not(.btn),
[style*="background-color: var(--red)"] a:not(.btn),
[style*="background-color: #001a4d"] a:not(.btn),
[style*="background-color: var(--red-dark)"] a:not(.btn) {
    color: var(--white) !important;
    text-decoration: underline;
}

/* Ensure headings in dark areas are white */
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6,
.bg-danger h1, .bg-danger h2, .bg-danger h3, .bg-danger h4, .bg-danger h5, .bg-danger h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
[style*="background-color: #002366"] h1, [style*="background-color: #002366"] h2, [style*="background-color: #002366"] h3, 
[style*="background-color: #002366"] h4, [style*="background-color: #002366"] h5, [style*="background-color: #002366"] h6,
[style*="background-color: var(--red)"] h1, [style*="background-color: var(--red)"] h2, [style*="background-color: var(--red)"] h3,
[style*="background-color: var(--red)"] h4, [style*="background-color: var(--red)"] h5, [style*="background-color: var(--red)"] h6,
[style*="background-color: #001a4d"] h1, [style*="background-color: #001a4d"] h2, [style*="background-color: #001a4d"] h3,
[style*="background-color: #001a4d"] h4, [style*="background-color: #001a4d"] h5, [style*="background-color: #001a4d"] h6,
[style*="background-color: var(--red-dark)"] h1, [style*="background-color: var(--red-dark)"] h2, [style*="background-color: var(--red-dark)"] h3,
[style*="background-color: var(--red-dark)"] h4, [style*="background-color: var(--red-dark)"] h5, [style*="background-color: var(--red-dark)"] h6 {
    color: var(--white) !important;
}

/* Featured image styling with creative oval backgrounds */
.featured-image {
    position: relative;
    display: inline-block;
}

.featured-image img {
    position: relative;
    z-index: 2;
    padding: 20px 30px;
    border-radius: 8px;
}

/* First image - red oval background */
section.featured-content .featured-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-color: #ce0e2dff;
    border-radius: 70% 30% 60% 40% / 50% 60% 30% 60%;
    z-index: 1;
    transform: rotate(-3deg);
}

/* Second image - blue oval background */
section.featured-content-alt .featured-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-color: #002366;
    border-radius: 40% 60% 30% 70% / 60% 30% 50% 40%;
    z-index: 1;
    transform: rotate(3deg);
}

/* Cookie Banner Styles */
.cookie-banner {
    background-color: var(--blue-dark) !important;
    color: var(--white) !important;
    padding: 15px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    text-align: center;
}

.cookie-banner p,
.cookie-banner div,
.cookie-banner span,
.cookie-banner .text-lg-start,
.cookie-banner .mb-lg-0 {
    color: var(--white) !important;
    margin-bottom: 0;
}

.cookie-banner a,
.cookie-banner a.text-white,
.cookie-banner a.text-decoration-underline {
    color: var(--white) !important;
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: var(--light-gray) !important;
}
