/* services.css - Services Section Styles */

.services-section {
    padding: var(--section-padding);
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(0, 28, 76, 0.03), transparent);
}

/* Single Row Grid Layout for Desktop */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    gap: 25px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    min-height: 450px;
}

/* Remove the services-row-2 wrapper */
.services-row-2 {
    display: contents;
}

/* Grid positioning for each card - Featured card in 3rd position */
.service-card[data-service="social"] {
    grid-column: 1;
    grid-row: 1;
}

.service-card[data-service="creative"] {
    grid-column: 2;
    grid-row: 1;
}

.service-card.featured {
    grid-column: 3;
    grid-row: 1;
}

.service-card[data-service="analytics"] {
    grid-column: 4;
    grid-row: 1;
}

/* Base Service Card - Blue Theme */
.service-card {
    padding: 24px 25px;
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.25),
        rgba(59, 130, 246, 0.20),
        rgba(59, 130, 246, 0.15)
    ) !important;
    border: 2px solid rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.3) !important;
    border-radius: 12px;

    /* Smooth transitions for all properties */
    transition:
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 0.3s ease-out,
        background 0.3s ease-out;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.08));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover::before {
    opacity: 1;
}

/* Featured Card - Pink Theme */
.service-card.featured {
    background: linear-gradient(135deg,
        rgba(244, 114, 182, 0.25),
        rgba(244, 114, 182, 0.20),
        rgba(244, 114, 182, 0.15)
    ) !important;
    border: 2px solid rgba(244, 114, 182, 0.4) !important;
    box-shadow: 0 0 25px rgba(244, 114, 182, 0.3) !important;
    position: relative;
    overflow: hidden;
}

/* Enhanced featured card overlay */
.service-card.featured::before {
    background: linear-gradient(135deg, transparent, rgba(244, 114, 182, 0.08));
}

/* Service Icon - Blue for regular cards */
.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.2)) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3) !important;

    /* Smooth icon transitions */
    transition:
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) ,
        background 0.4s ease-out ,
        box-shadow 0.4s ease-out ,
        border-color 0.3s ease-out !important;
}

/* Featured card icon - Pink */
.service-card.featured .service-icon {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.3), rgba(244, 114, 182, 0.2)) !important;
    border: 1px solid rgba(244, 114, 182, 0.4) !important;
    box-shadow: 0 0 15px rgba(244, 114, 182, 0.3) !important;
}

.service-icon i {
    font-size: 24px;
    color: #0f172a !important;
    font-weight: 600 !important;

    /* Smooth icon rotation and scaling */
    transition:
        transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) ,
        color 0.3s ease-out !important;
}

.service-card:hover .service-icon {
    transform: translateY(-6px) rotate(5deg) scale(1.03) !important;
}

/* Blue cards icon hover */
.service-card:not(.featured):hover .service-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(59, 130, 246, 0.35)) !important;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.45) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
}

/* Featured (pink) card icon hover */
.service-card.featured:hover .service-icon {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.45), rgba(244, 114, 182, 0.35)) !important;
    box-shadow: 0 0 25px rgba(244, 114, 182, 0.45) !important;
    border-color: rgba(244, 114, 182, 0.6) !important;
}

.service-card:hover .service-icon i {
    transform: scale(1.08) rotate(-2deg) !important;
}

/* Service Card Titles */
.service-card h3 {
    font-size: 20px !important;
    margin-bottom: 12px;
    color: #0f172a !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    letter-spacing: -0.01em !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover h3 {
    transform: translateY(-2px);
}

/* Service Card Description */
.service-card p {
    font-size: 14px !important;
    line-height: 1.6;
    color: #1e293b !important;
    margin-bottom: 16px;
    flex-grow: 1;
    font-weight: 500 !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover p {
    transform: translateY(-1px);
}

/* Service Features List - Same for all cards */
.service-features {
    list-style: none;
    margin-bottom: 20px;
}

.service-features li {
    padding: 5px 0;
    padding-left: 22px;
    position: relative;
    font-size: 13px !important;
    color: #1e293b !important;
    font-weight: 500 !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #0f172a !important;
    font-weight: bold;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-features li {
    transform: translateX(3px);
}

.service-card:hover .service-features li::before {
    transform: translateX(2px);
}

/* Service CTA Button - Blue for regular cards */
.service-cta {
    background: transparent !important;
    border: 1px solid rgba(59, 130, 246, 0.5) !important;
    color: #0f172a !important;
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2) !important;

    /* Smooth CTA transitions */
    transition:
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        background 0.3s ease-out,
        border-color 0.3s ease-out,
        box-shadow 0.4s ease-out,
        color 0.3s ease-out;
}

/* Featured card CTA - Pink */
.service-card.featured .service-cta {
    border: 1px solid rgba(244, 114, 182, 0.5) !important;
    box-shadow: 0 0 10px rgba(244, 114, 182, 0.2) !important;
}

.service-cta i {
    font-size: 12px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Blue cards CTA hover */
.service-card:not(.featured) .service-cta:hover {
    background: rgba(59, 130, 246, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35) !important;
}

/* Featured (pink) card CTA hover */
.service-card.featured .service-cta:hover {
    background: rgba(244, 114, 182, 0.2) !important;
    border-color: rgba(244, 114, 182, 0.6) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(244, 114, 182, 0.35) !important;
}

.service-cta:hover i {
    transform: translateX(8px) scale(1.1);
}

/* Featured Badge - Blue color with stronger overrides */
.featured-badge,
.service-card.featured .featured-badge,
.service-card .featured-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: linear-gradient(135deg, #3B82F6, #1E40AF) !important;
    color: #F8FAFC !important;
    padding: 8px 18px !important;
    border-radius: 25px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4) !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 10 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    display: inline-block !important;
    white-space: nowrap !important;

    /* Smooth badge transitions */
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease-out;
}

.featured-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #3B82F6, #1E40AF, #3B82F6);
    border-radius: 25px;
    z-index: -1;
    opacity: 0.7;
    filter: blur(4px);
    transition: opacity 0.3s ease-out;
}

.service-card:hover .featured-badge {
    transform: translateY(-2px) rotate(2deg) scale(1.05);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5) !important;
}

.service-card:hover .featured-badge::before {
    opacity: 0.9;
}

/* Service Card Animations */
.service-card[data-service="social"] {
    animation: slideInUp 0.6s ease-out 0.1s backwards;
}

.service-card[data-service="creative"] {
    animation: slideInUp 0.6s ease-out 0.2s backwards;
}

.service-card[data-service="digital"] {
    animation: featuredSlideIn 0.8s ease-out 0.3s backwards;
}

.service-card[data-service="analytics"] {
    animation: slideInUp 0.6s ease-out 0.4s backwards;
}

@keyframes featuredSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.service-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Blue cards hover */
.service-card:not(.featured):hover {
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.4) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
}

/* Featured (pink) card hover */
.service-card.featured:hover {
    box-shadow: 0 20px 50px rgba(244, 114, 182, 0.4) !important;
    border-color: rgba(244, 114, 182, 0.6) !important;
}

/* Large Tablet/Small Desktop - 3 cards per row */
@media (max-width: 1200px) and (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 950px;
        gap: 20px;
    }

    /* Reposition for 3-column layout */
    .service-card[data-service="social"] {
        grid-column: 1;
        grid-row: 1;
    }

    .service-card[data-service="creative"] {
        grid-column: 2;
        grid-row: 1;
    }

    .service-card.featured {
        grid-column: 3;
        grid-row: 1;
    }

    .service-card[data-service="analytics"] {
        grid-column: 1;
        grid-row: 2;
    }

    .service-card {
        padding: 22px 24px;
    }

    .service-icon {
        width: 55px;
        height: 55px;
    }

    .service-icon i {
        font-size: 22px;
    }

    .service-card h3 {
        font-size: 18px !important;
    }

    .service-card p {
        font-size: 13px !important;
    }
}

/* Tablet improvements - 2 cards per row */
@media (max-width: 991px) and (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 20px;
        max-width: 700px;
    }

    /* 2x2 grid positioning */
    .service-card[data-service="social"] {
        grid-column: 1;
        grid-row: 1;
    }

    .service-card[data-service="creative"] {
        grid-column: 2;
        grid-row: 1;
    }

    .service-card.featured {
        grid-column: 1;
        grid-row: 2;
    }

    .service-card[data-service="analytics"] {
        grid-column: 2;
        grid-row: 2;
    }

    .service-card {
        padding: 20px 22px;
    }

    .service-icon {
        width: 55px;
        height: 55px;
    }

    .service-icon i {
        font-size: 22px;
    }

    .service-card h3 {
        font-size: 18px !important;
    }

    .service-card p {
        font-size: 13px !important;
    }
}

/* Mobile - Single column (unchanged) */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px; /* Reduced gap */
        min-height: unset;
        max-width: 100%;
    }

    /* All cards stack vertically */
    .service-card.featured,
    .service-card[data-service="social"],
    .service-card[data-service="creative"],
    .service-card[data-service="analytics"] {
        grid-column: 1;
        grid-row: auto;
    }

    .service-card {
        min-height: 180px; /* Reduced from 220px */
        padding: 18px 20px; /* Compact padding */
        border-radius: 10px; /* Smaller radius */
    }

    .service-icon {
        width: 50px; /* Smaller icon */
        height: 50px;
        margin-bottom: 12px; /* Reduced margin */
        border-radius: 8px; /* Smaller radius */
    }

    .service-icon i {
        font-size: 20px; /* Smaller icon */
    }

    .service-card h3 {
        font-size: 16px !important; /* Smaller title */
        margin-bottom: 8px; /* Reduced margin */
    }

    .service-card p {
        font-size: 12px !important; /* Smaller text */
        margin-bottom: 12px; /* Reduced margin */
        line-height: 1.5;
    }

    .service-features {
        margin-bottom: 15px; /* Reduced margin */
    }

    .service-features li {
        padding: 3px 0; /* Reduced padding */
        padding-left: 18px; /* Reduced left padding */
        font-size: 11px !important; /* Smaller text */
    }

    .service-cta {
        padding: 8px 16px; /* Smaller button */
        font-size: 11px; /* Smaller text */
        border-radius: 12px; /* Smaller radius */
        gap: 6px; /* Smaller gap */
    }

    .service-cta i {
        font-size: 10px; /* Smaller icon */
    }

    /* Smaller featured badge */
    .featured-badge {
        top: -12px !important;
        right: 20px !important;
        padding: 6px 14px !important;
        font-size: 10px !important;
        border-radius: 20px !important;
    }

    /* Reduce hover effects on mobile */
    .service-card:hover {
        transform: translateY(-3px) scale(1.01); /* Reduced effect */
    }

    .service-card:hover .service-icon {
        transform: translateY(-3px) rotate(3deg) scale(1.02); /* Reduced effect */
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 40px 0; /* Reduced section padding */
    }

    .services-grid {
        gap: 12px; /* Minimal gap */
        margin-top: 40px; /* Reduced top margin */
    }

    .service-card {
        min-height: 160px; /* Even smaller */
        padding: 15px 18px; /* Compact padding */
        border-radius: 8px;
    }

    .service-icon {
        width: 45px; /* Smaller */
        height: 45px;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    .service-icon i {
        font-size: 18px; /* Smaller */
    }

    .service-card h3 {
        font-size: 15px !important; /* Smaller */
        margin-bottom: 6px;
    }

    .service-card p {
        font-size: 11px !important; /* Smaller */
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .service-features {
        margin-bottom: 12px;
    }

    .service-features li {
        padding: 2px 0;
        padding-left: 16px;
        font-size: 10px !important; /* Very small */
    }

    .service-cta {
        padding: 7px 14px; /* Smaller */
        font-size: 10px; /* Smaller */
        border-radius: 10px;
        gap: 5px;
    }

    .service-cta i {
        font-size: 9px;
    }

    /* Compact featured badge */
    .featured-badge {
        top: -10px !important;
        right: 15px !important;
        padding: 5px 12px !important;
        font-size: 9px !important;
        border-radius: 18px !important;
        letter-spacing: 0.5px !important;
    }

    /* Minimal hover effects on small screens */
    .service-card:hover {
        transform: translateY(-2px);
    }

    .service-card:hover .service-icon {
        transform: translateY(-2px) rotate(2deg);
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .service-card {
        min-height: 150px;
        padding: 12px 15px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    .service-icon i {
        font-size: 16px;
    }

    .service-card h3 {
        font-size: 14px !important;
        margin-bottom: 5px;
    }

    .service-card p {
        font-size: 10px !important;
        margin-bottom: 8px;
    }

    .service-features li {
        font-size: 9px !important;
        padding-left: 14px;
    }

    .service-cta {
        padding: 6px 12px;
        font-size: 9px;
    }

    .featured-badge {
        padding: 4px 10px !important;
        font-size: 8px !important;
    }
}