:root {
    --primary-color: #4F46E5;
    --secondary-color: #818CF8;
    --dark-color: #1F2937;
    --light-color: #F3F4F6;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Navbar Styles */
.navbar {
    background-color: transparent;
    transition: background-color 0.3s ease;
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background-color: var(--dark-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.5rem;
}

.logo {
    margin-right: 0.75rem;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: white;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.hero-logo {
    position: relative;
    width: 360px;
    height: 360px;
    perspective: 1200px;
}

.logo-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.logo-part {
    transform-origin: center;
    transition: transform 0.5s ease-out;
    backface-visibility: visible;
}

.logo-outer, .logo-inner, .logo-core {
    filter: drop-shadow(0 0 10px rgba(79, 70, 229, 0.3));
}

.logo-part.scattered {
    animation: float-random-3d 8s ease-in-out infinite;
    animation-direction: alternate;
}

.logo-part.aligning {
    animation: align-logo-3d 2s ease-in-out forwards;
}

@keyframes float-random-3d {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: translate3d(var(--random-x1, 30px), 
                             var(--random-y1, -20px), 
                             var(--random-z1, 50px))
                  rotateX(var(--random-rx1, 45deg))
                  rotateY(var(--random-ry1, -30deg))
                  rotateZ(var(--random-rz1, 15deg));
    }
    50% {
        transform: translate3d(var(--random-x2, -20px),
                             var(--random-y2, 40px),
                             var(--random-z2, -30px))
                  rotateX(var(--random-rx2, -30deg))
                  rotateY(var(--random-ry2, 45deg))
                  rotateZ(var(--random-rz2, -45deg));
    }
    75% {
        transform: translate3d(var(--random-x3, 10px),
                             var(--random-y3, -30px),
                             var(--random-z3, 20px))
                  rotateX(var(--random-rx3, 15deg))
                  rotateY(var(--random-ry3, -15deg))
                  rotateZ(var(--random-rz3, 30deg));
    }
}

@keyframes align-logo-3d {
    to {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

/* Cards */
.service-card, .solution-card, .process-card, .implementation-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.service-card:hover, .process-card:hover {
    transform: translateY(-10px);
}

/* Icons */
.icon-box {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-box i {
    font-size: 2rem;
    color: white;
}

.process-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Card Content */
.solution-card h3, .implementation-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.solution-card ul, .implementation-card ul {
    list-style: none;
    padding: 0;
}

.solution-card ul li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.solution-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.implementation-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.implementation-card ul li:last-child {
    border-bottom: none;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 80px 0 30px;
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li, .footer-contact li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-animation {
        height: 300px;
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }

    .contact-form {
        padding: 2rem;
    }
}