﻿/* ========================================
   SERVICES SECTION - Gold to Blue Gradient
   Fully Responsive - No HTML Changes
   ======================================== */

/* Root variables */
:root {
    --bright-marine: #0070b7;
    --bright-sky: #4ebae6;
    --gold: #f39c12;
    --gold-light: #ffd700;
    --alabaster-grey: #e3e3e6;
    --onyx: #0c0b0c;
    --charcoal: #544f54;
    --vintage-lavender: #6e6e8c;
}

/* Container max-width */
@media (min-width: 1200px) {
    .services-container {
        max-width: 1400px;
    }
}

/* ========================================
   MAIN SECTION - Gold to Blue Theme
   ======================================== */
.services-section {
    padding: 60px 0;
    position: relative;
    background-color: #fdfaf3;
    background-image: linear-gradient(rgba(0, 112, 183, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 112, 183, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow: hidden;
}

    /* Top gradient line */
    .services-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, #f39c12, #0070b7, #f39c12, transparent);
        z-index: 1;
    }

    /* Floating orbs */
    .services-section::after {
        content: '';
        position: absolute;
        bottom: -15%;
        left: -8%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(243, 156, 18, 0.08) 0%, transparent 70%);
        border-radius: 50%;
        animation: floatOrb 15s ease-in-out infinite;
        pointer-events: none;
    }

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ========================================
   SECTION HEADER
   ======================================== */
.section-header {
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

    .section-header h2 {
        font-size: 2.2rem !important;
        font-weight: 800 !important;
        background: linear-gradient(135deg, #f39c12 0%, #0070b7 50%, #005a94 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline-block;
        margin-bottom: 10px;
    }

/* Gold icon */
.highlight-icon {
    display: inline-block;
    margin: 10px 0;
}

    .highlight-icon i {
        font-size: 2.5rem;
        color: #f39c12 !important;
        filter: drop-shadow(0 4px 8px rgba(243, 156, 18, 0.3));
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        display: inline-block;
    }

        .highlight-icon i:hover {
            transform: rotate(360deg) scale(1.2);
            color: #0070b7 !important;
            filter: drop-shadow(0 8px 16px rgba(0, 112, 183, 0.4));
        }

.section-description {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 600px;
    margin: 10px auto 0;
    line-height: 1.6;
}

/* ========================================
   SERVICES GRID
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    padding: 20px;
    position: relative;
    z-index: 2;
}


/* ========================================
   SERVICE CARD - Light Simple Hover
   ======================================== */
.service-card-wrapper {
    height: 100%;
}

.service-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 28px 20px;
    height: 100%;
    min-height: 180px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    overflow: hidden;
    border: 1px solid rgba(0, 112, 183, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Subtle border on hover */
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 112, 183, 0.12);
        border-color: rgba(0, 112, 183, 0.25);
    }

    /* Remove dark overlay - simple light gradient */
    .service-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 112, 183, 0.02) 0%, rgba(243, 156, 18, 0.02) 100%);
        border-radius: 20px;
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: 0;
    }

    .service-card:hover::after {
        opacity: 1;
    }

/* ========================================
   SERVICE ICON - Blue with Gold on Hover
   ======================================== */
.service-icon {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

    .service-icon i {
        font-size: 2.2rem;
        background: linear-gradient(135deg, #0070b7, #005a94);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        transition: all 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
        display: inline-block;
    }

.service-card:hover .service-icon i {
    background: linear-gradient(135deg, #0070b7, #f39c12);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.1) rotate(3deg);
}

/* ========================================
   SERVICE TITLE - Simple Color Change
   ======================================== */
.service-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    width: 100%;
}

.service-card:hover .service-title {
    color: #0070b7;
}

/* Remove underline effect - cleaner */
.service-title::after {
    display: none;
}




/* ========================================
   SERVICE ICON
   ======================================== */

.service-icon {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

    .service-icon i {
        font-size: 2.2rem;
        background: linear-gradient(135deg, #0070b7, #005a94);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        transition: all 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
        display: inline-block;
    }

.service-card:hover .service-icon i {
    background: linear-gradient(135deg, #0070b7, #f39c12);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(243, 156, 18, 0.3));
}



/* ========================================
   SERVICE TITLE
   ======================================== */
.service-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    width: 100%;
}

    .service-title::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #f39c12, #0070b7);
        transform: translateX(-50%);
        transition: width 0.3s ease;
    }

.service-card:hover .service-title {
    background: linear-gradient(135deg, #0070b7, #005a94);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

    .service-card:hover .service-title::after {
        width: 50px;
    }

/* ========================================
   SERVICE LINK
   ======================================== */
.service-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* ========================================
   HOVER EFFECT OVERLAY
   ======================================== */
.service-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.05) 0%, rgba(0, 112, 183, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    border-radius: 20px;
}

.service-card:hover .service-hover-effect {
    opacity: 1;
}

/* ========================================
   STAGGERED ANIMATIONS
   ======================================== */
.service-card {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

.service-card-wrapper:nth-child(1) .service-card {
    animation-delay: 0.05s;
}

.service-card-wrapper:nth-child(2) .service-card {
    animation-delay: 0.1s;
}

.service-card-wrapper:nth-child(3) .service-card {
    animation-delay: 0.15s;
}

.service-card-wrapper:nth-child(4) .service-card {
    animation-delay: 0.2s;
}

.service-card-wrapper:nth-child(5) .service-card {
    animation-delay: 0.25s;
}

.service-card-wrapper:nth-child(6) .service-card {
    animation-delay: 0.3s;
}

.service-card-wrapper:nth-child(7) .service-card {
    animation-delay: 0.35s;
}

.service-card-wrapper:nth-child(8) .service-card {
    animation-delay: 0.4s;
}

.service-card-wrapper:nth-child(9) .service-card {
    animation-delay: 0.45s;
}

.service-card-wrapper:nth-child(10) .service-card {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large screens: 4 columns */
@media (max-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* Desktop: 3 columns */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .service-card {
        padding: 24px 18px;
        min-height: 170px;
    }
}

/* Tablet: 2 columns */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .service-card {
        padding: 22px 16px;
        min-height: 160px;
    }

    .service-icon i {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem !important;
    }
}

/* Small tablet: 2 columns, tighter */
@media (max-width: 768px) {
    .services-section {
        padding: 40px 0;
    }

    .services-grid {
        gap: 14px;
        padding: 15px;
    }

    .service-card {
        padding: 18px 14px;
        min-height: 140px;
        border-radius: 16px;
    }

        .service-card::before {
            border-radius: 18px;
        }

    .service-icon i {
        font-size: 1.7rem;
    }

    .service-title {
        font-size: 0.9rem;
    }

    .section-description {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    .highlight-icon i {
        font-size: 2.2rem;
    }
}

/* Mobile: 1 column, centered */
@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
        gap: 14px;
        padding: 10px;
    }

    .service-card {
        padding: 20px 18px;
        min-height: auto;
        border-radius: 16px;
    }

        .service-card::before {
            border-radius: 18px;
        }

        .service-card::after {
            border-radius: 16px;
        }

    .service-icon i {
        font-size: 1.8rem;
    }

    .service-title {
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.6rem !important;
    }

    .highlight-icon i {
        font-size: 2rem;
    }
}

/* Extra small mobile */
@media (max-width: 400px) {
    .services-grid {
        max-width: 280px;
    }

    .service-card {
        padding: 16px 14px;
    }

    .service-icon i {
        font-size: 1.6rem;
    }

    .service-title {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.4rem !important;
    }
}

/* ========================================
   ACTIVE/PRESS EFFECT
   ======================================== */
.service-card:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .services-section {
        background: #fff !important;
        background-image: none !important;
    }

    .service-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
