/* Base styles */
body {
    background-color: #efefef;
    background-color: color(display-p3 0.9373 0.9373 0.9373);
    margin: 0;
    padding: 0;
    font-family:
        "Pretendard",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}

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

.container {
    position: absolute;
    top: 80px;
    left: 80px;
    display: flex;
    flex-direction: column;
    gap: 80px;
    background-color: #ffffff;
    background-color: color(display-p3 1 1 1);
    padding: 20px;
    width: fit-content;
    max-width: calc(100% - 40px);
    border-radius: 24px;
    border: 1px solid #e0e0e0;
    border: 1px solid color(display-p3 0.878 0.878 0.878);
    box-shadow:
        0px 0px 8px -3px rgba(0, 0, 0, 0.08),
        0 8px -3px rgba(0, 0, 0, 0.12);
    box-shadow:
        0px 0px 8px -3px color(display-p3 0 0 0 / 0.08),
        0 8px -3px color(display-p3 0 0 0 / 0.12);
    user-select: none;
}

.profile {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile img {
    max-width: 200px;
    height: auto;
    align-self: flex-start;
}

.content {
    max-width: 771px;
    color: #474645;
    color: color(display-p3 0.2784 0.2745 0.2706);
    font-size: 24px;
    font-weight: 300;
    line-height: 1.5;
}

.name {
    color: #000000;
    color: color(display-p3 0 0 0);
    font-weight: 600;
}

.lower-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.brand-logos,
.contact-button {
    flex: 1 1 auto;
}

.contact-button {
    display: flex;
    justify-content: flex-end;
    text-decoration: none;
}

button {
    display: inline-flex;
    padding: 14px 20px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 12px;
    border: 1px solid #e7e7e7;
    border: 1px solid color(display-p3 0.9068 0.9068 0.9068);
    background: #fff;
    background: color(display-p3 1 1 1);
    box-shadow: 0px 2px 2px -1px rgba(0, 0, 0, 0.04);
    box-shadow: 0px 2px 2px -1px color(display-p3 0 0 0 / 0.04);
    color: #000;
    color: color(display-p3 0 0 0);
    font-family:
        "Pretendard",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.3s,
        transform 0.1s;
}

button:hover {
    background-color: #f0f0f0;
    background-color: color(display-p3 0.9412 0.9412 0.9412);
}

button:active {
    transform: scale(0.98);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Tablet styles */
@media (max-width: 1024px) {
    .content {
        font-size: 20px;
    }
}

/* Mobile styles */
@media (max-width: 767px) {
    body {
        display: flex;
        justify-content: center;
    }

    .container {
        position: static;
        margin: 80px 20px 20px;
        width: calc(100% - 40px);
        max-width: none;
    }

    .content {
        font-size: 16px;
    }

    button {
        font-size: 12px;
    }
}

/* Landscape orientation */
@media (orientation: landscape) {
    .container {
        left: 80px;
        transform: none;
    }
}

/* Portrait orientation */
@media (orientation: portrait) {
    body {
        display: flex;
        justify-content: center;
    }

    .container {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Ensure draggable only on desktop */
@media (hover: hover) and (pointer: fine) {
    .container:not(:active) {
        cursor: move;
        cursor: grab;
    }

    .container:active {
        cursor: grabbing;
    }
}

/* Disable draggable on touch devices */
@media (hover: none) and (pointer: coarse) {
    .container {
        position: static;
        transform: none;
    }
}

@font-face {
    font-family: "Pretendard";
    src: url(../fonts/PretendardVariable.woff2) format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

/* Fallback for browsers that don't support P3 color space */
@supports not (color: color(display-p3 1 1 1)) {
    .container,
    button {
        background-color: #ffffff;
    }
    body {
        background-color: #efefef;
    }
    .content {
        color: #474645;
    }
    .name {
        color: #000000;
    }
}
