* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #009fe3;
    --bg-dark: #000000;
    --bg-card: rgba(0, 0, 0, 0.9);
    --text-white: #ffffff;
    --text-gray: rgba(255, 255, 255, 0.7);
    --status-green: #22c55e;
    --button-bg: rgba(51, 51, 51, 0.49);
    --button-text: #e9e2e5;
}

@keyframes clippath {
    0% {
        clip-path: inset(0 0 98% 0);
    }
    25% {
        clip-path: inset(0 98% 0 0);
    }
    50% {
        clip-path: inset(98% 0 0 0);
    }
    75% {
        clip-path: inset(0 0 0 98%);
    }
    100% {
        clip-path: inset(0 0 98% 0);
    }
}

@keyframes jello {
    0%, 11.1%, 100% {
        transform: translate3d(0, 0, 0);
    }
    22.2% {
        transform: skewX(-12.5deg) skewY(-12.5deg);
    }
    33.3% {
        transform: skewX(6.25deg) skewY(6.25deg);
    }
    44.4% {
        transform: skewX(-3.125deg) skewY(-3.125deg);
    }
    55.5% {
        transform: skewX(1.5625deg) skewY(1.5625deg);
    }
    66.6% {
        transform: skewX(-0.78125deg) skewY(-0.78125deg);
    }
    77.7% {
        transform: skewX(0.390625deg) skewY(0.390625deg);
    }
    88.8% {
        transform: skewX(-0.1953125deg) skewY(-0.1953125deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.page-container {
    position: relative;
    min-height: 100vh;
    background-image: url('../img/main_image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 0;
    pointer-events: none;
}

.page-wrap {
    position: relative;
    z-index: 1;
    padding: 0;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.card-container {
    max-width: 576px;
    width: 100%;
    background: var(--bg-card);
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.page-header {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 0;
    position: relative;
}

.profile-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center top;
    display: block;
    mask-image: linear-gradient(rgb(0, 0, 0) 0%, rgb(0, 0, 0) 80%, rgba(0, 0, 0, 0) 100%);
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-composite: source-over;
}

.profile-info {
    width: 100%;
    max-width: 576px;
    text-align: center;
    padding: 16px 20px 0;
}

.profile-name {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    letter-spacing: -0.02em;
}

.status-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: clamp(12px, 2.5vw, 15px);
    font-weight: 500;
    color: var(--text-white);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.status-info:last-of-type {
    margin-bottom: 24px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.clickable-status {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.clickable-status:hover {
    opacity: 0.8;
}

.office-hours {
    margin-top: 8px;
    padding: 12px 16px;
    background: rgba(51, 51, 51, 0.3);
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

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

.hours-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--text-gray);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--status-green);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: pulse 2s infinite;
    position: relative;
}

.status-dot.closed {
    background-color: #ef4444;
    animation: pulse-closed 2s infinite;
}

@keyframes pulse-closed {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.separator {
    opacity: 0.7;
    flex-shrink: 0;
}

.icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: currentColor;
}

.links-container {
    padding: 0 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

.link-button {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 460px;
    padding: 8px;
    margin: 8px 0;
    border-radius: 36px;
    background-color: var(--button-bg);
    border: none;
    text-decoration: none;
    color: var(--button-text);
    transition: background-color 0.2s ease;
    overflow: hidden;
}

.link-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--primary-color);
    animation: clippath 5s infinite linear;
    z-index: 1;
    border-radius: 36px;
    box-sizing: border-box;
    pointer-events: none;
}

.link-button:hover {
    background-color: rgba(51, 51, 51, 0.7);
}


.button-content {
    display: flex;
    width: 100%;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 0 8px;
}

.button-icon {
    position: absolute;
    left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    color: var(--primary-color);
}

.button-icon svg {
    width: 40px;
    height: 40px;
}

.button-text {
    width: 100%;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    padding: 16px;
    letter-spacing: -0.01em;
}

@media (max-width: 640px) {
    .page-container {
        background-image: none;
        background-color: #000000;
    }

    .backdrop {
        background: rgba(0, 0, 0, 1);
        backdrop-filter: none;
    }

    .page-wrap {
        padding: 0;
        padding-bottom: 60px;
    }

    .card-container {
        border-radius: 0;
        max-width: 100%;
        width: 100vw;
    }

    .profile-image-wrapper {
        width: 100vw;
        border-radius: 0;
    }

    .profile-image {
        width: 100vw;
    }

    .profile-name {
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: -0.02em;
    }

    .status-info {
        font-size: 13px;
        margin-bottom: 24px;
        letter-spacing: -0.01em;
    }

    .status-info:first-of-type {
        margin-bottom: 8px;
    }

    .button-text {
        font-size: 18px;
        font-weight: 600;
        padding: 12px;
        letter-spacing: -0.01em;
    }
    
    .link-button {
        max-width: 100%;
    }
    
    .button-icon {
        width: 40px;
        height: 40px;
    }
    
    .button-icon svg {
        width: 32px;
        height: 32px;
    }
}

@media (min-width: 1024px) {
    .page-wrap {
        padding: 40px 20px 100px;
    }

    .card-container {
        margin-top: 0;
        border-radius: 40px;
        max-width: 576px;
        width: 100%;
    }

    .profile-image-wrapper {
        border-top-left-radius: 40px;
        border-top-right-radius: 40px;
    }
}

