:root {
    --bg-beige: #F5F1E9;
    /* Elegant warm beige */
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --accent-color: #8A9A5B;
    /* Subtle sage from original palette */
    --font-heading: 'Playfair Display', serif;
    --font-accent: 'Sacramento', cursive;
    --font-body: 'Outfit', sans-serif;
    --divider-color: #1A1A1A;
}

html {
    background-color: var(--bg-beige);
    margin: 0;
    padding: 0;
}

body {
    background-color: transparent;
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    cursor: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Faint Beach Overlay - Layered on top of Beige */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/beach_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.3;
    /* Clearly visible 30% */
    z-index: -2;
    pointer-events: none;
    mix-blend-mode: multiply;
    /* Better visibility on beige */
}

/* Custom Soft Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background-color: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
    mix-blend-mode: multiply;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Natural Paper Texture - Layered on top of Beach */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
    opacity: 0.2;
    /* Slightly reduced to let beach shine */
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: multiply;
}

/* Profile Section - No Frame */
.profile-section {
    width: 100%;
    background: transparent !important;
    padding: 6rem 1.5rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

/* Main Container */
.container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

/* Profile Section */
.avatar-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 2.5rem;
    border: 2px solid var(--text-main);
    padding: 2px;
    position: relative;
    animation: green-breathing 4s infinite ease-in-out;
}

@keyframes green-breathing {
    0% {
        box-shadow: 0 0 5px rgba(138, 154, 91, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(138, 154, 91, 0.4);
    }

    100% {
        box-shadow: 0 0 5px rgba(138, 154, 91, 0.2);
    }
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    /* Natural centering to show more of the frame */
}

.name {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    text-align: center;
}

.subtitle {
    font-family: var(--font-accent);
    font-size: 2.5rem;
    margin: 0;
    color: var(--text-main);
    line-height: 1;
    transform: translateY(-10px);
}

.bio {
    font-size: 1rem;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-align: center;
}

/* Minimal Link Rows */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 4rem 1.5rem;
    box-sizing: border-box;
}

.minimal-link-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3.5rem;
    text-align: center;
    position: relative;
}

.row-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.divider {
    width: 100%;
    height: 1px;
    background: var(--divider-color);
    position: relative;
    margin-bottom: 1.25rem;
}

.divider span {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    padding-left: 10px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.minimal-link {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    text-decoration: none;
    color: var(--text-main);
    text-transform: lowercase;
    transition: letter-spacing 0.3s ease, opacity 0.3s ease;
    letter-spacing: 0.05em;
    font-weight: 500;
    /* Consistent medium weight for all links */
}

.minimal-link:hover {
    letter-spacing: 0.15em;
    opacity: 0.7;
}

/* High-Conversion Highlights */
.free-badge {
    border: 1px solid var(--text-main);
    color: var(--text-main);
    font-size: 0.55rem;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: var(--font-body);
    font-weight: 500;
    margin-right: 8px;
    vertical-align: middle;
    letter-spacing: 1.5px;
    display: inline-block;
}

.highlight-link {
    font-weight: 500;
}

.course-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    max-width: 300px;
    font-weight: 300;
}

/* Social Section */
.social-section {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.social-icon {
    font-size: 1.2rem;
    color: var(--text-main);
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.header-socials {
    margin-top: 2rem;
}



/* Responsiveness & Adaptive Scaling */

/* Mobile Portrait (iPhone SE, etc.) */
@media (max-width: 375px) {
    body {
        padding: 3rem 1rem;
    }

    .name {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 2rem;
    }

    .avatar-wrapper {
        width: 110px;
        height: 110px;
        margin-bottom: 2rem;
    }

    .minimal-link {
        font-size: 1.2rem;
    }

    .bio {
        font-size: 0.9rem;
    }
}

/* Tablets (iPad, Broad Mobile) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        max-width: 90%;
    }

    .name {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 2.3rem;
    }
}

/* Desktop & Large Screens */
@media (min-width: 1024px) {
    .container {
        max-width: 600px;
    }

    .links-section {
        padding: 6rem 2rem;
    }

    .minimal-link:hover {
        letter-spacing: 0.2rem;
    }
}