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

html {
    background-color: rgb(186, 174, 158);
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.body {
    background-color: #050f15;
    color: #bb8773;
    overflow-x: hidden;
    max-width: 450px;
    margin: 20px auto;
    border-radius: 20px;
    max-height: 94vh;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vw - 40px);
    max-height: calc(500px - 40px);
    overflow: hidden;
    border-radius: 20px;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        110.26% 96% at 50% 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 60%,
        rgba(0, 0, 0, 0.3) 75%,
        rgba(0, 0, 0, 0.5) 85%,
        rgba(0, 0, 0, 0.8) 95%,
        #050f15 100%
    );
    pointer-events: none;
}

.hero-blur {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(60px);
    opacity: 0.3;
    z-index: -1;
}

/* Profile Container */
.container {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding: 0 14px;
}

.profile-header {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -40px;
}

.profile-title {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -1px;
    color: #c58c77;
    text-align: center;
    margin-bottom: 20px;
    background-color: transparent;
}

.section-header {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #bb8773;
    text-align: center;
}

/* Links Container */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
    margin-bottom: 25px;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border: 1px solid #bb8773;
    border-radius: 16px;
    background: transparent;
    color: #bb8773;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    min-height: 64px;
}

.link-item:hover {
    background: rgba(187, 135, 115, 0.1);
    transform: translateY(-2px);
}

.link-more-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #bb8773;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.link-item:hover .link-more-btn {
    opacity: 1;
}

/* Social Links Footer */
.social-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 32px 14px;
    margin-top: 32px;
}

.social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bb8773;
    transition: transform 0.3s ease;
    text-decoration: none;
}

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

.social-icon {
    width: 100%;
    height: 100%;
    background-color: #bb8773;
}

/* Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    max-width: 580px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
}

.topbar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
}

.topbar-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.topbar-spacer {
    flex: 1;
}

.course-container {
    border: #c58c77 solid 1px;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.course-title {
    padding: 20px;
    text-align: center;
}

.course-description {
    padding: 5px;
    text-align: center;
}

.course-image {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 576px) {
    html {
        background-color: #050f15;
    }

    .body {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        margin-top: 0;
    }

    .profile-title {
        font-size: 2.2rem;
    }

    .link-item {
        padding: 14px 16px;
        font-size: 19px;
    }

    .hero-section {
        height: calc(100vw - 40px);
        border-radius: 0;
    }
}
