body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6fb;
    position: relative;
}

body::before, body::after {
    content: none;
}

.container.professional {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 4em 15%;
}

.profile-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.15),
                0 1px 8px rgba(44, 62, 80, 0.1);
    padding: 2.5em;
    max-width: 420px;
    width: 100%;
    text-align: center;
    margin: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
    transform: translateY(0) translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

.profile-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 15px 35px rgba(44, 62, 80, 0.2),
                0 5px 15px rgba(44, 62, 80, 0.1);
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e9ecef;
    margin-bottom: 1.5em;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

h1 {
    margin-bottom: 0.3em;
    color: #222;
    font-size: 2.2em;
    font-weight: 600;
}

.subtitle {
    margin: 0 0 1em 0;
    color: #0077b5;
    font-size: 1.2em;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.description {
    color: #555;
    font-size: 1.1em;
    text-align: center;
    margin: 1.5em 0;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5em;
    padding: 0 1em;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    text-decoration: none;
    color: #222;
    font-size: 1.1em;
    padding: 0.6em 1.4em;
    border-radius: 7px;
    transition: all 0.3s ease;
    background: #f7f7f7;
    box-shadow: 0 1px 4px rgba(44, 62, 80, 0.04);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 150px;
    max-width: 180px;
    justify-content: center;
    white-space: nowrap;
}

.social-links a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15);
}

.social-links a img.icon-svg {
    width: 1.2em;
    height: 1.2em;
    transition: all 0.3s ease;
    filter: brightness(0);
    flex-shrink: 0;
}

.social-links a:hover img.icon-svg {
    transform: scale(1.1);
}

.social-links a[title="Instagram"]:hover {
    color: #e1306c;
    background: #fff1f6;
}

.social-links a[title="Instagram"]:hover img.icon-svg {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

.social-links a[title="LinkedIn"]:hover {
    color: #0077b5;
    background: #f0f7fa;
}

.social-links a[title="LinkedIn"]:hover img.icon-svg {
    filter: brightness(0) saturate(100%) invert(31%) sepia(98%) saturate(1234%) hue-rotate(176deg) brightness(97%) contrast(101%);
}

.social-links a[title="Strava"]:hover {
    color: #fc4c02;
    background: #fff5f0;
}

.social-links a[title="Strava"]:hover img.icon-svg {
    filter: brightness(0) saturate(100%) invert(35%) sepia(98%) saturate(2473%) hue-rotate(1deg) brightness(101%) contrast(101%);
}

.fab {
    font-size: 1.4em;
}

.icon-svg {
    width: 1em;
    height: 1em;
    display: block;
    flex-shrink: 0;
    margin: 0;
    fill: #222;
    transition: fill 0.2s ease;
}

.social-links a:hover .icon-svg {
    fill: currentColor;
}

.social-links a[title="Instagram"]:hover .icon-svg {
    fill: #e1306c !important;
}

.social-links a[title="LinkedIn"]:hover .icon-svg {
    fill: #0077b5 !important;
}

.social-links a[title="Strava"]:hover .icon-svg {
    fill: #fc4c02 !important;
}

.social-links a[title="Instagram"] .icon-svg {
    fill: #222;
}

.social-links a[title="LinkedIn"] .icon-svg {
    fill: #222;
}

.social-links a[title="Strava"] .icon-svg {
    fill: #222;
}

/* Specific styles for different link types */
.social-links a[title="Home"] {
    background: #f7f7f7;
}

.social-links a[title="Home"]:hover {
    color: #333;
    background: #f0f0f0;
}

.social-links a[title="Home"]:hover img.icon-svg {
    filter: brightness(0);
}

.social-links a[title="Strava"]:hover {
    color: #fc4c02;
    background: #fff5f0;
}

.social-links a[title="Strava"]:hover img.icon-svg {
    filter: brightness(0) saturate(100%) invert(35%) sepia(98%) saturate(2473%) hue-rotate(1deg) brightness(101%) contrast(101%);
}

@media (max-width: 768px) {
    .container.professional {
        padding: 2em 10%;
    }
    .profile-card {
        max-width: 260px;
        padding: 1.2em;
    }
}

@media (max-width: 480px) {
    .container.professional {
        padding: 1.5em 5%;
    }
    .profile-card {
        max-width: 220px;
        padding: 0.8em;
    }
}

@media (max-width: 360px) {
    .container.professional {
        padding: 2em 0.5em;
    }
    .profile-card {
        padding: 1.5em;
        margin: 0;
    }
    .social-links {
        padding: 0;
    }
    .social-links a {
        min-width: 100px;
        font-size: 0.95em;
        padding: 0.4em 0.8em;
    }
    .profile-photo {
        width: 90px;
        height: 90px;
    }
    h1 {
        font-size: 1.6em;
    }
    .subtitle {
        font-size: 1em;
    }
    .description {
        font-size: 0.95em;
        margin: 1em 0;
    }
}

@media (max-width: 600px) {
    .container.professional {
        padding: 3em 1em;
    }
    .profile-card {
        width: 100%;
        max-width: none;
        padding: 2em;
        margin: 0;
        transform: none;
        box-shadow: 0 8px 25px rgba(44, 62, 80, 0.15),
                    0 1px 5px rgba(44, 62, 80, 0.1);
    }
    .profile-card:hover {
        transform: none;
        box-shadow: 0 8px 25px rgba(44, 62, 80, 0.15),
                    0 1px 5px rgba(44, 62, 80, 0.1);
    }
    .social-links {
        gap: 0.8em;
        padding: 0 0.5em;
    }
    .social-links a {
        font-size: 1em;
        padding: 0.5em 1em;
        min-width: 120px;
    }
    .profile-photo {
        width: 100px;
        height: 100px;
    }
    h1 {
        font-size: 1.8em;
    }
    .subtitle {
        font-size: 1.1em;
    }
    .description {
        font-size: 1em;
        margin: 1.2em 0;
    }
}

/* Strava Activities Section */
.strava-activities {
    margin-top: 2rem;
}

.activities-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.activities-card h2 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.activity {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.activity:hover {
    transform: translateY(-2px);
}

.activity h3 {
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.activity p {
    color: #666;
    margin: 0.3rem 0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .activities-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .activity {
        padding: 1rem;
    }

    .activity h3 {
        font-size: 1.1rem;
    }

    .activity p {
        font-size: 0.9rem;
    }
}

/* Strava data styles */
.strava-stats {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.strava-stats h3 {
    color: #FC4C02;
    margin-bottom: 15px;
    font-size: 1.2em;
    text-align: center;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

.stat-value {
    color: #333;
    font-weight: 600;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    text-align: center;
}

.error-message small {
    display: block;
    margin-top: 10px;
    color: #721c24;
    font-size: 0.9em;
}

.loading {
    text-align: center;
    color: #666;
    padding: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Navigation links styling */
.social-links {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5em;
    padding: 0 1em;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    text-decoration: none;
    color: #222;
    font-size: 1.1em;
    padding: 0.6em 1.4em;
    border-radius: 7px;
    transition: all 0.3s ease;
    background: #f7f7f7;
    box-shadow: 0 1px 4px rgba(44, 62, 80, 0.04);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 150px;
    max-width: 180px;
    justify-content: center;
    white-space: nowrap;
}

.social-links a img.icon-svg {
    width: 1.2em;
    height: 1.2em;
    transition: all 0.3s ease;
    filter: brightness(0);
    flex-shrink: 0;
}

/* Specific styles for different link types */
.social-links a[title="Home"] {
    background: #f7f7f7;
}

.social-links a[title="Home"]:hover {
    color: #333;
    background: #f0f0f0;
}

.social-links a[title="Home"]:hover img.icon-svg {
    filter: brightness(0);
}

.social-links a[title="Strava"]:hover {
    color: #fc4c02;
    background: #fff5f0;
}

.social-links a[title="Strava"]:hover img.icon-svg {
    filter: brightness(0) saturate(100%) invert(35%) sepia(98%) saturate(2473%) hue-rotate(1deg) brightness(101%) contrast(101%);
}

/* Responsive styles */
@media (max-width: 768px) {
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-links a {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .social-links a {
        min-width: 120px;
        font-size: 1em;
        padding: 0.5em 1em;
    }
}

/* Recent Activities Styles */
.recent-activities {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recent-activities h3 {
    color: #FC4C02;
    margin-bottom: 15px;
    font-size: 1.2em;
    text-align: center;
}

.activity-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.activity-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
}

.activity-date {
    color: #666;
    font-size: 0.9em;
}

.activity-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.activity-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.activity-stat .stat-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 4px;
}

.activity-stat .stat-value {
    font-size: 1.1em;
    color: #333;
    font-weight: 600;
}

@media (max-width: 480px) {
    .activity-details {
        grid-template-columns: 1fr;
    }
    
    .activity-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .activity-date {
        margin-top: 5px;
    }
}

.no-activities {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    margin: 10px 0;
} 