/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 20px;
    color: #1e293b;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Professional Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Profile Section */
.profile-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 30px 30px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.profile-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 0 0 2px rgba(59, 130, 246, 0.4);
}

.profile-photo::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3b82f6, #10b981, #8b5cf6, #3b82f6);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border: 3px solid white;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.profile-section h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}


/* Services Section */
.services-section {
    padding: 25px 30px;
    background: #ffffff;
}

.services-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.service-card {
    display: flex;
    align-items: flex-start;
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

.service-card.primary {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.service-card.primary:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: 
        0 20px 40px rgba(59, 130, 246, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.2);
}

.service-card.secondary {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.service-card.secondary:hover {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    box-shadow: 
        0 20px 40px rgba(16, 185, 129, 0.15),
        0 0 0 1px rgba(16, 185, 129, 0.2);
}

.service-card.tertiary {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.service-card.tertiary:hover {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    box-shadow: 
        0 20px 40px rgba(139, 92, 246, 0.15),
        0 0 0 1px rgba(139, 92, 246, 0.2);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.service-card.primary .service-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
}

.service-card.secondary .service-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
}

.service-card.tertiary .service-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #ffffff;
}

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

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

.service-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}

.service-content p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
}

.service-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.8);
    color: #475569;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.service-arrow {
    font-size: 1.2rem;
    color: #64748b;
    transition: all 0.3s ease;
    margin-left: 16px;
    position: relative;
    z-index: 1;
    align-self: center;
}

.service-card:hover .service-arrow {
    color: #1e293b;
    transform: translateX(4px);
}

/* Contact Section */
.contact-section {
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    text-align: center;
}

.contact-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.contact-section p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.contact-item i {
    color: #3b82f6;
    width: 16px;
}

/* Footer */
.footer {
    padding: 24px 30px;
    background: #1e293b;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    font-size: 0.8rem;
    margin-bottom: 16px;
    font-weight: 400;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 16px;
    }
    
    .profile-section {
        padding: 20px 20px 15px;
    }
    
    .profile-photo {
        width: 80px;
        height: 80px;
    }
    
    .profile-section h1 {
        font-size: 1.3rem;
    }
    
    .services-section {
        padding: 20px 20px;
    }
    
    .service-card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .service-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        margin-right: 16px;
    }
    
    .service-content h3 {
        font-size: 1rem;
    }
    
    .service-content p {
        font-size: 0.85rem;
    }
    
    .contact-section {
        padding: 24px 20px;
    }
    
    .footer {
        padding: 20px;
    }
    
    .footer-links {
        gap: 16px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.container {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-section {
    animation: slideInLeft 0.6s ease-out 0.1s both;
}

.service-card {
    animation: fadeInUp 0.5s ease-out both;
}

.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.3s; }
.service-card:nth-child(3) { animation-delay: 0.4s; }

.contact-section {
    animation: slideInLeft 0.5s ease-out 0.5s both;
}

.footer {
    animation: slideInLeft 0.5s ease-out 0.6s both;
}

/* Focus states for accessibility */
.service-card:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.footer-links a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 3px;
    }
    
    .service-card.primary {
        border-color: #1d4ed8;
    }
    
    .service-card.secondary {
        border-color: #047857;
    }
    
    .service-card.tertiary {
        border-color: #7c2d12;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}