/* ============================================
   Template Two — Modern Tech Style
   index.css — Homepage Sections
   ============================================ */

/* === Hero Section === */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.85) 0%,
        rgba(30, 58, 95, 0.75) 50%,
        rgba(15, 23, 42, 0.85) 100%
    );
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-content {
    text-align: center;
    color: #ffffff;
    max-width: 720px;
    padding: 0 32px;
    z-index: 4;
}
.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.hero-title .highlight {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}
.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll-hint i {
    font-size: 20px;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Swiper nav overrides */
.hero-section .swiper-button-next,
.hero-section .swiper-button-prev {
    z-index: 5;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
}
.hero-section .swiper-button-next:hover,
.hero-section .swiper-button-prev:hover {
    color: #ffffff;
}
.hero-section .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}
.hero-section .swiper-pagination-bullet-active {
    background: #3b82f6;
    width: 24px;
    border-radius: 4px;
}

/* === Section Common === */
.section {
    padding: 96px 32px;
}
.section-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.3;
}
.section-desc {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Alternating backgrounds */
.bg-light { background: #f8fafc; }
.bg-white { background: #ffffff; }
.bg-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #ffffff;
}
.bg-dark .section-title { color: #ffffff; }
.bg-dark .section-desc { color: rgba(255, 255, 255, 0.65); }
.bg-dark .section-tag {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

/* === Stats Section === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.stat-card {
    text-align: center;
    padding: 40px 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    color: #3b82f6;
}
.stat-value {
    font-size: 42px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 4px;
}
.stat-value .suffix {
    font-size: 24px;
    font-weight: 600;
    color: #3b82f6;
}
.stat-label {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

/* === Services Section === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 28px;
    border: 1px solid #e2e8f0;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}
.service-card:hover::before {
    opacity: 1;
}
.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: #ffffff;
}
.service-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}
.service-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

/* === Comparison Section === */
.comparison-wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}
.comparison-card {
    padding: 40px 32px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.comparison-card.winner {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}
.comparison-label {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.comparison-card .comparison-label {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}
.comparison-card.winner .comparison-label {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: #ffffff;
}
.comparison-title {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}
.comparison-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}
.comparison-vs {
    text-align: center;
}
.comparison-vs span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 22px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

/* === Partners Section === */
.partners-track-wrap {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}
.partners-track-wrap::before,
.partners-track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.partners-track-wrap::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc, transparent);
}
.partners-track-wrap::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc, transparent);
}
.partners-track {
    display: flex;
    gap: 48px;
    animation: partnerScroll 30s linear infinite;
    width: max-content;
}
.partners-track:hover {
    animation-play-state: paused;
}
.partner-logo {
    flex-shrink: 0;
    height: 40px;
    width: auto;
    opacity: 0.45;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}
.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}
@keyframes partnerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === Responsive === */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .comparison-wrap {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .comparison-vs {
        display: none;
    }
    .hero-title {
        font-size: 36px;
    }
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 64px 20px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .stat-card {
        padding: 24px 16px;
    }
    .stat-value {
        font-size: 32px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .hero-cta {
        padding: 12px 28px;
        font-size: 15px;
    }
}
