/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: white;
    overflow: hidden;
}

/* Video Background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Main Content */
.content {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.content-wrapper {
    text-align: center;
    animation: fadeIn 1.2s ease-out;
}

/* Typography */
.name {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(255, 255, 255, 0.3), 0 2px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
    filter: drop-shadow(0 4px 25px rgba(0, 0, 0, 0.6));
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.name-link {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.name::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -20px;
    right: -20px;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    z-index: -1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Safari-specific blur normalization */
@supports (-webkit-backdrop-filter: blur(1px)) {
    .name::before {
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
}

.name:hover::before {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Safari-specific hover blur normalization */
@supports (-webkit-backdrop-filter: blur(1px)) {
    .name:hover::before {
        -webkit-backdrop-filter: blur(28px);
        backdrop-filter: blur(28px);
    }
}

/* Social Links */
.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}



.social-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

/* Safari-specific social icon blur normalization */
@supports (-webkit-backdrop-filter: blur(1px)) {
    .social-link:hover {
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
}



.social-link:active {
    transform: translateY(0);
}

.social-link svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .name {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 2.5rem;
        padding: 0.5rem 1rem;
    }
    
    .name::before {
        top: -8px;
        left: -15px;
        right: -15px;
        bottom: -8px;
        border-radius: 16px;
    }
    
    .social-links {
        gap: 1rem;
        flex-wrap: nowrap;
        justify-content: center;
        max-width: 100%;
    }
    
    .social-link {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        flex-shrink: 0;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
    
    .content-wrapper {
        padding: 0 2rem;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 0 1.5rem;
    }
    
    .name {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
        margin-bottom: 2rem;
        padding: 0.4rem 0.8rem;
        letter-spacing: -0.01em;
    }
    
    .name::before {
        top: -6px;
        left: -12px;
        right: -12px;
        bottom: -6px;
        border-radius: 14px;
    }
    
    .social-links {
        gap: 0.6rem;
        flex-wrap: nowrap;
        justify-content: center;
        max-width: 100%;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        flex-shrink: 0;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .social-link {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    .social-link:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.6);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .content-wrapper {
        animation: none;
    }
    
    .social-link {
        transition: none;
    }
    
    .social-link:hover {
        transform: none;
    }
    
    .social-link svg {
        transition: none;
    }
    
    .social-link:hover svg {
        transform: none;
    }
}

/* Mobile-specific touch optimizations */
@media (max-width: 768px) {
    .social-link {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .social-link:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .name-link {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .content-wrapper {
        padding: 0 2rem;
    }
    
    .name {
        margin-bottom: 2rem;
    }
    
    .social-links {
        gap: 1.2rem;
    }
}

/* Ultra-wide mobile devices */
@media (min-width: 481px) and (max-width: 768px) {
    .social-links {
        max-width: 400px;
    }
}

/* Print styles */
@media print {
    .video-container {
        display: none;
    }
    
    .content {
        background: white;
        color: black;
    }
    
    .name {
        color: black;
        text-shadow: none;
    }
    
    .social-link {
        color: black;
        background: white;
        border-color: black;
    }
}
