/* Custom Styles for Kế Toán Hải Đăng */

/* Full-width body and html */
html {
    background-color: #ffffff; /* Bright background */
    scroll-behavior: smooth;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f1f5f9; /* Match html background */
}

.site-boxed-container {
    width: 100%;
    max-width: 1375px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.04);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Reset for mobile/tablet screens */
@media (max-width: 1024px) {
    .site-boxed-container {
        max-width: 100%;
        box-shadow: none;
    }
}

/* Sections full width */
section {
    width: 100%;
    max-width: 100%;
}

/* Remove wrapper constraints */
body > div {
    width: 100%;
    max-width: 100%;
}

/* Container - responsive padding */
.max-w-7xl {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .max-w-7xl {
        padding: 0 2rem;
    }
}

/* Nav Links */
.nav-link {
    @apply px-4 py-2 rounded-xl text-gray-600 font-medium text-sm hover:text-primary-600 hover:bg-primary-50 transition-all duration-300;
}
.nav-link.active {
    @apply text-primary-700 bg-primary-50 font-semibold;
}

/* Dropdown Links */
.dropdown-link {
    @apply flex items-center gap-3 px-4 py-3 text-sm text-gray-600 hover:bg-primary-50 hover:text-primary-700 transition-colors;
}

/* Mobile nav */
.mobile-nav-link {
    @apply flex items-center gap-3 py-3 px-3 rounded-xl text-gray-600 font-medium hover:bg-primary-50 hover:text-primary-600 transition;
}
.mobile-nav-link.active {
    @apply text-primary-700 bg-primary-50 font-semibold;
}

/* Section Heading */
.section-heading {
    @apply text-3xl md:text-4xl font-heading font-bold text-primary-800 text-center mb-4;
}
.section-subheading {
    @apply text-gray-500 text-center max-w-2xl mx-auto mb-12;
}

/* Service Card */
.service-card {
    @apply bg-white rounded-3xl p-6 border border-gray-100 shadow-sm hover:shadow-xl hover:border-primary-200 hover:-translate-y-2 transition-all duration-500 group cursor-pointer;
}
.service-card-icon {
    @apply w-14 h-14 rounded-2xl flex items-center justify-center mb-4 text-white text-xl shadow-lg group-hover:scale-110 transition-transform duration-300;
}

/* Process Step */
.process-step {
    @apply relative flex flex-col items-center text-center;
}

.process-step-number {
    @apply rounded-full bg-accent-500 text-white flex items-center justify-center font-bold shadow-lg flex-shrink-0 relative;
    transition: all 0.3s ease;
    width: 64px;
    height: 64px;
    line-height: 1;
    z-index: 10;
}

/* Animation cho nền dịch chuyển qua các bước - mượt và không glitch */
@keyframes moveStepBackground {
    0%, 5% {
        opacity: 0;
    }
    10%, 15% {
        opacity: 1;
    }
    20%, 100% {
        opacity: 0;
    }
}

/* Tạo vòng tròn nền cam di chuyển qua các bước - theo thứ tự từ 1->2->3->4->5 */
#quy-trinh .flex[class*="justify-between"] > div:nth-child(1) > .process-step-number::before {
    content: '';
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.95);
    z-index: -1;
    opacity: 0;
    animation: moveStepBackground 25s infinite;
    animation-delay: 0s;
    animation-timing-function: ease-in-out;
}

#quy-trinh .flex[class*="justify-between"] > div:nth-child(3) > .process-step-number::before {
    content: '';
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.95);
    z-index: -1;
    opacity: 0;
    animation: moveStepBackground 25s infinite;
    animation-delay: 5s;
    animation-timing-function: ease-in-out;
}

#quy-trinh .flex[class*="justify-between"] > div:nth-child(5) > .process-step-number::before {
    content: '';
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.95);
    z-index: -1;
    opacity: 0;
    animation: moveStepBackground 25s infinite;
    animation-delay: 10s;
    animation-timing-function: ease-in-out;
}

#quy-trinh .flex[class*="justify-between"] > div:nth-child(7) > .process-step-number::before {
    content: '';
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.95);
    z-index: -1;
    opacity: 0;
    animation: moveStepBackground 25s infinite;
    animation-delay: 15s;
    animation-timing-function: ease-in-out;
}

#quy-trinh .flex[class*="justify-between"] > div:nth-child(9) > .process-step-number::before {
    content: '';
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.95);
    z-index: -1;
    opacity: 0;
    animation: moveStepBackground 25s infinite;
    animation-delay: 20s;
    animation-timing-function: ease-in-out;
}

.process-step-number:hover {
    @apply shadow-xl bg-accent-600;
    transform: scale(1.15);
}

/* Quy trình section - Hình chìm */
.quy-trinh-section {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 246, 255, 0.98) 100%),
                url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?w=1400&h=600&fit=crop') center/cover no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

.quy-trinh-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.1) 0%, rgba(30, 58, 138, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

.quy-trinh-section > * {
    position: relative;
    z-index: 2;
}

/* Logo Carousel */
.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-track {
    animation: scroll-left 30s linear infinite;
    will-change: transform;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.carousel-item {
    padding: 0 1rem;
}

@media (max-width: 640px) {
    .carousel-container {
        padding: 0 50px;
    }
}

/* Stats */
.stat-item {
    @apply text-center;
}
.stat-number {
    @apply text-3xl md:text-4xl font-heading font-bold text-white mb-1;
}

/* Blog Card */
.blog-card {
    @apply bg-white rounded-3xl overflow-hidden shadow-sm hover:shadow-xl transition-all duration-500 group;
}

/* Glassmorphism card */
.glass-card {
    @apply bg-white/80 backdrop-blur-sm rounded-3xl border border-white/50 shadow-lg;
}

/* Gradient text */
.gradient-text {
    @apply bg-gradient-to-r from-primary-600 to-primary-800 bg-clip-text text-transparent;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #93c5fd; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2563eb; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Stat item padding */
.stat-item {
    @apply py-3 px-2;
}

/* Float animation for badges */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}
.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Enhanced blog card hover */
.blog-card:hover img,
.blog-card:hover .h-48 {
    transform: scale(1.03);
    transition: transform 0.5s ease;
}

/* Blog card image styling */
.blog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.blog-card .h-48 img {
    width: 100%;
    height: 100%;
}

/* Blog card image container overlay */
.blog-card .relative {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Service card extra lift */
.service-card:hover {
    box-shadow: 0 20px 50px -10px rgba(37, 99, 235, 0.18);
}

/* Info card rows (Thay đổi ĐKDN / Văn phòng ảo) */
.info-row {
    @apply flex items-center gap-3 rounded-2xl p-3 text-sm text-gray-700;
}

/* CTA section min-height feel */
.cta-section-inner {
    @apply py-4;
}

/* Process step - tối ưu layout cho quy trình */
.process-step {
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.process-step h4 {
    font-size: 0.95rem;
    line-height: 1.3;
}

.process-step p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Connector line spacing */
#quy-trinh .grid {
    position: relative;
}

#quy-trinh .process-step-number {
    position: relative;
    z-index: 10;
}
