/* ==========================================================================
   Dominic Land - Visitenkarten-Website
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-linkedin: #0A66C2;
    --color-surface: rgba(255, 255, 255, 0.05);
    --color-surface-hover: rgba(255, 255, 255, 0.1);
    --color-border: rgba(255, 255, 255, 0.1);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Profile Card
   -------------------------------------------------------------------------- */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeInUp var(--transition-slow) ease-out;
}

/* Profile Image */
.profile__image-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-border);
    transition: transform var(--transition-medium), border-color var(--transition-medium);
}

.profile__image-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-linkedin), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: -1;
}


.profile__image {
    width: 140%;
    height: 140%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
    margin-left: -20%;
    margin-top: -5%;
    /* Platzhalter-Styling falls Bild fehlt */
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Profile Name */
.profile__name {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* LinkedIn Button */
.profile__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.profile__link:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-linkedin);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(10, 102, 194, 0.2);
}

.profile__link:active {
    transform: translateY(0);
}

.profile__icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: color var(--transition-fast);
}

.profile__link:hover .profile__icon {
    color: var(--color-linkedin);
}

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

/* Staggered animation for children */
.profile__image-wrapper {
    animation: fadeInUp var(--transition-slow) ease-out;
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

.profile__name {
    animation: fadeInUp var(--transition-slow) ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.profile__link {
    animation: fadeInUp var(--transition-slow) ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Mobile small */
@media (max-width: 380px) {
    .container {
        padding: 1.5rem;
    }

    .profile__image-wrapper {
        width: 140px;
        height: 140px;
    }

    .profile__link {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    .profile {
        gap: 2rem;
    }

    .profile__image-wrapper {
        width: 300px;
        height: 300px;
    }

    .profile__link {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .profile__image-wrapper {
        width: 340px;
        height: 340px;
    }
}

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

/* --------------------------------------------------------------------------
   Subtle Background Effect (optional)
   -------------------------------------------------------------------------- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(10, 102, 194, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}
