﻿/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600;700;900&family=Inter:wght@400;500;600;700;800&display=swap');

/* Windows Fluent Design Variables */
:root {
    --fluent-blue: #0078D4;
    --fluent-purple: #8764B8;
    --fluent-teal: #00B7C3;
    --fluent-orange: #FF8C00;
    --fluent-green: #10893E;
    --fluent-pink: #E74856;
    --fluent-yellow: #FFB900;
    --fluent-red: #D13438;
    --fluent-navy: #004E8C;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-small: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-medium: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-large: 0 16px 48px rgba(0,0,0,0.18);
    --shadow-hover: 0 24px 64px rgba(0,0,0,0.22);
    --border-radius: 12px;
    --card-spacing: 24px;
    --transition-speed: 0.3s;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #f0f2f5 0%, #e9ecef 100%);
    overflow-x: hidden;
}

.services-dashboard {
    padding: 60px 0 100px;
    min-height: 100vh;
}

/* Dashboard Header */
.dashboard-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

    .dashboard-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, var(--fluent-blue) 0%, var(--fluent-purple) 25%, var(--fluent-teal) 50%, var(--fluent-orange) 75%, var(--fluent-pink) 100%);
    }

    .dashboard-header h1 {
        font-size: 3.5rem;
        font-weight: 900;
        background: linear-gradient(135deg, #0078D4 0%, #8764B8 50%, #00B7C3 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 16px;
        letter-spacing: -0.5px;
    }

    .dashboard-header p {
        font-size: 1.3rem;
        color: #605E5C;
        font-weight: 500;
        margin: 0;
    }

/* Windows Fluent Card Design */
.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-small);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    /* Acrylic Material Effect */
    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at top right, rgba(0,120,212,0.05) 0%, transparent 60%);
        opacity: 0;
        transition: opacity var(--transition-speed);
        pointer-events: none;
    }

    /* Windows 11 Hover Animation */
    .service-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: var(--shadow-hover);
        border-color: rgba(0,120,212,0.1);
    }

        .service-card:hover::before {
            opacity: 1;
        }

    /* Reveal Hover Effect (Windows Fluent Signature) */
    .service-card::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(0,120,212,0.08) 0%, transparent 70%);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
        pointer-events: none;
    }

    .service-card:hover::after {
        width: 500px;
        height: 500px;
    }

/* Service Header */
.service-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.service-image {
    width: 80px;
    height: 80px;
    font-size: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f2f5 0%, #e9ecef 100%);
    border-radius: 16px;
    flex-shrink: 0;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-small);
}

.service-card:hover .service-image {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-medium);
}

.service-title h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #323130;
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
}

.service-title .subtitle {
    font-size: 0.95rem;
    color: #605E5C;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Service Description */
.service-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #605E5C;
    margin-bottom: 28px;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

/* Service Links Container */
.service-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
}

/* Windows Fluent Button Styles */
.service-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-small);
}

    /* Fluent Reveal on Buttons */
    .service-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .service-btn:hover::before {
        opacity: 1;
    }

    .service-btn span {
        display: flex;
        align-items: center;
    }

    .service-btn i {
        font-size: 1.3rem;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .service-btn:hover {
        transform: translateX(8px);
        box-shadow: var(--shadow-medium);
        text-decoration: none;
    }

        .service-btn:hover i {
            transform: translateX(6px);
        }

/* Primary Button (Blue) */
.btn-primary-custom {
    background: linear-gradient(135deg, #0078D4 0%, #004E8C 100%);
    color: white;
}

    .btn-primary-custom:hover {
        background: linear-gradient(135deg, #106EBE 0%, #003D6E 100%);
        color: white;
        box-shadow: 0 12px 32px rgba(0,120,212,0.4);
    }

/* Secondary Button (Purple) */
.btn-secondary-custom {
    background: linear-gradient(135deg, #8764B8 0%, #6B4C9A 100%);
    color: white;
}

    .btn-secondary-custom:hover {
        background: linear-gradient(135deg, #7356A0 0%, #5A3D82 100%);
        color: white;
        box-shadow: 0 12px 32px rgba(135,100,184,0.4);
    }

/* Success Button (Green) */
.btn-success-custom {
    background: linear-gradient(135deg, #10893E 0%, #0B6A30 100%);
    color: white;
}

    .btn-success-custom:hover {
        background: linear-gradient(135deg, #0E7535 0%, #095222 100%);
        color: white;
        box-shadow: 0 12px 32px rgba(16,137,62,0.4);
    }

/* Info Button (Teal) */
.btn-info-custom {
    background: linear-gradient(135deg, #00B7C3 0%, #008B94 100%);
    color: white;
}

    .btn-info-custom:hover {
        background: linear-gradient(135deg, #00A0AB 0%, #00737A 100%);
        color: white;
        box-shadow: 0 12px 32px rgba(0,183,195,0.4);
    }

/* Card Color Accents (Top Border) */
.service-card:nth-child(1)::before {
    border-top: 4px solid var(--fluent-blue);
}

.service-card:nth-child(2)::before {
    border-top: 4px solid var(--fluent-purple);
}

.service-card:nth-child(3)::before {
    border-top: 4px solid var(--fluent-green);
}

.service-card:nth-child(4)::before {
    border-top: 4px solid var(--fluent-teal);
}

.service-card:nth-child(5)::before {
    border-top: 4px solid var(--fluent-orange);
}

.service-card:nth-child(6)::before {
    border-top: 4px solid var(--fluent-pink);
}

.service-card:nth-child(7)::before {
    border-top: 4px solid var(--fluent-yellow);
}

.service-card:nth-child(8)::before {
    border-top: 4px solid var(--fluent-red);
}

.service-card:nth-child(9)::before {
    border-top: 4px solid var(--fluent-navy);
}

/* Shimmer Loading Effect (Optional) */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.service-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-header h1 {
        font-size: 2.5rem;
    }

    .dashboard-header p {
        font-size: 1.1rem;
    }

    .service-card {
        padding: 28px;
    }

    .service-header {
        flex-direction: column;
        text-align: center;
    }

    .service-image {
        width: 70px;
        height: 70px;
        font-size: 3rem;
    }

    .service-title h3 {
        font-size: 1.5rem;
    }

    .service-btn {
        padding: 16px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .services-dashboard {
        padding: 40px 0 60px;
    }

    .dashboard-header {
        margin-bottom: 40px;
        padding: 30px 15px;
    }

    .service-card {
        padding: 24px;
        margin-bottom: 20px;
    }
}

/* Windows 11 Tile Animation */
@keyframes tileFlip {
    0% {
        transform: perspective(600px) rotateY(0deg);
    }

    50% {
        transform: perspective(600px) rotateY(180deg);
    }

    100% {
        transform: perspective(600px) rotateY(0deg);
    }
}

.service-card:active {
    animation: tileFlip 0.6s ease-in-out;
}

/* Accessibility - Focus States */
.service-btn:focus {
    outline: 3px solid var(--fluent-blue);
    outline-offset: 2px;
}

.service-card:focus-within {
    box-shadow: 0 0 0 3px rgba(0,120,212,0.3);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Container Enhancements */
.services-dashboard .container {
    max-width: 1400px;
    padding: 0 40px;
}

/* Grid Gap Enhancement */
.services-dashboard .row {
    margin: 0 -15px;
}

.services-dashboard [class*='col-'] {
    padding: 0 15px;
}

/* Additional Polish */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(20px)) {
    .service-card {
        backdrop-filter: blur(20px);
        background: rgba(255,255,255,0.95);
    }
}
