* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ba0a3c;
    --secondary-color: #202020;
    --tertiary-color: white;
    --quaternary-color: #DDDDDD;
}

body {
    font-family: "Roboto", sans-serif;
    box-sizing: border-box;
    line-height: 1.6;
    background-color: var(--secondary-color);
}

/* Loading Animation */
.animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--secondary-color); /* Background color for animation */
    z-index: 1000;
    display: none;
}

.arrow {
    position: absolute;
    opacity: 0;
}

.left-arrow {
    animation: moveLeft 2s  forwards;
    transform: translateX(-125px);
    overflow: visible;
    overflow-clip-margin: unset;
}

.right-arrow {
    animation: moveRight 2s forwards;
    transform: translateX(125px);
    overflow: visible;
    overflow-clip-margin: unset;
}

.main-content {
    display: none;
    opacity: 0;
    animation: fadeInContent 1s forwards;
}

@keyframes moveLeft {
    0% {
        opacity: 0.1;
        transform: translateX(-125px) translateY(-95px); /* Initial position */
    }
    25% {
        transform: translateX(-125px) translateY(-95px); /* No vertical change */
    }
    50% {
        opacity: 1;
        transform: translateX(-125px) translateY(-95px); /* Still no vertical change */
    }
    100% {
        transform: translateX(-60vw) translateY(-95px); /* Horizontal move only */
    }
}

@keyframes moveRight {
    0% {
        opacity: 0.1;
        transform: translateX(125px) translateY(95px); /* Initial position */
    }
    25% {
        transform: translateX(125px) translateY(95px); /* No vertical change */
    }
    50% {
        opacity: 1;
        transform: translateX(125px) translateY(95px); /* Still no vertical change */
    }
    100% {
        transform: translateX(60vw) translateY(95px); /* Horizontal move only */
    }
}
  
@keyframes fadeInContent {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
}

/*Responsive Header*/
.header {
    position: sticky;
    top: 0;
    z-index: 10;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary-color);
    padding: 0.6rem 0.6rem;
    color: var(--tertiary-color);
    transition: all 0.3s ease-in;
}

/* Initial Transparent Header */
.header {
    background: transparent;
    box-shadow: none;
    border-radius: 0; /* No rounded corners initially */
}
  
/* Scrolled Header */
.header.scrolled {
    background: var(--quaternary-color); /* Default background on scroll */
    border-radius: 120px; /* Rounded corners */
    top: 10px;
    padding: 0rem 2rem;
}
  
/* Dynamic Color Transitions */
.header.scrolled.light {
    background: #f0f0f0;
    border: 5px solid var(--primary-color);
}
  
.header.scrolled.dark {
    background: var(--secondary-color);
    border: 2px solid #ffffff;
}

.logo {
    max-width: 175px;
    height: auto;
    display: block;
    justify-content: left;
}

.nav {
    display: none;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin: 0.5rem;
    position: relative;
}

.nav ul li a {
    text-decoration: none;
    color: #686E75;
    font-size: 1.2rem;
    font-weight: normal;
    padding: 8px 32px 8px 12px;
    border-radius: 20px;
}

.nav ul li a:hover {
    background-color: var(--primary-color);
    color: var(--tertiary-color);
    transition: 0.5s;
}

.nav ul li .phone-btn {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--tertiary-color);
}

.nav ul li .chevron {
    display: inline-block;
    position: relative;
    height: 20px;
    padding-left: 0.3rem;
}

.nav ul li .chevron::before,
.chevron::after {
    position: absolute;
    display: inline-block;
    content: "";
    border: 10px solid transparent;
}

.chevron::after {
    bottom: -10px;
    border-top-color: #686E75;
}

.nav ul li a:hover .chevron::after {
    border-top-color: #ffffff; /* New secondary color on hover */
}
/*Menu button Modal*/
.menu-icon {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Modal container */
.menu-modal {
    position: fixed;
    top: 0; /* Stay at the top */
    left: 0;
    width: 100%;
    height: 40%; /* Occupy the top half */
    background-color: var(--primary-color);
    color: var(--tertiary-color);
    border-radius: 0 0 50px 50px;
    display: flex; /* Flex container for centering */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transform: translateY(-105%); /* Initially off-screen */
    transition: transform 0.5s ease; /* Smooth transition for sliding */
}

/* Show the modal */
.menu-modal.open {
    transform: translateY(0); /* Slide into view */
}

/* Modal header (includes close button) */
.modal-header {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Modal navigation links */
.modal-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.modal-nav ul li {
    margin: 1rem 0;
}

.modal-item {
    text-decoration: none;
    color: var(--tertiary-color);
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.spacing {
    padding-bottom: 10px;
}

.modal-tel {
    background-color: var(--tertiary-color);
    padding: 8px 15px;
    border-radius: 45px;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
    font-weight:600;
    text-decoration: none;
}

/* Close button styling */
.close-btn {
    color: var(--tertiary-color);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}



/* Hero Container */
.hero-container {
    position: relative;
    height: calc(100vh - 95.88px);
    overflow: hidden;
    background: var(--secondary-color); /* Set default background color */
}
  
/* Canvas */
canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
  
/* Hero Content */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--tertiary-color);
    text-align: center;
    z-index: 1;
}
  
.hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    animation: fadeIn 1.5s ease-out;
}
  
.hero-content p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #ddd;
    animation: fadeIn 2s ease-out;
}
  
.cta-button {
    padding: 15px 30px;
    font-size: 1.1rem;
    color: var(--tertiary-color);
    background: var(--primary-color);
    border: none;
    border-radius: 51px;
    cursor: pointer;
    animation: fadeIn 2.5s ease-out;
}
  
.cta-button:hover {
    background: var(--tertiary-color);
    color: var(--primary-color);
}

/*Universal Section Styles*/
.section-heading {
    padding: 3rem 2rem 0rem 2rem;
}

.section-title {
    font-size: 1.5rem;
    padding-bottom: 1.5rem;
    font-weight: bold;
}

.section-description {
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Services Section */
.services-section {
    background-color: var(--primary-color);
    text-align: center;
}

.services-heading h2 {
    color: var(--tertiary-color);
}

.services-heading p {
    color: #DDDDDD
}
  
.services-container {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Space between each service */
    padding: 3rem 2rem;
}
  
.service-item {
    display: flex;
    flex-direction: column; /* Stacks content vertically */
    align-items: center;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
  
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
  
.service-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}
  
.service-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
  
.service-text p {
    font-size: 1rem;
    color: #202020;
}

/*technologies-section */
.technologies-section {
    text-align: center;
}

.technology-heading h2 {
    color: var(--primary-color);
}

.technology-heading p {
    color: #DDDDDD;
}

/* Style for the card layout */
.ferris-wheel-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 2rem;
    margin: 0 auto;
}

.focused-technology { 
    display: none;
}

/* Individual card styles */
.technology-item {
    display: flex;
    flex-direction: column; /* Stacks content vertically */
    align-items: center;
    text-align: center;
    background: var(--tertiary-color);
    border-radius: 12px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease
}

.technology-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Image styles */
.technology-item img {
    max-width: 100px;
    max-height: 100px;
    margin-bottom: 1rem;
}

/* Title styles */
.item-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Description styles */
.description {
    font-size: 1rem;
    color: #555;
    text-align: center;
    line-height: 1.4;
}


/*About Styles*/
/* About Section */
.about-section {
    padding: 3rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
}
  
.about-heading h2 {
    color: #333;
}

.about-heading {
    padding: 0;
}
  
.about-heading p {
    margin-bottom: 3rem;
    color: #555;
}
  
/* Contact Details */
.contact-details {
    margin-bottom: 3rem;
}
  
.contact-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}
  
.contact-details p a {
    color: var(--primary-color);
    text-decoration: none;
}
  
.contact-details p a:hover {
    text-decoration: underline;
}
  
/* Contact Form */
.form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 0 auto 3rem;
    max-width: 500px;
    text-align: left;
}
  
.form h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}
  
.form label {
    font-size: 1rem;
    color: #555;
    display: block;
    margin-top: 1rem;
}
  
.form input, .form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}
  
.form textarea {
    resize: vertical;
}
  
.form button {
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}
  
.form button:hover {
    background-color: #730022;
}
  
/* Inquiry Link */
.inquiry-link {
    margin-top: 2rem;
    font-size: 1rem;
}
  
.inquiry-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}
  
.inquiry-link a:hover {
    text-decoration: underline;
}  

/* General Footer Styles */
.footer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background: var(--secondary-color);
    color: var(--tertiary-color);
}
  
.footer div {
    flex: 1;
}
  
.footer img {
    max-width: 100px;
    margin-bottom: 1rem;
}
  
/* Footer Left Section */
.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-left a {
    color: var(--primary-color);
}
  
.footer p {
    font-size: 1.2rem;
}
  
.social-icons {
    display: flex;
    gap: 0.5rem;
}
  
.social-icon {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--tertiary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
  
.social-icon.facebook-icon:hover {
    color: var(--primary-color);
}
  
/* Footer Middle and Right Sections */
.footer-middle,
.footer-right,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
  
.footer h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}
  
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
  
.footer ul li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #ddd;
}
  
.footer ul li a {
    text-decoration: none;
    color: #ddd;
    transition: color 0.3s ease;
}
  
.footer ul li a:hover {
    color: var(--primary-color);
}

.pp-tos {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.pp-tos h1, h2 {
    color: #333
}

.pp-tos .section {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

  /* Media Queries */
@media (min-width: 350px) {
    .logo {
        max-width: 200px;
    }

    .menu-icon {
        padding-right: 1rem;
    }

    .hero-container {
        height: calc(100vh - 106.83px);
    }
}

@media (min-width: 400px) {
    .hero-container {
        height: calc(100vh - 119.64px);
    }

    .hero-content h1 {
        font-size: 2.0rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .cta-button {
        font-size: 1.2rem;
    }

    .menu-icon {
        font-size: 2.5rem;
    }

    .header {
        padding: 1rem 1rem;
    }
}

 
@media (min-width: 500px) {
    .logo {
        max-width: 220px;
    }

    .hero-container {
        height: calc(100vh - 128.41px);
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.4rem;
    }

    .cta-button {
        font-size: 1.4rem;
        border-radius: 56px;
    }

    .section-title {
        font-size: 2rem;
        
    }
    
    .section-description {
        font-size: 1.4rem;
    }
}

@media (min-width: 768px) {
    /*Technologies Styles*/
    .technologies-section {
    text-align: center;
    padding-bottom: 3rem;
    }

    .item-title {
    display: none;
    }

    .ferris-wheel-container {
    position: relative;
    width: fit-content; /* Match outer-circle size */
    height: 750px; /* Match outer-circle size */
    margin: 0 auto;
    margin-top: 1rem;
    }

    .focused-technology {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background-color: #f9f9f9;
    border: 10px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .focused-technology img {
        max-width: 175px;
        max-height: 175px;
        margin-bottom: 1.2rem;
    }

    .focused-technology p {
        max-width: 200px;
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.3;
    }

    .description {
        display: none;
    }

    .technology-item {
        position: absolute;
        top: calc(50% - 50px);
        left: calc(50% - 50px);
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background-color: #f9f9f9;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        opacity: 1;
        transition: transform 0.1s ease-out, opacity 0.5s ease; /* Smooth snapping animation */
    }

    .technology-item.selected {
        opacity: 0.5; /* Dimming effect for selected items */
    }

    .technology-item img {
        max-width: 70px;
        max-height: 70px;
        margin-bottom: 0rem;
    }

    .scroll-bar {
        position: absolute; /* Attach to .ferris-wheel-container */
        right: calc(50vw - 25px); /* Adjust to be next to the Ferris wheel */
        top: 12.5%; /* Start at the top of the ferris wheel section */
        width: 25px;
        height: 75%; /* Match the Ferris wheel's height */
        background-color: #ddd;
        border-radius: 12.5px;
        overflow: visible;
    }
    
    /* Scroll thumb for manual scrolling */
    .scroll-bar-thumb {
        width: 40px;
        height: 15%; /* Make the thumb a percentage of the scrollbar height */
        background-color: var(--primary-color);
        border-radius: 6px;
        position: absolute;
        left: 0;
        top: 0; /* Start at the top */
        transform: translateX(-20%);
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .section-title {
        font-size: 2.5rem;
    }
    
    .section-description {
        font-size: 1.5rem;
    }
}

@media (min-width: 900px) {
    .nav {
      display: block;
    }

    .menu-icon {
      display: none;
    }

    .footer {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
  
    .footer-left {
        flex: 1;
    }
  
    .footer-middle,
    .footer-right,
    .footer-contact {
        flex: 1;
    }
}

@media (min-width: 1000px) {
    .logo {
        max-width: 250px;
    }

    .nav ul li a {
        font-size: 1.4rem;
        border-radius: 43px;
    }

    .hero-container {
        height: calc(100vh - 141.55px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.6rem;
    }

    .cta-button {
        font-size: 1.6rem;
    }

    .scroll-bar {
        right: calc(50vw - 75px);
    }
    .contact-details h3 {
        font-size: 1.8rem;
    }

    .contact-details p {
        font-size: 1.5rem;
    }

    .form {
        max-width: 700px;
        padding: 3rem;
    }

    .form h3 {
        font-size: 1.8rem;
    }

    .form label {
        font-size: 1.5rem;
    }

}

@media (min-width: 1250px) {
    .logo {
        max-width: 275px;
    }

    .nav ul li {
        margin: 0.5rem 1rem
    }

    .nav ul li a {
        font-size: 1.6rem;
        padding: 8px 36px 8px 16px;
        border-radius: 46px;
    }

    .hero-container {
        height: calc(100vh - 152.5px);
    }

    .scroll-bar {
        right: calc(50vw - 125px);
    }
}

@media (min-width: 1500px) {
    .header {
        padding: 1.5rem;
    }

    .hero-container {
        height: calc(100vh - 168.5px);
    }

    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 30px;
    }

    .hero-content p {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .cta-button {
        font-size: 2rem;
        border-radius: 67px;
    }

    .section-title {
        font-size: 3rem;
    }
    
    .section-description {
        font-size: 2rem;
        line-height: 1.6;
    }

    .service-item {
        width: 80%;
        margin: 0 auto;
        padding: 3rem;
    }

    .service-item h3 {
        font-size: 2rem;
    }

    .service-item p {
        font-size: 1.4rem;
    }

    .service-item img {
        width: 125px;
        height: 125px;
    }

    .form {
        max-width: 1000px;
        padding: 4.5rem;
    }

    .form button {
        font-size: 1.5rem;
    }
}

@media (min-width: 1920px) {
    .logo {
        max-width: 300px;
    }
    
    .header {
        padding: 1.5rem 4rem;
    }

    .nav ul li {
        margin: 0.5rem 2rem;
    }
    
    .nav ul li a {
        font-size: 2rem;
        padding: 10px 50px 10px 25px;
        border-radius: 58px;
    }

    .nav ul li .phone-btn {
        padding: 10px 25px;
        border-radius: 58px;
    }

    .nav ul li .chevron {
        height: 30px;
        padding-left: 0.5rem;
    }
    
    .nav ul li .chevron::before,
    .chevron::after {
        border: 15px solid transparent;
    }
    
    .chevron::after {
        bottom: -15px;
        border-top-color: #686E75;
    }

    .hero-container {
        height: calc(100vh - 179.45px);
    }

    .section-heading {
        padding: 5rem 10rem 0rem 10rem;
    }

    .section-description {
        line-height: 1.8;
    }

    .services-container {
        padding: 4rem 4rem 5rem 4rem;
        gap: 3.5rem
    }

    .technologies-section {
        padding-bottom: 5rem;
    }

    .about-section {
        padding: 0rem;
        padding-bottom: 5rem;
    }

    .form {
        max-width: 1250px;
    }

    .footer {
        padding: 4rem;
    }

    .footer img {
        max-width: 125px;
    }

    .footer p {
        font-size: 1.5rem;
    }

    .footer h3 {
        font-size: 1.8rem;
    }

    .footer ul li {
        font-size: 1.5rem;
    }

}

@media (min-width: 2500px) {
    .ferris-wheel-container {
        width: 800px;
        height: 800px;
    }

    .focused-technology {
        width: 475px;
        height: 475px;
        border: 15px solid var(--primary-color);
    }
    
    .focused-technology img {
        max-width: 250px;
        max-height: 250px;
    }
    
    .focused-technology p {
        max-width: 250px;
        font-size: 1.3rem;
        font-weight: 500;
        line-height: 1.2;
    }
    
    .technology-item {
        position: absolute;
        top: calc(50% - 60px);
        left: calc(50% - 60px);
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background-color: #f9f9f9;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        opacity: 1;
        transition: transform 0.1s ease-out, opacity 0.5s ease; /* Smooth snapping animation */
    }

    .technology-item img {
        max-height: 90px;
        max-width: 90px;
    }

    .scroll-bar {
        margin-top: 1rem;
    }
}
  