:root {
    --shadow-light: 8px 8px 16px #a3b1c6;
    --shadow-dark: -8px -8px 16px #ffffff;
    --card-bg: #e0e5ec;
    --radius: 20px;
    --spacing: 1.5rem;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --bg-color: #e0e5ec;
    --text-color: #2a2a2a;
    --box-shadow: 8px 8px 16px #a3b1c6, -8px -8px 16px #ffffff;
    --box-shadow-inset: inset 6px 6px 12px #a3b1c6, inset -6px -6px 12px #ffffff;
    --btn-active: inset 2px 2px 5px #bec3c9, inset -2px -2px 5px #ffffff;
}

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

html {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    scroll-behavior: smooth;
    line-height: 1.6;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    color: var(--text-color);
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing);
    margin: var(--spacing);
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    text-align: center;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--bg-color); 
    box-shadow: var(--shadow-light), var(--shadow-dark);
}

.profile-name {
    color: var(--text-color);
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-shadow: 2px 2px 4px var(--shadow-dark);
    margin-bottom: 0.5rem;
}

main { flex: 1; width: 100%; padding: var(--spacing); }

.main-content {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing);
    box-shadow: var(--box-shadow);
}

.header-content { text-align: left; flex: 1; margin-left: 1rem; }

.page-title {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-desc { color: rgba(42, 42, 42, 0.8); font-size: 1rem; }

.previous-page-button-container {
    display: flex;
    margin-left: auto;
    background: transparent;
}

.previous-page-button {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: calc(var(--radius) / 2);
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--box-shadow);
    transition: all 0.2s ease;
}

.previous-page-button:hover { transform: translateY(-2px); }
.previous-page-button:active { box-shadow: var(--btn-active); transform: translateY(0); }

.card-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    display: block;
}

.doc-heading {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.doc-heading:first-child { margin-top: 0; }

.doc-p {
    margin-bottom: 1rem;
    color: var(--text-color);
    text-align: justify;
}

.doc-ul { margin-left: 1.5rem; margin-bottom: 1rem; }
.doc-ul li { margin-bottom: 0.5rem; color: var(--text-color); }

.doc-img-container {
    width: 100%;
    margin: 1.5rem 0;
    padding: 10px;
    border-radius: 20px;
    background: var(--card-bg);
    box-shadow: var(--box-shadow);
}
.doc-img { width: 100%; border-radius: 15px; display: block; }

.code-box-wrapper {
    position: relative;
    margin: 1.2rem 0;
}

.code-box {
    background: var(--card-bg);
    padding: 1.5rem;
    padding-right: 3.5rem;
    border-radius: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #333;
    overflow-x: auto;
    box-shadow: var(--box-shadow-inset);
    border: 1px solid rgba(255,255,255,0.1);
}

.cmd { display: block; margin-bottom: 0.5rem; }
.cmd:last-child { margin-bottom: 0; }
.cmd::before { content: "$ "; color: var(--text-color); font-weight: bold; opacity: 0.6; }

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--card-bg);
    border: none;
    color: #555;
    cursor: pointer;
    box-shadow: 4px 4px 8px #bec3c9, -4px -4px 8px #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.copy-btn:hover { color: #000; transform: translateY(-1px); }
.copy-btn:active { box-shadow: var(--btn-active); transform: translateY(1px); }

.copy-tooltip {
    position: absolute;
    top: -35px;
    right: 0;
    background: #2a2a2a;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.copy-tooltip.show { opacity: 1; }

.credits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.credit-btn {
    flex: 1 1 200px;
    max-width: 300px;
    background: var(--card-bg);
    color: var(--text-color);
    padding: 15px 20px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.credit-btn i { font-size: 1.1rem; color: #444; }

.credit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 8px 8px 16px #b0bbc9, -8px -8px 16px #ffffff;
}
.credit-btn:active {
    transform: translateY(1px);
    box-shadow: var(--btn-active);
}

@media (max-width: 768px) {
    .profile-name { font-size: 1.8rem; }
    .page-desc { font-size: 0.9rem; }
    .profile-image { width: 100px; height: 100px; }
    .profile-header { padding: 1.5rem 1rem; }

    .section-header { 
        flex-direction: column; 
        gap: 1.2rem; 
        text-align: center; 
        padding: 1.5rem;
    }
    .header-content { margin-left: 0; }
    .previous-page-button-container { margin: 0 auto; width: 100%; justify-content: center; }
    .previous-page-button { width: 100%; justify-content: center; }

    .main-content { padding: 1rem; }
    .card { padding: 1.5rem; border-radius: 15px; }
    
    .code-box { 
        font-size: 0.8rem; 
        padding: 1.2rem; 
        padding-right: 3rem;
    }
    .copy-btn { width: 32px; height: 32px; top: 10px; right: 10px; }

    .credits-grid { flex-direction: column; }
    .credit-btn { max-width: 100%; }
}
