/* ===================================
   MODERN FRONT PAGE STYLES
   =================================== */

/* Hero Section - Modern & Animated */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0066FF 0%, #00D4FF 50%, #0066FF 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    overflow: hidden;
    padding: var(--spacing-3xl) 0;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Animated background pattern */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-white), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
}

.hero-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-2xl);
    color: var(--primary-dark);
}

.hero-buttons .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid white;
    color: white;
}

.hero-buttons .btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-2xl);
}

/* ===================================
   MODERN SERVICE CARD STYLES
   =================================== */
.services-section {
    position: relative;
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.modern-service-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    isolation: isolate;
}

.modern-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.service-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.modern-service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), transparent);
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.modern-service-card:hover .image-overlay {
    opacity: 0.9;
}

.service-card-content {
    padding: 30px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.service-card-icon {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--logisko-blue);
    position: absolute;
    top: -32px;
    right: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.modern-service-card:hover .service-card-icon {
    background: var(--logisko-red);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.service-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--logisko-blue);
    margin-top: 10px;
    transition: color 0.3s ease;
}

.modern-service-card:hover .service-card-title {
    color: var(--logisko-red);
}

.service-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
    flex-grow: 1;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    color: var(--logisko-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 12px 24px;
    background: #f5f7fa;
    border-radius: 12px;
    align-self: flex-start;
}

.service-card-link:hover {
    gap: 12px;
    background: var(--logisko-blue);
    color: white;
}

/* About Section - Enhanced Stats */
.about-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
}

.stats-card {
    background: var(--primary-gradient);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    color: white;
    text-align: center;
    box-shadow: var(--shadow-colored);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Feature Items */
.feature-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: start;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

/* Testimonials Section */
.testimonials-section {
    background: white;
}

.testimonials-section .card {
    position: relative;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.testimonials-section .card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 6rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonials-section .card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-colored);
}

.rating {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    letter-spacing: 2px;
}

/* ===================================
   MODERN CTA SECTION STYLES
   =================================== */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, #04223E 0%, #0066FF 100%);
    padding: 80px 0;
    color: white;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-cta-primary {
    background: #FF4D4D;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 77, 77, 0.4);
    background: #ff3333;
    color: white;
}

.btn-cta-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cta-outline:hover {
    background: white;
    color: #04223E;
    border-color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta-primary,
    .btn-cta-outline {
        width: 100%;
        justify-content: center;
    }
}

/* Animation delays for staggered entrance */
.modern-service-card:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.modern-service-card:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.modern-service-card:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.modern-service-card:nth-child(4) {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.modern-service-card:nth-child(5) {
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.modern-service-card:nth-child(6) {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.modern-service-card:nth-child(7) {
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

.modern-service-card:nth-child(8) {
    animation: fadeInUp 0.6s ease-out 0.8s both;
}