/* Services Style 5 - Clean Professional Cards */
.services-style-5 {
    position: relative;
    padding: 80px 0;
    background: #f8f9fa;
    min-height: auto;
    overflow: hidden;
}

.services-style-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 123, 255, 0.03) 50%, transparent 70%);
    animation: backgroundShift 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.services-style-5 .container {
    position: relative;
    z-index: 2;
}

.services-title {
    color: #2c3e50;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(-50px);
    animation: titleSlideIn 1s ease-out 0.2s forwards;
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.services-subtitle {
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    animation: subtitleFadeIn 1s ease-out 0.4s forwards;
}

@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card-modern {
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(50px) rotateX(15deg);
    text-align: center;
    border: 1px solid #e9ecef;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card-modern.animate {
    animation: cardSlideUp 0.8s ease-out forwards;
}

@keyframes cardSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(15deg) scale(0.9);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-10px) rotateX(0deg) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.service-card-modern:hover::before {
    left: 100%;
}

.service-card-modern:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border-color: #007bff;
}

.service-card-modern:focus {
    outline: 2px solid #007bff;
    outline-offset: 4px;
}

.service-image-wrapper {
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    z-index: 2;
    transition: all 0.4s ease;
    border: 2px solid #e9ecef;
}

.service-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #007bff, #0056b3);
    opacity: 0;
    transition: all 0.4s ease;
    transform: scale(0);
}

.service-card-modern:hover .service-image-wrapper::before {
    opacity: 0.1;
    transform: scale(1);
}

.service-image-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.service-card-modern:hover .service-image-wrapper::after {
    width: 100%;
    height: 100%;
}

.service-image {
    width: 250px;
    height: 250px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 3;
    border-radius: 8px;
}

.service-card-modern:hover .service-image {
    transform: scale(1.1) rotate(5deg);
}

.service-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    line-height: 1.3;
    transition: all 0.3s ease;
}

/* Service link styles removed - now handled by card wrapper */

.service-description {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3.2em;
    transition: all 0.3s ease;
}

.service-card-modern:hover .service-description {
    color: #495057;
}

/* Services Style 6 - Modern Grid Cards */
.services-style-6 {
    position: relative;
    padding: 80px 0;
    background: white;
    min-height: auto;
    overflow: hidden;
}

.services-style-6::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: backgroundPulse 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.services-style-6 .container {
    position: relative;
    z-index: 2;
}

.services-title-hex {
    color: #2c3e50;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(-50px);
    animation: titleSlideIn 1s ease-out 0.2s forwards;
}

.services-subtitle-hex {
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    animation: subtitleFadeIn 1s ease-out 0.4s forwards;
}

.services-hexagon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.service-hexagon-card {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 35px 25px;
    border: 1px solid #e9ecef;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(60px) rotateY(-15deg);
    text-align: center;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-hexagon-card.animate {
    animation: hexCardSlideIn 0.8s ease-out forwards;
}

@keyframes hexCardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(60px) rotateY(-15deg) scale(0.8);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-15px) rotateY(0deg) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateY(0deg) scale(1);
    }
}

.service-hexagon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), transparent);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.service-hexagon-card:hover::before {
    opacity: 1;
}

.service-hexagon-card:hover {
    transform: translateY(-12px) rotateX(5deg);
    border-color: #007bff;
    box-shadow: 0 15px 50px rgba(0, 123, 255, 0.2);
    background: white;
}

.service-hexagon-card:focus {
    outline: 2px solid #007bff;
    outline-offset: 4px;
}

.service-hex-image-wrapper {
    width: 280px;
    height: 280px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.4s ease;
    border: 2px solid #e9ecef;
}

.service-hex-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, #007bff, #0056b3, #007bff);
    opacity: 0;
    transition: all 0.4s ease;
    transform: rotate(0deg);
}

.service-hexagon-card:hover .service-hex-image-wrapper::before {
    opacity: 0.1;
    transform: rotate(360deg);
}

.service-hex-image-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.service-hexagon-card:hover .service-hex-image-wrapper::after {
    width: 80%;
    height: 80%;
}

.service-hex-image {
    width: 230px;
    height: 230px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 3;
    border-radius: 6px;
}

.service-hexagon-card:hover .service-hex-image {
    transform: scale(1.1) rotateY(5deg);
}

.hex-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.service-hex-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: #2c3e50;
    line-height: 1.3;
    transition: all 0.3s ease;
}

/* Service hex link styles removed - now handled by card wrapper */

.service-hex-description {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3em;
    transition: all 0.3s ease;
}

.service-hexagon-card:hover .service-hex-description {
    color: #495057;
}

/* Floating Animation Elements */
.service-card-modern::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 6px;
    height: 6px;
    background: #007bff;
    border-radius: 50%;
    opacity: 0;
    animation: floatingDot 2s ease-in-out infinite;
    animation-delay: calc(var(--index, 0) * 0.3s);
}

@keyframes floatingDot {
    0%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-10px);
    }
}

.service-hexagon-card::after {
    content: '';
    position: absolute;
    top: 25px;
    right: 25px;
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 2px;
    opacity: 0;
    animation: floatingSquare 2.5s ease-in-out infinite;
    animation-delay: calc(var(--index, 0) * 0.4s);
}

@keyframes floatingSquare {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }
    50% {
        opacity: 0.4;
        transform: translateY(-15px) rotate(45deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .services-hexagon-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .services-style-5,
    .services-style-6 {
        padding: 60px 0;
    }
    
    .services-title,
    .services-title-hex {
        font-size: 2.2rem;
    }
    
    .services-subtitle,
    .services-subtitle-hex {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .services-grid,
    .services-hexagon-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }
    
    .service-card-modern,
    .service-hexagon-card {
        padding: 30px 25px;
    }
    
    .service-image-wrapper {
        width: 240px;
        height: 240px;
        margin-bottom: 25px;
    }
    
    .service-image {
        width: 200px;
        height: 200px;
    }
    
    .service-hex-image-wrapper {
        width: 220px;
        height: 220px;
        margin-bottom: 20px;
    }
    
    .service-hex-image {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .services-title,
    .services-title-hex {
        font-size: 1.8rem;
    }
    
    .services-subtitle,
    .services-subtitle-hex {
        font-size: 1rem;
    }
    
    .service-card-modern,
    .service-hexagon-card {
        padding: 25px 20px;
    }
    
    .service-image-wrapper {
        width: 200px;
        height: 200px;
        margin-bottom: 20px;
    }
    
    .service-image {
        width: 170px;
        height: 170px;
    }
    
    .service-hex-image-wrapper {
        width: 180px;
        height: 180px;
        margin-bottom: 18px;
    }
    
    .service-hex-image {
        width: 150px;
        height: 150px;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-hex-title {
        font-size: 1.1rem;
    }
}

/* Button Styles */
.services-buttons,
.services-hex-buttons {
    margin-top: 60px;
    text-align: center;
    opacity: 0;
    animation: buttonsSlideIn 0.8s ease-out 1.2s forwards;
}

@keyframes buttonsSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-primary-btn,
.services-secondary-btn,
.services-hex-primary-btn,
.services-hex-secondary-btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin: 0 10px 15px 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.services-primary-btn::before,
.services-secondary-btn::before,
.services-hex-primary-btn::before,
.services-hex-secondary-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.services-primary-btn:hover::before,
.services-secondary-btn:hover::before,
.services-hex-primary-btn:hover::before,
.services-hex-secondary-btn:hover::before {
    width: 300px;
    height: 300px;
}

.services-primary-btn,
.services-hex-primary-btn {
    background: #007bff;
    color: white;
    border: 2px solid #007bff;
}

.services-primary-btn:hover,
.services-hex-primary-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
}

.services-secondary-btn,
.services-hex-secondary-btn {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.services-secondary-btn:hover,
.services-hex-secondary-btn:hover {
    background: #007bff;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
}

/* Accessibility */
.service-card-modern:focus,
.service-hexagon-card:focus {
    outline: 2px solid #007bff;
    outline-offset: 3px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .service-card-modern,
    .service-hexagon-card,
    .services-title,
    .services-subtitle,
    .services-title-hex,
    .services-subtitle-hex,
    .services-buttons,
    .services-hex-buttons {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .service-card-modern:hover,
    .service-hexagon-card:hover {
        transform: none;
    }
    
    .services-primary-btn:hover,
    .services-secondary-btn:hover,
    .services-hex-primary-btn:hover,
    .services-hex-secondary-btn:hover {
        transform: none;
    }
    
    .services-style-5::before,
    .services-style-6::before {
        animation: none;
    }
}

/* Print styles */
@media print {
    .services-style-5,
    .services-style-6 {
        background: white;
        padding: 20px 0;
    }
    
    .service-card-modern,
    .service-hexagon-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        background: white;
    }
    
    .services-title,
    .services-title-hex {
        color: black;
    }
    
    .services-subtitle,
    .services-subtitle-hex {
        color: #666;
    }
} 