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

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

/* Container with Pop-Out Animation */
.container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    
    /* Initial state for animation */
    transform: scale(0.3) translateY(100px);
    opacity: 0;
    animation: popOut 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.lang-switcher button {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lang-switcher button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

.lang-switcher button:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.lang-switcher button[aria-expanded="true"] {
    background: rgba(255, 255, 255, 1);
    border-color: #2563eb;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

.lang-switcher button img {
    border-radius: 2px;
    flex-shrink: 0;
}

.lang-switcher button span[aria-hidden="true"] {
    font-size: 0.8rem;
    color: #64748b;
    transition: transform 0.3s ease;
}

.lang-switcher button[aria-expanded="true"] span[aria-hidden="true"] {
    transform: rotate(180deg);
}

.lang-switcher ul {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 0;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    list-style: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.lang-switcher ul:not([hidden]) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-switcher li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.lang-switcher li:hover,
.lang-switcher li:focus {
    background: #f8fafc;
    color: #2563eb;
}

.lang-switcher li[aria-selected="true"] {
    background: #f1f5f9;
    color: #2563eb;
    font-weight: 600;
}

.lang-switcher li img {
    border-radius: 2px;
    flex-shrink: 0;
}

.lang-switcher li span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Pop-out animation keyframes */
@keyframes popOut {
    0% {
        transform: scale(0.3) translateY(100px);
        opacity: 0;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    50% {
        transform: scale(1.05) translateY(-10px);
        opacity: 0.9;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }
}

/* Top accent line */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    border-radius: 20px 20px 0 0;
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.photo-placeholder:hover {
    transform: scale(1.05);
    border-color: #2563eb;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Main Content */
.main-content {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

/* Contact Section */
.contact-section {
    margin-bottom: 30px;
}

.contact-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    background: #f1f5f9;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.contact-item i {
    font-size: 18px;
    color: #2563eb;
    width: 20px;
    text-align: center;
    transition: color 0.3s ease;
}

.contact-item a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-item:hover a {
    color: #2563eb;
}

/* WhatsApp specific styling */
.contact-item:nth-child(2):hover i {
    color: #25d366;
}

.contact-item:nth-child(2):hover a {
    color: #25d366;
}

/* Social Section */
.social-section {
    text-align: center;
}

.social-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.social-link:hover {
    background: #f1f5f9;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.social-link i {
    font-size: 16px;
    color: #2563eb;
    transition: color 0.3s ease;
}

.social-link:hover i {
    color: #2563eb;
}

/* Social platform specific colors */
.social-link.facebook:hover i {
    color: #1877f2;
}

.social-link.instagram:hover i {
    color: #e4405f;
}

.social-link.linkedin:hover i {
    color: #0077b5;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.logo {
    margin-bottom: 0;
}

.logo svg {
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: scale(1.1);
}

.domain-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2563eb;
    letter-spacing: -0.01em;
}

.copyright {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 400;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .lang-switcher {
        top: 15px;
        right: 15px;
    }
    
    .lang-switcher button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .lang-switcher ul {
        min-width: 140px;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .photo-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }
    
    .lang-switcher {
        top: 10px;
        right: 10px;
    }
    
    .lang-switcher button {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .lang-switcher button img {
        width: 20px;
        height: 20px;
    }
    
    .lang-switcher ul {
        min-width: 120px;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .photo-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .contact-item {
        padding: 12px 16px;
    }
    
    .contact-item a {
        font-size: 0.9rem;
    }
}

/* Loading state */
.container.loading {
    animation: none;
    transform: scale(0.3) translateY(100px);
    opacity: 0;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .container,
    .header,
    .main-content,
    .footer {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .contact-item:hover,
    .social-link:hover,
    .photo-placeholder:hover {
        transform: none;
    }
}

/* Focus states for accessibility */
.contact-item:focus,
.social-link:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .container {
        border: 2px solid #000;
    }
    
    .contact-item,
    .social-link {
        border: 2px solid #000;
    }
}
