/* ====================================
   Services Page - Modern Design System
   ==================================== */

/* Design System Variables */
:root {
    /* Primary Colors */
    --primary-purple: #29245F;
    --primary-purple-light: #6C5DD3;
    --primary-purple-dark: #1a1740;
    --accent-orange: #FF8A32;
    --accent-orange-light: #FFB366;

    /* Neutrals */
    --bg-light: #F5F7FB;
    --bg-white: #FFFFFF;
    --text-dark: #17264A;
    --text-body: #5A6B87;
    --text-muted: #8C9AB7;
    --border-light: #E5E9F2;

    /* Semantic Colors */
    --success-green: #22C55E;
    --info-blue: #3B82F6;
    --warning-yellow: #F59E0B;
    --danger-red: #EF4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #29245F 0%, #6C5DD3 100%);
    --gradient-orange: linear-gradient(135deg, #FF8A32 0%, #FFB366 100%);
    --gradient-hero: linear-gradient(135deg, #29245F 0%, #3D3680 50%, #6C5DD3 100%);

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(41, 36, 95, 0.08);
    --shadow-medium: 0 8px 30px rgba(41, 36, 95, 0.12);
    --shadow-strong: 0 15px 40px rgba(41, 36, 95, 0.15);
    --shadow-hover: 0 20px 50px rgba(41, 36, 95, 0.18);

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Spacing */
    --section-padding: 80px;
    --container-padding: 15px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-light);
    color: var(--text-body);
    overflow-x: hidden;
}

/* ====================================
   HERO SECTION
   ==================================== */
.services-hero {
    position: relative;
    background: var(--gradient-hero);
    padding: 160px 0 130px;
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    animation: floatShape 10s infinite ease-in-out;
}

.fs-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 138, 50, 0.2), rgba(255, 179, 102, 0.1));
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.fs-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(108, 93, 211, 0.2), rgba(108, 93, 211, 0.1));
    bottom: 20%;
    left: 5%;
    animation-delay: -3s;
}

.fs-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    top: 40%;
    left: 20%;
    animation-delay: -5s;
}

.fs-4 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(255, 138, 50, 0.15), rgba(255, 179, 102, 0.1));
    bottom: 30%;
    right: 20%;
    animation-delay: -7s;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-30px) rotate(180deg) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: var(--radius-full);
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-badge i {
    color: var(--accent-orange);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

.hero-wave svg path {
    fill: var(--bg-light);
}

/* ====================================
   FILTER SECTION
   ==================================== */
.filter-section {
    padding: 40px 0;
    background: var(--bg-light);
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: var(--shadow-soft);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: var(--bg-white);
    color: var(--text-body);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: var(--font-body);
}

.filter-btn:hover {
    border-color: var(--primary-purple-light);
    color: var(--primary-purple);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(41, 36, 95, 0.35);
}

.filter-btn i {
    font-size: 16px;
}

/* ====================================
   SERVICES GRID
   ==================================== */
.services-grid-section {
    padding: 60px 0 var(--section-padding);
}

.services-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Service Card */
.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
}

.service-card.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-accent {
    height: 5px;
    transition: height var(--transition-normal);
}

.service-card:hover .card-accent {
    height: 8px;
}

.card-accent.blue { background: var(--gradient-primary); }
.card-accent.green { background: linear-gradient(90deg, #22C55E, #4ADE80); }
.card-accent.yellow { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.card-accent.purple { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }
.card-accent.orange { background: var(--gradient-orange); }
.card-accent.teal { background: linear-gradient(90deg, #14B8A6, #2DD4BF); }
.card-accent.cyan { background: linear-gradient(90deg, #06B6D4, #22D3EE); }
.card-accent.red { background: linear-gradient(90deg, #EF4444, #F87171); }

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 25px 15px;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}

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

.card-icon img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.card-icon i {
    font-size: 24px;
    color: white;
}

.card-icon.blue { background: var(--gradient-primary); }
.card-icon.green { background: linear-gradient(135deg, #22C55E, #4ADE80); }
.card-icon.yellow { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.card-icon.purple { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }
.card-icon.orange { background: var(--gradient-orange); }
.card-icon.teal { background: linear-gradient(135deg, #14B8A6, #2DD4BF); }
.card-icon.cyan { background: linear-gradient(135deg, #06B6D4, #22D3EE); }
.card-icon.red { background: linear-gradient(135deg, #EF4444, #F87171); }

.card-title h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 3px;
    font-family: var(--font-heading);
}

.card-title .tamil {
    font-size: 12px;
    color: var(--text-muted);
}

.card-body {
    padding: 0 25px 15px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-body);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li:hover {
    padding-left: 8px;
    color: var(--text-dark);
}

.service-list li i {
    color: var(--success-green);
    font-size: 12px;
    margin-top: 3px;
    flex-shrink: 0;
}

.card-footer {
    padding: 15px 25px 25px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.details-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-light);
    color: var(--text-body);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.details-btn:hover {
    background: var(--border-light);
    color: var(--text-dark);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.details-btn i {
    font-size: 11px;
    transition: transform var(--transition-normal);
}

.details-btn:hover i {
    transform: translateX(3px);
}

.enquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-orange);
    color: white;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(255, 138, 50, 0.3);
}

.enquiry-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(255, 138, 50, 0.4);
    color: white;
}

.enquiry-btn i {
    transition: transform var(--transition-normal);
}

.enquiry-btn:hover i {
    transform: translateX(3px);
}

/* ====================================
   CTA SECTION
   ==================================== */
.cta-section {
    padding: var(--section-padding) 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 138, 50, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.cta-btn.primary {
    background: var(--gradient-orange);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 138, 50, 0.35);
}

.cta-btn.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 138, 50, 0.45);
    color: white;
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.cta-btn.secondary:hover {
    background: white;
    color: var(--primary-purple);
    border-color: white;
    transform: translateY(-5px);
}

/* ====================================
   ANIMATIONS
   ==================================== */
.animate-pop {
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out 0.3s both;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 1200px) {
    .services-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .services-hero {
        padding: 140px 0 110px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .filter-tabs {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 120px 0 100px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .services-masonry {
        grid-template-columns: 1fr;
    }

    .filter-section {
        position: relative;
        top: 0;
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .services-hero {
        padding: 110px 0 90px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .card-header {
        padding: 20px 20px 10px;
    }

    .card-body {
        padding: 0 20px 10px;
    }

    .card-footer {
        padding: 10px 20px 20px;
        flex-direction: column;
    }

    .details-btn,
    .enquiry-btn {
        width: 100%;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
