/* =============================================
   KDS PAGE STYLES
   Kitchen Display System Landing Page
   ============================================= */

/* =============================================
   HERO SECTION
   ============================================= */
.kds-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0;
}

.kds-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.kds-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kds-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
}

.kds-hero .container {
    position: relative;
    z-index: 2;
}

.kds-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.kds-hero-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-navy);
    line-height: 1.76;
    margin-bottom: 1.5rem;
}

.kds-hero-subtitle {
    font-size: 1rem;
    color: var(--grey-600);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Jump Navigation */
.kds-jump-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.kds-jump-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kds-jump-label i {
    font-size: 1.25rem;
}

.kds-nav-btn {
    padding: 8px 20px;
    border: 1px solid var(--grey-600);
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-navy);
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0.8;
}

.kds-nav-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    opacity: 1;
    transform: translateY(-2px);
}

.btn-book-demo {
    background: var(--primary-blue);
    color: #fff;
    border-radius: 20px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-book-demo:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(33, 148, 243, 0.3);
}

/* =============================================
   WHAT WE OFFER SECTION
   ============================================= */
.kds-offer {
    background: var(--light-blue-grey);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.kds-offer::before,
.kds-offer::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: #007AFF;
    opacity: 0.4;
}

.kds-offer::before {
    width: 211px;
    height: 214px;
    top: -69px;
    right: -40px;
    animation: pulse 3s ease-in-out infinite;
}

.kds-offer::after {
    width: 211px;
    height: 214px;
    bottom: -80px;
    left: 100px;
    animation: pulse 3s ease-in-out infinite 1.5s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

.kds-offer .container {
    position: relative;
    z-index: 2;
}

.kds-offer-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.kds-offer-left {
    flex: 1;
}

.kds-offer-right {
    flex: 1;
    position: relative;
}

.kds-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.kds-offer-desc {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.67;
    margin-bottom: 2rem;
}

.kds-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kds-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.67;
    margin-bottom: 1rem;
}

.kds-check-list li i {
    color: var(--primary-blue);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* KDS Image with Labels */
.kds-image-wrapper {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: -4px 4px 50px rgba(0, 0, 0, 0.1);
}

.kds-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 25px;
}

.kds-label {
    position: absolute;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    animation: float 3s ease-in-out infinite;
}

.kds-label.table-label {
    top: 50%;
    left: 5%;
    background: rgba(33, 148, 243, 0.9);
    color: #fff;
    animation-delay: 0s;
}

.kds-label.item-label {
    background: rgba(255, 255, 255, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kds-label.item-label:nth-of-type(2) {
    top: 60%;
    left: 5%;
    animation-delay: 0.5s;
}

.kds-label.item-label:nth-of-type(3) {
    top: 70%;
    left: 5%;
    animation-delay: 1s;
}

.kds-label.item-label i {
    color: #6CC644;
}

.kds-label.pending {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-blue);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* =============================================
   FEATURE SECTIONS (Alternating Layout)
   ============================================= */
.kds-feature {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.kds-feature.bg-light {
    background: #E6EBF4;
}

.kds-feature.bg-white {
    background: #fff;
}

.kds-feature-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.kds-feature-content.reverse {
    flex-direction: row-reverse;
}

.kds-feature-text {
    flex: 0.8;
}

.kds-feature-image {
    flex: 1.2;
    display: flex;
    justify-content: center;
}

.kds-feature-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.kds-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kds-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.kds-feature-list li i {
    color: var(--primary-blue);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.kds-feature-list h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-navy);
    margin-bottom: 0.5rem;
}

.kds-feature-list p {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-navy);
    line-height: 1.67;
    margin: 0;
}

.kds-feature-image img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 25px;
    box-shadow: -4px 4px 50px rgba(0, 0, 0, 0.1);
}

/* =============================================
   HOW IT WORKS / CAROUSEL SECTION
   ============================================= */
.kds-carousel {
    background: #1E2024;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Glow effect */
.kds-carousel::before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    filter: blur(250px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.kds-carousel .container {
    position: relative;
    z-index: 2;
}

.kds-carousel-header {
    text-align: center;
    margin-bottom: 2rem;
}

.kds-carousel-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.kds-carousel-subtitle {
    font-size: 1.25rem;
    color: #fff;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

.kds-carousel-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.kds-carousel-image {
    width: 100%;
    border-radius: 12px;
}

.kds-carousel-footer {
    text-align: center;
    margin-top: 2rem;
}

.kds-carousel-label {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
}

/* =============================================
   ANIMATIONS
   ============================================= */
/* Fade in from left */
.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in from right */
.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in from bottom */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scale in */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects for images */
.kds-feature-image img {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.kds-feature-image:hover img {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

/* Check icon animation */
.kds-check-list li i,
.kds-feature-list li i {
    transition: transform 0.3s ease;
}

.kds-check-list li:hover i,
.kds-feature-list li:hover i {
    transform: scale(1.2);
}

/* =============================================
   RESPONSIVE STYLES
   ============================================= */
@media (max-width: 991px) {
    .kds-hero {
        padding: 60px 0;
        min-height: auto;
    }
    
    .kds-hero-title {
        font-size: 1.75rem;
    }
    
    .kds-offer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .kds-feature-content,
    .kds-feature-content.reverse {
        flex-direction: column;
        gap: 40px;
    }
    
    .kds-feature-image {
        order: -1;
    }
    
    .kds-feature-image img {
        max-width: 100%;
    }
    
    .kds-section-title,
    .kds-feature-title {
        font-size: 1.75rem;
    }
    
    .kds-carousel-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .kds-hero {
        padding: 40px 0;
    }
    
    .kds-hero-title {
        font-size: 1.5rem;
    }
    
    .kds-jump-nav {
        gap: 0.75rem;
    }
    
    .kds-nav-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .kds-offer,
    .kds-feature,
    .kds-carousel {
        padding: 60px 0;
    }
    
    .kds-section-title,
    .kds-feature-title {
        font-size: 1.5rem;
    }
    
    .kds-carousel-title {
        font-size: 1.75rem;
    }
    
    .kds-carousel-subtitle {
        font-size: 1rem;
    }
    
    .kds-carousel-label {
        font-size: 1.5rem;
    }
}

@media (max-width: 575px) {
    .kds-hero-title {
        font-size: 1.25rem;
    }
    
    .kds-jump-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .kds-nav-btn {
        text-align: center;
    }
    
    .btn-book-demo {
        width: 100%;
    }
}
