@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.fade-in.visible {
    animation: fadeIn 0.6s ease-out forwards;
}

.slide-in-left {
    opacity: 0;
}

.slide-in-left.visible {
    animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
    opacity: 0;
}

.slide-in-right.visible {
    animation: slideInRight 0.6s ease-out forwards;
}

.scale-in {
    opacity: 0;
}

.scale-in.visible {
    animation: scaleIn 0.5s ease-out forwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.brand-item:nth-child(1) {
    animation-delay: 0.05s;
}

.brand-item:nth-child(2) {
    animation-delay: 0.1s;
}

.brand-item:nth-child(3) {
    animation-delay: 0.15s;
}

.brand-item:nth-child(4) {
    animation-delay: 0.2s;
}

.brand-item:nth-child(5) {
    animation-delay: 0.25s;
}

.brand-item:nth-child(6) {
    animation-delay: 0.3s;
}

.brand-item:nth-child(7) {
    animation-delay: 0.35s;
}

.brand-item:nth-child(8) {
    animation-delay: 0.4s;
}

.brand-item:nth-child(9) {
    animation-delay: 0.45s;
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:nth-child(4) {
    animation-delay: 0.4s;
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.header {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-title {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.hero-buttons {
    animation: fadeIn 0.8s ease-out 0.6s both;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.nav-link {
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    opacity: 0;
    border-radius: 4px;
    transition: opacity var(--transition-speed) ease;
    z-index: -1;
}

.nav-link:hover::before {
    opacity: 0.1;
}

.contact-item {
    transition: all var(--transition-speed) ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.footer-links a {
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-speed) ease;
}

.footer-links a:hover::after {
    width: 100%;
}
