/*==================================
   MODERN REDESIGN STYLES 
===================================*/

/*===== Variables =====*/
:root {
    --primary-color: #1e86ff;
    --primary-dark: #0d6efd;
    --primary-light: #4da3ff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark: #212529;
    --light: #f8f9fa;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #1e86ff 0%, #0d6efd 100%);
    --gradient-light: linear-gradient(135deg, #e0f2ff 0%, #f0f7ff 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(30, 134, 255, 0.15);
    --shadow-xl: 0 20px 60px rgba(30, 134, 255, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/*===== Modern Hero Section =====*/
.modern-hero {
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.modern-hero .hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-light);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(30, 134, 255, 0.1);
}

.modern-hero .hero__badge svg {
    width: 20px;
    height: 20px;
}

.modern-hero .hero__title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.modern-hero .hero__description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--secondary-color);
    margin-bottom: 40px;
    max-width: 540px;
}

/* Track Form */
.hero__track-form {
    margin-top: 40px;
}

.track-form__wrapper {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(30, 134, 255, 0.1);
    max-width: 580px;
    transition: var(--transition);
}

.track-form__wrapper:focus-within {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.track-form__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gradient-light);
    border-radius: 8px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.track-form__input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 16px;
    font-size: 16px;
    color: var(--dark);
    background: transparent;
}

.track-form__input::placeholder {
    color: #adb5bd;
}

.track-form__button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.track-form__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 134, 255, 0.3);
}

.track-form__button svg {
    width: 20px;
    height: 20px;
}

.track-form__hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--secondary-color);
}

.track-form__hint svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

/* Hero Visual */
.hero__visual {
    position: relative;
}

.hero__image-wrapper {
    position: relative;
    z-index: 1;
}

.hero__image-bg {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 24px;
    opacity: 0.1;
    z-index: -1;
}

.hero__image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

/* Floating Stats Cards */
.hero__stat-card {
    position: absolute;
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: float 4s ease-in-out infinite;
    border: 1px solid rgba(30, 134, 255, 0.1);
}

.hero__stat-card--1 {
    top: 20%;
    right: -60px;
    animation-delay: 0s;
}

.hero__stat-card--2 {
    bottom: 15%;
    left: -40px;
    animation-delay: 2s;
}

.stat-card__icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card__content h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 4px 0;
}

.stat-card__content p {
    font-size: 12px;
    color: var(--secondary-color);
    margin: 0;
    white-space: nowrap;
}

/* Background Decorations */
.hero__decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    z-index: 0;
}

.hero__decoration--1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
}

.hero__decoration--2 {
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    bottom: -50px;
    left: -50px;
}

.hero__decoration--3 {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    top: 50%;
    right: 20%;
}

/*===== Animations =====*/
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/*===== Modern Feature Section =====*/
.feature__section.modern-features {
    padding: 100px 0;
    background: var(--white);
}

.modern-features .section__title-wrapper {
    margin-bottom: 60px;
}

.modern-features .section__title h4.subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.modern-features .section__title h2.title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0;
}

.modern-feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 32px;
    height: 100%;
    border: 1px solid #e9ecef;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.modern-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.modern-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.modern-feature-card:hover::before {
    transform: scaleX(1);
}

.modern-feature-card__icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.modern-feature-card__icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.modern-feature-card__content h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.modern-feature-card__content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--secondary-color);
    margin: 0;
}

/*===== Modern Service Section =====*/
.service__section.modern-services {
    padding: 100px 0;
    background: var(--light);
}

.modern-service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.modern-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.modern-service-card__image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.modern-service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.modern-service-card:hover .modern-service-card__image img {
    transform: scale(1.1);
}

.modern-service-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(30, 134, 255, 0.8) 100%);
    opacity: 0;
    transition: var(--transition);
}

.modern-service-card:hover .modern-service-card__overlay {
    opacity: 1;
}

.modern-service-card__content {
    padding: 32px;
}

.modern-service-card__content h4 {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.modern-service-card__content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--secondary-color);
    margin: 0;
}

/*===== Responsive Design =====*/
@media (max-width: 991px) {
    .modern-hero {
        padding: 80px 0 60px;
    }

    .modern-hero .hero__title {
        font-size: 42px;
    }

    .modern-hero .hero__description {
        font-size: 16px;
    }

    .hero__stat-card--1,
    .hero__stat-card--2 {
        display: none;
    }

    .track-form__wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .track-form__input {
        width: 100%;
        padding: 16px;
    }

    .track-form__button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .modern-hero .hero__title {
        font-size: 32px;
    }

    .modern-features .section__title h2.title,
    .modern-services .section__title h2.title {
        font-size: 32px;
    }
}
