/* ==========================================
   Services Cards - New Design
   ========================================== */

/* Services Cards Section */
.services-cards-section {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.services-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Service Card New Design */
.service-card-new {
    position: relative;
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    min-height: 520px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.service-card-new:hover::before {
    opacity: 1;
}

.service-card-new:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(6, 182, 212, 0.15);
}

/* Card Background */
.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.card-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card-new:hover .card-gradient {
    opacity: 1;
}

.card-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
    opacity: 0.5;
}

/* Card Content */
.card-content {
    position: relative;
    z-index: 1;
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Card Icon */
.card-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.service-card-new:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4);
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.service-card-new:hover .icon-glow {
    opacity: 1;
}

/* Card Number */
.card-number {
    position: absolute;
    top: 30px;
    right: 30px;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    transition: all 0.4s ease;
}

.service-card-new:hover .card-number {
    color: rgba(6, 182, 212, 0.2);
    transform: scale(1.1);
}

/* Card Title */
.card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.service-card-new:hover .card-title {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Description */
.card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Card Features */
.card-features {
    list-style: none;
    margin-bottom: 30px;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.card-features li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.feature-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.card-features li:hover .feature-dot {
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-card {
    flex: 1;
    padding: 14px 24px;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
}

.btn-card-outline {
    flex: 1;
    padding: 14px 24px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-card-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(6, 182, 212, 0.5);
    color: #06b6d4;
}

/* Card Shine Effect */
.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.7s ease;
    z-index: 2;
    pointer-events: none;
}

.service-card-new:hover .card-shine {
    left: 150%;
}

/* Service-specific colors */
.service-card-new[data-service="web"] .card-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

.service-card-new[data-service="design"] .card-icon {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

.service-card-new[data-service="app"] .card-icon {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

.service-card-new[data-service="marketing"] .card-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.service-card-new[data-service="branding"] .card-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.service-card-new[data-service="cloud"] .card-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

/* Why Services Section */
.why-services-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
}

.why-card:hover {
    transform: translateY(-10px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #06b6d4;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.why-card:hover .why-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    color: white;
    transform: scale(1.1);
}

.why-card h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Animation for cards on scroll */
.service-card-new {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.6s ease forwards;
}

.service-card-new:nth-child(1) { animation-delay: 0.1s; }
.service-card-new:nth-child(2) { animation-delay: 0.2s; }
.service-card-new:nth-child(3) { animation-delay: 0.3s; }
.service-card-new:nth-child(4) { animation-delay: 0.4s; }
.service-card-new:nth-child(5) { animation-delay: 0.5s; }
.service-card-new:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid-new {
        grid-template-columns: 1fr;
    }
    
    .service-card-new {
        min-height: auto;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .card-number {
        font-size: 3rem;
    }
}

/* Floating animation for icons */
@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.service-card-new:hover .card-icon {
    animation: floatIcon 2s ease-in-out infinite;
}

/* Pulse animation for feature dots */
@keyframes pulseDot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(6, 182, 212, 0);
    }
}

.card-features li:hover .feature-dot {
    animation: pulseDot 1s ease infinite;
}

/* ==========================================
   Service Detail Pages Styles
   ========================================== */

.service-detail-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.service-detail-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
}

.service-detail-content > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-features-large {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-large-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.feature-large-item:hover {
    transform: translateX(10px);
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.05);
}

.feature-large-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.feature-large-content h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-large-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Service Detail Visual */
.service-detail-visual {
    position: relative;
}

.service-image-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.service-image-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-image-main:hover img {
    transform: scale(1.05);
}

.service-stats-float {
    position: absolute;
    bottom: -30px;
    left: -30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-stat {
    background: var(--bg-card);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 16px;
    padding: 20px 25px;
    backdrop-filter: blur(10px);
    animation: floatStat 4s ease-in-out infinite;
}

.float-stat:nth-child(2) {
    animation-delay: -2s;
}

@keyframes floatStat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-stat .stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.float-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Deliverables Section */
.deliverables-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.deliverable-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
}

.deliverable-card:hover {
    transform: translateY(-10px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.deliverable-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin: 0 auto 25px;
    transition: transform 0.4s ease;
}

.deliverable-card:hover .deliverable-icon {
    transform: scale(1.1) rotate(5deg);
}

.deliverable-card h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.deliverable-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Platforms Section */
.platforms-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 50px 35px;
    text-align: center;
    transition: all 0.4s ease;
}

.platform-card:hover {
    transform: translateY(-15px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.platform-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 2px solid rgba(6, 182, 212, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #06b6d4;
    margin: 0 auto 30px;
    transition: all 0.4s ease;
}

.platform-card:hover .platform-logo {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    color: white;
    transform: scale(1.1);
}

.platform-card h4 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.platform-card > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

.platform-features {
    list-style: none;
    text-align: left;
}

.platform-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-features li:last-child {
    border-bottom: none;
}

.platform-features li i {
    color: #10b981;
    font-size: 0.8rem;
}

/* Responsive for Detail Pages */
@media (max-width: 1200px) {
    .service-detail-grid {
        gap: 50px;
    }
    
    .deliverables-grid,
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .service-detail-visual {
        order: -1;
    }
    
    .service-image-main img {
        height: 350px;
    }
    
    .service-stats-float {
        position: relative;
        bottom: auto;
        left: auto;
        flex-direction: row;
        justify-content: center;
        margin-top: 30px;
    }
    
    .deliverables-grid,
    .platforms-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service-detail-content h2 {
        font-size: 1.75rem;
    }
    
    .service-stats-float {
        flex-direction: column;
        align-items: center;
    }
}
