/* Existing styles */
:root {
    --primary-color: #C5A059;
    /* Gold from logo */
    --primary-dark: #A68545;
    --secondary-color: #1a1a1a;
    --text-color: #333333;
    --text-light: #777777;
    --bg-light: #ffffff;
    --bg-gray: #f8f8f8;
    --container-width: 1200px;
    --transition: all 0.3s ease;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.gray-bg {
    background-color: var(--bg-gray);
}

.text-center {
    text-align: center;
}

.gold-text {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 26px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
    width: 200px;
}

.loader-logo {
    width: 80px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.loader-bar {
    height: 2px;
    width: 0;
    background: var(--primary-color);
    animation: loading 2s forwards;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes loading {
    to {
        width: 100%;
    }
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: var(--transition);
}

#main-header.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: flex-start;
    /* Align items to the start (left) */
    align-items: center;
    position: relative;
    gap: 30px;
    /* Gap between Logo and Nav Links */
}

.logo img {
    height: 50px;
    filter: brightness(0);
    /* Make logo black */
    opacity: 1;
    transition: var(--transition);
}

.logo img:hover {
    filter: brightness(0.2);
    /* Slightly gray on hover */
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    white-space: nowrap;
    /* Prevent text wrapping */
}

.nav-links a:hover {
    color: var(--primary-color);
}

.partner-logos {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    /* Push to the right */
}

.partners-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.partner-logos img {
    height: 30px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.partner-logos img:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: flex-end;
    /* Align content to bottom */
    justify-content: flex-start;
    /* Align content to left */
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    padding-bottom: 80px;
    /* Add space from bottom */
}

.hero-bg-animated {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use the new image */
    background-image: url('../../assets/top-hero.jpg');
    background-size: cover;
    background-position: center 25%;
    /* Shifted down to show faces */
    z-index: 0;
}

/* Gradient overlay for text readability */
.hero-bg-animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Stronger gradient at the bottom for text contrast */
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.2) 0%, rgba(5, 5, 5, 0.6) 70%, rgba(5, 5, 5, 0.95) 100%);
    z-index: 1;
}

/* Optional: Slight zoom effect on load */
.hero-bg-animated {
    animation: slowZoom 20s ease-out forwards;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* Remove old grid styles if not needed, or keep them subtle */
.grid-lines {
    display: none;
}

/* Moving animation */
@keyframes moveGrid {
    0% {
        transform: rotateX(60deg) translateY(0);
        filter: hue-rotate(0deg) brightness(1);
    }

    50% {
        filter: hue-rotate(15deg) brightness(1.5);
        /* Slight color shift */
    }

    100% {
        transform: rotateX(60deg) translateY(100px);
        /* Move by one grid cell size */
        filter: hue-rotate(0deg) brightness(1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    /* Reduced from 4.5rem */
    margin-bottom: 25px;
    color: var(--secondary-color);
    /* Gold border/outline for black text */
    text-shadow:
        -1px -1px 0 var(--primary-color),
        1px -1px 0 var(--primary-color),
        -1px 1px 0 var(--primary-color),
        1px 1px 0 var(--primary-color);
}

.accent {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1rem;
    /* Reduced from 1.25rem */
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
    /* Reduced max-width to wrap tighter */
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* About Section */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-single-img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.about-single-img:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(197, 160, 89, 0.2);
}

.section-tag {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 25px;
}

.features-list {
    margin-top: 30px;
}

.features-list li {
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list span {
    color: var(--primary-color);
}

/* Services */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 4px solid transparent;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.team-card {
    text-align: center;
}

.team-img {
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: var(--transition);
    position: relative;
    background-color: #eee;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.team-card p {
    color: var(--primary-color);
    font-weight: 600;
}

/* Clients Marquee */
.client-marquee {
    overflow: hidden;
    padding: 30px 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 100px;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    align-items: center;
    /* Vertically center logos */
    animation: marquee 20s linear infinite;
    /* Increased speed slightly */
}

.client-logo {
    height: 60px;
    /* Standardize height */
    width: auto;
    margin: 0 40px;
    /* Spacing between logos */
    object-fit: contain;
    /* Removed filter: grayscale(100%); and opacity to make it colored */
    transition: var(--transition);
}

.client-logo:hover {
    transform: scale(1.1);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Adjust based on duplication */
    }
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 80px 0 30px;
}

.footer-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.footer-left {
    flex: 0 0 auto;
}

.footer-big-logo {
    height: 150px;
    /* Bigger logo */
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.footer-desc {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 30px;
    max-width: 600px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact-new h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.footer-contact-new p {
    margin-bottom: 8px;
    color: #ddd;
    font-size: 1rem;
}

.footer-contact-new i {
    width: 25px;
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.9rem;
}

/* Software Carousel */
.software-carousel-container {
    margin-top: 20px;
    height: 350px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    /* Stronger perspective */
    overflow: visible;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
}

.carousel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    margin-left: -70px;
    margin-top: -70px;

    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;

    animation: carouselOrbit 15s linear infinite;
    transform-style: preserve-3d;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-item:nth-child(1) {
    animation-delay: 0s;
}

.carousel-item:nth-child(2) {
    animation-delay: -3s;
}

.carousel-item:nth-child(3) {
    animation-delay: -6s;
}

.carousel-item:nth-child(4) {
    animation-delay: -9s;
}

.carousel-item:nth-child(5) {
    animation-delay: -12s;
}

@keyframes carouselOrbit {
    0% {
        transform: rotateY(0deg) translateZ(320px) rotateY(0deg) scale(1.5);
        z-index: 100;
        opacity: 1;
        box-shadow: 0 20px 50px rgba(197, 160, 89, 0.4);
    }

    20% {
        transform: rotateY(72deg) translateZ(320px) rotateY(-72deg) scale(0.9);
        z-index: 50;
        opacity: 0.9;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    40% {
        transform: rotateY(144deg) translateZ(320px) rotateY(-144deg) scale(0.6);
        z-index: 1;
        opacity: 0.6;
        box-shadow: none;
    }

    60% {
        transform: rotateY(216deg) translateZ(320px) rotateY(-216deg) scale(0.6);
        z-index: 1;
        opacity: 0.6;
        box-shadow: none;
    }

    80% {
        transform: rotateY(288deg) translateZ(320px) rotateY(-288deg) scale(0.9);
        z-index: 50;
        opacity: 0.9;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    100% {
        transform: rotateY(360deg) translateZ(320px) rotateY(-360deg) scale(1.5);
        z-index: 100;
        opacity: 1;
        box-shadow: 0 20px 50px rgba(197, 160, 89, 0.4);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .footer-flex {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer-right {
        text-align: center;
    }

    .footer-desc {
        text-align: center;
        /* Center footer desc in mobile */
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .section-padding {
        padding: 60px 0;
    }

    .hero {
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-description {
        border-left: none;
        padding-left: 0;
    }
}