/* Services Page - Enhanced Animated Theme */

/* CSS Variables - Improved Color Palette */
:root {
    --primary: #0d1b2a;
    --secondary: #1b263b;
    --accent: #415a77;
    --highlight: #778da9;
    --danger: #dc2626;
    --success: #059669;
    --warning: #d97706;
    --light: #ffffff;
    --lighter: #f8fafc;
    --lightest: #fcfcfd;
    --dark: #0f172a;
    --gray: #475569;
    --gray-light: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.98);
    --card-hover: rgba(255, 255, 255, 1);
    --border: rgba(13, 27, 42, 0.12);
    --border-hover: rgba(13, 27, 42, 0.25);
    --shadow: rgba(13, 27, 42, 0.1);
    --shadow-hover: rgba(13, 27, 42, 0.2);

    /* Animation variables */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Global Animation Setup */
* {
    scroll-behavior: smooth;
}

/* Services Page Styles */
.services-page {
    padding: 8rem 5% 5rem;
    background: linear-gradient(135deg, var(--lightest) 0%, var(--lighter) 50%, #f1f5f9 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated background pattern */
.services-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 25% 25%, rgba(13, 27, 42, 0.03) 0%, transparent 70%),
        radial-gradient(circle at 75% 75%, rgba(65, 90, 119, 0.03) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
        opacity: 0.5;
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
        opacity: 0.4;
    }
}

.services-page > * {
    position: relative;
    z-index: 1;
}

.services-page h1 {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
    transform: translateY(30px);
    letter-spacing: -0.02em;
    text-shadow: 0 4px 8px rgba(13, 27, 42, 0.1);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 5rem;
    color: var(--gray);
    font-size: 1.2rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
    font-weight: 400;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 20px var(--shadow),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
    transform: translateY(50px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Staggered animation for cards */
.service-card:nth-child(1) { animation-delay: 0.3s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.5s; }
.service-card:nth-child(4) { animation-delay: 0.6s; }
.service-card:nth-child(5) { animation-delay: 0.7s; }
.service-card:nth-child(6) { animation-delay: 0.8s; }

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--highlight));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease);
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 27, 42, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s var(--ease);
    pointer-events: none;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--border-hover);
    background: var(--card-hover);
    box-shadow:
        0 25px 50px var(--shadow-hover),
        0 0 0 1px rgba(13, 27, 42, 0.1);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: color 0.3s var(--ease);
    line-height: 1.3;
}

.service-card:hover h3 {
    color: var(--secondary);
}

.service-card p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s var(--ease);
}

.service-card:hover p {
    color: var(--dark);
}

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

.service-features li {
    padding: 0.75rem 0;
    color: var(--gray);
    padding-left: 2rem;
    position: relative;
    font-weight: 500;
    transition: all 0.3s var(--ease);
    opacity: 0.8;
}

.service-features li:hover {
    color: var(--primary);
    opacity: 1;
    transform: translateX(5px);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 1.1rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(5, 150, 105, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
}

.service-features li:hover::before {
    background: rgba(5, 150, 105, 0.2);
    transform: scale(1.1);
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: left 0.4s var(--ease);
    z-index: -1;
}

.service-cta:hover::before {
    left: 0;
}

.service-cta:hover {
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 27, 42, 0.25);
    border-color: var(--secondary);
}

.service-cta::after {
    content: '→';
    transition: transform 0.3s var(--ease);
    margin-left: 0.5rem;
}

.service-cta:hover::after {
    transform: translateX(5px);
}

/* Services Sections */
.services-section {
    padding: 6rem 5%;
    position: relative;
}

.services-section p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
}

.iso-services {
    background: linear-gradient(
        135deg,
        rgba(13, 27, 42, 0.02) 0%,
        rgba(65, 90, 119, 0.03) 50%,
        rgba(119, 141, 169, 0.02) 100%
    );
    position: relative;
    overflow: hidden;
}

.iso-services::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(65, 90, 119, 0.05) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 6rem 5%;
    background: var(--card-bg);
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.why-choose-us .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.why-choose-us .section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.why-choose-us .section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--light);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 4px 20px var(--shadow);
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }
.feature-card:nth-child(4) { animation-delay: 0.8s; }

.feature-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px var(--shadow-hover);
    border-color: var(--border-hover);
    background: var(--card-hover);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s var(--ease-bounce);
    display: block;
}

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

.feature-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 400;
}

/* CTA Section */
.cta-section {
    padding: 6rem 5%;
    text-align: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid #cbd5e1;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: float 30s ease-in-out infinite;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e293b, #334155, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cta-content p {
    color: #475569;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 500;
}

.cta-content .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s var(--ease);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-content .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s var(--ease);
}

.cta-content .cta-button:hover::before {
    left: 100%;
}

.cta-content .cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

/* Filter Buttons Section */
.services-filters {
    position: sticky;
    top: 80px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 1rem 5%;
    box-shadow: 0 4px 20px var(--shadow);
    backdrop-filter: blur(10px);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border);
    color: var(--gray);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: left 0.4s var(--ease);
    z-index: -1;
}

.filter-btn:hover::before {
    left: 0;
}

.filter-btn:hover {
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
    border-color: var(--secondary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    border-color: transparent;
    box-shadow: 0 4px 15px var(--shadow);
}

/* Services Sections */
.services-section {
    padding: 6rem 5%;
    position: relative;
}

.services-section p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
}

.iso-services {
    background: linear-gradient(
        135deg,
        rgba(13, 27, 42, 0.02) 0%,
        rgba(65, 90, 119, 0.03) 50%,
        rgba(119, 141, 169, 0.02) 100%
    );
    position: relative;
    overflow: hidden;
}

.iso-services::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(65, 90, 119, 0.05) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 6rem 5%;
    background: var(--card-bg);
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.why-choose-us .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.why-choose-us .section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.why-choose-us .section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--light);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 4px 20px var(--shadow);
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }
.feature-card:nth-child(4) { animation-delay: 0.8s; }

.feature-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px var(--shadow-hover);
    border-color: var(--border-hover);
    background: var(--card-hover);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s var(--ease-bounce);
    display: block;
}

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

.feature-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 400;
}

/* CTA Section */
.cta-section {
    padding: 6rem 5%;
    text-align: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid #cbd5e1;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: float 30s ease-in-out infinite;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e293b, #334155, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cta-content p {
    color: #475569;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 500;
}

.cta-content .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s var(--ease);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-content .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s var(--ease);
}

.cta-content .cta-button:hover::before {
    left: 100%;
}

.cta-content .cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

/* Filter Buttons Section */
.services-filters {
    position: sticky;
    top: 80px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 1rem 5%;
    box-shadow: 0 4px 20px var(--shadow);
    backdrop-filter: blur(10px);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border);
    color: var(--gray);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: left 0.4s var(--ease);
    z-index: -1;
}

.filter-btn:hover::before {
    left: 0;
}

.filter-btn:hover {
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
    border-color: var(--secondary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    border-color: transparent;
    box-shadow: 0 4px 15px var(--shadow);
}

/* Services Sections */
.services-section {
    padding: 6rem 5%;
    position: relative;
}

.services-section p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
}

.iso-services {
    background: linear-gradient(
        135deg,
        rgba(13, 27, 42, 0.02) 0%,
        rgba(65, 90, 119, 0.03) 50%,
        rgba(119, 141, 169, 0.02) 100%
    );
    position: relative;
    overflow: hidden;
}

.iso-services::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(65, 90, 119, 0.05) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 6rem 5%;
    background: var(--card-bg);
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.why-choose-us .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.why-choose-us .section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.why-choose-us .section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--light);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 4px 20px var(--shadow);
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }
.feature-card:nth-child(4) { animation-delay: 0.8s; }

.feature-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px var(--shadow-hover);
    border-color: var(--border-hover);
    background: var(--card-hover);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s var(--ease-bounce);
    display: block;
}

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

.feature-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 400;
}

/* CTA Section */
.cta-section {
    padding: 6rem 5%;
    text-align: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid #cbd5e1;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: float 30s ease-in-out infinite;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e293b, #334155, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cta-content p {
    color: #475569;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 500;
}

.cta-content .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s var(--ease);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-content .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s var(--ease);
}

.cta-content .cta-button:hover::before {
    left: 100%;
}

.cta-content .cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

/* Filter Buttons Section */
.services-filters {
    position: sticky;
    top: 80px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 1rem 5%;
    box-shadow: 0 4px 20px var(--shadow);
    backdrop-filter: blur(10px);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border);
    color: var(--gray);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: left 0.4s var(--ease);
    z-index: -1;
}

.filter-btn:hover::before {
    left: 0;
}

.filter-btn:hover {
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
    border-color: var(--secondary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    border-color: transparent;
    box-shadow: 0 4px 15px var(--shadow);
}

/* Services Sections */
.services-section {
    padding: 6rem 5%;
    position: relative;
}

.services-section p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
}

.iso-services {
    background: linear-gradient(
        135deg,
        rgba(13, 27, 42, 0.02) 0%,
        rgba(65, 90, 119, 0.03) 50%,
        rgba(119, 141, 169, 0.02) 100%
    );
    position: relative;
    overflow: hidden;
}

.iso-services::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(65, 90, 119, 0.05) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 6rem 5%;
    background: var(--card-bg);
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.why-choose-us .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.why-choose-us .section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.why-choose-us .section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--light);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 4px 20px var(--shadow);
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }
.feature-card:nth-child(4) { animation-delay: 0.8s; }

.feature-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px var(--shadow-hover);
    border-color: var(--border-hover);
    background: var(--card-hover);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s var(--ease-bounce);
    display: block;
}

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

.feature-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 400;
}

/* CTA Section */
.cta-section {
    padding: 6rem 5%;
    text-align: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid #cbd5e1;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: float 30s ease-in-out infinite;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e293b, #334155, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cta-content p {
    color: #475569;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 500;
}

.cta-content .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s var(--ease);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-content .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s var(--ease);
}

.cta-content .cta-button:hover::before {
    left: 100%;
}

.cta-content .cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

/* Filter Buttons Section */
.services-filters {
    position: sticky;
    top: 80px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 1rem 5%;
    box-shadow: 0 4px 20px var(--shadow);
    backdrop-filter: blur(10px);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border);
    color: var(--gray);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: left 0.4s var(--ease);
    z-index: -1;
}

.filter-btn:hover::before {
    left: 0;
}

.filter-btn:hover {
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
    border-color: var(--secondary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    border-color: transparent;
    box-shadow: 0 4px 15px var(--shadow);
}

/* Services Sections */
.services-section {
    padding: 6rem 5%;
    position: relative;
}

.services-section p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
}

.iso-services {
    background: linear-gradient(
        135deg,
        rgba(13, 27, 42, 0.02) 0%,
        rgba(65, 90, 119, 0.03) 50%,
        rgba(119, 141, 169, 0.02) 100%
    );
    position: relative;
    overflow: hidden;
}

.iso-services::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(65, 90, 119, 0.05) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 6rem 5%;
    background: var(--card-bg);
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.why-choose-us .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.why-choose-us .section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.why-choose-us .section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--light);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 4px 20px var(--shadow);
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }
.feature-card:nth-child(4) { animation-delay: 0.8s; }

.feature-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px var(--shadow-hover);
    border-color: var(--border-hover);
    background: var(--card-hover);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s var(--ease-bounce);
    display: block;
}

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

.feature-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 400;
}

/* CTA Section */
.cta-section {
    padding: 6rem 5%;
    text-align: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid #cbd5e1;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: float 30s ease-in-out infinite;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e293b, #334155, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cta-content p {
    color: #475569;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 500;
}

.cta-content .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s var(--ease);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-content .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s var(--ease);
}

.cta-content .cta-button:hover::before {
    left: 100%;
}

.cta-content .cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

/* Scroll animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-page {
        padding: 6rem 3% 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 2rem;
    }

    .services-hero {
        min-height: 40vh;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem;
    }

    .service-features li {
        padding: 0.5rem 0;
        padding-left: 1.5rem;
    }

    .service-cta {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus states for accessibility */
.service-cta:focus,
.cta-button:focus {
    outline: 3px solid rgba(13, 27, 42, 0.3);
    outline-offset: 2px;
}

/* Loading states */
.service-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.service-card.loading::before {
    background: linear-gradient(90deg, transparent, rgba(13, 27, 42, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

/* Trust Indicators Section */
.trust-indicators {
    padding: 4rem 5%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    position: relative;
}

.trust-indicators::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 70%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    animation: float 25s ease-in-out infinite reverse;
}

.trust-indicators .section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.trust-indicators .section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e293b, #334155);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-indicators .section-header p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.trust-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.1);
    position: relative;
    overflow: hidden;
}

.trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.trust-item:hover::before {
    transform: scaleX(1);
}

.trust-item:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
}

.trust-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.trust-item h3 {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.trust-item p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 400;
}

/* Company logos grid */
.trust-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: center;
    justify-items: center;
}

.trust-logo {
    opacity: 0.6;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
    max-height: 60px;
    max-width: 120px;
}

.trust-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Responsive adjustments for trust section */
@media (max-width: 768px) {
    .trust-indicators {
        padding: 3rem 3%;
    }

    .trust-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .trust-item {
        padding: 1.5rem 1rem;
    }

    .trust-icon {
        font-size: 2.5rem;
    }

    .trust-logos {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
