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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-text: #7f8c8d;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --linkedin-color: #0077b5;
    --github-color: #333;
    --twitter-color: #000000;
    --flickr-color: #0063dc;
    --youtube-color: #ff0000;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 12px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Section */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.profile-section {
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-photo-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--shadow-hover);
    transition: transform 0.3s ease;
    display: none;
}

.profile-photo.loaded {
    display: block;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-weight: bold;
    color: white;
    border: 5px solid white;
    box-shadow: var(--shadow-hover);
}

.profile-photo.loaded + .photo-placeholder {
    display: none;
}

.name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Bio Section */
.bio-section {
    padding: 60px 40px;
    background: var(--bg-color);
}

.bio-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.bio-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.bio-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.bio-content p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Profile Notes Section */
.profile-notes-section {
    padding: 60px 40px;
    background: white;
}

.profile-notes-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.profile-notes-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.profile-notes-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.profile-notes-image {
    width: 100%;
    position: sticky;
    top: 20px;
}

.profile-notes-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    transition: transform 0.3s ease;
}

.profile-notes-image img:hover {
    transform: scale(1.02);
}

.profile-notes-text p {
    font-size: 1.05rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* Social Section */
.social-section {
    padding: 60px 40px;
    background: white;
}

.social-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.social-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.social-card {
    display: flex;
    align-items: center;
    padding: 25px;
    background: var(--card-bg);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    animation: cardFadeIn 0.5s ease-out backwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-card:nth-child(1) { animation-delay: 0.1s; }
.social-card:nth-child(2) { animation-delay: 0.2s; }
.social-card:nth-child(3) { animation-delay: 0.3s; }
.social-card:nth-child(4) { animation-delay: 0.4s; }
.social-card:nth-child(5) { animation-delay: 0.5s; }

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

.social-card.linkedin:hover {
    border-color: var(--linkedin-color);
}

.social-card.github:hover {
    border-color: var(--github-color);
}

.social-card.twitter:hover {
    border-color: var(--twitter-color);
}

.social-card.flickr:hover {
    border-color: var(--flickr-color);
}

.social-card.youtube:hover {
    border-color: var(--youtube-color);
}

.social-icon {
    width: 60px;
    height: 60px;
    margin-right: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.linkedin .social-icon {
    background: var(--linkedin-color);
    color: white;
}

.github .social-icon {
    background: var(--github-color);
    color: white;
}

.twitter .social-icon {
    background: var(--twitter-color);
    color: white;
}

.flickr .social-icon {
    background: var(--flickr-color);
    color: white;
}

.youtube .social-icon {
    background: var(--youtube-color);
    color: white;
}

.social-icon svg {
    width: 32px;
    height: 32px;
}

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

.social-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.social-info p {
    font-size: 0.95rem;
    color: var(--light-text);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.9;
}

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

    .container {
        border-radius: 15px;
    }

    .header {
        padding: 40px 20px;
    }

    .name {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .profile-photo-wrapper {
        width: 140px;
        height: 140px;
    }

    .photo-placeholder {
        font-size: 50px;
    }

    .bio-section,
    .social-section {
        padding: 40px 20px;
    }

    .bio-section h2,
    .social-section h2 {
        font-size: 1.6rem;
    }

    .profile-notes-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .profile-notes-image {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }

    .profile-notes-text p {
        text-align: left;
    }

    .social-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .social-card {
        padding: 20px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
    }

    .social-icon svg {
        width: 26px;
        height: 26px;
    }

    .footer p {
        font-size: 0.8rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.6rem;
    }

    .bio-content p {
        font-size: 1rem;
    }
}
