:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #10b981;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --text-muted: #64748b;
    --transition-speed: 0.3s;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logo-jump {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    30% {
        transform: translateY(-8px) scale(1.05);
    }

    50% {
        transform: translateY(0) scale(1);
    }

    70% {
        transform: translateY(-4px) scale(1.02);
    }

    85% {
        transform: translateY(0) scale(1);
    }
}

.logo-animate {
    animation: logo-jump 2s ease-in-out infinite;
    transform-origin: bottom center;
}

body {
    font-family: 'Inter', sans-serif;
    color: #334155;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    animation: fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Outfit', sans-serif;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-success {
    color: var(--secondary-color) !important;
}

.bg-success {
    background-color: var(--secondary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    transition: all var(--transition-speed) ease;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.navbar-scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 0.5rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    background-color: var(--light-color);
    padding-top: 80px;
    /* Space for navbar */
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper img {
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.floating-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Base Utility Classes */
.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.bg-soft-primary {
    background-color: rgba(79, 70, 229, 0.1);
}

.bg-soft-success {
    background-color: rgba(16, 185, 129, 0.1);
}

.bg-soft-warning {
    background-color: rgba(245, 158, 11, 0.1);
}

.bg-soft-info {
    background-color: rgba(14, 165, 233, 0.1);
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Service Cards */
.hover-lift {
    transition: transform var(--transition-speed) cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--transition-speed) ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.learn-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.learn-more i {
    transition: transform var(--transition-speed);
}

.service-card:hover .learn-more i {
    transform: translateX(5px);
}

/* Portfolio */
.portfolio-item {
    position: relative;
}

.portfolio-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.1) 100%);
    display: flex;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.transform-up {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .transform-up {
    transform: translateY(0);
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Process Timeline */
.process-line {
    top: 40px !important;
}

.process-icon {
    font-family: 'Outfit', sans-serif;
}

/* Testimonial Carousel */
.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
    width: 3rem;
    height: 3rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.testimonial-carousel .carousel-control-prev {
    left: -1.5rem;
}

.testimonial-carousel .carousel-control-next {
    right: -1.5rem;
}

@media (max-width: 991px) {

    .testimonial-carousel .carousel-control-prev,
    .testimonial-carousel .carousel-control-next {
        display: none;
    }
}

/* Stats, Pricing, Tech */
.tech-card i {
    display: inline-block;
}

.pricing-card {
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.transform-up-hover {
    transform: translateY(-15px);
}

.transform-up-hover:hover {
    transform: translateY(-20px);
}

/* Input Fields */
.form-control:focus,
.form-select:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    background-color: #fff !important;
}

/* Footer */
.footer-links a {
    transition: margin-left 0.2s, color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
    margin-left: 5px;
}

.social-icon {
    transition: background-color 0.2s;
}

.social-icon:hover {
    background-color: var(--primary-color) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2.25rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .display-6 {
        font-size: 1.75rem;
    }

    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .hero-section {
        padding-top: 100px;
    }

    .tech-card {
        padding: 1.5rem 1rem !important;
    }

    .form-control-lg,
    .form-select-lg,
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .portfolio-img {
        height: 250px;
    }
}