/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    padding: 2rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Visual accent background */
.visual-accent {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    top: -300px;
    right: -300px;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Header and typography */
header {
    margin-bottom: 5rem;
}

.back-link {
    display: inline-block;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: all 0.2s;
    border-bottom: 1px solid transparent;
}

.back-link:hover {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-top: 1rem;
    max-width: 1100px;
    line-height: 1.8;
}

/* Section styling */
.section, .category {
    margin-bottom: 4rem;
}

.section-title, .category-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Grid layouts */
.services-grid, .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Card styling (for services, highlights, etc.) */
.card, .service-card {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    padding: 1.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before, .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #1e40af 0%, #4338ca 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before, .service-card:hover::before {
    opacity: 1;
}

.card:hover, .service-card:hover {
    border-color: #d1d5db;
    background: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card h3, .service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}

.card p, .service-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card a, .service-link {
    display: inline-block;
    color: #1e40af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.card a:hover, .service-link:hover {
    color: #1e3a8a;
}

.card a::after, .service-link::after {
    content: ' →';
    display: inline-block;
    transition: transform 0.2s;
}

.card a:hover::after, .service-link:hover::after {
    transform: translateX(3px);
}

/* Home page specific sections */
.contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #666;
    margin-top: 1.5rem;
}

.contact a {
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.contact a:hover {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.contact .services-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: #fafafa;
    border: 1px solid #d1d5db;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-top: 1rem;
}

.contact .services-link:hover {
    background: #ffffff;
    border-color: #1e40af;
    transform: translateY(-2px);
}

.bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin: 3rem 0 4rem;
    max-width: 1100px;
}

.highlights {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 3rem 0 4rem;
}

.highlight {
    flex: 1;
    min-width: 200px;
}

.highlight-value {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e40af 0%, #4338ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-label {
    font-size: 0.9rem;
    color: #666;
}

/* Footer */
footer {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

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

    .subtitle {
        font-size: 1rem;
    }

    .contact {
        flex-direction: column;
        gap: 0.5rem;
    }

    .highlights {
        gap: 2rem;
    }
}
