/* ============================================
   Online Group MChJ - Custom Styles
   Version: 1.0.0
   ============================================ */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

section {
    position: relative;
}

/* Custom Scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: rgb(var(--color-primary) / 0.4) transparent;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgb(var(--color-primary) / 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(var(--color-primary) / 0.7);
}

/* Dark mode scrollbar */
.dark {
    scrollbar-color: rgb(var(--color-primary) / 0.4) transparent;
}

/* Selection */
::selection {
    background: rgb(var(--color-primary) / 0.2);
    color: rgb(var(--color-primary));
}

/* Navigation Link Hover Effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: rgb(var(--color-primary));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

/* Hero Swiper Custom Styles */
.hero-swiper {
    --swiper-theme-color: #fff;
    --swiper-navigation-size: 44px;
}

.hero-swiper .swiper-slide {
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 24px;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    width: 40px;
    border-radius: 6px;
    background: #fff;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg,
            rgb(var(--color-primary)),
            rgb(var(--color-secondary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn-primary {
    background: rgb(var(--color-primary));
    color: white;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgb(var(--color-primary) / 0.3);
}

.btn-secondary {
    background: transparent;
    color: rgb(var(--color-primary));
    border: 2px solid rgb(var(--color-primary));
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bounce Animation */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Float Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Slide In Animations */
@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 slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

/* Scale Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Gradient Background Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* Glowing Effect */
.glow {
    box-shadow: 0 0 20px rgb(var(--color-primary) / 0.5);
}

.glow-hover:hover {
    box-shadow: 0 0 30px rgb(var(--color-primary) / 0.7);
    transition: box-shadow 0.3s ease;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text Gradient Animation */
@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.text-shine {
    background: linear-gradient(90deg,
            rgb(var(--color-primary)),
            rgb(var(--color-secondary)),
            rgb(var(--color-accent)),
            rgb(var(--color-primary)));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s linear infinite;
}

/* Service Card Styles */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgb(var(--color-primary) / 0.1),
            transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Portfolio Item Overlay */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.portfolio-item img {
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8),
            rgba(0, 0, 0, 0.4),
            transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Team Member Card */
.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.team-card img {
    transition: transform 0.5s ease;
}

.team-card:hover img {
    transform: scale(1.05);
}

.team-social {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    transition: bottom 0.3s ease;
}

.team-card:hover .team-social {
    bottom: 0;
}

/* Testimonial Slider */
.testimonial-slider .swiper-slide {
    height: auto;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.dark .testimonial-card {
    background: #1f2937;
}

/* Stats Counter */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: rgb(var(--color-primary));
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgb(var(--color-primary) / 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: rgb(var(--color-primary));
    border-radius: 4px;
    transition: width 1s ease;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgb(var(--color-primary));
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -45px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgb(var(--color-primary));
    border: 3px solid white;
    box-shadow: 0 0 0 4px rgb(var(--color-primary) / 0.1);
}

/* Pricing Card */
.pricing-card {
    border-radius: 24px;
    padding: 40px;
    background: white;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: rgb(var(--color-primary));
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    background: linear-gradient(135deg,
            rgb(var(--color-primary)),
            rgb(var(--color-secondary)));
    color: white;
    transform: scale(1.05);
}

.dark .pricing-card {
    background: #1f2937;
}

.dark .pricing-card.featured {
    background: linear-gradient(135deg,
            rgb(var(--color-primary)),
            rgb(var(--color-secondary)));
}

/* FAQ Accordion */
.accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.dark .accordion-item {
    border-bottom-color: #374151;
}

.accordion-button {
    width: 100%;
    text-align: left;
    padding: 20px 0;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.accordion-button:hover {
    color: rgb(var(--color-primary));
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

/* Form Styles */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.dark .form-input,
.dark .form-textarea,
.dark .form-select {
    background: #1f2937;
    border-color: #374151;
    color: white;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: rgb(var(--color-primary));
    box-shadow: 0 0 0 4px rgb(var(--color-primary) / 0.1);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.dark .form-label {
    color: #d1d5db;
}

/* Tag Cloud */
.tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgb(var(--color-primary) / 0.1);
    color: rgb(var(--color-primary));
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag:hover {
    background: rgb(var(--color-primary));
    color: white;
    transform: translateY(-2px);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgb(var(--color-primary) / 0.1);
    color: rgb(var(--color-primary));
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Footer Styles */
footer {
    background: #0f172a;
    color: #94a3b8;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: rgb(var(--color-primary));
}

/* Back to Top Button — managed by Alpine.js in layout */

/* Telegram Floating Button */
.telegram-float {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #0088cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 998;
    animation: float 3s ease-in-out infinite;
}

.telegram-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.6);
}



/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg,
            #f3f4f6 25%,
            #e5e7eb 50%,
            #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

.dark .skeleton {
    background: linear-gradient(90deg,
            #374151 25%,
            #4b5563 50%,
            #374151 75%);
    background-size: 200% 100%;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Testimonial Swiper */
.testimonial-swiper {
    padding-bottom: 50px !important;
}

.testimonial-swiper .swiper-slide {
    height: auto;
}

.testimonial-swiper .swiper-pagination-bullet {
    background: rgb(var(--color-primary));
}

/* Responsive Utilities */
@media (max-width: 768px) {

    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        width: 44px;
        height: 44px;
    }

    .hero-swiper .swiper-button-next::after,
    .hero-swiper .swiper-button-prev::after {
        font-size: 18px;
    }

    .stat-number {
        font-size: 2rem;
    }

    h1 {
        line-height: 1.1 !important;
    }

    h2 {
        line-height: 1.2 !important;
    }
}

/* Print Styles */
@media print {

    header,
    footer,
    .back-to-top,
    .telegram-float {
        display: none !important;
    }
}