:root {
  /* Brand Colors */
  --clr-primary: #C81208;        /* New Primary: Bold Red */
  --clr-secondary: #20808E;      /* New Secondary: Deep Teal */
  --clr-accent: #E3F6F8;         /* Lightened accent based on secondary */

  /* Backgrounds */
  --bg-dark: #0D0D0D;
  --bg-light: #F9F9F9;

  /* Text Colors */
  --text-light: #FFFFFF;
  --text-dark: #121212;
  --text-muted: #777777;

  /* UI Colors */
  --border-color: #DDDDDD;
  --hover-bg: rgba(200, 18, 8, 0.1);  /* Subtle red hover effect */

  /* CTA (Call to Action) */
  --cta-bg: var(--clr-primary);
  --cta-text: #FFFFFF;

  /* Overlay & Effects */
  --overlay-dark: rgba(0, 0, 0, 0.6);
  --bubble-light: rgba(255, 255, 255, 0.25);
  --bubble-soft: rgba(255, 255, 255, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    font-family: 'Poppins', sans-serif;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    z-index: 1050;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.spinner-overlay {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 0;
    left: 0;
    border-width: 8px;
    box-sizing: border-box;
}

.spinner-border {
    color: var(--clr-primary);
}

.logo-inside-spinner {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.5;
}

body, html {
    height: 100%;
    width: 100%;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#mainNavbar {
    transition: transform 0.35s ease-in-out, background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1050;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    will-change: transform;
}

#mainNavbar.navbar-hidden {
    transform: translateY(-100%);
}

#mainNavbar.scrolled {
    background-color: #1a1a1a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#mainNavbar .navbar-toggler {
    border: none;
}

#mainNavbar.scrolled .nav-link {
    color: #f0f0f0 !important;
}

#mainNavbar.scrolled .nav-link.active {
    color: var(--clr-primary) !important;
    border-bottom: 2px solid var(--clr-primary);
}

#mainNavbar.scrolled .navbar-brand img {
    filter: invert(1) hue-rotate(180deg);
}

#mainNavbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23C81208' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    filter: none; /* optional, remove invert to keep clean color */
}

#mainNavbar.scrolled .nav-link:hover {
    color: var(--clr-primary);
}

.navbar-brand img {
    width: 100%;
    height: 50px;
    object-fit: cover;
}

.navbar .nav-link {
    position: relative;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: var(--clr-primary);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 100%;
}

.navbar .nav-link:hover {
    color: var(--clr-primary) !important;
}

.nav-link.active {
    color: var(--clr-primary) !important;
    border-bottom: 2px solid var(--clr-primary);
}

@media (max-width: 768px) {
    #mainNavbar.scrolled {
        background-color: var(--bg-light);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    #mainNavbar.scrolled .nav-link:hover {
        color: var(--clr-primary) !important;
    }

    #mainNavbar.scrolled .navbar-toggler-icon {
        filter: none;
    }

    #mainNavbar.scrolled .navbar-nav {
        box-shadow: -5px -5px 10px rgba(200, 18, 8, 0.2);
    }

    .navbar-nav {
        margin-top: 10px;
        padding: 10px;
        box-shadow: -3px -3px 7px rgba(0, 0, 0, 0.2);
    }
    
    .navbar-nav .nav-link {
        font-size: 1rem;
        transition: all 0.3s ease;
        padding: 5px 10px;
        border: 2px solid transparent;
        border-radius: 5px;
    }
    
    .navbar .nav-link::after {
        display: none;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        color: var(--clr-primary) !important;
        border-color: var(--clr-primary) !important;
    }

    .nav-link i {
        margin-left: 0.5rem;
    }
}

.manual-dropdown {
    position: relative;
}

.manual-dropdown > .submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-right: 1rem;
}

.manual-dropdown-menu {
    display: none;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

@media (min-width: 992px) {
    .manual-dropdown:hover > .manual-dropdown-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--border-color);
        min-width: 200px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        border-radius: 0.25rem;
        z-index: 1050;
    }
    
    .manual-dropdown-menu .dropdown-item {
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }
}

/* Mobile view */
@media (max-width: 991px) {
    .manual-dropdown-menu.show {
        display: block;
        margin-left: 0.5rem;
        margin-top: 0.25rem;
        background-color: transparent;
        border-left: 2px solid var(--border-color);
        padding-left: 0.5rem;
        border-radius: 0.25rem;
    }
    
    .manual-dropdown-menu .dropdown-item {
        padding: 0.5rem 1rem;
        color: #212529;
        background-color: transparent;
    }
    
    .manual-dropdown-menu .dropdown-item:hover {
        background-color: var(--hover-bg);
        color: var(--clr-primary);
    }
    
    .submenu-toggle {
        cursor: pointer;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.carousel-item {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.carousel-item img {
    position: relative;
    z-index: 0;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 65%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 65%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 60px;
    z-index: 2;
}

.carousel-text {
    color: var(--bg-light);
    max-width: 500px;
    margin-left: 70px;
    z-index: 3;
    position: relative;
    pointer-events: auto;
}

.carousel-text h1 {
    font-size: 3rem;
    font-weight: bold;
}

.carousel-text p {
    font-size: 1.25rem;
    margin-top: 1rem;
}

.carousel-text a {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 4;
}

@media (max-width: 768px) {
    .carousel-overlay {
      width: 100%;
      padding: 2rem;
      background: rgba(0, 0, 0, 0.7);
    }

    .carousel-text {
      max-width: 100%;
      margin-left: 0;
      padding: 0 1rem;
    }
  
    .carousel-text h1 {
      font-size: 2rem;
    }
  
    .carousel-text p {
      font-size: 1rem;
    }
}

.hero-section {
    position: relative;
    background: 
        linear-gradient(to right, var(--overlay-dark), var(--clr-secondary)),
        url(../images/business_software.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 5rem 0;
    height: 100vh
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-animation {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    max-width: 50%;
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
}

/* CTA Button */
.cta-btn {
    background-color: var(--cta-bg);
    color: var(--cta-text);
    border: none;
    padding: 0.43rem 1.3rem;
    font-weight: 600;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background-color: var(--clr-primary);
    color: var(--bg-dark);
}

/* Bubbles */
.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 40px;
    background-color: var(--bubble-light);
    border-radius: 50%;
    animation: rise 6s infinite ease-in;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.bubble:nth-child(5n+1) { left: 10%; animation-delay: 0s; }
.bubble:nth-child(5n+2) { left: 30%; animation-delay: 1s; }
.bubble:nth-child(5n+3) { left: 50%; animation-delay: 2s; }
.bubble:nth-child(5n+4) { left: 70%; animation-delay: 3s; }
.bubble:nth-child(5n+5) { left: 90%; animation-delay: 4s; }

.bubble:nth-child(even) {
    width: 25px;
    height: 25px;
    background-color: var(--bubble-soft);
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-110vh) scale(0.5);
        opacity: 0;
    }
}

/* Services Section */
.services-section {
    color: var(--text-dark);
}

.service-item i {
    font-size: 3rem;
    color: var(--cta-bg);
}

.service-item h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 20px;
    color: var(--clr-secondary);
}

.service-item p {
    font-size: 1rem;
    color: var(--text-dark);
}

/*** Team ***/
.team-item .btn {
    width: 40px;
    height: 40px;
    color: var(--cta-bg);
    background: var(--text-light);
    /* border: 2px solid var(--cta-bg); */
}

.team-item .btn:hover {
    color: var(--text-light);
    background: var(--cta-bg);
}

.text-center img {
    height: 400px;
    width: 100%;
    object-fit: cover;
}

/*** Testimonial ***/
.testimonial-carousel .testimonial-item {
    padding: 0 30px 30px 30px;
}

.testimonial-carousel .owl-nav {
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cta-bg);
    background: var(--text-dark);
    border-radius: 60px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--text-light);
    background: var(--cta-bg);
    box-shadow: var(--overlay-dark);
    transform: scale(1.1);
}

.testimonial:hover .testimonial-container {
    transform: translateY(-3px);
}

.registration {
    background-color: var(--bg-light);
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-top: 2px solid var(--border-color);
}

.registration-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.registration-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: left;
}

.registration-form h2 {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.registration-form p {
    font-size: 18px;
    margin-bottom: 20px;
}

.registration-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.registration-form input {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    font-size: 1.15rem;
}

.registration-form button {
    background-color: var(--border-color);
    color: var(--text-dark);
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.15rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.registration-form button:hover {
    background-color: var(--hover-bg);
    color: var(--text-dark);
    letter-spacing: 1px;
    transform: translateY(-2px);
}

.registration-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.registration-image img {
    width: 100%;
    border-radius: 10px;
    max-height: 380px;
    object-fit: cover;
    animation: rotateImages 6s infinite;
}

@keyframes rotateImages {
    0% {
        content: url(../images/relic_edge_digital_solutions.webp);
    }
    33% {
        content: url(../images/relic_edge_digital_solutions_1.webp);
    }
    66% {
        content: url(../images/relic_edge_digital_solutions_2.webp);
    }
    100% {
        content: url(../images/relic_edge_digital_solutions_3.webp);
    }
}

/* Footer Section */
.footer-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.footer-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-contact {
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    display: inline-block;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: underline;
}

.footer-links .contact-info p a:hover {
    color: var(--clr-primary);
}

.footer-links a:hover {
    color: var(--cta-bg);
    letter-spacing: 2px;
}

.footer-social a {
    margin-right: 0.75rem;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.footer-social a:hover {
    color: var(--clr-accent);
}

.footer-legal a {
    color: var(--text-dark);
    text-decoration: none;
    margin-left: 0.5rem;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .hero-section {
        height: 100vh;
        padding: 2rem 0;
        background: 
            linear-gradient(to top right, var(--overlay-dark), #3B0B09),
            url(../images/business_software.webp);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }

    .hero-section .container {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
        max-height: 100%;
    }

    .hero-section .container .animation {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .footer-section {
        padding: 2rem 0;
        background: #3B0B09;
        color: var(--text-light);
    }

    .footer-section a,
    .footer-section p {
        text-decoration: none;
        color: var(--text-light);
    }

    .footer-section a:hover {
        color: var(--clr-primary);
        letter-spacing: 2px;
        transition: all 0.3s ease;
    }

    .registration-content {
        flex-direction: column;
        align-items: center;
    }

    .registration-image {
        margin-top: 20px;
    }
}   

.service-details .row:nth-child(odd) {
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.service-details .row:nth-child(even) {
    background-color: #f4f4f4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

@media screen and (max-width: 768px) {
    #service-details {
        margin: 0 !important;
        padding: 0 !important;
    }
    .service-details .row:nth-child(odd) {
        background-color: #f4f4f4;
        box-shadow: none;
        padding: 10px;
    }

    .service-details .row:nth-child(even) {
        background-color: #f9f9f9;
        box-shadow: none;
        padding: 10px;
    }
    #service-details img {
        width: 100%;
        height: auto;
        margin-top: 10px;
        box-shadow: none;
        border: none;
    }
}


/*** About ***/
.progress {
    height: 5px;
}

.progress .progress-bar {
    width: 0px;
    transition: 3s;
}

/*** Fact ***/

.fact {
    margin: 6rem 0;
    background:
        url(../images/blob-top-left.webp),
        url(../images/blob-top-right.webp),
        url(../images/blob-bottom-left.webp),
        url(../images/blob-bottom-right.webp),
        url(../images/blob-center.webp),
        var(--overlay-dark);
    background-position:
        left 0px top 0px,
        right 0px top 0px,
        left 0px bottom 0px,
        right 0px bottom 0px,
        center center,
        center center;
    background-repeat: no-repeat;
}

.fact i {
    font-size: 3rem;
    color: var(--clr-primary);
}

.reason-card {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-5px);
}

.reason-card h3 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-top: 20px;
    color: var(--clr-secondary);
}

.reason-card p {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.capability .container .heading h2{
    font-size: 4rem;
    font-weight: 600;
    margin-top: 20px;
    color: var(--clr-primary);
}

.capability .container .heading p{
    font-size: 1.2rem;
}

.capability .container .heading h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background-color: var(--clr-primary);
    margin-top: 20px;
}

.capability-card {
    padding: 20px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.capability-card:hover {
    transform: translateY(-5px);
}

.capability-card h5 {
    font-size: 2.3rem;
    font-weight: 600;
    margin-top: 20px;
}

.capability-card ul li {
    font-size: 1.3rem;
}

.main-container {
    margin-top: 80px;
}

.contact-text h2 {
    font-size: 4rem;
    font-weight: 600;
    margin-top: 20px;
    color: var(--clr-primary);
}

.contact-text p {
    font-size: 1.2rem;
}

.contact-text h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background-color: var(--clr-primary);
    margin-top: 20px;
}

.contact-section img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.contact-form-title .section-title {
    font-size: 2rem;
    font-weight: 600;
    padding: 20px;
    color: var(--clr-primary);
}

.location-map {
    background: linear-gradient(to right, #9bcfff, var(--text-light));
    padding: 20px;
    box-shadow: 0 2px 8px var(--text-dark);
    border-radius: 10px;
    font-size: 2rem;
}

.location-map h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 600;
}
.location-map p {
    font-size: 1.7rem;
    color: var(--text-dark);
}

.custom-caption {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    z-index: 2;
}

.blur-fade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(12px);
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent);
    z-index: 1;
    pointer-events: none;
}

.caption-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    max-width: 90%;
}

.caption-content h5 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.caption-content p {
    font-size: 1.25rem;
    margin: 0;
}

.back-to-top,
#whatsappButton {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 56px;
    height: 56px;
    font-size: 28px;
    background-color: #25d366;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    text-decoration: none;
}

#whatsappButton:hover {
    background-color: #1ebe57;
}

.back-to-top {
    bottom: 20px;
    width: 48px;
    height: 48px;
    font-size: 24px;
    background-color: var(--cta-bg);
    color: var(--text-dark);
    opacity: 0.8;
    z-index: 1040;
}

.back-to-top:hover,
.back-to-top:focus {
    background-color: #23272b;
    opacity: 1;
    outline: none;
}

/* Media query for small screens */
@media (max-width: 768px) {
    #whatsappButton,
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}