/* Iron Man Theme Variables */
:root {
    --primary-red: #FF3D3D;    /* Bright vibrant red */
    --red-glow: rgba(255, 61, 61, 0.4);     /* Vibrant red with opacity */
    --red-light: rgba(255, 61, 61, 0.1);    /* Light red for subtle effects */
    --dark-bg: #000000;        /* Pure black */
    --darker-grey: #0A0A0A;    /* Almost black */
    --metallic-grey: #1A1A1A;  /* Very dark grey */
    --text-color: #FFFFFF;     /* Pure white */
    
    /* Bootstrap overrides */
    --bs-danger: #FF3D3D;
    --bs-danger-rgb: 255, 61, 61;
}

/* Base Styles with Bootstrap Overrides */
body {
    background-color: var(--dark-bg);
    font-family: 'Orbitron', sans-serif;
    color: var(--text-color);
    background-image: 
        radial-gradient(circle at 50% 50%, var(--red-glow) 0%, transparent 40%),
        linear-gradient(45deg, #00000088 25%, transparent 25%),
        linear-gradient(-45deg, #00000088 25%, transparent 25%);
    background-size: 100% 100%, 10px 10px, 10px 10px;
    background-attachment: fixed;
}

/* Spacing Utilities */
.py-7 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Navbar Styles */
.navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-red);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 1.5rem;
}

.arc-reactor-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-red);
    position: relative;
    box-shadow: 0 0 20px var(--primary-red);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.nav-link:not(.btn):hover {
    color: var(--primary-red) !important;
}

/* Make navbar icons more visible */
.navbar .nav-item .nav-link i {
    color: #fff;
    transition: color 0.3s ease;
}

.navbar .nav-item .nav-link:hover i {
    color: #dc3545; /* Bootstrap danger color */
}

/* Remove special styling from contact button in navbar */
.navbar .nav-item .nav-link.btn {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
}

.navbar .nav-item .nav-link.btn:hover {
    background: transparent;
    box-shadow: none;
    color: var(--primary-red) !important;
    transform: none;
}

/* Override the Bootstrap btn styling for navbar buttons */
.navbar .nav-item .nav-link.btn.btn-danger {
    background: transparent;
    color: #fff;
}

.navbar .nav-item .nav-link.btn.btn-danger:hover {
    background: transparent;
    box-shadow: none;
}

/* Enhanced Navbar Links with Glow Effect */
.navbar .nav-link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.2), 0 0 5px rgba(255, 51, 51, 0.1);
}

.navbar .nav-link:hover {
    color: #ffffff !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4), 0 0 8px rgba(255, 51, 51, 0.3);
    transform: translateY(-1px);
}

/* Active link in navbar */
.navbar .nav-link.active {
    color: #ffffff !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4), 0 0 8px rgba(255, 51, 51, 0.3);
}

/* Icon links in navbar - enhanced glow */
.navbar .nav-item .nav-link i {
    color: #fff !important;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
    transition: all 0.3s ease;
}

.navbar .nav-item .nav-link:hover i {
    color: #fff !important;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 8px rgba(255, 51, 51, 0.3));
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 92px;
    overflow: hidden;
}

.hero-title {
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero-title span {
    font-weight: 900;
    color: var(--primary-red);
    display: block;
    text-shadow: 0 0 20px rgba(255, 61, 61, 0.3);
}

.hero-title span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    bottom: -10px;
    left: 0;
    background: var(--primary-red);
    box-shadow: 0 0 20px var(--primary-red);
}

.hero-content {
    position: relative;
    width: 100%;
    overflow: visible;
}

.hero-right {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.carousel-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: visible;
}

.blob-background {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    z-index: -2;
    animation: blob-rotate 20s linear infinite;
    filter: blur(5px);
    opacity: 0.4;
    pointer-events: none;
}

.blob-2 {
    animation: blob-rotate-reverse 25s linear infinite;
    opacity: 0.2;
    transform-origin: center;
    filter: blur(10px);
    z-index: -1;
}

#heroCarousel {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    border-radius: 20px;
    overflow: visible;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.2), rgba(255, 51, 51, 0.05));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 51, 51, 0.1);
    box-shadow: 0 8px 32px 0 rgba(255, 51, 51, 0.15);
    z-index: 1;
}

.corner-accent {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 51, 51, 0.3);
    z-index: 3;
}

.top-left {
    top: 30px;
    left: 30px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 30px;
    right: 30px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 30px;
    left: 30px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 30px;
    right: 30px;
    border-left: none;
    border-top: none;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    background-color: rgba(255, 51, 51, 0.3);
    border-radius: 50%;
    padding: 1.5rem;
}

#heroCarousel .carousel-indicators button {
    background-color: #FF3333;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

#heroCarousel .carousel-item {
    height: 400px;
}

#heroCarousel .carousel-item img {
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.carousel-inner {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
    opacity: 0;
    z-index: 0;
    visibility: hidden;
}

.carousel-item.active {
    position: relative;
    opacity: 1;
    z-index: 1;
    visibility: visible;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.carousel-item.active.left,
.carousel-item.active.right {
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out !important;
}

.carousel.sliding-complete .carousel-item {
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out !important;
}

.carousel-inner {
    transition: height 0.6s ease-in-out;
}

.carousel-item.active .carousel-background-image {
    transform: scale(1.1);
}

/* Hero Image Styles */
.hero-image-container {
    position: relative;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-red);
    box-shadow: 0 0 30px var(--red-glow);
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tech-circle {
    position: absolute;
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

.tech-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

.circle-2 {
    width: 500px;
    height: 500px;
    animation: rotate-reverse 25s linear infinite;
}

.circle-3 {
    width: 550px;
    height: 550px;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.05); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.1; }
}

@media (max-width: 991.98px) {
    .hero-image {
        width: 300px;
        height: 300px;
    }
    
    .tech-circle {
        width: 350px;
        height: 350px;
    }
    
    .circle-2 {
        width: 400px;
        height: 400px;
    }
    
    .circle-3 {
        width: 450px;
        height: 450px;
    }
}

@media (max-width: 767.98px) {
    .hero-image {
        width: 250px;
        height: 250px;
    }
    
    .tech-circle {
        width: 300px;
        height: 300px;
    }
    
    .circle-2 {
        width: 350px;
        height: 350px;
    }
    
    .circle-3 {
        width: 400px;
        height: 400px;
    }
}

.floating-card {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--red-light);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 0 20px var(--red-glow);
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
}

.floating-card span {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.card-1 {
    top: 20%;
    right: -30px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: -30px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Tech Display */
.tech-display {
    height: 500px;
    background: 
        linear-gradient(45deg, transparent 48%, var(--primary-red) 49%, var(--primary-red) 51%, transparent 52%) 0 0 / 20px 20px,
        linear-gradient(-45deg, transparent 48%, var(--primary-red) 49%, var(--primary-red) 51%, transparent 52%) 0 0 / 20px 20px;
    opacity: 0.05;
    animation: techMove 30s linear infinite;
}

/* Package Cards */
.package-card {
    background: var(--darker-grey);
    border: 1px solid var(--red-light);
    transition: all 0.3s ease;
}

.package-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px var(--red-glow);
    background: linear-gradient(135deg, var(--metallic-grey) 0%, var(--darker-grey) 100%);
}

.package-features li {
    margin: 1rem 0;
    opacity: 0.9;
}

.package-features i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red-light);
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--red-light);
}

/* Pricing Cards */
.pricing-card {
    border: 1px solid var(--darker-grey);
    background: var(--dark-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 61, 61, 0.1);
}

.featured-card {
    background-color: #2a2a2a;
    border: 2px solid var(--primary-red);
    transform: scale(1.02);
    z-index: 2;
}

.featured-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 61, 61, 0.25);
}

.card-title {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.one-time-price {
    font-size: 1.25rem;
    font-weight: 600;
}

.period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-divider {
    position: relative;
    margin: 0.5rem 0;
}

.pricing-divider:before, 
.pricing-divider:after {
    content: "";
    height: 1px;
    width: 30%;
    background: var(--primary-red);
    opacity: 0.3;
    position: absolute;
    top: 50%;
}

.pricing-divider:before {
    left: 0;
}

.pricing-divider:after {
    right: 0;
}

.red-line {
    border-color: var(--primary-red);
    opacity: 0.2;
    margin: 0.75rem 0;
}

.pricing-card .fa-ul {
    margin-left: 1.5rem;
    list-style-type: none;
    padding: 0;
    margin-bottom: 1rem;
}

.pricing-card .fa-li {
    color: var(--primary-red);
    font-size: 0.8rem;
}

.pricing-card li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Ribbon style */
.ribbon {
    width: 120px;
    height: 120px;
    overflow: hidden;
    position: absolute;
    z-index: 1;
}

.ribbon span {
    position: absolute;
    display: block;
    width: 180px;
    padding: 6px 0;
    background-color: var(--primary-red);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 0.7rem;
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
    transform: rotate(45deg);
}

.ribbon-top-right {
    top: -10px;
    right: -10px;
}

.ribbon-top-right span {
    left: -25px;
    top: 30px;
    transform: rotate(45deg);
}

/* Make cards more compact on smaller screens */
@media (max-width: 991.98px) {
    .pricing-card {
        margin-bottom: 1rem;
    }
    
    .card-price {
        font-size: 1.5rem;
    }
    
    .one-time-price {
        font-size: 1rem;
    }
    
    .pricing-card .fa-ul {
        font-size: 0.85rem;
    }
}

@media (max-width: 767.98px) {
    .featured-card {
        transform: scale(1);
    }
    
    .featured-card:hover {
        transform: translateY(-5px) scale(1);
    }
}

/* Buttons */
.btn {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-danger {
    background: var(--primary-red);
    border: none;
    box-shadow: 0 0 20px var(--red-glow);
}

.btn-danger:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--red-glow);
}

.btn-outline-light {
    border-width: 2px;
}

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

/* Arc Reactor */
.arc-reactor {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-red);
    position: relative;
    box-shadow: 0 0 50px var(--primary-red);
    animation: pulse 2s infinite;
}

.arc-reactor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--dark-bg);
    border-radius: 50%;
}

.arc-reactor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--primary-red);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary-red);
}

/* Refined Logo Styles with NO glow */
.navbar-logo {
    height: 50px;
    width: auto;
    /* Remove all filter effects and animation */
    filter: none;
    animation: none;
}

@media (max-width: 991.98px) {
    .navbar-logo {
        height: 40px;
    }
}

/* Bootstrap Color Overrides */
.text-danger {
    color: var(--primary-red) !important;
}

.bg-danger {
    background-color: var(--primary-red) !important;
}

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

/* Text Colors */
.text-gray-bright {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes techMove {
    from { background-position: 0 0; }
    to { background-position: 40px 40px; }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 3rem !important;
    }
    
    .tech-display {
        height: 300px;
        margin-top: 2rem;
    }
    
    .package-content {
        padding-left: 0 !important;
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Additional Styles */
input, textarea {
    background: var(--darker-grey) !important;
    border: 1px solid var(--metallic-grey) !important;
    color: var(--text-color) !important;
}

input:focus, textarea:focus {
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 0 0.2rem var(--red-light) !important;
}

h1, h2, h3 {
    font-weight: 800;
    text-transform: uppercase;
}

.display-3 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* Carousel Styles */
.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    display: block;
}

.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
    transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
    transform: translateX(-100%);
}

.carousel-caption {
    transition: opacity 0.5s ease;
}

.carousel.slide .carousel-inner {
    overflow: hidden;
    position: relative;
    min-height: 300px;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.carousel-inner {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
    opacity: 0;
    z-index: 0;
    visibility: hidden;
}

.carousel-item.active {
    position: relative;
    opacity: 1;
    z-index: 1;
    visibility: visible;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.carousel-item.active.left,
.carousel-item.active.right {
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out !important;
}

.carousel.sliding-complete .carousel-item {
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out !important;
}

.carousel-inner {
    transition: height 0.6s ease-in-out;
}

.carousel-item.active .carousel-background-image {
    transform: scale(1.1);
}

/* Machine Floor Visualization */
.machine-floor-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    background-color: var(--darker-grey);
}

.machine-floor-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.machine-floor-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: drop-shadow(0 0 10px var(--red-glow));
}

.machine-floor-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 10px var(--red-glow));
    position: relative;
    z-index: 2;
    margin-top: -1px; /* Hide the top line */
    clip-path: inset(1px 0 0 0); /* Clip the top line */
}

.machine-floor-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    background-color: var(--darker-grey);
}

/* Random sparkles */
.sparkle {
    position: absolute;
    background: rgba(255, 61, 61, 0.4);
    border-radius: 50%;
    box-shadow: 
        0 0 20px var(--red-glow),
        0 0 30px var(--red-glow),
        0 0 3px rgba(255, 255, 255, 0.3);
    animation: twinkle var(--sparkle-duration) ease-in-out infinite;
    opacity: 0;
    backdrop-filter: blur(1px);
    filter: blur(0.5px);
}

.sparkle.small {
    width: 1px;
    height: 1px;
}

.sparkle.medium {
    width: 2px;
    height: 2px;
}

.sparkle.large {
    width: 3px;
    height: 3px;
}

@keyframes twinkle {
    0% { 
        opacity: 0;
        transform: scale(0.3);
        filter: blur(0.5px);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.5);
        filter: blur(1px);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
        filter: blur(0.5px);
    }
}

.machine-floor-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

/* Media query for larger screens */
@media (min-width: 1400px) {
    .machine-floor-container {
        margin: 0 auto;
    }
    
    .machine-floor-container img {
        max-height: 80vh;
        object-fit: contain;
    }
}

/* Feature Box in Hero Section */
.feature-box {
    padding: 10px 20px;
    margin-bottom: 30px;
    border: none;
    background: transparent;
    box-shadow: none;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature-item i {
    margin-right: 12px;
    font-size: 1.2em;
}

.feature-highlight {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-title {
        padding-top: 20px;
    }
}

/* Remove the old feature grid styles */
.feature-grid, .feature-col, .clearfix::after {
    display: block;
    box-sizing: border-box;
}

/* Animated Text in Hero Section */
.animated-text-container {
    min-height: 120px;
    overflow: hidden; /* Prevent overflow on mobile */
    width: 100%; /* Ensure full width on mobile */
}

.animated-text-wrapper {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    line-height: 1.3; /* Improve line height for better readability */
}

.animated-text-prefix {
    margin-right: 5px;
}

#animated-text {
    position: relative;
    font-weight: 700;
    word-break: break-word; /* Allow text to break on mobile */

    display: inline-block;
}

#animated-text::after {
    content: '|';
    position: absolute;
    right: -5px;
    color: var(--bs-danger);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.subtext-wrapper {
    min-height: 60px; /* Maintain consistent height for subtexts */
    display: flex;
    align-items: flex-start;
}

#animated-subtext {
    opacity: 0;
    transition: opacity 0.5s ease;
    min-height: 3em; /* Keep consistent height */
    font-size: 1rem; /* Slightly smaller font for subtexts */
    max-width: 100%; /* Ensure text doesn't overflow container */
    margin-bottom: 0; /* Remove bottom margin to prevent layout shifts */
}

#animated-subtext.show {
    opacity: 1;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .animated-text-wrapper {
        font-size: 1.4rem;
    }
    
    .animated-text-container {
        min-height: 150px;
        padding: 0 5px; /* Add some padding on mobile */
    }
    
    #animated-subtext {
        font-size: 0.9rem; /* Even smaller on mobile */
        line-height: 1.4;
    }
    
    /* Reduce animation complexity on mobile for better performance */
    #animated-text::after {
        animation: blink 1s infinite;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .animated-text-wrapper {
        font-size: 1.2rem;
    }
    
    .animated-text-container {
        min-height: 180px;
    }
}

/* Themed Carousel - Enhanced with Futuristic Effects */
.themed-carousel {
    box-shadow: 0 10px 30px rgba(255, 51, 51, 0.2);
    border-radius: 10px;
    position: relative;
    z-index: 1;
    margin: 0 35px;
    overflow: visible;
}

.themed-carousel .carousel-inner {
    overflow: hidden;
    border-radius: 10px;
}

/* Simple carousel controls */
.high-tech-control {
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    box-shadow: none;
    border: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    opacity: 0.7;
}

.carousel-control-prev.high-tech-control {
    left: -35px;
}

.carousel-control-next.high-tech-control {
    right: -35px;
}

.high-tech-control:hover {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.high-tech-control:focus {
    outline: none;
}

/* Simple arrow icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100%;
}

/* Simple carousel indicators */
.themed-carousel .carousel-indicators {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.themed-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0;
    transition: background-color 0.3s ease;
}

.themed-carousel .carousel-indicators button.active {
    background-color: #fff;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .carousel-control-prev.high-tech-control {
        left: -25px;
        width: 30px;
        height: 30px;
    }
    
    .carousel-control-next.high-tech-control {
        right: -25px;
        width: 30px;
        height: 30px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 15px;
        height: 15px;
    }
    
    .themed-carousel {
        margin: 0 25px;
    }
}

@keyframes blob-rotate {
    from {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    to {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes blob-rotate-reverse {
    from {
        transform: rotate(360deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    to {
        transform: rotate(0deg) scale(1.1);
    }
}

/* Footer Styles */
.footer {
    background-color: #0a0a0a;
    border-top: 1px solid rgba(255, 51, 51, 0.2);
}

.footer h5 {
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #FF3333;
    text-decoration: none;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 51, 51, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #FF3333;
    transform: translateY(-3px);
}

.contact-info i {
    font-size: 1.2rem;
}

/* Map Location Section */
#location .row {
    display: flex;
    flex-wrap: wrap;
}

#location .col-lg-6 {
    display: flex;
    flex-direction: column;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 61, 61, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.map-container:hover {
    box-shadow: 0 0 40px rgba(255, 61, 61, 0.3);
    transform: translateY(-5px);
}

.map-wrapper {
    position: relative;
    border-radius: 10px;
    border: 1px solid var(--primary-red);
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 61, 61, 0.2) 0%, rgba(26, 26, 26, 0.4) 100%);
    pointer-events: none;
    z-index: 2;
}

.map-wrapper iframe {
    display: block;
    filter: grayscale(80%) contrast(120%);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 450px;
}

.map-container:hover iframe {
    filter: grayscale(40%) contrast(110%);
}

.location-info {
    background-color: rgba(10, 10, 10, 0.7);
    border-radius: 10px;
    border: 1px solid var(--primary-red);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.location-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 61, 61, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.location-details {
    flex: 1;
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 61, 61, 0.1);
    border-radius: 50%;
    font-size: 1.2rem;
}

.location-details h5 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.z-index-1 {
    z-index: 1;
}

/* Map Responsive Styles */
@media (max-width: 992px) {
    .map-wrapper iframe {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .map-wrapper iframe {
        height: 300px;
    }
}

/* Contact Form Modal Styling */
.modal-content.bg-darker {
    background-color: #121212;
    border: 1px solid rgba(255, 51, 51, 0.4);
    box-shadow: 0 0 30px rgba(255, 61, 61, 0.2);
}

.modal-header.border-danger {
    border-bottom: 1px solid rgba(255, 51, 51, 0.4);
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

/* Form styling */
.form-control.bg-dark, 
.form-select.bg-dark {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff;
}

.form-control.bg-dark:focus, 
.form-select.bg-dark:focus {
    border: 1px solid rgba(255, 51, 51, 0.8) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 51, 51, 0.25);
    background-color: #1a1a1a;
}

.form-floating label {
    color: rgba(255, 255, 255, 0.6);
}

.form-check-input {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

.form-check-input:focus {
    border-color: rgba(255, 51, 51, 0.8);
    box-shadow: 0 0 0 0.2rem rgba(255, 51, 51, 0.25);
}

.border-white {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.15);
    border-color: rgba(25, 135, 84, 0.4);
    color: #fff;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.4);
    color: #fff;
}

/* Contact Form Styles */
.contact-form-card {
    position: relative;
    background-color: rgba(30, 30, 30, 0.9);
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.contact-form-card .form-label {
    color: #f8f9fa;
    font-weight: 500;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.contact-form-card .form-control::placeholder {
    color: #6c757d;
}

/* Enhance form elements in dark theme */
.bg-dark.form-control, 
.bg-dark.form-select {
    background-color: #212529;
    color: #fff;
    border: 1px solid #444;
}

/* Custom checkbox styling for dark mode */
.custom-checkbox:checked {
    background-color: #dc3545 !important;  /* Bootstrap danger color */
    border-color: #dc3545 !important;
}

.form-check-input:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Bootstrap overrides for dark mode forms */
.bg-dark .form-check-input {
    background-color: #343a40;
    border-color: rgba(255, 255, 255, 0.25);
}

.bg-dark .form-check-input:checked {
    background-color: #dc3545; /* Bootstrap danger color */
    border-color: #dc3545;
}

/* Make checkbox checkmark white and more visible */
.form-check-input:checked[type=checkbox] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

/* Enhanced checkbox styling for better visibility */
.form-check-input {
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    background-color: transparent;
    width: 18px;
    height: 18px;
}

.form-check-input:checked {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

/* Make the checkbox bigger and more visible */
#privacy.form-check-input {
    width: 20px;
    height: 20px;
}

/* Make checkmark bright white and thicker for better visibility */
.form-check-input:checked[type=checkbox] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3.5' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

/* Improve the checkbox focus state */
.form-check-input:focus {
    border-color: rgba(220, 53, 69, 0.7) !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.3);
}

/* Fix dark mode checkbox visibility issues */
.form-check-input#privacy {
    background-color: rgba(255, 255, 255, 0.15) !important; /* Light background for visibility */
    border: 2px solid rgba(255, 255, 255, 0.7) !important; /* Bright white border */
    width: 22px; /* Slightly larger */
    height: 22px; /* Slightly larger */
    cursor: pointer; /* Show pointer cursor */
    margin-top: 0.2rem; /* Better alignment with label */
}

/* When unchecked but hovered */
.form-check-input#privacy:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
}

/* When checked */
.form-check-input#privacy:checked {
    background-color: #dc3545 !important; /* Red background when checked */
    border-color: #dc3545 !important;
}

/* Make the checkmark extra visible */
.form-check-input#privacy:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
    background-size: 80% !important; /* Slightly larger checkmark */
    background-position: center !important;
}

/* Also adjust the label for better visibility */
.form-check-label {
    color: rgba(255, 255, 255, 0.9) !important; /* Brighter text */
    padding-left: 0.25rem;
}

.feature-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.feature-list li {
    position: relative;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.feature-list li i {
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.feature-list li span {
    flex: 1;
}

.feature-list.enhanced li {
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.feature-list.enhanced li:last-child {
    margin-bottom: 0;
}

.feature-list.enhanced li {
    font-size: 0.95rem;
}

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    position: relative;
    /* Make loader larger than the logo to surround it */
    width: 200px;  /* Increased from 60px */
    height: 200px; /* Increased from 60px */
}

.loader .inner {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #ff3333;
    animation: spin 1.5s linear infinite;
}

.loader .one {
    width: 100%;
    height: 100%;
}

.loader .two {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #ff3333;
    animation-delay: 0.2s;
}

.loader .three {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #ff3333;
    animation-delay: 0.4s;
}

/* Logo in loader styling */
.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    text-align: center;
}

.loader-logo img {
    max-width: 150px; /* You can adjust this if needed */
    height: auto;
    opacity: 0.9;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff3333;
    color: #ffffff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #cc0000;
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
}

/* Logo in loader styling */
.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    text-align: center;
}

.loader-logo img {
    max-width: 150px;
    opacity: 0.9;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* Device Compatibility Section */
.device-compatibility-section {
    position: relative;
    overflow: hidden;
    background-color: var(--metallic-grey);
}

.device-item {
    position: relative;
    padding: 2rem 0;
}

.device-title {
    margin-bottom: 0;
}

.device-toggle {
    background: transparent;
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 700;
    padding: 0;
    text-align: left;
    border: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.device-toggle:hover, 
.device-toggle:focus {
    color: var(--primary-red);
    background: transparent;
    box-shadow: none;
}

.device-toggle i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.device-toggle:not(.collapsed) i {
    transform: rotate(180deg);
}

.device-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
    font-family: 'Arial', sans-serif;
}

.device-image-wrapper {
    position: relative;
    overflow: visible;
    padding: 1rem;
}

.geometric-frame {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.5s ease;
}

.geometric-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.geometric-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--primary-red), transparent);
    z-index: -1;
    border-radius: 20px;
    opacity: 0.6;
    filter: blur(10px);
}

.device-image {
    border-radius: 12px;
    transition: all 0.5s ease;
}

.geometric-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.2) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 12px;
}

/* Feature Icons Grid */
.device-features-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 2rem;
}

.feature-icon-item {
    text-align: center;
    width: 120px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 51, 51, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-red), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-icon:hover::before {
    opacity: 0.6;
}

.feature-icon i {
    font-size: 1.5rem;
}

.feature-icon-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .device-toggle {
        font-size: 1.5rem;
    }
    
    .device-features-grid {
        gap: 2rem;
    }
    
    .feature-icon-item {
        width: 100px;
    }
}

@media (max-width: 767px) {
    .device-features-grid {
        gap: 1.5rem;
    }
    
    .feature-icon-item {
        width: 90px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
}

/* Hero Carousel Section - Full Width */
.hero-carousel-section {
    position: relative;
    margin-top: 76px; /* Adjust based on navbar height */
    width: 100%;
    overflow: hidden;
}

#heroFullCarousel {
    position: relative;
    width: 100%;
}

.carousel-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center right;
    filter: brightness(0.7);
    transition: transform 6s ease-in-out;
    z-index: 1;
}

.carousel-item {
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
}

.carousel-content-container {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(0deg, rgba(26,26,26,0.9) 0%, rgba(26,26,26,0.7) 50%, rgba(26,26,26,0.2) 100%);
}

.carousel-content {
    max-width: 800px;
    padding: 2rem 0;
    color: #FFFFFF;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
    margin: 0 auto;
}

.carousel-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: #FFFFFF;
    position: relative;
    display: inline-block;
}

.carousel-subtitle:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-red);
    box-shadow: 0 0 10px var(--primary-red);
}

.carousel-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.carousel-title br {
    display: block;
    content: "";
}

.carousel-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 90%;
    color: rgba(255, 255, 255, 0.9);
    margin-left: auto;
    margin-right: auto;
}

.carousel-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.carousel-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.carousel-buttons .btn-danger {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(255, 61, 61, 0.4);
}

.carousel-buttons .btn-danger:hover {
    background-color: #ff1a1a;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 61, 61, 0.6);
}

.carousel-buttons .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Carousel Controls */
#heroFullCarousel .carousel-control-prev,
#heroFullCarousel .carousel-control-next {
    width: 5%;
    z-index: 10;
    opacity: 0.7;
    transition: all 0.3s ease;
}

#heroFullCarousel .carousel-control-prev:hover,
#heroFullCarousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.2);
}

#heroFullCarousel .carousel-control-prev-icon,
#heroFullCarousel .carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 61, 61, 0.7);
    border-radius: 50%;
    background-size: 50%;
}

#heroFullCarousel .carousel-indicators {
    z-index: 10;
    margin-bottom: 2rem;
}

#heroFullCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

#heroFullCarousel .carousel-indicators button.active {
    background-color: var(--primary-red);
    width: 14px;
    height: 14px;
    box-shadow: 0 0 10px var(--primary-red);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .carousel-title {
        font-size: 2.5rem;
    }
    
    .carousel-text {
        font-size: 1rem;
    }
    
    .carousel-item {
        height: 80vh;
    }
}

@media (max-width: 767.98px) {
    .hero-carousel-section {
        margin-top: 56px; /* Adjust for smaller navbar on mobile */
    }
    
    .carousel-item {
        height: 100vh;
        min-height: 600px;
    }
    
    .carousel-title {
        font-size: 2rem;
        margin-bottom: 1rem;
        word-break: normal;
        white-space: normal;
        line-height: 1.2;
    }
    
    .carousel-subtitle {
        font-size: 1rem;
        white-space: normal;
        line-height: 1.3;
    }
    
    .carousel-text {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    
    .carousel-content {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
    
    .carousel-content-container {
        background: linear-gradient(0deg, rgba(26,26,26,0.95) 0%, rgba(26,26,26,0.85) 70%, rgba(26,26,26,0.7) 100%);
    }
    
    .carousel-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .carousel-buttons .btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    #heroFullCarousel .carousel-control-prev,
    #heroFullCarousel .carousel-control-next {
        width: 10%;
    }
    
    #heroFullCarousel .carousel-control-prev-icon,
    #heroFullCarousel .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
    
    #heroFullCarousel .carousel-indicators {
        margin-bottom: 1rem;
    }
    
    #heroFullCarousel .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
    
    #heroFullCarousel .carousel-indicators button.active {
        width: 10px;
        height: 10px;
    }
    
    .carousel-background-image {
        background-position: center center;
    }
}

@media (max-width: 575.98px) {
    .carousel-item {
        height: 100vh;
        min-height: 550px;
    }
    
    .carousel-title {
        font-size: 1.75rem;
        hyphens: auto;
        overflow-wrap: break-word;
    }
    
    .carousel-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
        hyphens: auto;
    }
    
    .carousel-text {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .carousel-content {
        padding: 1.5rem 1rem;
        width: 100%;
    }
}

/* Extra small devices */
@media (max-width: 374.98px) {
    .carousel-title {
        font-size: 1.4rem;
    }
    
    .carousel-subtitle {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .carousel-text {
        font-size: 0.85rem;
    }
    
    .carousel-content {
        padding: 1.25rem 0.75rem;
    }
    
    .carousel-buttons .btn {
        font-size: 0.9rem;
        padding: 0.6rem 0.75rem;
    }
}

/* Custom Solution Card */
.custom-solution-card {
    background-color: #222;
    border: 1px solid var(--primary-red);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.custom-solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 61, 61, 0.15);
}

.custom-solution-card:before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background-color: var(--primary-red);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.custom-solution-card:after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    background-color: var(--primary-red);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.custom-solution-card h5,
.custom-solution-card p,
.custom-solution-card ul,
.custom-solution-card a {
    position: relative;
    z-index: 1;
}

/* Feature Illustrations Section Enhancements */
.feature-illustrations {
    position: relative;
    overflow: hidden;
}

.feature-illustrations::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: rgba(255, 51, 51, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.feature-illustrations::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 51, 51, 0.03);
    border-radius: 50%;
    z-index: 0;
}

.feature-illustration-wrapper {
    height: 400px;
    width: 100%;
    position: relative;
}

.feature-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    transform: translateY(0);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.feature-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.1), rgba(26, 26, 26, 0.8));
    z-index: 1;
}

.feature-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #FF3333;
    color: #ffffff;
    padding: 8px 12px 8px 16px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    z-index: 2;
    transform: translateY(0);
    transition: all 0.3s ease;
    text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.feature-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: -1;
}

.feature-card:hover .feature-badge {
    transform: translateX(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    background: #ff4d4d;
}

.feature-content {
    padding: 30px;
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    position: relative;
    z-index: 2;
    border-left: 3px solid #FF3333;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-content:hover {
    transform: translateX(5px);
    background: rgba(26, 26, 26, 0.5);
}

.feature-row {
    position: relative;
    z-index: 1;
    padding: 30px 0;
    margin-bottom: 40px;
}

.feature-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(26, 26, 26, 0.3) 0%, rgba(26, 26, 26, 0) 70%);
    z-index: -1;
    border-radius: 50%;
    transform: scale(1, 0.7);
}

.feature-video {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: all 0.5s ease;
    border-radius: 12px;
    opacity: 1; /* Changed from 0 to 1 to make videos visible by default */
}

.feature-video.loaded {
    opacity: 1;
}

.feature-video.loaded:hover {
    transform: scale(1.05);
}

.feature-img {
    position: relative;
    z-index: 1;
    transition: opacity 0.5s ease;
    border-radius: 12px;
}

.feature-card:hover .feature-img {
    opacity: 0;
}

.feature-card:hover .feature-video {
    transform: scale(1.05);
}

/* Media Queries for Feature Section */
@media (max-width: 991px) {
    .feature-content {
        margin-top: 20px;
    }
    
    .feature-illustration-wrapper {
        height: 350px;
    }
    
    .feature-row {
        padding: 20px 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .feature-illustration-wrapper {
        height: 300px;
    }
    
    .feature-row {
        padding: 15px 0;
        margin-bottom: 25px;
    }
    
    .feature-badge {
        font-size: 13px;
        padding: 7px 10px 7px 14px;
    }
}

@media (max-width: 575px) {
    .feature-illustration-wrapper {
        height: 250px;
    }
    
    .feature-video {
        max-height: 250px;
    }
    
    .feature-badge {
        font-size: 12px;
        padding: 6px 10px 6px 14px;
        top: 15px;
        right: 15px;
    }
    
    .feature-content {
        padding: 20px;
    }
    
    .feature-title {
        font-size: 1.5rem;
    }
    
    .feature-list.enhanced li {
        padding: 10px 0 10px 35px;
        margin-bottom: 8px;
    }
    
    .feature-list.enhanced li:hover {
        padding-left: 38px;
    }
    
    .feature-icon {
        left: 8px;
    }
    
    .feature-icon i {
        font-size: 16px;
    }
}

.feature-title {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.feature-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #FF3333;
}

.feature-list.enhanced {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
}

.feature-list.enhanced li {
    position: relative;
    padding: 12px 0 12px 40px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.feature-list.enhanced li:hover {
    background: rgba(26, 26, 26, 0.3);
    padding-left: 45px;
}

.feature-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 18px;
    filter: drop-shadow(0 0 5px rgba(255, 51, 51, 0.5));
}

/* Video Modal Styling */
#videoModal .modal-content {
    background-color: #1A1A1A;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

#videoModal .modal-header {
    background-color: rgba(26, 26, 26, 0.8);
    border-bottom: 1px solid rgba(255, 51, 51, 0.3);
    padding: 15px 20px;
}

#videoModal .modal-title {
    color: #FFFFFF;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

#videoModal .modal-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: #FF3333;
    border-radius: 2px;
}

#videoModal .btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

#videoModal .btn-close-white:hover {
    opacity: 1;
    transform: rotate(90deg);
}

#videoModal .modal-body {
    padding: 0;
}

#modalVideo {
    display: block;
    width: 100%;
    border-radius: 0 0 12px 12px;
    background-color: #000;
}

/* Video hover effect */
.feature-video {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.feature-video::after {
    content: '\f04b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #FFFFFF;
    background-color: rgba(255, 51, 51, 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.feature-video:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 767px) {
    #videoModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .feature-video::after {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .feature-video::after {
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 575px) {
    .feature-video::after {
        font-size: 1.2rem;
        width: 40px;
        height: 40px;
    }
}

/* How It Works Section */
.how-it-works .bg-darker {
    background-color: var(--darker-grey);
    border-color: var(--primary-red) !important;
}

.how-it-works .hero-card {
    background-color: var(--dark-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.how-it-works .hero-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-red), transparent);
}

.how-it-works .feature-box {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border-left: 3px solid var(--primary-red);
}

.how-it-works .image-container {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.how-it-works .tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 61, 61, 0.2), rgba(0, 0, 0, 0.7));
    z-index: 1;
    pointer-events: none;
}

.how-it-works img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.how-it-works .corner-accent {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 2;
}

.how-it-works .corner-accent.top-left {
    top: 15px;
    left: 15px;
    border-top: 3px solid var(--primary-red);
    border-left: 3px solid var(--primary-red);
}

.how-it-works .corner-accent.top-right {
    top: 15px;
    right: 15px;
    border-top: 3px solid var(--primary-red);
    border-right: 3px solid var(--primary-red);
}

.how-it-works .corner-accent.bottom-left {
    bottom: 15px;
    left: 15px;
    border-bottom: 3px solid var(--primary-red);
    border-left: 3px solid var(--primary-red);
}

.how-it-works .corner-accent.bottom-right {
    bottom: 15px;
    right: 15px;
    border-bottom: 3px solid var(--primary-red);
    border-right: 3px solid var(--primary-red);
}

.how-it-works .feature-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.how-it-works .feature-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}

.how-it-works .feature-list li i {
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.how-it-works .feature-list li span {
    flex: 1;
}

.how-it-works .feature-list.enhanced li {
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.how-it-works .feature-list.enhanced li:last-child {
    margin-bottom: 0;
}

.how-it-works .feature-list.enhanced li {
    font-size: 0.95rem;
}

.how-it-works .text-body-emphasis {
    color: var(--text-color) !important;
}

.how-it-works .rounded-lg {
    border-radius: 1rem !important;
}

@media (max-width: 991.98px) {
    .how-it-works .image-container {
        margin-top: 2rem;
    }
}

.how-it-works .feature-list {
    margin-bottom: 0;
}

.how-it-works .feature-list li {
    font-size: 1.1rem;
}

.how-it-works .feature-list li strong {
    display: inline-block;
    margin-right: 0.25rem;
}

.how-it-works .text-body-emphasis {
    color: var(--text-color) !important;
}

.how-it-works .rounded-lg {
    border-radius: 1rem !important;
}