:root {
    --primary-blue: #02a6e9;
    --primary-blue-dark: #0288c5;
    --primary-blue-light: rgba(2, 166, 233, 0.2);
    --base: #2a3d8f;
    --hover_btn: #475abd; 
    --services-bg: rgba(0, 0, 0, 0.4); 
    --services-hover-bg: rgba(0, 0, 0, 0.5); 
    --purple-dark: #1b113d;
    --purple-dark-light: #1a103d;
    --card-icon-size: 45px; 
    --navbar-margin: 40px;
    --section-margin-left: 250px;
    --button-border-radius: 20px;
    
    /* Font Size Variables */
    --font-size-stat-number: 4rem;
    --font-size-stat-label: 1.2rem;
    --font-size-section-title: 2rem;
    --font-size-normal: 1rem;
    --font-size-small: 0.8rem;

    /* Font Weight Variables */
    --font-weight-section-title: 700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Add smooth scrolling behavior */
html {
    overflow-y: scroll;
    scrollbar-width: thin;
    font-size: 16px;
    scroll-behavior: smooth; /* Add this for smooth scrolling */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

@media (max-width: 768px) {
    html {
        font-size: 14px; /* Smaller base size for mobile - scales all rem values down */
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px; /* Even smaller for very small screens */
    }
}

body {
    background-image: url('images/newbgphotodark.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: white;
    overflow-x: hidden;
    overflow-y: scroll;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}


/* See navbar.css for the css of the navbar */

.hero {
    display: grid;
    grid-template-columns: 80% 30%;
    justify-content: center;
    padding: 200px 5% 50px;
    text-align: left; 
    max-width: 1200px; 
    margin: 0 auto; 
    height: auto;
    position: relative;
    top: 0;
    /* Ensure consistent positioning across platforms */
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Responsive adjustments for laptop screens */
@media (max-width: 1440px) {
    .hero {
        padding: 150px 5% 50px;
    }
}

@media (max-width: 1200px) {
    .hero {
        padding: 120px 5% 50px;
    }
}

@media (max-width: 900px) {
    .hero {
        padding: 100px 5% 40px;
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.hero-video-container {
    width: auto; 
    height: auto; 
    overflow: hidden;
    background: red;
    visibility: hidden; 
    grid-column-start: 2;
    height: auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 800px; 
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    max-width: 700px; 
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 650px;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-button {
    background: linear-gradient(to right, var(--base), var(--primary-blue)); /* Gradient from base to primary-blue */
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
    width: 250px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-button:hover {
    background-color: var(--hover_btn);
    transform: translateY(-2px);
}

/* Scroll down arrow button */
.scroll-down-arrow {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.scroll-down-arrow a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.scroll-down-arrow a:hover {
    transform: translateY(5px); 
}

.scroll-down-arrow img {
    width: 64px;
    height: 64px;
}

/* Add this class to hide the arrow */
.scroll-down-arrow.hidden {
    opacity: 0;
    pointer-events: none; /* Still allows clicking "through" it */
    transition: opacity 0.5s ease;
}

/* Bounce animation for the arrow */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: absolute;
    right: 20px; /* Fixed position from the right edge */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Footer styles */
.footer {
    background-color: var(--purple-dark);
    color: white;
    padding: 3rem 0 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.35);
}


.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 5%;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
    padding: 0 15px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #70c1ff;
}

.footer-section p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-section i {
    margin-right: 10px;
    color: #70c1ff;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-blue-dark);
    color: white; /* Set icon color to white */
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a i {
    color: white; /* Explicitly set the icon color to white */
}

.social-links a:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Override the general icon color in the footer for social icons */
.footer-section .social-links i {
    color: white; /* Force white color for social icons */
    margin-right: 0; /* Remove any margin that might be applied to footer icons */
}

/* New footer navigation styles */
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 15px 0;
    margin: 20px 0 0; /* Only add margin to the top */
    /* Removed border-bottom for better blending */
}

.footer-nav a {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s;
}

.footer-nav a:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -2px;
}

.footer-nav a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 15px; /* Slightly increased padding */
    padding-bottom: 10px; /* Added bottom padding */
}

/* Services section styles */
.services-section {
    background: transparent;
    margin-top: 550px;
    margin-left: var(--section-margin-left);
}

.services-container {
    max-width: 1200px;
    color: #1b113d;
}

.services-content {
    display: grid;
    grid-template-columns: 40% 60%;
    column-gap: 100px;
}

.services-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.services-text p {
    width: 100%;
}

.services-cta-btn, .team-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-blue), var(--base));
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--button-border-radius);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(2, 166, 233, 0.3);
    transition: all 0.3s ease;
    height: 50px;
    width: fit-content;
    
}



.services-cta img {
    align-self: center;
}

.services-cta-btn:hover, .team-link:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 166, 233, 0.4);
    text-decoration: none;
    color: white;
}

.services-cards {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: auto;
    width: auto;
    grid-column-start: 2;
    max-width: 600px;
    position: relative;
    z-index: 5;
    /* Fix for rendering glitches */
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 25px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
    /* Fix for rendering glitches */
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}


.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--base));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 24px;
    color: white;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(2, 166, 233, 0.4);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.85rem;
}

#card-title {
    font-size: var(--font-size-normal);
}

#card-description {
    font-size: var(--font-size-small);
}

/* Desktops */
@media (max-width: 1440px) {

}

/* Tablets */
@media (max-width: 1024px) {
    
}

/* Phones */
@media (max-width: 600px) {

}

.stats-grid {
    display: flex;
    flex-direction: row;
    justify-content: center; 
    align-items: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item.animate {
    transform: translateY(0);
    opacity: 1;
}

.stat-number {
    font-size: var(--font-size-stat-number);
}


.stat-label {
    font-size: var(--font-size-stat-label);
    text-transform: uppercase;
}

.stat-number, .stat-label {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    
}

.expertise-section {
    margin-top: 300px;
}

.expertise-wrapper {
    display: grid;
    grid-template-columns: 45% 55%;
    column-gap: 200px;
}

.expertise-img-cards {
    display: flex;
    flex-direction: row;
    margin-top: 0;
}

.left-image-container, .right-image-container {
    margin-top: 50px;
    width: 200px;
}

.left-image-container {
    margin-right: -60px;
}

.right-image-container {
    margin-left: -60px;
}

.main-image-container {
    margin: 0;
    z-index: 1;
    width: 250px;
}

.left-image-container img, .main-image-container img, .right-image-container img {
    border-radius: 10px;
    width: 100%;
    height: auto;
}

#section-title {
    font-size: var(--font-size-section-title);
    font-weight: var(--font-weight-section-title);
}

#section-description, #accordion-text {
    font-size: var(--font-size-normal);
}



.accordion-header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.accordion-text-wrapper {
    color: black;
    margin-left: var(--section-margin-left);
}

.expertise-text{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-wrapper{
    display: flex;
    grid-column: 1;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    min-height: 400px;
}

.accordion-item{
    margin-top: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid black;
    cursor: pointer;
    z-index:1;
}

.accordion-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

.accordion-question h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.accordion-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s ease;
}

.accordion-answer p {
    padding-top: 1rem;
    line-height: 1.6;
    font-size: 1rem;
}


.accordion-item.active .accordion-answer {
    max-height: 300px;
    animation: fade 0.7s ease-in-out;
}

.accordion-item.active svg {
    transform: rotate(180deg);
}

.accordion-item svg {
    transition: transform .3s ease-in;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

/* Accordion part */

.img-main {
    z-index: 3;
    width: 250px;
    height: 400px;
    top: 20px;
    left: 50%;
}

.img-right {
    z-index: 2;
    width: 200px;
    height: 250px;
    bottom: 125px;
    left: 450px;
}

.img-left {
    z-index: 2;
    width: 175px;
    height: 200px;
    bottom: -150px;
    left: 100px;
}

.cta-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-methodology-section{
    margin-top: 350px;
}

.team-methodology-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.team-header h2 {
    font-size: var(--font-size-section-title);
}

.team-header h3 {
    font-weight: 400;
    max-width: 40%;
}

.steps-img-container {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    column-gap: 25px;
    margin-top: 50px;
    
}

.steps-container {
    display: flex;
    width: 500px;
    justify-self: start;
}



.steps-list {
    width: 100%;
}


.step-description {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 3%;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 5px; /* Small top margin to align better with circles */
}

.step-description.active {
    background-color: rgba(203, 195, 227, 0.6);
}

.step-description a {
    color: inherit;
    text-decoration: none;
}

.step-description h3 {
    font-size: 1rem;  
    width: 100%;
}

.step-description p {
    font-size: 0.9rem;
    width: 100%;
}

.step-description:hover:not(.active) {
    background-color: rgba(203, 195, 227, 0.3);
    transition: background 0.2s;
}

.step-row {
    display: flex;
    align-items: flex-start; /* Align to top to work with the new line structure */
    gap: 25px;           /* Space between circle and text */
    margin-bottom: 0px; /* No space between steps since lines connect them */
    width: 100%;
}
.number-line-top {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.number-line-top::after {
    content: '';
    position: absolute;
    top: 30px; /* Start line below the circle */
    left: 50%;
    transform: translateX(-50%);
    width: 4.5px;
    height: 105px; /* Length of the connecting line */
    background: var(--primary-blue, #02a6e9);
    opacity: 0.6;
}

/* Remove line from the last step */
.step-row:last-child .number-line-top::after {
    display: none;
}

.circle-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(90deg, var(--primary-blue), var(--base));
    border-radius: 50%;
    display: flex;
    font-size: 0.8rem;
    align-items: center;
    flex-shrink: 0;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    margin: 0 auto; /* center horizontally if needed */
    margin-top: 15px;
    position: relative;
    z-index: 1; /* Ensure circle appears above the line */
}

.steps-list{
    display: flex;
    flex-direction: column;
    width: 400px;
}


.team-img-container {
    display: flex;
    flex-direction: column;
    grid-column: 2;
    width: 100%;
    height: 400px;
    background: #1b113d99;
    border-radius: 25px;
    padding: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow: 0 0 70px #0006;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-img-container img {
    border-radius: 10px;
    width: 100%;
    height: 70%;
    object-fit: cover;
    margin-bottom: auto;
}

.team-img-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 15px;
    padding-top: 15px;
}

.team-img-header {
    color: #1b113d;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}


.team-text-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: flex-end;
}

.team-text-container h3 {
    font-size: 1.5rem;
    margin: 0;
    max-width: 250px;
}

.team-text-container a {
    margin-left: auto;
}

.team-link img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}





.stat-item.animate {
    transform: translateY(0);
    opacity: 1;
}



.expertise-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.expertise-container h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.expertise-container p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}



/* ===== CTA 3-Image Section Between Expertise Cards ===== */
.expertise-cta-3img-section {
    width: 100%;
    color: #1b113d;
    margin: 60px 0 200px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-repeat: no-repeat;
}

.cta-3img-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    gap: 50px;
    border-radius: 24px;
    padding: 50px 40px;
    position: relative;
}

.cta-3img-text {
    flex: 1 1 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.cta-3img-text h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-3img-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-3img-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--base));
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(2, 166, 233, 0.3);
    transition: all 0.3s ease;
}

.cta-3img-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(2, 166, 233, 0.4);
}

.cta-3img-grid {
    flex: 1 1 400px;
    position: relative;
    width: 400px;
    height: 300px;
    max-width: 100%;
}



.cta-img {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.img-main {
    z-index: 3;
    width: 250px;
    height: 400px;
    top: 20px;
    left: 50%;
}

.img-right {
    z-index: 2;
    width: 200px;
    height: 250px;
    bottom: 125px;
    left: 450px;
}

.img-left {
    z-index: 2;
    width: 175px;
    height: 200px;
    bottom: -150px;
    left: 100px;
}

.cta-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}




/* Former Clients section / Technologies Carousel Section */
.former-clients {
    margin-top: 600px;
    background: transparent;
    padding: 80px 0;
    overflow: hidden;
    color: black;
}

.clients-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.clients-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clients-header h2 {
    font-size: var(--font-size-section-title);
    font-weight: var(--font-weight-section-title);
}

.clients-header p {
    font-size: 1.2rem;
}

.logos-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
}

.logos-track {
    display: flex;
    align-items: center;
    animation: scroll-left 30s linear infinite;
    width: calc(200px * 16); /* 8 logos * 2 sets * 200px each */
}

.logo-item {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
}

.logo-item img {
    max-width: 100px;
    max-height: 80px;
    object-fit: contain;
    filter: brightness(0.8) saturate(0.9);
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: brightness(1) saturate(1);
    transform: scale(1.1);
}

/* Keyframe animation for continuous scroll */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 8 - 160px)); /* Move by the width of 8 logos + margins */
    }
}



/* Statistics Section */
.statistics-section {
    background: transparent;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.statistics-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

