/* ========================================
   RESET & BASE STYLES
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Variables */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #1f2937;
    --light-bg: #f9fafb;
    --text-dark: #111827;
    --text-light: #6b7280;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========================================
   HEADER BACKGROUND SECTION
========================================= */
.profile-header {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    box-shadow: 0 4px 20px var(--shadow);
}

/* Gradient overlay for better text visibility */
.profile-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
}

/* ========================================
   MAIN CONTAINER
========================================= */
.container {
    padding: 0 var(--spacing-sm);
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding-bottom: var(--spacing-xl);
}

/* ========================================
   PROFILE SECTION
========================================= */
.profile-container {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* Profile Picture Wrapper */
.profile-picture-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--radius-full);
    background: var(--white);
    padding: 6px;
    box-shadow: 0 8px 30px var(--shadow-lg);
    position: relative;
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Profile Picture */
.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--white);
    transition: transform var(--transition-normal);
}

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

/* Profile Title */
.profile-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.5px;
}

/* Profile Subtitle */
.profile-subtitle {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

/* Profile Description */
.profile-description {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   SOCIAL MEDIA LINKS
========================================= */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all var(--transition-normal);
    box-shadow: 0 2px 10px var(--shadow);
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px var(--shadow-lg);
}

/* Individual social media colors on hover */
.social-icon:has([data-lucide="facebook"]):hover {
    background: #1877f2;
    color: var(--white);
}

.social-icon:has([data-lucide="twitter"]):hover {
    background: #1da1f2;
    color: var(--white);
}

.social-icon:has([data-lucide="instagram"]):hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--white);
}

.social-icon:has([data-lucide="linkedin"]):hover {
    background: #0077b5;
    color: var(--white);
}

.social-icon:has([data-lucide="github"]):hover {
    background: #333;
    color: var(--white);
}

.social-icon:has([data-lucide="youtube"]):hover {
    background: #ff0000;
    color: var(--white);
}

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

/* ========================================
   CUSTOM LINKS SECTION
========================================= */
.custom-links-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.custom-link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--white);
    color: var(--text-dark);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.custom-link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--transition-slow);
}

.custom-link-button:hover::before {
    left: 100%;
}

.custom-link-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-lg);
}

.custom-link-button:active {
    transform: translateY(-1px);
}

.custom-link-button svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   CONTACT SECTION
========================================= */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

/* Contact Buttons */
.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all var(--transition-normal);
    width: 100%;
}

.contact-button svg {
    width: 22px;
    height: 22px;
}

/* vCard Button */
.vcard-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.vcard-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* WhatsApp Button */
.whatsapp-button {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: var(--white);
}

.whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* ========================================
   CONTACT INFO GROUPS
========================================= */
.contact-info-group {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: 0 2px 10px var(--shadow);
}

.contact-info-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.contact-info-title svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.contact-info-item {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid #e5e7eb;
}

.contact-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-info-item strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.contact-info-item p {
    color: var(--text-light);
    margin: var(--spacing-xs) 0;
}

/* Contact Links */
.phone-link,
.email-link,
.website-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.phone-link:hover,
.email-link:hover,
.website-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Map Link */
.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: var(--spacing-xs);
    transition: all var(--transition-fast);
}

.map-link svg {
    width: 16px;
    height: 16px;
}

.map-link:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

/* ========================================
   FOOTER
========================================= */
.profile-footer {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE DESIGN
========================================= */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .profile-header {
        height: 250px;
    }
    
    .container {
        margin-top: -100px;
    }
    
    .profile-picture-wrapper {
        width: 160px;
        height: 160px;
    }
    
    .profile-title {
        font-size: 2.5rem;
    }
    
    .profile-subtitle {
        font-size: 1.2rem;
    }
    
    .social-icon {
        width: 55px;
        height: 55px;
    }
    
    .social-icon svg {
        width: 26px;
        height: 26px;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .profile-header {
        height: 300px;
    }
    
    .container {
        margin-top: -120px;
    }
    
    .profile-picture-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .profile-title {
        font-size: 3rem;
    }
    
    .custom-link-button {
        font-size: 1.1rem;
    }
}

/* ========================================
   UTILITY CLASSES
========================================= */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

/* ========================================
   ANIMATIONS & EFFECTS
========================================= */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Shine effect */
@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Scale animation */
@keyframes scaleIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   PRINT STYLES
========================================= */
@media print {
    .profile-header {
        height: 150px;
    }
    
    .social-icon,
    .custom-link-button,
    .contact-button {
        box-shadow: none;
    }
    
    .wow {
        animation: none !important;
    }
}

/* ========================================
   ACCESSIBILITY
========================================= */
/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --shadow: rgba(0, 0, 0, 0.3);
        --shadow-lg: rgba(0, 0, 0, 0.4);
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode
    body {
        background-color: #111827;
        color: #f9fafb;
    }
    
    .profile-container,
    .social-icon,
    .custom-link-button,
    .contact-info-group {
        background: #1f2937;
        color: #f9fafb;
    }
    */
}