* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.5;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.animate-slide-in {
    animation: slideIn 0.8s ease-out forwards;
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card,
.platform-card,
.advantage-card,
.case-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card.visible,
.platform-card.visible,
.advantage-card.visible,
.case-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.navbar-scrolled {
    background-color: white !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-scrolled .nav-link {
    color: #374151 !important;
}

.navbar-scrolled .nav-link:hover {
    color: #1d4ed8 !important;
}

.navbar-scrolled #logo-text {
    color: #1e3a8a !important;
}

.navbar-scrolled #contact-btn {
    background-color: #1d4ed8;
    color: white;
}

.navbar-scrolled #contact-btn:hover {
    background-color: #1e40af;
}

.navbar-scrolled #mobile-menu-btn {
    color: #1e3a8a !important;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-dot.active {
    width: 3rem;
    background-color: white;
}

.mobile-menu-open {
    background-color: #1e3a8a !important;
}

.form-input-focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.btn-primary {
    background-color: #1d4ed8;
    color: white;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e40af;
}

.btn-outline {
    border: 2px solid #1d4ed8;
    color: #1d4ed8;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #eff6ff;
}

.page-hero {
    background: linear-gradient(to right, #1e3a8a, #1d4ed8);
}

.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.category-btn {
    transition: all 0.3s ease;
}

.category-btn.active {
    background-color: #1d4ed8;
    color: white;
    font-weight: 500;
}

.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
}

.platform-selector {
    cursor: pointer;
    transition: all 0.3s ease;
}

.platform-selector:hover {
    transform: scale(1.05);
}

.platform-selector.active {
    border: 2px solid #1d4ed8;
    box-shadow: 0 10px 25px -5px rgba(29, 78, 216, 0.2);
}

.service-tab {
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-tab:hover {
    transform: translateY(-10px);
}

.service-tab.active {
    border: 2px solid #1d4ed8;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
}

.toast-success {
    background-color: #10b981;
}

.toast-error {
    background-color: #ef4444;
}

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

@media (max-width: 768px) {
    .carousel-item h1 {
        font-size: 2rem;
    }
    
    .carousel-item p {
        font-size: 1rem;
    }
}
